These guns I added worked in one game but not in another

First upload

Second upload

How can I fix this?

1 Like

It’s most likely another script interfering with the gun and check if you imported it correctly Ex: all scripts are intact, number values are the same, also you cannot Import the UI with the gun. you will have to remake the UI.

Hope that helped
-pr

1 Like

I have checked the scripts, deleted them to see if the guns work, and they still did not. I also just found the NoCol model and then re added it. Not really imported.

The problem might lie in that itself, are you sure you did everything exactly as you did it the first time, this could also be a minor thing like a misspelled variable. Can you provide me with a image of what the script output says when you try to fire the gun?

I am not a scripter, and the guns are free so uh, I’ll just show you the scripts.

Not a experienced scripter myself either but I’ll take a look P.S. in the future try to refrain using models from the toolbox, they can be updated at anytime by the creator and there is a chance of your account getting hacked for info on how to keep your account safe refer to this Roblox Blog - All the latest news direct from Roblox employees..

Edit: thanks for providing me with screenshots I’ll take a look

@SergeantCel the scripts look fine but as I said again I am not the best scripter, have you edited the original scripts in any way?

Not at all. I used the same model, the same directions, the same everything.

The script is not fine at all. Some variables are wrritten wrong and these types of scripts would mess up your game. Just delete the gun and use another one.

@SergeantCel have you tried to look through the scripts for anything suspicious? @CoolGuyBoiBruh yes I was noticing that but I was hesitant to say it, normally you would see local in front of a variable

From one of the pictures, a variable was underlined. That would result in an error. Have you tried debugging the code?

Huh. Ok, thank you. I will just get an actual scripter for it, but if that’s so, how do they work perfectly, with no virus here?

@CoolGuyBoiBruh

I can not script, I am trying to learn how to.

I dont think it is necessarily a virus more of incorrect code. Whoever had did it written either incorrectly or the code is outdated.

Ok, I will remove them. They probbaly are outdated.

Yes, indeed. Love the character limit btw.

I believe I have found part of the problem, @SergeantCel in the first game where the UI is showing there is most likely a child of starter GUI whereas in your new place starterGUI has no children at, try going back to the place where the gun was working and duplicate the starterGUI children and recreate them in your new place with the same names and properties.

I already tried that, it did not work.