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

LocalPlayer defined as nil?

Asked by 6 years ago
root_part_one = game.Workspace.Bob
root_part_two = game.Players.LocalPlayer

-- Face player 1 towards player 2
root_part_one.CFrame = CFrame.new(root_part_one.Position, root_part_two.Position)

I tried making this, but it didnt work. I want to make so that if you walk around a model (decal) it faces you. But for each player it faces them. What can i do?

0
Use a billboard Zititus 40 — 6y
0
Use a localscript. arshad145 392 — 6y
0
Gonna check it out! UncleBenss -3 — 6y
0
Billboard seemes not so good. I need it to stay the same size, and i need collision UncleBenss -3 — 6y
View all comments (2 more)
0
OMG I sat down with this trying to solve this for 5 minutes before I realised the mistake. It's so simple. I mean the error. not the solution. You are trying to call Root_part_two but the thing is that it doesnt have a position, that is why you got nil. If you want to get your characters position use this: root_part_two = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") noammao 294 — 6y
0
No error, no nothing. The decal doesent face me UncleBenss -3 — 6y

Answer this question