Lobby
This commit is contained in:
1 parent
73a2db8bb8
commit
44cf31ce6b
231 files changed
+3396887
-1109081
No files matched your search
@@ -0,0 +1,29 @@
|
||||
-- (Client) нажать подсказку каждого портала лобби и посмотреть, куда перенесло (или что ответил сервер)
|
||||
local P = game.Players.LocalPlayer
|
||||
local map = workspace.FishingMap
|
||||
local out = {}
|
||||
for _, id in ipairs({ "World1", "World2", "World3", "World4" }) do
|
||||
local part = map:FindFirstChild("Portal_" .. id)
|
||||
local pp = part and part:FindFirstChildWhichIsA("ProximityPrompt", true)
|
||||
if not pp then
|
||||
table.insert(out, id .. ": нет подсказки")
|
||||
else
|
||||
P.Character:PivotTo(CFrame.new(0, 4, 40))
|
||||
task.wait(1)
|
||||
P.Character:PivotTo(CFrame.new(part.Position.X * 1.6, 4, part.Position.Z * 1.6))
|
||||
task.wait(1)
|
||||
pp:InputHoldBegin()
|
||||
task.wait(0.1)
|
||||
pp:InputHoldEnd()
|
||||
task.wait(4)
|
||||
local pos = P.Character.HumanoidRootPart.Position
|
||||
local toast = ""
|
||||
for _, g in ipairs(P.PlayerGui.FishingUI:GetDescendants()) do
|
||||
if g:IsA("TextLabel") and g.Visible and g.Text:find("🔒") then
|
||||
toast = g.Text
|
||||
end
|
||||
end
|
||||
table.insert(out, ("%s: теперь в (%.0f, %.0f) %s"):format(id, pos.X, pos.Z, toast))
|
||||
end
|
||||
end
|
||||
return table.concat(out, "\n")
|
||||
Reference in new issue
Block a user