Advertisement
pa1nx9

ALONE IN A DARK HOUSE FAST MONEY

Sep 12th, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. if game.PlaceId ~= 5938315346 then
  2. game:GetService("TeleportService"):Teleport(5938315346, game.Players.LocalPlayer)
  3. end
  4. local Checkpoints = {}
  5. local ButtonClickDetectors = {}
  6.  
  7.  
  8. for i,v in pairs(game.Workspace:GetDescendants()) do
  9. if v:IsA("ClickDetector") and v:FindFirstAncestor("Button") then
  10. table.insert(ButtonClickDetectors,v)
  11. elseif v.Name == "TouchInterest" and v:FindFirstAncestor("Checkpoint") then
  12. table.insert(Checkpoints,v.Parent)
  13. end
  14. end
  15.  
  16. while wait(10) do
  17. for i,v in pairs(ButtonClickDetectors) do
  18. local Lowest = math.huge
  19. local Closest = nil
  20. for i = 1,#Checkpoints do
  21. local Distance = (v.Parent:FindFirstChildOfClass("Part").Position - Checkpoints[i].Position).magnitude
  22. if Distance < Lowest then
  23. Lowest = Distance
  24. Closest = Checkpoints[i]
  25. end
  26. end
  27. firetouchinterest(game.Players.LocalPlayer.Character["RightFoot"],Closest,0)
  28. firetouchinterest(game.Players.LocalPlayer.Character["RightFoot"],Closest,0)
  29. firetouchinterest(game.Players.LocalPlayer.Character["RightFoot"],Closest,1)
  30. firetouchinterest(game.Players.LocalPlayer.Character["LeftFoot"],Closest,1)
  31. wait(2)
  32. fireclickdetector(v)
  33. end
  34. game.Players:Chat("!reset")
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement