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

Gun doesn't work in a server, while it works in studio, why?

Asked by 7 years ago

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

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. Difined_Person 61 — 7y
0

Answer this question