best way to create projectiles/ large moving parts?
Currently, I’m working on a magic based PvP game, which involves a lot of size changing, moving parts. With FE being enabled, I can’t just create parts via local script like you used to do, so i have a setup like this;
02 | function magicevent(player) |
03 | parts created, properties assigned, velocities added, etc |
06 | RemoteEvent.OnServerEvent:Connect(magicevent) |
09 | button.Pressed:Connect( function () |
10 | RemoteEvent:FireServer() |
Sorry for the very vague code, I’m on mobile and tried to give an outline of what I’ve done. I basically have all the creation of parts on the server and have the server handle it once the client calls for it.
This causes a lot of lag, and I was wondering how to do this and avoid the lag caused? I’ve seen multiple games handle a number of moving parts with barely any lag but i’m not sure how.
The only other way I can think of is having everything handled on the client, passing through the server, and replicate it to all other clients using FireAllClients().