Answered by
5 years ago Edited 5 years ago
Humanoid is a object placed in every character model.
Your character model is in workspace, where all the world objects appear.
3 | function humanoid(param) |
4 | if param:IsA( "Model" ) and param.Humanoid then return param end |
7 | hum = workspace.ChildAdded:Connect(humanoid) |
Player is the client. You use this instance when you simply want to do things on the client side like how your character is on the server.
1 | localp = game.Players:GetPropertyChangedSignal( "LocalPlayer" ):Wait() |
2 | gui = localp.PlayerGui.ScreenGui.Frame |
5 | if hum.Sit and hum:GetState() = = 13 then |
That is the script...
Now you may want to do this too, but your choice.
1 | hum:GetPropertyChangedSignal( "Sit" ):Connect( function (change) |