Healing Tool not working

Use server script and remote event to get when it is clicked but destroy the tool in the local script

server script:

game.ReplicatedStorage.heal.OnServerEvent:Connect(function(plr)
	local healingAmount = 10
	plr.Character.Humanoid.Health += healingAmount
	print("Heal")
end)

local script:

local plr = game.Players.LocalPlayer

script.Parent.Activated:Connect(function(plr)
	print("Clicked")
	game.ReplicatedStorage.heal:FireServer(plr)
	script.Parent:Destroy()
	print("Destroyed")
end)
1 Like

why u destroying from local ?
and players can exploit this very very easily

they can just send a fake event from the local

Well, I know its exploitable but I think if he is just going to use it as a test, he might want a fast answer and work out the kinks later. and if the game isn’t going to make robux and he is just making it for fun then it doesn’t really matter

1 Like