#Cannot Find Humanoid (even though its there)

1 messages · Page 1 of 1 (latest)

vivid glen
#

I can find the humanoid even though I can find the mob's humanoid?? idk whats going on

thorn silo
#

please release the full code.

#

if you're going to use humanoid, you have to assign a variable with WaitForChild as the server can run the script before the player loads

vivid glen
thorn silo
#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

like this

vivid glen
thorn silo
#

variables are only global when you use require on a modulescript

#

i think

vivid glen
#

no, it was a serverscript

thorn silo
#

there it is

#

the variables are not transfered

vivid glen
#

but the other things do work

#

such as moving the player and moving them to a folder

vivid glen
#

i still cant solve this... someone please help me im about to lose my sanity

primal zodiac
#

The arg "plr" is a Player instance right?

sage fieldBOT
#

studio** You are now Level 4! **studio

primal zodiac
vivid glen
#

thanks