I've got an AK47 scripted with a LocalScript and I tried to change NumberValues of MaxAmmo, Ammo from in-script values, to in-tool values, it works fine with Play Solo in Studio, but when I join game from Roblox page it doesn't work and in F9 (idk what its name is) it says MaxAmmo is not a part of Tool. Help!

http://prntscr.com/e7bb55

2 comments

0

Add to the script (Tool:WaitForChild("MaxAmmo")). When the player joins, the script is loaded and runs it. But the part's arent. So just add an WaitForChild() , that should fix it.