so im trying to make this Script That Gives The Gui into a Localscript so far it dosent work
This is What im Trying to put the gui in

this is the script so far, put it in a Script
local Script = game:GetService("ReplicatedStorage").GunGUI
for _, part in pairs (game:GetService("ReplicatedStorage").Weapons.Primary:GetDescendants()) do if part:IsA("LocalScript") then
Script:Clone().Parent = part
end
end
you can just clone the gun gui from replicated storage on the local script.
local GunGui = game:GetService("ReplicatedStorage").GunGUI:Clone()
they are replicated so it shouldn’t be a problem
like this?
local Script = game:GetService("ReplicatedStorage").GunGUI:Clone()
for _, part in pairs (game:GetService("ReplicatedStorage").Weapons:GetDescendants()) do if part:IsA("LocalScript") then
Script:Clone().Parent = part
end
end