So, I'm new to scripting, and I did a script, but it didn't work. Can you guys help me?
function onTouched() script.Workspace.MessageBlock1.MessageScript.CanCollide = false wait(14) script.Workspace.MessageBlock1.MessageScript.CanCollide = true end
Thats the code. plus my goal was making MessageBlock1 to block the player from bypassing it, but when you wait 14 seconds, it is now bypassable.
Well first things first script.Workspace is not a thing. I think what you are looking for is game.Workspace. Also you need to connect the function to the part. Finally scripts do not have a CanCollide property. The following should work assuming MessageBlock1 is the actual part:
game.Workspace.MessageBlock1.Touched:connect(function() game.Workspace.MessageBlock1.CanCollide = false wait(14) game.Workspace.MessageBlock1.CanCollide = true end)