Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with this custom command from kohls admin? (moving gui to playergui)

	{{'epl'},{'epl sb'},2,{},function(pl,args)
		local x = game.ReplicatedStorage:WaitForChild("epl"):Clone() 
		x = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
	end},

So what I am trying to do is move a GUI I made from replicated storage to everyones startergui

When I run this code in chat which is ":epl" it doesnt show up and it doesnt go to the startergui

Not sure if this requires a remote event or something but

Please help thanks

1 comment

0

You didn't set the Parent property. You instead re-allocated 'x' as the PlayerGui lmao.

1 answer

✓ Accepted answer
{{'epl'},{'epl sb'},2,{},function(pl,args)
--you accidentally set the 'x' variable to playergui instead i made x's parent set to playergui
    local x = game.ReplicatedStorage:WaitForChild("epl"):Clone() 
    x.Parent = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
end},

This discussion is preserved as it was. New answers, comments, and votes are closed.