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

Gui appears in studio but not the actual game?

local player = script.Parent.Parent
local playerGui = player:FindFirstChild("PlayerGui")

if not playerGui:FindFirstChild("mainMenuCopy") then
	local menuGui = game.ServerStorage.mainMenu:clone()
	menuGui.Parent = playerGui
	menuGui.Name = "mainMenuCopy"
end

this is the script that makes the menu appear when you first join the game, but it only appears in studio when I test it in studio. Thanks in advance :D

EDit: This script is placed in starterPlayerScripts

1 comment

0

why not put the script in replicatedfirst?

1 answer

✓ Accepted answer

If your game is Filtering Enabled then: 1: You cannot Use ServerStorage with a script outside of ServerScriptService 2: Use ReplicatedStorage

If your game is not Filtering Enabled then: 1: Test it in a test server in Studio... Play solo can access things players in servers cannot.

1 comment

0

What's the difference between ServerStorage and ReplicatedStorage?

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