Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a player jump through a script?

Asked by 7 years ago

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

0
The answer you got, press Solved next to it VladimVladim 78 — 7y
0
Please accept my answer. Async_io 908 — 7y

1 answer

Log in to vote
5
Answered by
Async_io 908 Moderation Voter
7 years ago

Humanoids have a bool in them called Jump and it will make the player jump.

local part = script.Parent
part.Touched:connect(function(hit) --When the part is touched
    if hit.Parent:FindFirstChild('Humanoid') then --Checks to make sure it's a whoman. 
        wait(3) --Waits three seconds
        hit.Parent.Humanoid.Jump = true --Makes them jump
    end
end)
0
Thank you! kingwizard13093 5 — 7y
0
@Kingwizard13093 accept this answer as correct. shadownetwork 233 — 7y
1
Checks to make sure it's a whoman? Nik1080 24 — 7y
Ad

Answer this question