Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I clone my this GUI from ServerStorage to my StarterGUI?

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

0

It's a local script btw.

0

Please use code blocks which are ~ so we can read your script correctly.

0

You cannot access Serverstorage in a Localscript

0

Well it still gives me errors with normal scripts..

0

He is correct, you either need to switch ServerStorage to ReplicatedStorage, or change it to a ServerScript/Regular script.

0

Hm, alright I'll try that.

0

Just tried it, it still doesn't copy over?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.