I had literally gotten my game to almost completion and boom Roblox updates. I didnt think much of it until all of the sudden my gun script no longer worked.
What happens is the gun works and everything but for some reason about 3 seconds after equipping the gun it unequips the gun and then deletes it from your backpack.
Im just going to post the whole entire local script because im pretty sure its the local script and I also have no entire clue why this is happening. I am just at a loss for words, I completed my game and now its broken because of a Roblox update.
Heres the local script and again the problem is it deletes the weapon from your backpack about 3 seconds after equipping it.
I know its a lot of code to look through but please try to help me XD this literally broke 3 months of work.
https://codeshare.io/2j6RK3
^So I actually had to post a link instead because the code was over the character limit for this site, the code is in that link and its been formatted to Lua so its easier to read.
Thank you so much for your time, hopefully someone will end up here at the bottom of the code and say "Ive solved the problem!" Again try to just focus on the fact that its deleting it from the backpack for some odd reason.
Thank you so much for your time and please do try to help me out here! Thanks! :)
I remember reading something related to this in the devforums, so I think it’s a Roblox bug. You can read about it here.
Also just in case, search through your script if there is any lines of code that has :Destroy or parent = nil using the “Find” tool in Roblox Studio.