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

Roblox Studio freezing when activating weapon?

Asked by 5 years ago

I'm just using a standard Roblox rocket launcher from the toolbox with some added code to make it fire rapidly when the mouse button is held down, but whenever each rocket is cloned and launched, Roblox studio pauses for a brief moment. I don't know if it just can't process fast enough or if something is wrong in the code. Any ideas?

0
We can not help if you do not provide the script. Aimarekin 345 — 5y
0
It could be possible that you created a loop without a wait() jackfrost178 242 — 5y
0
That is what I was thinking about. A loop without a yield. Aimarekin 345 — 5y
0
Thx for the loop idea. I’ll look into my code more and if I’m still stumped, I’ll upload the script. tygerupercut3 68 — 5y
View all comments (2 more)
0
After some testing Ive determined that the problem is cloning the object, not launching it or anything like that. Im gonna rewrite some of the code with original rocket launcher code and I think I’ll get it to work. tygerupercut3 68 — 5y
0
If anyone stumbles upon this thread, I found my problem. I had the explosion sound effect duplicated like 1000 times. I don't know why it was like this but after I deleted the extras it cloned just fine. tygerupercut3 68 — 5y

Answer this question