Ad
Log in to vote
0

No Cursor Script?

Asked by 7 years ago

I was recently wondering how in lets say Amnesia games on ROBLOX when they hold the lantern or something they only have a dot instead of the cursor on your screen, how do they do that does anyone know the whole script? or explanation??

2 answers

Log in to vote
1
Answered by 7 years ago

Mouse object has 'Icon' property. For some reason you cannot change it when you claim the mouse with

localPlayer:GetMouse()

method, so you must use a tool in order to change it. This is the sample script for tool, that would set your cursor to invisible:

script.Parent.Equipped:connect(function(mouse)
mouse.Icon = "rbxasset://textures/Blank.png"
end)

Make that as local script and place it inside of tool.

Ad
Log in to vote
0
Answered by 7 years ago

Thank you!

Answer this question