HUD Wont show up

hey ! i wrote this code in a local script in a tool but …

				local cloned = game.Players.LocalPlayer.PlayerGui.cooldowns.list.CooldownTemplate:Clone()
				cloned.Parent = game.Players.LocalPlayer.PlayerGui.cooldowns.list
				cloned.Visible = true
				cloned.AttackName.Text = "Sugar Shot"

well, when i play the game and press the thing that activates the code, the gui doesnt shows up. but if i go into the player gui of the character its there! can anyone help

what have u said? it says post deleted

Is it in a ScreenGui? Only ui items that have a ScreenGui as an ancestor will be rendered in the game.