Cloned GUI not showing up

so i have a cooldown gui that get cloned when needed, but when i clone it, it didn’t show on client side. they are both localscript, there are no errors
gui script:

local debris = game:GetService("Debris")
local gui = script.Parent
gui:TweenSize(UDim2.new(1,0,1,0),"In", "Linear",5)
debris:AddItem(gui.Parent,5)

cloning script

local Gui = game.ReplicatedStorage.Shoot:Clone()
			Gui.Parent = player.PlayerGui
			wait(5)
			a = false
2 Likes

Have you tried setting the position of the GUI? Something like:

local Gui = game.ReplicatedStorage.Shoot:Clone()
Gui.Parent = player.PlayerGui
Gui.Position = UDim2.new(0, 0, 0, 0) -- actual position
wait(5)
a = false

Inside of gui, you can use:

script.Parent.Visible = true

aswell as a failsafe.

how is player being defined? [ignore this]

Did you define “player”? Should be game.Players.LocalPlayer.PlayerGui if you did not.

(Sorry if i capitalized stuff wrong I’m answering this on phone.)

oh ye i forgot that the gui was supposed to go inside a frame lol

Small mistakes suck! Glad it worked for you.