Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why is this not working? using fromeuleranglesXYZ

Asked by 6 years ago

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

0
put the code in code block PlaasBoer 275 — 6y
0
Lua code block would be really appreciated for the sake of my eyes. ScriptAbyss 10 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

Ad

Answer this question