Ball just dissapears from the explorer on tween

Erm… everything in the video… and hello! :slight_smile:

Why do you pass -1, true to the TweenInfo?

So it’s going infinitely like repeat itself or did I do that wrong xd

If you do -1 on the repeat count it’s gonna repeat for ever

Try printing your checkpoint Positions inside your pairs loop before tweening the ball to them to see where it’s supposed to be going. That way you can confirm you’ve got your checkpoints in the locations you want.

It may also be that when you load in and test quickly the entire place isn’t loaded in and you’re tweening the ball far enough away and that Position isn’t a factor in the workspace yet. Maybe just wait 10 seconds or so before testing the tween.

set Workspace.StreamingEnabled to false if it is enabled

also Completed will never fire if the tween never gets stopped.

Whats streamingenabled i dont know what it does

StreamingEnabled is a property on Workspace that controls if parts stream in / out based on distance and memory. You can think of it as a rendering system. You can disable this property as @hkep said however for lage games I suggest you keep this open.

The ball on your video is likely disappearing because of this reason, change the ball to a model instead and set the ModelStreamingMode property to persistent.

Wait is that for particles too cause my particles js dissapear after a range of 1000m

This can be due to streaming or your particles properties, every object in workspace is affected by streaming.

1 Like

If streaming thing fixes my particle emitter… your a life saver ima try that in a min

i enabled stream enabled but my particles are still not visible from far away like they just disable themself

Are the particles a Model? If not make them a model and and set the ModelStreamingMode to Persistent so it doesn’t get streamed out.

The Particle Emitter is in a model yes. Do you have discord maybe

Yes, It is the same as my username.

added u if it didnt come through js add whoscanel

Wait a minute.
You haven’t said if the ball is still disappearing.

If it is and the ball has the particles in it then you won’t see the particles.

Did you try printing the Position of the ball like I suggested? That will tell you how far the ball is away before and after it disappears. It should let you know where to look in your script to find the fail point.

Update:
I have fixed the issue!
The issue pretty much just was that i was dumb. The ball is still there on the server, just not on the client cause its way to much far away.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.