Hi!
I want my Tool to restore health to the player holding it when he clicks the left mouse button.
The problem is that it sets it back to what it was before after restoring health to the player. How do I prevent that?
Here is the code in my LocalScript (the parent is Tool):
script.Parent.Activated:connect(function()
local player = game.Players.LocalPlayer
local character = player.Character
local hum = character.Humanoid
if hum ~= nil then
hum.Health = hum.Health + 20
end
end)

2 comments
its replication, because ur doing it on the client
just set it on the server using remove events