Why is my cloned frame not appearing?

No idea why its not showing, no error or nothing. Here are the images and code.

Code:
local ScrollingFrame = script.Parent
local ServerStorage = game:GetService(“ServerStorage”)
local Swords = ServerStorage:WaitForChild(“Swords”)
local Template = ScrollingFrame:WaitForChild(“Template”)
local defaultVal = 1200
local Template = ScrollingFrame:WaitForChild(“Template”)
print(“Template found:”, Template)

for _, sword in pairs(Swords:GetChildren()) do
local clonedTemplate = Template:Clone()
print(“Cloning template for sword:”, sword.Name)
clonedTemplate.Name = sword.Name
clonedTemplate.Parent = ScrollingFrame
clonedTemplate.Visible = true
clonedTemplate.SwordName.Text = sword.Name
end

Hierachy
image

Nvm fixed it by moving from serverStorage to replicated storage

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.