of     1   

sonicx7171
#15969771Wednesday, October 28, 2009 7:39 PM GMT

I am making a heal tool that only gives you a certain amount of healings but it's not working can you help me? Script1: --H4CKTIM3 <3 Sakura129 bin = script.Parent function onButton1Down(mouse) if script.Parent.Uses.Value > 0 then local player = game.Players.LocalPlayer if player == nil then return end player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth mouse.Icon = "rbxasset://textures\\ArrowCursor.png" script.Parent.Uses.Value = script.Parent.Uses.Value - 1 end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end else return end bin.Selected:connect(onSelected) script2: while true do if script.Parent.Uses.Value = 0 then script.Parent:remove() wait(0.1) end end They both have something wrong with them but i don't know what. Script1 is the actual healing script and script2 removes it once you run out of uses.
sonicx7171
#15969802Wednesday, October 28, 2009 7:40 PM GMT

note i did not make the healing script(script1) someone else made it I just edited it.
GoldenUrg
#15971220Wednesday, October 28, 2009 8:16 PM GMT

bin = script.Parent function onButton1Down(mouse) if script.Parent.Uses.Value > 0 then local player = game.Players.LocalPlayer if player == nil then return end player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth mouse.Icon = "rbxasset://textures\\ArrowCursor.png" script.Parent.Uses.Value = script.Parent.Uses.Value - 1 else return end end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected) script2: while true do if script.Parent.Uses.Value = 0 then script.Parent:remove() wait(0.1) end end script2 looks ok.
GoldenUrg
#15971253Wednesday, October 28, 2009 8:17 PM GMT

while true do if script.Parent.Uses.Value == 0 then script.Parent:remove() wait(0.1) end end except double equal
sonicx7171
#16017806Thursday, October 29, 2009 11:04 PM GMT

Thanks!
Raven5887
#16018075Thursday, October 29, 2009 11:09 PM GMT

--H4CKTIM3 <3 Sakura129 ?????? *sings* I gotta feeling, that this script is a freemodel. That this script is a freemodellll
sonicx7171
#16021106Friday, October 30, 2009 12:10 AM GMT

Well I got a feeling that your feeling is right right right. I already told you I got it off free models and edited it tonight night night.
sonicx7171
#16021166Friday, October 30, 2009 12:11 AM GMT

How was that? *sings* I got a feeling, that tonights gonna be a good night, that tonights going to be a good good night!

    of     1