local UIS = game:GetService("UserInputService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local pgui = player:WaitForChild("PlayerGui") -- 1. SETUP GUI (Optimized) local screenGui = pgui:FindFirstChild("RealStarCursor") if not screenGui then screenGui = Instance.new("ScreenGui") screenGui.Name = "RealStarCursor" screenGui.IgnoreGuiInset = true screenGui.DisplayOrder = 10000000 screenGui.ResetOnSpawn = false -- Key for persistence screenGui.Parent = pgui end local star = screenGui:FindFirstChild("StarLabel") or Instance.new("ImageLabel") star.Name = "StarLabel" star.BackgroundTransparency = 1 star.Size = UDim2.new(0, 50, 0, 50) star.AnchorPoint = Vector2.new(0.5, 0.5) star.Image = "rbxassetid://11716557686" -- Cleaned asset ID format star.ZIndex = 100 star.Parent = screenGui -- 2. LOCK & HIDE RunService.RenderStepped:Connect(function() -- GetMouseLocation is the most accurate for ScreenGuis with IgnoreGuiInset = true local pos = UIS:GetMouseLocation() star.Position = UDim2.new(0, pos.X, 0, pos.Y) -- Force hide the default cursor if UIS.MouseIconEnabled then UIS.MouseIconEnabled = false end end)