function frend(nub) local nolifer = nub:WaitForChild(game.Players.LocalPlayer.Character.Head) if nolifer == nil then for i = 1,30 do nub.CFrame = nub.CFrame * CFrame.fromEulerAnglesXYZ(1,5,6) wait() end end end
COMMUNITY QUESTION
why is this not working? using fromeuleranglesXYZ
1 answer
Your code logic is incredibly... Poor, to say the least.
nolifer = nub:WaitForChild(game.Players.LocalPlayer.Character.Head)
WaitForChild does not accept an Instance argument. You must supply a string for the name of the Instance to wait for. In addition, you follow with
if nolifer == nil then
Which simply will never be true, because WaitForChild will always return an Instance in the absence of the timeOut parameter.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
put the code in code block
Lua code block would be really appreciated for the sake of my eyes.