local passivefolder = plr.PassiveFolder
local ridablesfolder = plr.MountFolder
local allpassivesfolder = game.ReplicatedStorage.Passives
for i, v in pairs(passivefolder:GetChildren()) do
local plrpassive = allpassivesfolder:FindFirstChild(v.Name).Frame:Clone()
plrpassive.Parent = plr.PlayerGui.MainGui.Passives
end
local allmountsfolder = game.ReplicatedStorage:WaitForChild("Mounts")
for i, v in pairs(ridablesfolder:GetChildren()) do
local plrmount = allmountsfolder:FindFirstChild(v.Name).Frame:Clone()
plrmount.Parent = plr.PlayerGui.MainGui.Mounts
end
this won’t add the gui for some reason, the ui is visible, and i don’t know, I tried printing after the code, the print works. I want the ui to save upon death, and i already have a folder in the player for that, for some reason it works when you first join the game, but not when you die and respawn.