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

How to make the player make a animation when he sit?

I want to make the player when he sit begin a typing animation. someone can help me?

4 comments

0

Provide effort, if you mean as in animating a player while sitting, just animate him when the humanoid's Sitting property is set to true

0

downvoted for no effort

0

No code, no effort, no help. You need to provide some sort of effort as this is not a request site.

0

he is asking where to start, not for you to make the script for him. the site allows for that

1 answer

✓ Accepted answer

This is not a request site but I will help you with telling when a player has sat. You can use Seated as other guy wrote but it activates even when you get up(it returns false or true as the first argument but I would recommend looking at changestate) like this:

local Player = game.Players.LocalPlayer

local Humanoid = Player.Character:WaitForChild("Humanoid")
Humanoid.StateChanged:Connect(function(oldState, newState)
	if newState == Enum.HumanoidStateType.Seated then
		-- Play animation
	end
end)

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