It goes through a folder called "Weapons" and for each item in it I want it to make a GUI, Set the name and text to the name of the weapon then make it visible. It dose not work and there are no errors.
local repStor = game:GetService("ReplicatedStorage")
local Wepons = repStor:FindFirstChild("Weapons")
for i,v in pairs(Wepons:GetChildren()) do
local Gui = script.Parent:Clone()
Gui.Name = i
Gui.Text = i
Gui.Visible = true
end

2 comments
Gui.Name = v
sorry please read my answer.