I’ve searched the forums of course but they all include the same 2 lines of code that seems to work for everybody else.
(i.e.)
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxassetid://ID"
Here is my script:
print("SCRIPT STARTED")
if not game:IsLoaded() then
game.Loaded:Wait()
end
print("SCRIPT BEGAN")
for i = 3, 0, -1 do
print(i)
task.wait(1)
end
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxassetid://14068895064"
print(mouse.Icon)
print("SCRIPT ENDED")
Currently experiencing the same issue. You might wanna try the game outside of studio as I was informed it might give a different outcome.
UserInputService is also preferred over :GetMouse() so you might wanna try
local UserInputService = game:GetService("UserInputService")
UserInputService.MouseIcon = "rbxassetid://14068895064"
--put this in starter gui
local id = --your id
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
mouse.Moved:Connect(function()
mouse.Icon = id
end)
It has, but Ive never used it properly because my screen goes wack if a game has a custom cursor. Instead I do what the game DOORS did. Disable the mouse icon, slap a dot cursor or mouse cusor decal, and boom, your own custom mouse that is somewhat off centered.
Got it. Cursor is currently broken in Studio, so you’ll have to test it in the actual game.
You also have to put the local script inside StarterGui, using the script I provided it should work.
Mouse.Icon is broken atm, use this. Make sure decal is adjusted to it’s size.
local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()
local vGui = Player:WaitForChild("PlayerGui")
local Run = game:GetService("RunService")
Mouse.Icon = ""
Run.Stepped:Connect(function()
vGui.Mouse.ImageLabel.Position = UDim2.new(0,Mouse.X, 0, Mouse.Y)
end)
As first responder mentioning an issue you get solution. However credit also goes to @Z3SC as it is true that the cursor is currently broken in studio and can only be edited in-game. Thank you all.