Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Removing Mouse Cursor?

I need help removing the cursor of the Roblox mouse to replace it with another... Help?

2 answers

local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = true
	mouse.Icon = "http://www.roblox.com/asset/?id=2966012"

end


function onButton1Up(mouse)
enabled = false
Tool.Enabled = false
mouse.Icon = "http://www.roblox.com/asset/?id=2966012"

wait(.8)

mouse.Icon = "http://www.roblox.com/asset/?id=2966012"
enabled = true
Tool.Enabled = true
end

function onEquippedLocal(mouse)

	if mouse == nil then
		print("Mouse not found")
		return 
	end

	mouse.Icon = "http://www.roblox.com/asset/?id=2966012"
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)	
	mouse.Button1Up:connect(function() onButton1Up(mouse)end)
end


Tool.Equipped:connect(onEquippedLocal)

This discussion is preserved as it was. New answers, comments, and votes are closed.