This Function Ontouch Script Wont Work For Me, But It Will Work For My Friend, orangylemon. Help?
function OnTouched() game.Workspace.Sound:Play() script.Disabled = true wait(87) script.Disabled = false end if script.Parent.Touched:connect(OnTouched)
A disabled script cannot enable itself. What you seem to be trying to do is this, though:
local busy=false script.Parent.Touched:connect(function() if busy then return end busy=true workspace.Sound:Play() wait(87) busy=false end)
This creates a variable busy
and cancels if it's true, then sets it back to false when it's done.