Annoying problem with my projectile

I added a 3 second delay, if you want you can decrease it to what best fits you, it should work better.

1 Like

It could be something else, I honestly don’t know. The ball also doesn’t move when spawned.

2 Likes

i doubt the delay is the issue

2 Likes

It sure seems to not bug when I spam it.

2 Likes

@Herades would it be possible to get a picture of output when the games ran, see if a bug occured?

2 Likes

Because you can’t use :Destroy() to stop a Heartbeat, the method to stop it is :Disconnect()

1 Like

realised after, mb didnt see the heartbeat

2 Likes

Yes, and actually I get no errors:

1 Like

Yeah, apparently with 3 seconds it doesn’t bug, but if you decrease it breaks again. I’m thinking the problem is related to os.clock, I’m not sure yet…

1 Like

I think its because the projectile is being shot too quickly, its not letting the projectile load fast enough into workspace and is causing it to have that issue.

2 Likes

It isn’t, I think it is the fact that the user is interrupting the server script.

2 Likes

That could also be a possibility too.

2 Likes

how? wdym by the user interrupting the server script

2 Likes

Actually, if you launch the projectile into the sky, and throw another one, the first one will disappear and the bug happens, so I think it’s related to os.clock

1 Like


your issue isn’t fixed, well sorta, you can still use it afterwards but leads to it freezing 90% of the time

1 Like

Yeah, I’m trying somethings in server scrip, I’m still looking for a solution

1 Like

I think I fixed it now. Do you approve?

EDIT: It still locks up

1 Like

Even with the 3 seconds of delay, the error happens when you throw it to the sky direction and another to any direction:

image

image

1 Like

I think “explosion” is missing in ReplicatedStorage’s Assets folder

1 Like

How come? The explosion is made by the tween, and the variable related to explosion is for the Heartbeat function