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

Click to throw projectile instantly and no delay?

Asked by 4 years ago
Edited 4 years ago

I made a tool and when you click on the screen, a block will be thrown at that mouse position. For the projectile motion, I used SetNetworkOwner() to make it smooth and it worked, but the huge delay every time you click is inevitable (Local scripts will fire a RemoteEvent to the server scripts so that they knows the direction and location to launch the block)

Any methods to improve it?

0
Use BodyVelocity OnaKat 444 — 4y
0
No, I'm talking about the delay every time you click, the motion is ok Konethorix 197 — 4y
0
generate block on client first and then server ihatecars100 502 — 4y
0
How do you transfer a block from the client to the server? That sounds impossible Konethorix 197 — 4y
View all comments (2 more)
0
don’t transfer it, create a block on client for instant reaction visuals and then generate it on server for replication, then destroy it on client ihatecars100 502 — 4y
0
Ok sound good, but what about damaging the player? Should the client detect when the block touch a player or the server? Konethorix 197 — 4y

Answer this question