local u = game:GetService("UserInputService")
local p = game.Players.LocalPlayer
local map = workspace._GAME.Map
function main()
local s = p.leaderstats.Stairs.Value
local rig = workspace._GAME.CurrentPlayers:FindFirstChild(p.Name)
if not rig then return end
local t = map[s]
if not t then return end
local nt = map[s+1]
if not nt then return end
local tp = t:GetAttribute("WorldPosition")
local ntp = nt:GetAttribute("WorldPosition")
if (tp-ntp).Z > 0 then -- left
mouse1click()
else
mouse2click()
end
end
local tog = false
u.InputBegan:Connect(function(i)
if i.KeyCode == Enum.KeyCode.F then
tog = not tog
task.spawn(function()
while tog do
main()
task.wait(0.15)
end
end)
end
end)
Comments
Didn't work I'm on mobile