How to make a Health giver and Damage giver :Roblox Studio Tutorial👍 (Read Description)

This is my first Roblox Studio Tutorial leave a like and subscribe
for more😊
Damage giver Script :
local model = script.Parent
local Canrun = true

function Damagegiver (part)
local Hum = part.Parent:FindFirstChild(“Humanoid”)
if Hum and Canrun then
Canrun = false
Hum.Health = Hum.Health -50
wait(5)
Canrun = true

end
end
model.Touched:Connect(Damagegiver)
Health giver script:

local model = script.Parent
local Canrun = true

function Healthgiver (part)
local Hum = part.Parent:FindFirstChild(“Humanoid”)
if Hum and Canrun then
Canrun = false
Hum.Health = Hum.Health + 50
wait(5)
Canrun = true

end
end

model.Touched:Connect(Healthgiver)

my Roblox Account :https://web.roblox.com/users/640858018/profile
Fearless music NCS:https://www.youtube.com/watch?v=9rujCfYXhQc
Heart Afire Music NCS:https://www.youtube.com/watch?v=S7zZXGxy5vg

Post Author: hatefull