feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39

Merged
min merged 215 commits from feat/lua-50-games-bundle into main 2026-06-09 21:59:25 +00:00
Showing only changes of commit ba648de09c - Show all commits

View File

@ -171,8 +171,18 @@ finishEvent.Event:Connect(function()
winSound:Play() winSound:Play()
__rbxl_show_text("Победа! Ты дошёл до финиша!", 5) __rbxl_show_text("Победа! Ты дошёл до финиша!", 5)
-- Конфетти над игроком (паритет с JS game.scene.spawnParticles) -- Конфетти над игроком (паритет с JS game.scene.spawnParticles)
print("[g2] before pos call")
local pos = __rbxl_player_pos() local pos = __rbxl_player_pos()
__rbxl_spawn_particles("confetti", pos.x, pos.y + 3, pos.z, 3, 3) print("[g2] pos=", tostring(pos), "type=", type(pos))
if pos then
print("[g2] pos.x=", tostring(pos.x), "pos.y=", tostring(pos.y))
end
local px = (pos and pos.x) or 0
local py = (pos and pos.y) or 6
local pz = (pos and pos.z) or 33
print("[g2] spawning particles at", px, py + 3, pz)
__rbxl_spawn_particles("confetti", px, py + 3, pz, 3, 3)
print("[g2] particles call returned")
end)`, end)`,
g2_finish: `-- === Скрипт финиш-зоны (Lua) === g2_finish: `-- === Скрипт финиш-зоны (Lua) ===
-- Висит на невидимой зоне над зелёной площадкой. -- Висит на невидимой зоне над зелёной площадкой.