Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

probably laggy server problem? (please help!)

Asked by
tomekcz 174
4 years ago
Edited 4 years ago
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

0
can I have the localscript too? Elixcore 1337 — 4y
0
by the way you are not moving, you are simply changing where you look. Elixcore 1337 — 4y
0
local script just detect if weapon is equipped and mouse clicked then fire server tomekcz 174 — 4y

Answer this question