of     1   

bloob827
#36228703Saturday, October 30, 2010 3:58 PM GMT

Ok.. this is in a hopperbin and when you click it, you heal to full health, but when you use it the hopperbin disappears, but the mouseIcon is still on :/ Script : bin = script.Parent Debounce = false function onButton1Down(mouse) local player = game.Players.LocalPlayer if player == nil then return end if (Debounce == false) then Debounce = true local h = player.Character:findFirstChild("Humanoid") h.Health = h.Health + 100 end bin:Remove() end function onSelected(mouse) mouse.Icon = "http://www.roblox.com/asset/?id=36152562" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
bloob827
#36229001Saturday, October 30, 2010 4:04 PM GMT

bump
Apocalyps
#36229121Saturday, October 30, 2010 4:07 PM GMT

bin = script.Parent Debounce = false function onButton1Down(mouse) local player = game.Players.LocalPlayer if player == nil then return end if (Debounce == false) then Debounce = true local h = player.Character:findFirstChild("Humanoid") h.Health = h.Health + 100 end bin:Remove() end function onSelected(mouse) mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
bloob827
#36229468Saturday, October 30, 2010 4:12 PM GMT

No i want the icon..
bloob827
#36229761Saturday, October 30, 2010 4:18 PM GMT

bump
bloob827
#36230092Saturday, October 30, 2010 4:23 PM GMT

bump!
bloob827
#36230460Saturday, October 30, 2010 4:29 PM GMT

bum
DestinyUnbound
#36230665Saturday, October 30, 2010 4:32 PM GMT

You can't do anything about the cursor when the tool removes just switch to a different tool then put the different tool away
bloob827
#36230745Saturday, October 30, 2010 4:33 PM GMT

That wasn't much help... I only have this tool ONLY.
Spectrumw
#36230750Saturday, October 30, 2010 4:33 PM GMT

@Shred You fail so epicly... of course you can remove the cursos when the tool is gone, that is why 'Deselected' event exists.
bloob827
#36231254Saturday, October 30, 2010 4:41 PM GMT

The hopperbin is gone once it is used.
Spectrumw
#36231368Saturday, October 30, 2010 4:42 PM GMT

Deselected function is used when the tool is gone or deselected.
bloob827
#36231910Saturday, October 30, 2010 4:51 PM GMT

Ok. bin = script.Parent Debounce = false function onButton1Down(mouse) local player = game.Players.LocalPlayer if player == nil then return end if (Debounce == false) then Debounce = true local h = player.Character:findFirstChild("Humanoid") h.Health = h.Health + 100 end bin:Remove() end function onSelected(mouse) mouse.Icon = "http://www.roblox.com/asset/?id=36152562" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected) bin.Deselected:connect(function() mouse.Icon:Remove() end) That?
bloob827
#36232809Saturday, October 30, 2010 5:05 PM GMT

BUMP?
Krammy
#36233971Saturday, October 30, 2010 5:23 PM GMT

bin.Deselected:connect(function(mouse) mouse.Icon = "" end)
Krammy
#36234453Saturday, October 30, 2010 5:30 PM GMT

bin = script.Parent function onButton1Down(mouse) local player = game.Players.LocalPlayer if player == nil then return end local h = player.Character:findFirstChild("Humanoid") h.Health = h.MaxHealth mouse.Icon = "" bin:Remove() end bin.Selected:connect(function(mouse) mouse.Icon = "http://www.roblox.com/asset/?id=36152562" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end)
DestinyUnbound
#36452470Wednesday, November 03, 2010 8:35 PM GMT

u need a cursor remover thingy be4 the tool deletes itself

    of     1