of     1   

JoeRaptorisBack
#221214820Thursday, July 13, 2017 3:22 PM GMT

This is a Script, not a LocalScript local LockonGyro = script.Parent:WaitForChild("BodyGyro") local dude = game.Players.LocalPlayer.Character LockonGyro.CFrame = CFrame.new(script.Parent.Position, dude.HumanoidRootPart.Position) I get the output error, Workspace.Lock on.Script:2: attempt to index field 'LocalPlayer' (a nil value) Also I'm trying to get the object to always face the torso of the character. Help please???
CelluloidCats
#221214881Thursday, July 13, 2017 3:24 PM GMT

The hint is in the word "LocalPlayer" and it not being a "LocalScript". Go back to basics, learning about there being a Server and Clients (Server and Local)
JoeRaptorisBack
#221215049Thursday, July 13, 2017 3:28 PM GMT

So how exactly can you get access to the player from Workspace then???
JoeRaptorisBack
#221215454Thursday, July 13, 2017 3:36 PM GMT

Ok, I put the code in a LocalScript, now what? The part the bodygyro is in, is anchored I just want the object to always face the player, thats it.
JoeRaptorisBack
#221215480Thursday, July 13, 2017 3:36 PM GMT

Can someone help me please??
JoeRaptorisBack
#221215769Thursday, July 13, 2017 3:42 PM GMT

Why is nearly everyone avoiding my question???
Camper0008
#221215962Thursday, July 13, 2017 3:45 PM GMT

you could use onplayeradded ➟ When life gives you lemons, make apple-juice to assert dominance.
Camper0008
#221216036Thursday, July 13, 2017 3:47 PM GMT

i think localscripts will only trigger in backpack, startergui, starterplayerscripts, startercharacterscripts.. ➟ When life gives you lemons, make apple-juice to assert dominance.
JoeRaptorisBack
#221216174Thursday, July 13, 2017 3:50 PM GMT

Ok I made this and nothing is happening. local LockonGyro = script.Parent:WaitForChild("BodyGyro") game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) LockonGyro.CFrame = CFrame.new(script.Parent.Position,character.HumanoidRootPart.Position) end) end)
JoeRaptorisBack
#221216746Thursday, July 13, 2017 4:00 PM GMT

Is there something wrong with my question? Why have only 2 people replied to me so far? It's almost as if my question is unanswerable.

    of     1