Custom cursor STAR
Key RequiredUniversal

Custom cursor STAR

Universal ScriptMstyfoMstyfo 959 views 634 executesUpdated Jun 16, 2026
Unrated
00
Lua Script•38 lines (1256 chars)
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)

Features & Information

idk just use it.....

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts