#Delayed projectiles
1 messages · Page 1 of 1 (latest)
The cannonball is delayed / not going where the cannon is actually facing
for context I'm using linear velocity btw
this happens both in studio testing and in roblox live servers
possible solutions
- SetNetworkOwner to the player
- Object pooling
- Client sided projectiles
Hm
Wouldn't number 3 be exploitable though?
if you don't do it right
** You are now Level 5! **
Please elaborate.
predetermining projectiles on the server and handle the projectile on the client
if you're interesting in predetermined systems, check out this vid
Discord: https://discord.gg/bEn49K5JUt
Patreon: https://www.patreon.com/Suphi
Donate: https://www.roblox.com/games/7532473490
0:00:00 - Intro
0:07:58 - Modules
0:14:06 - Task
0:57:37 - Path
1:05:38 - Characters
1:33:03 - Waypoints
1:50:50 - Towers
3:40:32 - Rounds
4:01:51 - Bugs
4:16:28 - AOE Towers
4:22:11 - Sync Towers
4:49:41 - Curve Path
5:...
i have not tried object pooling but this video explains it well
Learn how to eliminate FPS drops caused by object creation in Roblox.
Enjoy!
0:00 Intro
0:27 Microprofiler Analysis
1:00 Solution
1:22 Implementation
2:05 Results
Model link: https://create.roblox.com/store/asset/138621294568819/ObjectPool
Join my discord channel for more resources:
discord.gg/jXu992HfAM
#roblox #robloxstudio #scripting #tu...
7 hours 💀
Clientside prediction?
I tried clientside prediction but the thing is, I want other players to see the projectile as well.
Also not sure if object pooling would help that much since I don't think this is an FPS problem.
then you didnt do it right?
you're right
What would "right" be then?
The server needs to tell all the players there's a projectile
that's the simple way to explain it
I did that and 2 projectiles appeared on the client.
why is that
I create one projectile on the client and one projectile on the server
Bump
Bump
use clientsided projectiles
you need to use as little input from the client
this might help
Im making a game and im using client sided projectiles for it (due to performance purposes, etc). I use a module to handle these projectiles for ease of access and the client uses that module. Replicating I dont have a issue with, I just add a cooldown between replicating. Only problem I have is the damaging. What I do is fire a damaging remote ...
Update: I tested with just creating projectiles from the client and this still happens.
Bump
how exactly are you doing the projectiles right now? are you sending a signal from the client to the server and then getting the server look direction? ping is a thing so that's an almost unavoidable problem (unless you take it from the client but you'd probs have to do some anticheat stuff)
I send remote to the server from client and then server fires it from the cannon's look direction
Do you still have this problem?
I mean the 2 projectiles appearing