Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Do I Make A Sit Script?

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.