Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why is this not working? using fromeuleranglesXYZ

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

2 comments

0

put the code in code block

0

Lua code block would be really appreciated for the sake of my eyes.

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.