Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local ringName = "FOV" -- Change this if your ring has a different name
- -- Find the existing ring
- local existingRing = nil
- for _, gui in pairs(playerGui:GetChildren()) do
- if gui:IsA("ScreenGui") then
- for _, child in pairs(gui:GetChildren()) do
- if child.Name == ringName and child:IsA("Frame") then
- existingRing = child
- break
- end
- end
- end
- if existingRing then break end
- end
- -- Re-center the ring if found
- if existingRing then
- existingRing.Position = UDim2.new(0.5, 0, 0.5, 0)
- existingRing.AnchorPoint = Vector2.new(0.5, 0.5)
- else
- warn("FOV ring not found.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement