Hello,so i have this GUI for spending my game's premium currency.To make it visible,i have to click on a brick to make it visible.However,when i click on it,the GUI doesn't clone into the PlayerGui and leaves no output error,i am not sure what went wrong.
Code:
script.Parent.ClickDetector.MouseClick:connect(function(player)
local gui =script.Parent.SCIKOINSPENDER -- This is the gui that i want to make it appear
gui:Clone().Parent = player.PlayerGui
end)
i have the following set up:
Part
ClickDetector
Script
GUI
Please Help!

4 comments
Is this a server script
yea
do you have the gui enabled
I don't see any errors in the script. Try temporarily moving the screen gui to startergui and make sure you can see what you put into the gui.