This is the code I tried.
-- LOCAL VARIABLES --
Player =game.Players.LocalPlayer;
Mouse =Player:GetMouse();
MouseDefaultIcon ="http://www.roblox.com/asset/?id=265193813"
MouseHoverIcon =""
MouseClickIcon =""
Mouse.MouseEnter:connect(function()
if Mouse.MouseEnter.className == "TextButton" or "ImageButton" then
Player.Character.Health = 0
end
end)
I wanted to make this so I don't have to re-script the MouseIcon every for every ImageButton or TextButton.
I did Player.Character.Health = 0 just to test if it works. It does not currently, please help! Thanks!
