So, i try to move while moving the mouse, the thing glitches and i can't move, it vibrates up and down, and i can't at all move, any help is appreciated!
here is the local script
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Mouse = Player:GetMouse()
--[[Player Controlling]]--
Mouse.Move:Connect(function()
local FaceDirection = (Mouse.Hit.p - Player.Character.HumanoidRootPart.Position) * Vector3.new(1, 0, 1)
game.ReplicatedStorage.Prefabs.Remote.RemoteEvents.RemoteEvent1:FireServer(FaceDirection)
end)
and here is script
local Prefabs = game.ReplicatedStorage:WaitForChild("Prefabs")
--[[RemoteEvents]]--
local RemoteEvents = Prefabs.Remote.RemoteEvents
local RemoteEvent1 = RemoteEvents.RemoteEvent1 -- controlling character rotation?
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(Char)
Char.Humanoid.AutoRotate = false
end)
end)
RemoteEvent1.OnServerEvent:Connect(function(Player,FaceDirection)
Player.Character.HumanoidRootPart.CFrame = CFrame.new(Player.Character.HumanoidRootPart.Position, Player.Character.HumanoidRootPart.Position + FaceDirection)
end)

1 comment
I have the same problem xD