-- Services
local LocalPlayer = game:GetService("Players").LocalPlayer
local RunService = game:GetService("RunService")
-- Locals
local DummyModel = game.Workspace.Map.Lobby:WaitForChild("Avatar")
local Head = DummyModel:WaitForChild("Head")
local Mouse = LocalPlayer:GetMouse()
-- Code
RunService.RenderStepped:Connect(function()
Head.CFrame = CFrame.lookAt(Head.Position,Mouse.Hit.Position)
end)
I want so the head only looks to the mouse position and not the whole body, dunno why this is happening.
https://gyazo.com/74dfc72878c6fab1557e06dc6a0380b6
Another problem is that he is looking where the mouse is pointing to but I want him to look exactly where the mouse is which is to look at us but to be honest, the priority would be the fix of the body not rotating together with the head.