Cra-Z-Gaming

YOU WILL CRY OBBY Script

Dec 21st, 2025
94
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. --https://www.roblox.com/games/84454808342722/YOU-WILL-CRY-OBBY--
  2. --automaticly teleports to the next white checkpoint (if you want to use script again, rebith then rejoin)--
  3.  
  4.  
  5. local UserInput = game:GetService("UserInputService")
  6. local ws = game:GetService("Workspace")
  7. local players = game:GetService("Players")
  8. local lp = players.LocalPlayer
  9. local root = lp.Character and lp.Character:FindFirstChild("HumanoidRootPart")
  10.  
  11. -- build placeholder root if char not out yet
  12. if not root then
  13. root = Instance.new("Part")
  14. root.Name, root.Anchored, root.CanCollide, root.Transparency, root.Size =
  15. "FakeRoot", true, false, 1, Vector3.one
  16. root.CFrame = CFrame.new(0, 1e6, 0)
  17. root.Parent = ws
  18. lp.CharacterAdded:Connect(function(ch)
  19. task.wait(.1)
  20. root:Destroy()
  21. root = ch:WaitForChild("HumanoidRootPart")
  22. end)
  23. end
  24.  
  25. -- flag to stop loop
  26. local running = true
  27. UserInput.InputBegan:Connect(function(inp, gp)
  28. if not gp and inp.KeyCode == Enum.KeyCode.X then
  29. running = false
  30. print("X pressed – loop stopped")
  31. end
  32. end)
  33.  
  34. -- main loop
  35. while running do
  36. -- find lowest-numbered Institutional-white part
  37. local lowestNum, lowestPart = math.huge, nil
  38. for _, obj in ws:GetDescendants() do
  39. if obj:IsA("BasePart") and obj.Name:match("^%d+$") then
  40. local n = tonumber(obj.Name)
  41. if obj.BrickColor == BrickColor.new("Institutional white") and n < lowestNum then
  42. lowestNum, lowestPart = n, obj
  43. end
  44. end
  45. end
  46.  
  47. if lowestPart then
  48. root.CFrame = lowestPart.CFrame + Vector3.new(0, 2, 0)
  49. else
  50. warn("No white part found")
  51. end
  52.  
  53. task.wait(0.2) -- tweak speed here
  54. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment