123
This commit is contained in:
1 parent
c3cf9a9bec
commit
28ec53735b
4 files changed
+96
-44
No files matched your search
+24
-11
@@ -987,7 +987,7 @@ if not spawn then
|
|||||||
end
|
end
|
||||||
spawn.Anchored = true
|
spawn.Anchored = true
|
||||||
spawn.Size = V(8, 0.2, 8)
|
spawn.Size = V(8, 0.2, 8)
|
||||||
spawn.CFrame = CFrame.new(0, 1.15, 50)
|
spawn.CFrame = CFrame.new(0, 1.15, 40)
|
||||||
spawn.Transparency = 1
|
spawn.Transparency = 1
|
||||||
spawn.Duration = 0
|
spawn.Duration = 0
|
||||||
for _, d in ipairs(spawn:GetChildren()) do
|
for _, d in ipairs(spawn:GetChildren()) do
|
||||||
@@ -1383,7 +1383,7 @@ for _, a in ipairs({ 0, 90, 180, 270 }) do
|
|||||||
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
||||||
end
|
end
|
||||||
|
|
||||||
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 50))
|
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 40)) -- прямо перед порталом в Мир 1
|
||||||
|
|
||||||
-- фонтан со статуей золотой рыбы
|
-- фонтан со статуей золотой рыбы
|
||||||
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
||||||
@@ -1421,16 +1421,25 @@ do
|
|||||||
water.Acceleration = V(0, -25, 0)
|
water.Acceleration = V(0, -25, 0)
|
||||||
water.Parent = att
|
water.Parent = att
|
||||||
end
|
end
|
||||||
for i = 0, 5 do
|
-- скамейки по внешнему краю площади, между порталами, лицом к фонтану
|
||||||
local a = math.rad(i * 60 + 30)
|
for _, deg in ipairs({ 45, 135, 225, 315 }) do
|
||||||
bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30)))
|
local a = math.rad(deg)
|
||||||
|
for _, side in ipairs({ -1, 1 }) do
|
||||||
|
local b = a + side * math.rad(9)
|
||||||
|
bench(CFrame.lookAt(V(math.cos(b) * 34, FLOOR, math.sin(b) * 34), V(0, FLOOR, 0)))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- фонари по кругу
|
-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук)
|
||||||
for i = 0, 7 do
|
for i = 0, 7 do
|
||||||
local a = math.rad(i * 45 + 22.5)
|
local deg = i * 45 + 22.5
|
||||||
|
if deg ~= 67.5 and deg ~= 112.5 then
|
||||||
|
local a = math.rad(deg)
|
||||||
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
lamp(V(-7, FLOOR, 48))
|
||||||
|
lamp(V(7, FLOOR, 48))
|
||||||
|
|
||||||
-- клумбы с деревьями
|
-- клумбы с деревьями
|
||||||
for _, deg in ipairs({ 225, 315 }) do
|
for _, deg in ipairs({ 225, 315 }) do
|
||||||
@@ -1529,12 +1538,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- порталы во все миры и арка с названием
|
-- арка с названием
|
||||||
local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0))
|
arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
||||||
arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
|
||||||
|
-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления
|
||||||
|
local PORTAL_R = 19
|
||||||
for i, w in ipairs(Config.Worlds) do
|
for i, w in ipairs(Config.Worlds) do
|
||||||
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
||||||
portal(portalCF * CFrame.new(-27 + (i - 1) * 18, 0, 0), title, w.color, w.id, w.soon)
|
local a = math.rad(90 - (i - 1) * 90) -- 90° = сторона спавна (+Z)
|
||||||
|
local pos = V(math.cos(a) * PORTAL_R, FLOOR, math.sin(a) * PORTAL_R)
|
||||||
|
portal(CFrame.lookAt(pos, V(pos.X * 2, FLOOR, pos.Z * 2)), title, w.color, w.id, w.soon)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- невидимая стена по кругу: из лобби не уйти
|
-- невидимая стена по кругу: из лобби не уйти
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ if not spawn then
|
|||||||
end
|
end
|
||||||
spawn.Anchored = true
|
spawn.Anchored = true
|
||||||
spawn.Size = V(8, 0.2, 8)
|
spawn.Size = V(8, 0.2, 8)
|
||||||
spawn.CFrame = CFrame.new(0, 1.15, 50)
|
spawn.CFrame = CFrame.new(0, 1.15, 40)
|
||||||
spawn.Transparency = 1
|
spawn.Transparency = 1
|
||||||
spawn.Duration = 0
|
spawn.Duration = 0
|
||||||
for _, d in ipairs(spawn:GetChildren()) do
|
for _, d in ipairs(spawn:GetChildren()) do
|
||||||
@@ -514,7 +514,7 @@ for _, a in ipairs({ 0, 90, 180, 270 }) do
|
|||||||
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
||||||
end
|
end
|
||||||
|
|
||||||
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 50))
|
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 40)) -- прямо перед порталом в Мир 1
|
||||||
|
|
||||||
-- фонтан со статуей золотой рыбы
|
-- фонтан со статуей золотой рыбы
|
||||||
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
||||||
@@ -552,16 +552,25 @@ do
|
|||||||
water.Acceleration = V(0, -25, 0)
|
water.Acceleration = V(0, -25, 0)
|
||||||
water.Parent = att
|
water.Parent = att
|
||||||
end
|
end
|
||||||
for i = 0, 5 do
|
-- скамейки по внешнему краю площади, между порталами, лицом к фонтану
|
||||||
local a = math.rad(i * 60 + 30)
|
for _, deg in ipairs({ 45, 135, 225, 315 }) do
|
||||||
bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30)))
|
local a = math.rad(deg)
|
||||||
|
for _, side in ipairs({ -1, 1 }) do
|
||||||
|
local b = a + side * math.rad(9)
|
||||||
|
bench(CFrame.lookAt(V(math.cos(b) * 34, FLOOR, math.sin(b) * 34), V(0, FLOOR, 0)))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- фонари по кругу
|
-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук)
|
||||||
for i = 0, 7 do
|
for i = 0, 7 do
|
||||||
local a = math.rad(i * 45 + 22.5)
|
local deg = i * 45 + 22.5
|
||||||
|
if deg ~= 67.5 and deg ~= 112.5 then
|
||||||
|
local a = math.rad(deg)
|
||||||
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
lamp(V(-7, FLOOR, 48))
|
||||||
|
lamp(V(7, FLOOR, 48))
|
||||||
|
|
||||||
-- клумбы с деревьями
|
-- клумбы с деревьями
|
||||||
for _, deg in ipairs({ 225, 315 }) do
|
for _, deg in ipairs({ 225, 315 }) do
|
||||||
@@ -660,12 +669,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- порталы во все миры и арка с названием
|
-- арка с названием
|
||||||
local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0))
|
arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
||||||
arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
|
||||||
|
-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления
|
||||||
|
local PORTAL_R = 19
|
||||||
for i, w in ipairs(Config.Worlds) do
|
for i, w in ipairs(Config.Worlds) do
|
||||||
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
||||||
portal(portalCF * CFrame.new(-27 + (i - 1) * 18, 0, 0), title, w.color, w.id, w.soon)
|
local a = math.rad(90 - (i - 1) * 90) -- 90° = сторона спавна (+Z)
|
||||||
|
local pos = V(math.cos(a) * PORTAL_R, FLOOR, math.sin(a) * PORTAL_R)
|
||||||
|
portal(CFrame.lookAt(pos, V(pos.X * 2, FLOOR, pos.Z * 2)), title, w.color, w.id, w.soon)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- невидимая стена по кругу: из лобби не уйти
|
-- невидимая стена по кругу: из лобби не уйти
|
||||||
|
|||||||
+24
-11
@@ -993,7 +993,7 @@ if not spawn then
|
|||||||
end
|
end
|
||||||
spawn.Anchored = true
|
spawn.Anchored = true
|
||||||
spawn.Size = V(8, 0.2, 8)
|
spawn.Size = V(8, 0.2, 8)
|
||||||
spawn.CFrame = CFrame.new(0, 1.15, 50)
|
spawn.CFrame = CFrame.new(0, 1.15, 40)
|
||||||
spawn.Transparency = 1
|
spawn.Transparency = 1
|
||||||
spawn.Duration = 0
|
spawn.Duration = 0
|
||||||
for _, d in ipairs(spawn:GetChildren()) do
|
for _, d in ipairs(spawn:GetChildren()) do
|
||||||
@@ -1389,7 +1389,7 @@ for _, a in ipairs({ 0, 90, 180, 270 }) do
|
|||||||
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
||||||
end
|
end
|
||||||
|
|
||||||
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 50))
|
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 40)) -- прямо перед порталом в Мир 1
|
||||||
|
|
||||||
-- фонтан со статуей золотой рыбы
|
-- фонтан со статуей золотой рыбы
|
||||||
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
||||||
@@ -1427,16 +1427,25 @@ do
|
|||||||
water.Acceleration = V(0, -25, 0)
|
water.Acceleration = V(0, -25, 0)
|
||||||
water.Parent = att
|
water.Parent = att
|
||||||
end
|
end
|
||||||
for i = 0, 5 do
|
-- скамейки по внешнему краю площади, между порталами, лицом к фонтану
|
||||||
local a = math.rad(i * 60 + 30)
|
for _, deg in ipairs({ 45, 135, 225, 315 }) do
|
||||||
bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30)))
|
local a = math.rad(deg)
|
||||||
|
for _, side in ipairs({ -1, 1 }) do
|
||||||
|
local b = a + side * math.rad(9)
|
||||||
|
bench(CFrame.lookAt(V(math.cos(b) * 34, FLOOR, math.sin(b) * 34), V(0, FLOOR, 0)))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- фонари по кругу
|
-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук)
|
||||||
for i = 0, 7 do
|
for i = 0, 7 do
|
||||||
local a = math.rad(i * 45 + 22.5)
|
local deg = i * 45 + 22.5
|
||||||
|
if deg ~= 67.5 and deg ~= 112.5 then
|
||||||
|
local a = math.rad(deg)
|
||||||
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
lamp(V(-7, FLOOR, 48))
|
||||||
|
lamp(V(7, FLOOR, 48))
|
||||||
|
|
||||||
-- клумбы с деревьями
|
-- клумбы с деревьями
|
||||||
for _, deg in ipairs({ 225, 315 }) do
|
for _, deg in ipairs({ 225, 315 }) do
|
||||||
@@ -1535,12 +1544,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- порталы во все миры и арка с названием
|
-- арка с названием
|
||||||
local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0))
|
arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
||||||
arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
|
||||||
|
-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления
|
||||||
|
local PORTAL_R = 19
|
||||||
for i, w in ipairs(Config.Worlds) do
|
for i, w in ipairs(Config.Worlds) do
|
||||||
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
||||||
portal(portalCF * CFrame.new(-27 + (i - 1) * 18, 0, 0), title, w.color, w.id, w.soon)
|
local a = math.rad(90 - (i - 1) * 90) -- 90° = сторона спавна (+Z)
|
||||||
|
local pos = V(math.cos(a) * PORTAL_R, FLOOR, math.sin(a) * PORTAL_R)
|
||||||
|
portal(CFrame.lookAt(pos, V(pos.X * 2, FLOOR, pos.Z * 2)), title, w.color, w.id, w.soon)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- невидимая стена по кругу: из лобби не уйти
|
-- невидимая стена по кругу: из лобби не уйти
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ if not spawn then
|
|||||||
end
|
end
|
||||||
spawn.Anchored = true
|
spawn.Anchored = true
|
||||||
spawn.Size = V(8, 0.2, 8)
|
spawn.Size = V(8, 0.2, 8)
|
||||||
spawn.CFrame = CFrame.new(0, 1.15, 50)
|
spawn.CFrame = CFrame.new(0, 1.15, 40)
|
||||||
spawn.Transparency = 1
|
spawn.Transparency = 1
|
||||||
spawn.Duration = 0
|
spawn.Duration = 0
|
||||||
for _, d in ipairs(spawn:GetChildren()) do
|
for _, d in ipairs(spawn:GetChildren()) do
|
||||||
@@ -513,7 +513,7 @@ for _, a in ipairs({ 0, 90, 180, 270 }) do
|
|||||||
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
P({ Size = V(10, 1.0, 48), CFrame = CFrame.new(math.cos(r) * 60, 0.52, math.sin(r) * 60) * CFrame.Angles(0, -r + math.pi / 2, 0), Material = Enum.Material.Marble, Color = Color3.fromRGB(225, 218, 205) })
|
||||||
end
|
end
|
||||||
|
|
||||||
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 50))
|
marker("LobbySpawn", CFrame.new(0, FLOOR + 2, 40)) -- прямо перед порталом в Мир 1
|
||||||
|
|
||||||
-- фонтан со статуей золотой рыбы
|
-- фонтан со статуей золотой рыбы
|
||||||
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
vcyl(V(0, FLOOR + 1, 0), 2, 24, { Material = Enum.Material.Slate, Color = Color3.fromRGB(205, 200, 190) })
|
||||||
@@ -551,16 +551,25 @@ do
|
|||||||
water.Acceleration = V(0, -25, 0)
|
water.Acceleration = V(0, -25, 0)
|
||||||
water.Parent = att
|
water.Parent = att
|
||||||
end
|
end
|
||||||
for i = 0, 5 do
|
-- скамейки по внешнему краю площади, между порталами, лицом к фонтану
|
||||||
local a = math.rad(i * 60 + 30)
|
for _, deg in ipairs({ 45, 135, 225, 315 }) do
|
||||||
bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30)))
|
local a = math.rad(deg)
|
||||||
|
for _, side in ipairs({ -1, 1 }) do
|
||||||
|
local b = a + side * math.rad(9)
|
||||||
|
bench(CFrame.lookAt(V(math.cos(b) * 34, FLOOR, math.sin(b) * 34), V(0, FLOOR, 0)))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- фонари по кругу
|
-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук)
|
||||||
for i = 0, 7 do
|
for i = 0, 7 do
|
||||||
local a = math.rad(i * 45 + 22.5)
|
local deg = i * 45 + 22.5
|
||||||
|
if deg ~= 67.5 and deg ~= 112.5 then
|
||||||
|
local a = math.rad(deg)
|
||||||
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
lamp(V(-7, FLOOR, 48))
|
||||||
|
lamp(V(7, FLOOR, 48))
|
||||||
|
|
||||||
-- клумбы с деревьями
|
-- клумбы с деревьями
|
||||||
for _, deg in ipairs({ 225, 315 }) do
|
for _, deg in ipairs({ 225, 315 }) do
|
||||||
@@ -659,12 +668,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- порталы во все миры и арка с названием
|
-- арка с названием
|
||||||
local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0))
|
arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
||||||
arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60))
|
|
||||||
|
-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления
|
||||||
|
local PORTAL_R = 19
|
||||||
for i, w in ipairs(Config.Worlds) do
|
for i, w in ipairs(Config.Worlds) do
|
||||||
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
local title = w.icon .. " " .. w.name .. (w.level > 1 and (" (ур. " .. w.level .. ")") or "")
|
||||||
portal(portalCF * CFrame.new(-27 + (i - 1) * 18, 0, 0), title, w.color, w.id, w.soon)
|
local a = math.rad(90 - (i - 1) * 90) -- 90° = сторона спавна (+Z)
|
||||||
|
local pos = V(math.cos(a) * PORTAL_R, FLOOR, math.sin(a) * PORTAL_R)
|
||||||
|
portal(CFrame.lookAt(pos, V(pos.X * 2, FLOOR, pos.Z * 2)), title, w.color, w.id, w.soon)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- невидимая стена по кругу: из лобби не уйти
|
-- невидимая стена по кругу: из лобби не уйти
|
||||||
|
|||||||
Reference in new issue
Block a user