Im trying to make a fire brick that when it is touched it gets you 1 temp value + every 0.1 second. But somehow it doesn't work.
Thanks on your help!!
__________________________________________________________________________
stop = 1
function onTouched(hit)
if stop == 1 then
if hit.Parent:findFirstChild("Humanoid") ~= nil then
for i = 5, 1, 1 do
hit.Parent.Parent.Parent.Parent.leaderstats.Temp.Value = Temp.Value + i
wait(0.1)
end
stop = 1
end
end
end
script.Parent.Touched:connect(onTouched) |