In this game I've made a script that gives a BoolValue to everyone with a VIP Shirt. I can't tell why this script is not working it's not returning any Output or Script Analysis.
function onTouch(Part)
local Humanoid = Part.Parent:findFirstChild("Humanoid")
if (Humanoid ~=nil) then
if Part.Parent.Hit == false then
Humanoid.WalkSpeed = Humanoid.WalkSpeed + 100
Humanoid.MaxHealth = Humanoid.MaxHealth + 100
Humanoid.Health = Humanoid.MaxHealth
Part.Parent.Hit = true -- Don't let this person get the buff twice
end
end
end
script.Parent.Touched:connect(onTouch) |