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

Is mouse position laggy on server?

Asked by 8 years ago

I have a weapon that shoots a projectile which you can control with your mouse. It works by having the localscript calling the severscript with the player's mouse position repeatedly through a loop.

while ready == false do
    event:FireServer("Firing", mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
    wait()
end

It works alright when I play on solo, but I worry about if it will work with 10+ player, as I've heard *mouse *is not recommended to use in serverscripts.

1 answer

Log in to vote
0
Answered by
Reselim 35
8 years ago

It's probably the client to server ping/lag issues, I don't think mouse on local is laggy.

Ad

Answer this question