of     1   

StealthKing95
#51072158Friday, July 22, 2011 5:07 AM GMT

When i try to clone a weapon from lighting into a players backpack with a class gui, the game crashes everytime. The weapon is made of 2 parts and 3 scripts so its not that complicated... this is the script, but im 95% sure its not about the script: player = script.Parent.Parent.Parent.Parent weapon1 = game.Lighting.Shotgun weapon2 = game.Lighting.Handgun function giveWeps() weapon1:clone().Parent = player.Backpack wait(1) --this is to reduce the possibility of the game crashing. weapon2:clone().Parent = player.Backpack script.Parent.Parent:remove() end script.Parent.MouseButton1Down:connect(giveWeps) --PLEASE! IM DESPERATE! D:
StealthKing95
#51076253Friday, July 22, 2011 6:53 AM GMT

COME ON! SOMEONE! D:
[rfa#hidefromsearch]
#51086773Friday, July 22, 2011 2:12 PM GMT

[rfa#hidefromsearch]
StealthKing95
#51098255Friday, July 22, 2011 5:35 PM GMT

no matter HOW i clone the weapons, it crashs. Even when i try to Copy and paste the guns in solo mode! D:
squibs47
#51098454Friday, July 22, 2011 5:38 PM GMT

Voltbor, You don't know what you'r talking about.
squibs47
#51098499Friday, July 22, 2011 5:39 PM GMT

Is it you'r game? Because scripts crash if you're not in edit mode.
squibs47
#51098667Friday, July 22, 2011 5:42 PM GMT

The weapon has to be grouped together, the scripts inside, and has to be named exactly like it is in the script. And if you didn't put a wait, it wouldn't directly crash the game. You really only need those in while true do's and for and if functions.
squibs47
#51098782Friday, July 22, 2011 5:44 PM GMT

And I think you got the clone() parts wrong. Maybe not but They don't look right
StealthKing95
#51102994Friday, July 22, 2011 6:48 PM GMT

Well im not THAT stupid not to group it all together, and i have used the clone() before in a weapon shop gui, and it worked fine.
StealthKing95
#51107642Friday, July 22, 2011 7:58 PM GMT

im too frustrated to fix it. if anyone cares, heres the game: http://www.roblox.com/Left-4-Dead-uses-SilverSrc-v1-11-c-StealthKing95-item?id=11973992 COULD YOU PLEASE FIX IT FOR ME?!?!? WARNING! : And if i find out you have stolen my guns, darnit I. WILL. HUNT. YOU. DOWN. And i warn you, i have already hunted 5 place stealers and they got a forever ban to roblox..

    of     1