Files
Fishing/tools/mcp/checks/portals.lua
T
2026-11-06 12:34:01 +05:00

30 lines
1.1 KiB
Lua

-- (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")