Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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)

0
It's a local script btw. Crusadious -6 — 5y
0
Please use code blocks which are ~ so we can read your script correctly. mixgingengerina10 223 — 5y
0
You cannot access Serverstorage in a Localscript Troxure 87 — 5y
0
Well it still gives me errors with normal scripts.. Crusadious -6 — 5y
View all comments (5 more)
0
He is correct, you either need to switch ServerStorage to ReplicatedStorage, or change it to a ServerScript/Regular script. TheJellyNinja_XD13 62 — 5y
0
Hm, alright I'll try that. Crusadious -6 — 5y
0
Just tried it, it still doesn't copy over? Crusadious -6 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Ad

Answer this question