You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
ok, when autorotate is off the camera follow the head, but when its on …
video down here
What is the issue? Include screenshots / videos if possible!
the issue is when i move my camera while walking, the head wont follow the camera like normal, it will just Aaa idk how can i explain it
video:
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
no
script:
do
local Game = game
local Workspace = workspace
local ReplicatedStorage = Game:GetService("ReplicatedStorage")
local RemoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent")
local RunService = Game:GetService("RunService")
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Rig = Humanoid.RigType.Name
local Limb = if Rig == "R6" then Character:WaitForChild("Torso") elseif Rig == "R15" then Character:WaitForChild("Head") else nil
if not Limb then return end
local Neck = Limb:WaitForChild("Neck")
local Camera = Workspace.CurrentCamera
local function OnRenderStep()
Neck.C0 = CFrame.new(Neck.C0.Position) * Camera.CFrame.Rotation * if Rig == "R6" then CFrame.fromOrientation(-math.pi / 2, -math.pi, 0) else 1
RemoteEvent:FireServer(Neck.C0)
end
-- script by @Forummer
RunService.RenderStepped:Connect(OnRenderStep)
end
by the way the script was made by @Forummer i gave him credits
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
k
do
local Game = game
local ReplicatedStorage = Game:GetService("ReplicatedStorage")
local RemoteEvent = ReplicatedStorage.RemoteEvent
local function OnRemoteFired(Player, NeckC0)
local Character = Player.Character
if not Character then return end
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
if not Humanoid then return end
local Rig = Humanoid.RigType.Name
local Limb = if Rig == "R6" then Character:FindFirstChild("Torso") elseif Rig == "R15" then Character:FindFirstChild("Head") else nil
if not Limb then return end
local Neck = Limb:FindFirstChild("Neck")
if Neck then Neck.C0 = NeckC0
end
end
RemoteEvent.OnServerEvent:Connect(OnRemoteFired)
end