For some reason, my pretty short script just refuses to print out or do anything after declaring variables, does anyone have an answer? I think it may actually be the wait for child and wait() but I don’t know, because I just started Lua.
Code:
local player = game.Players.LocalPlayer
local character = player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local health = humanoid.Health
print(player)
print(character)
print(humanoid)
I already tried to alter, but it seems that the only variable that I can do print after is player, which is the first one, so I can’t get the other ones information.
Relaxing Gaming is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.