Hi!’
Today i have some question… How i can make player humanoid root part rotate follow mouse.
Example: Video
I have try to study on this
but there are thing that related to my issue…
So i have script something that related to my issue…
Setting the CFrame.Angles on the HumanoidRootPart to the point of where the mouse is pointing is quite straight-forward. Clearly there was a previous topic on it.
Unfortunately not at this moment, try searching inside the aforementioned post. I’m confident that there should be at least some details noteworthy to remember.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local plr = Players.LocalPlayer
local mouse = plr:GetMouse()
plr.CharacterAdded:Connect(function(char)
local hum, hrp = char:WaitForChild("Humanoid"), char:WaitForChild("HumanoidRootPart")
while char.Parent and hum.Health > 0 do
local mouseHit = mouse.Hit
local hrpPos = hrp.Position
hrp.CFrame = CFrame.new(hrpPos, mouseHit.Position)
RunService.RenderStepped:Wait()
end
end)
You might want to check this model out: Head/Waist Follow Mouse/Camera Script - Roblox
It has a variable (that I dont remember what is it called) which when you set it to true, your character rotates according to the mouse position.
That doesnt support FE. (I dont think atleast) Currently, other players cant see you move your character with that model. You could get it to work by using remoteevents and have a server script that moves your character (on the server)