I'm trying to create a fast travel map, but the GUI won't copy over. I tried with both local scripts and normal scripts. I tried moving it to ReplicationStorage and trying both Local and normal and it still doesn't work! Help please!
local player = game:GetService("Players").LocalPlayer
local points = game.Workspace.PlacePoints
local ui = game.ReplicatedStorage.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)

6 comments
Cloning something to the StarterGui won't change any thing on the player's side, try parenting it to the PlayerGui
and I think you can't clone something from the serverstorage using local scripts
Here, use a normal script and write the following:local points = game.Workspace.PlacePoints local ui = game.ReplicatedStorage.INFOUI local loc = ui.UI.Frame.LOCA local info = ui.UI.Frame.INFO local newui = ui:Clone() function onClicked(Player) newui.Parent = Player.PlayerGui end script.Parent.ClickDetector.MouseClick:Connect(onClicked)
That worked! Thank you so much!!!!!
Make sure to edit your question's title with "[SOLVED]" so people know it had been solved.
Thank you, I'll do that.