In this script, The player touches “crusher”. When the player touches “crusher”, I attempt to change the humanoid state of the character who touches the crusher.
Here’s the error:
I have no idea how to do this so I took a guess.
In this script, The player touches “crusher”. When the player touches “crusher”, I attempt to change the humanoid state of the character who touches the crusher.
Here’s the error:
I have no idea how to do this so I took a guess.
I caught something, part of the issue has to do with line 6 where I put “charpart” as the parameter of :GetPlayerFromCharacter instead of something else. But what would it be instead?
edit: I updated the main post to the current scripts.
game.Players:GetPlayerFromCharacter(charpart.Parent)
I tried that but this error was outputted:
The game thinks I’m trying to grab a property from humanoid.
Still experiencing this issue.
I believe it might be humanoid:GetState() instead of humanoid.HumanoidStateType
if humanoid:GetState() == Enum.HumanoidStateType.FallingDown then