So I am currently trying to figure out this..(I am new to scripting) I was trying to make a script that is placed in a part and when the part is touched by 1 player than it makes that player jump after maybe 3 seconds, If anyone knows how to go about it can they please send a answer and explain how it works, thank you for reading and helping me :3
Humanoids have a bool in them called Jump and it will make the player jump.
1 | local part = script.Parent |
2 | part.Touched:connect( function (hit) --When the part is touched |
3 | if hit.Parent:FindFirstChild( 'Humanoid' ) then --Checks to make sure it's a whoman. |
4 | wait( 3 ) --Waits three seconds |
5 | hit.Parent.Humanoid.Jump = true --Makes them jump |
6 | end |
7 | end ) |