Hello, I am currently trying to make ScreenGui appear in a Player's PlayerGui. I am having a difficult time trying to do this, someone please help!
local C1 = script.Parent.Parent.Chassis.ClickDetector
function Clicked(n)
local character = game.Players.LocalPlayer
local UI = game.ServerStorage.UnitUI:clone()
local player = n:GetPlayerFromCharacter()
UI.Parent = player.PlayerGui
end
C1.MouseClick:connect(Clicked)
UnitUI is a ScreenGui with a TextBox and other random stuff in it, which is all in ServerStorage. This is all in a LocalScript.
A response is appreciated!

1 comment
LocalScripts can't access the descendants of ServerStorage, hence the name 'Server Storage'