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

? Gunscript does not equip a gun on spawning. (Custom Weapon Animation Toolkit)

Asked by 5 years ago

I am working on adding a new gun to my Roblox game. As for now about 2k players requested new guns but due a Studio Update on implementing new guns the gun keeps hanging in air on spawn.

The error now appeals to all my guns due to adding the current gun on removal only already in guns still work but on adding new guns same error appears.

The guns are scripted using my own Weapon Animation Toolkit that comes with a Custom Plugin and Custom Editor Client thats not in the Roblox Engine.

The Plugin side and Editor have been heavily tested, re-configured and debugged to see of the problem is there but its in the Gunscript itself.

Lets startoff with the errors first as thats gonna help you guys the best helping me out right?

Script Players.Name.PlayerScripts.Gunscript:9 - attempt to index local 'x' (a nil value) Script Players.Name.PlayerScripts.Gunscript - Line 9 - Global Connect Script Players.Name.PlayerScripts.Gunscript - Line 609 - Global Startup Script Players.Name.PlayerScripts.Gunscript - Line 1037

So next on here is the complete Gunscript (The Gunscript is exported from out of WATK Plugin and further worked out the animation has been created using the seperate WATK Client)

I hope you guys are able to help me solve the problem so i can tackle this kind of problems with future imports.

The link down below shows the scripts. https://pastebin.com/p5bAhLB3

The link down below shows a perfectly fine working script that can be used to compare to the other one. https://pastebin.com/8XPAggas

Answer this question