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
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.