I am having trouble scripting for a game, It's about blocks that give you affects, that ware off after 10 seconds. This is the script I am using:
Script.Parent.Touched:Connect(function(hit) If hit.Parent:FindFirstChild(“Humanoid”) then game.Workspace[hit.Parent.Name].Humanoid.BodyHeightScale.Value = 0.5 end)
I do not get what is wrong, I just cant find the script that lowers the time to 10 seconds. Any help?
Thanks

1 comment
Btw I am new to scripting lol