You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
The script tries to check the folder and then gets all those weapons then it’s supposed to clone the frame and edit it of what the image and name of the weapon is
What is the issue? Include screenshots / videos if possible!
it doesn’t really work but I tried to fix it and still nothing I don’t know what I did wrong but then again I’m a bit new at scripting
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
There’s none on here and if there was I couldn’t find any
--Local Script
--Services
RepStorage = game:GetService("ReplicatedStorage")
--Variables
Nothing = script.Parent.Nothing -- This is the frame holder
EditNothing = Nothing:Clone()
Items = RepStorage.GearsFolder
--Other
for _, Button in pairs(Items:GetChildren()) do
if Button:IsA("Tool") then
EditNothing.Name = Button.Name
EditNothing["Gear Button"].Text = Button.Name
EditNothing.Text = Button.Name
EditNothing["Gear Button"].ImageItem.Image = Button.TextureId
EditNothing["Gear Button"].ItemNamer.Text = Button.Name
end
end
print(EditNothing)
-- Yes the script is in the GUI
You need to but the EditNothing variable inside the pairs loop and also parent the clone.
for _, Button in pairs(Items:GetChildren()) do
if Button:IsA("Tool") then
local EditNothing = Nothing:Clone()
EditNothing.Name = Button.Name
EditNothing["Gear Button"].Text = Button.Name
EditNothing.Text = Button.Name
EditNothing["Gear Button"].ImageItem.Image = Button.TextureId
EditNothing["Gear Button"].ItemNamer.Text = Button.Name
EditNothing.Parent -- You also need to parent it
end
end