local ShootEvent = script.Parent.Shoot
ShootEvent.OnServerEvent:Connect(function(player, Mouse, Weapon, Character, barrel)
local HumanoidRootPart = player.Character.HumanoidRootPart
HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position, Vector3.new(Mouse.x, HumanoidRootPart.Position.Y, Mouse.z))
end)
when I fire ShootEvent it teleports me where i was around 1.5 sec ago how can i make it to teleport me to my current localization

3 comments
can I have the localscript too?
by the way you are not moving, you are simply changing where you look.
local script just detect if weapon is equipped and mouse clicked then fire server