Hi, I’m trying to set a custom mouse cursor for when a character enters first person. It seems to work in Studio, but in an actual game, the cursor remains the same. Any ideas?
local function set_icon(icon)
local s = os.clock()
repeat
UserInputService.MouseIcon = icon
until (UserInputService.MouseIcon == icon) or (os.clock() - s) > 2
end
workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
local char = character_wrapper.character
if not char then return end
if (char.Head.Position + Vector3.new(0, 2, 0) - CurrentCamera.CFrame.Position).Magnitude < 1 then
set_icon("rbxassetid://13267468005")
else
set_icon("rbxassetid://7153417129")
end
end)