After my last question got answer (Which was very helpful btw) I want to know, how would I clone a ScreenGUI into starter gui and remove it from startgui when done. I need info like would it be a local or regular script and wiki links if possible. Thanks!
Workspace.ScreenGUI:Clone().Parent=StarterGui --assuming its in Workspace after it gets cloned the --clone is put in starter gui function onClicked() --stuff --stuff StarterGui.ScreenGUI:Remove()--gets removed at the end end StarterGui.ScreenGUI.MouseButton1Click:connect(onClicked)--when screengui is clicked go to function onClicked
i am not sure if its going to be local or regular but i am leaning towards regular. http://wiki.roblox.com/index.php?title=RBX.lua.LocalScript_(Object)
clone method wiki link:http://wiki.roblox.com/index.php?title=Clone_(Method)&redirect=no
Heres a example, your information was very unformational, so I did this with your information.
time = 1 i = Instance.new("ScreenGui") i.Parent = game.ScreenGui wait(time) i:remove()
I would do something like this
Example
local waittime=3 function giveGUI(player) if player and player.PlayerGui then local gui=game.ServerStorage.Gui:clone() gui.Parent=player.PlayerGui wait(waittime) gui:Destroy() end end
Usage
giveGUI(game.Players.Player1)