Advertisement
Liambubbydo15

Hahaha

May 10th, 2025 (edited)
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local playerGui = player:WaitForChild("PlayerGui")
  4.  
  5. local ringName = "FOV" -- Change this if your ring has a different name
  6.  
  7. -- Find the existing ring
  8. local existingRing = nil
  9. for _, gui in pairs(playerGui:GetChildren()) do
  10. if gui:IsA("ScreenGui") then
  11. for _, child in pairs(gui:GetChildren()) do
  12. if child.Name == ringName and child:IsA("Frame") then
  13. existingRing = child
  14. break
  15. end
  16. end
  17. end
  18. if existingRing then break end
  19. end
  20.  
  21. -- Re-center the ring if found
  22. if existingRing then
  23. existingRing.Position = UDim2.new(0.5, 0, 0.5, 0)
  24. existingRing.AnchorPoint = Vector2.new(0.5, 0.5)
  25. else
  26. warn("FOV ring not found.")
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement