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

How Do I Make A Sit Script?

Asked by
tanzane 100
9 years ago

I'm trying to make one of those "Get Eaten" games but I don't know how to make a script where you sit down when you touch the "Giants" tongue. Though I assume it'd probably go into a function. Sorta like this?

function sit()

end
script.parent.Touched:connect(sit)

I don't know what would go inside.... And the script is most likely going to be inside of the tongue of the monster...

P.S. I'm not requesting a script. I just don't know how to get started and I need a little push.

1 answer

Log in to vote
0
Answered by
ultrabug 306 Moderation Voter
9 years ago

There is a property in a humanoid called 'Sit', if you were to toggle this to true I imagine the player would sit down. You might be able to do something like this:

part.Touched:connect(function(hit)
    if hit and hit.Parent and hit.Parent.Humanoid then
        hit.Parent.Humanoid.Sit=true
    else
        wait()
    end
end)

If you do use this, make sure you define your variable part.

Ad

Answer this question