So im using this head turn script but i found out its not filerenabled and i dont have much experance in making things filerting enabled any tips?


local Player = game.Players.LocalPlayer
local RunService = game:service("RunService")

repeat wait() until Player.Character

local Char = Player.Character
local Neck1 = Char:findFirstChild("Neck1") or Char:findFirstChild("Neck1")
local Neck = Neck1.Neck

local Camera = workspace.CurrentCamera
local Mouse = Player:GetMouse()

while RunService.RenderStepped:wait() do
	local LookVector = Mouse.UnitRay.Direction
	local Adjacent = math.sqrt((LookVector.X^2)+(LookVector.Z^2))
	local Opposite = LookVector.Y
	local Angle = math.atan2(Opposite, Adjacent)
	
	Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(Angle+(math.pi/2),math.pi,0)
end

1 comment

0

....What?