ive been looking for answers for this error ive tried: player.Character:wait(), player.CharacterAdded:wait()
full script:
player = game.Players.PlayerAdded char = player.CharacterAdded Humanoid = char:WaitForChild('Humanoid') script.Parent.Equipped:connect(function() local stance = Humanoid:LoadAnimation(script.Parent.Stance) end)
the error 'Character is not a valid member of RBXScriptSignal' is on line 2: char = player.CharacterAdded
im tired this is probably a dumb mistake
-thanks
Do this instead:
game.Players.PlayerAdded:connect(function(player) --name "player" to whatever you want player.CharacterAdded:connect(function(char) --name "char" to whatever you want local humanoid = char:WaitForChild("Humanoid") script.Parent.Equipped:connect(function() local stance = humanoid:LoadAnimation(script.Parent.Stance) end) end) end)
If you wanted to define player at the beginning like blah = blah, then put it in a local script and define player as localplayer. But this way is easier. Accept if this worked for you!