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