diff --git a/Fishing.rbxlx b/Fishing.rbxlx index 94fda93..b680a2c 100644 --- a/Fishing.rbxlx +++ b/Fishing.rbxlx @@ -987,7 +987,7 @@ if not spawn then end spawn.Anchored = true 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.Duration = 0 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) }) 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) }) @@ -1421,16 +1421,25 @@ do water.Acceleration = V(0, -25, 0) water.Parent = att end -for i = 0, 5 do - local a = math.rad(i * 60 + 30) - bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30))) +-- скамейки по внешнему краю площади, между порталами, лицом к фонтану +for _, deg in ipairs({ 45, 135, 225, 315 }) do + 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 --- фонари по кругу +-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук) for i = 0, 7 do - local a = math.rad(i * 45 + 22.5) - lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40)) + 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)) + end end +lamp(V(-7, FLOOR, 48)) +lamp(V(7, FLOOR, 48)) -- клумбы с деревьями for _, deg in ipairs({ 225, 315 }) do @@ -1529,12 +1538,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), { end, }) --- порталы во все миры и арка с названием -local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)) -arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) +-- арка с названием +arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) + +-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления +local PORTAL_R = 19 for i, w in ipairs(Config.Worlds) do 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 -- невидимая стена по кругу: из лобби не уйти diff --git a/install/3_MapBuilder_ServerScriptService.rbxmx b/install/3_MapBuilder_ServerScriptService.rbxmx index 5a17e3c..d513f71 100644 --- a/install/3_MapBuilder_ServerScriptService.rbxmx +++ b/install/3_MapBuilder_ServerScriptService.rbxmx @@ -118,7 +118,7 @@ if not spawn then end spawn.Anchored = true 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.Duration = 0 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) }) 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) }) @@ -552,16 +552,25 @@ do water.Acceleration = V(0, -25, 0) water.Parent = att end -for i = 0, 5 do - local a = math.rad(i * 60 + 30) - bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30))) +-- скамейки по внешнему краю площади, между порталами, лицом к фонтану +for _, deg in ipairs({ 45, 135, 225, 315 }) do + 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 --- фонари по кругу +-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук) for i = 0, 7 do - local a = math.rad(i * 45 + 22.5) - lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40)) + 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)) + end end +lamp(V(-7, FLOOR, 48)) +lamp(V(7, FLOOR, 48)) -- клумбы с деревьями for _, deg in ipairs({ 225, 315 }) do @@ -660,12 +669,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), { end, }) --- порталы во все миры и арка с названием -local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)) -arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) +-- арка с названием +arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) + +-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления +local PORTAL_R = 19 for i, w in ipairs(Config.Worlds) do 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 -- невидимая стена по кругу: из лобби не уйти diff --git a/install/INSTALL.lua b/install/INSTALL.lua index b6b0f65..2e45732 100644 --- a/install/INSTALL.lua +++ b/install/INSTALL.lua @@ -993,7 +993,7 @@ if not spawn then end spawn.Anchored = true 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.Duration = 0 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) }) 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) }) @@ -1427,16 +1427,25 @@ do water.Acceleration = V(0, -25, 0) water.Parent = att end -for i = 0, 5 do - local a = math.rad(i * 60 + 30) - bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30))) +-- скамейки по внешнему краю площади, между порталами, лицом к фонтану +for _, deg in ipairs({ 45, 135, 225, 315 }) do + 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 --- фонари по кругу +-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук) for i = 0, 7 do - local a = math.rad(i * 45 + 22.5) - lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40)) + 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)) + end end +lamp(V(-7, FLOOR, 48)) +lamp(V(7, FLOOR, 48)) -- клумбы с деревьями for _, deg in ipairs({ 225, 315 }) do @@ -1535,12 +1544,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), { end, }) --- порталы во все миры и арка с названием -local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)) -arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) +-- арка с названием +arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) + +-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления +local PORTAL_R = 19 for i, w in ipairs(Config.Worlds) do 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 -- невидимая стена по кругу: из лобби не уйти diff --git a/src/ServerScriptService/MapBuilder.server.lua b/src/ServerScriptService/MapBuilder.server.lua index 609eec9..58dbead 100644 --- a/src/ServerScriptService/MapBuilder.server.lua +++ b/src/ServerScriptService/MapBuilder.server.lua @@ -117,7 +117,7 @@ if not spawn then end spawn.Anchored = true 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.Duration = 0 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) }) 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) }) @@ -551,16 +551,25 @@ do water.Acceleration = V(0, -25, 0) water.Parent = att end -for i = 0, 5 do - local a = math.rad(i * 60 + 30) - bench(CFrame.lookAt(V(math.cos(a) * 17, FLOOR, math.sin(a) * 17), V(math.cos(a) * 30, FLOOR, math.sin(a) * 30))) +-- скамейки по внешнему краю площади, между порталами, лицом к фонтану +for _, deg in ipairs({ 45, 135, 225, 315 }) do + 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 --- фонари по кругу +-- фонари по кругу (у спавна — за спиной игрока, чтобы не закрывали табличку и сундук) for i = 0, 7 do - local a = math.rad(i * 45 + 22.5) - lamp(V(math.cos(a) * 40, FLOOR, math.sin(a) * 40)) + 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)) + end end +lamp(V(-7, FLOOR, 48)) +lamp(V(7, FLOOR, 48)) -- клумбы с деревьями for _, deg in ipairs({ 225, 315 }) do @@ -659,12 +668,16 @@ stall(CFrame.lookAt(V(62, FLOOR, 0), V(0, FLOOR, 0)), { end, }) --- порталы во все миры и арка с названием -local portalCF = CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)) -arch(portalCF, 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) +-- арка с названием +arch(CFrame.lookAt(V(0, FLOOR, -66), V(0, FLOOR, 0)), 84, 24, "🎣 " .. string.upper(Config.GameName) .. " 🎣", Color3.fromRGB(255, 190, 60)) + +-- порталы по кругу у фонтана, лицом наружу; первый (бесплатный) мир — прямо перед точкой появления +local PORTAL_R = 19 for i, w in ipairs(Config.Worlds) do 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 -- невидимая стена по кругу: из лобби не уйти