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

Filtering Enabled Fireball is laggy?

Asked by 5 years ago

I have been trying to make a Fireball, but its always a little bit laggy

So what tried to make is:

-Player Press Q > FireBall came out > FireBall Flies to where mouse is pointed > Destroy itself when it touch something, do damage if its a player

How I do it : Local script contain a script where pressing Q will FireServer, Server script contain a script that make fireball, add bodyVelocity that move to where the mouse is pointed, and .Touched script that destroy itself when touch anything other than player, if it touch another player it will do damage too.

The Fire ball properties : CanCollide = False, Anchored = False

My Problem is : So I fire this fireball into a wall, the fireball immediately got destroyed in contact with the wall in STUDIO test mode, BUT when I play from the roblox website, the fireball will go through the wall for few studs before destroying it

What I want to ask :

Is there a way to make it disappear on contact?

Example, would be, fireballs in Elemental Battlground, it Exploded on contact, no latency(At least no visible latency), like it is made with local script, how did they do it?

Any idea?

Thanks in advance

0
This is probably down to who is doing the physics. http://wiki.roblox.com/index.php?title=Network_ownership User#5423 17 — 5y
0
Oh wow, i didnt know that existed, i think that might solve my problem, im going to try that later, Thanks! Azure_Kite 885 — 5y
0
Confirmed This works, Thanks Azure_Kite 885 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

http://wiki.roblox.com/index.php?title=Network_ownership

This might help if anyone have the same problem in the future

Thanks to kingdom5 for giving me this link

Ad

Answer this question