Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Cloning Gun Models From Gui To Backpack/ Making a New Main Menu NEED HELP?

so i have been having problems with cloning my guns and when ever it works it doesn't shoot or even popup with the model. i have tryed so many scripts that i made a trip to this website for the first time and i was wondering if you could help first off i am making a Gui and i need it for loadouts like Short Range Mid Range And Sniper. i want a local script inside of each button so that when ever it is clicked that it will give the gun. when ever i try to use :Clone() it doesn't work like i said above does anyone have a script i can use for this main menu?

3 comments

0

Please post your script

0

script.Parent.MouseButton1Click:Connect(function() local closerange = game.ServerStorage.Loadouts.ShortRange["TEC-9"]:Clone() local closerange2 = game.ServerStorage.Loadouts.ShortRange["KSG 12"]:Clone() closerange.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack closerange2.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack end)

0

script.Parent.MouseButton1Click:Connect(function() local closerange = game.ServerStorage.Loadouts.ShortRange["TEC-9"]:Clone() local closerange2 = game.ServerStorage.Loadouts.ShortRange["KSG 12"]:Clone() closerange.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack closerange2.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack end)

1 answer

script.Parent.MouseButton1Click:Connect(function() local closerange = game.ServerStorage.Loadouts.ShortRange["TEC-9"]:Clone() local closerange2 = game.ServerStorage.Loadouts.ShortRange["KSG 12"]:Clone() closerange.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack closerange2.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack end)

This discussion is preserved as it was. New answers, comments, and votes are closed.