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