I have an NPC for a game and i want to make it so every time the player jumps, the NPC would jump too. I may of made a simple mistake but i don't know why it won't detect the player in workspace.
if game.Workspace.Player.Humanoid.Jump == true then
script.Parent.Zombie.Jump = true --Zombie is the name of the NPC's humanoid.
end
Any help? Thanks.

1 comment
The way you do it right now would only work in studio, but you'd need "Player1" instead. Suggest to make the zombie jump whenever it hasnt changed position (Magnitude check < 1) in 5 secconds