So I got a GUI working where you click it and it opens then click it again and it goes away. I am just trying to figure out how Cloning works because I know a better way to do this but I want to know how to clone things. Anyways yea it works once then stops and I got an error code too. Here is the script:
local version = script.Parent
local HUD = game.Players.LocalPlayer.PlayerGui.HUD
local More = game.ReplicatedStorage.VersionMore:Clone()
local open = false
local function onClicked()
if open == false then
More:Clone()
More.Parent = HUD
open = true
else
HUD.VersionMore:Destroy()
open = false
end
end
script.Parent.MouseButton1Down:connect(onClicked)
Now here is the error code I get: 16:13:10.088 - The Parent property of VersionMore is locked, current parent: NULL, new parent HUD
Please any help is appreciated :)

1 comment
Thanks! :D