Trying to make a fast travel map, and I need to copy over my GUI. This isn't working, why?
local player = game:GetService("Players").LocalPlayer local points = game.Workspace.PlacePoints local ui = game.ServerStorage.INFOUI local loc = ui.UI.Frame.LOCA local info = ui.UI.Frame.INFO local newui = ui:Clone()
function onClicked() newui.Parent = player.StarterGUI end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

9 comments
It's a local script btw.
Please use code blocks which are ~ so we can read your script correctly.
You cannot access Serverstorage in a Localscript
Well it still gives me errors with normal scripts..
He is correct, you either need to switch ServerStorage to ReplicatedStorage, or change it to a ServerScript/Regular script.
Hm, alright I'll try that.
Just tried it, it still doesn't copy over?
Updated the question so it's easier to read. https://scriptinghelpers.org/questions/66010/how-can-i-clone-a-gui-from-serverstorage-into-startergui
https://wiki.roblox.com/index.php?title=API:Class/Instance/Clone