UI only clones once for the player

I have absolutely no idea why this happens. Here’s my UI.

As you can see, I tried multiple things.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remotes = ReplicatedStorage:WaitForChild("Remotes")
local Remote_MORPH = Remotes:WaitForChild("Morphify")

local Morphs = ReplicatedStorage:WaitForChild("Morphs")
local GUI = script:WaitForChild("UI_Morphs")

local AcceptedIDs = {855322628}

function AddUI(Player)
	if table.find(AcceptedIDs, Player.UserId) and not Player:WaitForChild("PlayerGui"):FindFirstChild(GUI.Name) then		
		GUI:Clone().Parent = Player:WaitForChild("PlayerGui")
	end
end

game:GetService("Players").PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		AddUI(Player)
	end)
end)

game:GetService("Players").ChildAdded:Connect(function(Player)
	AddUI(Player)
end)

What do you mean by only clones ‘once’? Do you mean that it clones, but after you die it disappears?
Because in that case, set the ResetOnSpawn property, in the ScreenGui to false

1 Like

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