How would i do this

I have this vest system someone scripted me but I want it to give the player more health when they have it on not when equipped because its a team spawn vest
local handle = script.Parent
local vest = handle.Parent

local equipped = false
local rate = 200
local walk = 13
local jump = 35

handle.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) and equipped == false then
vest.Parent = hit.Parent
hit.Parent.Humanoid.MaxHealth = rate
hit.Parent.Humanoid.Health = rate
hit.Parent.Humanoid.JumpPower = jump
hit.Parent.Humanoid.WalkSpeed = walk
equipped = true
end
end)

1 Like

Could you give the vest system code?

wait i just a warning for posting police pants lol

i updated it anyways i need to head to bed