GUI from ReplicatedStorage not copying into Playerui

Greetings, I’ve been trying to make a custom admin system and there should be also an :info command to check the Players informations. The informations will be shown in a GUI. I now made a GUI which is located in ReplicatedStorage.
I made a script for it to get cloned and moved into PlayerGui, but it is actually never being moved.
(Please note down that I am not showing the whole script!)

if split[1] == ":info" then
	local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local UI = ReplicatedStorage:WaitForChild("Information")
	local UIClone = UI:Clone()
	UIClone = Player.PlayerGui
end

Are there any ways to fix this or did I make something wrong?

Is there an error? If there is, what does it say?

Can you add a print statement after checking the command?

Nope, no I can not find any errors.

The prints are saying that everything should have worked, but I can not see the UI on PlayerGui.

You did UIClone = Player.PlayerGui, you need to do UIClone.Parent = player.PlayerGui

3 Likes

How are you setting 'Slit[1]' to '":info"'? It might not actually even be true on the if statement.

Alright, that worked you helped me by a lot!

1 Like