You should note that StarterGui only affects the UIs in it and will only affect new players.
im using it with cameras which only works with StarterPlayer and requires a Local Script
No no no, PlayerGui is another way to access StarterGui
can you? character character character
local LoadingScreen = PlayerGui:WaitForChild("LoadingScreen")
Please stop giving misinformation, PlayerGui is the user’s instances for UIs, not a direct link to StarterGui. StarterGui is just an instance for UIs to appear on joining
Yes, StarterGui is what everyone gets when they join a game, PlayerGui is what they see.
If you think so, try and use StarterGui in ServerScript instead of PlayerGui
bro i’m messing with cameras which require local scripts.
Why would I do that, I’m only affecting the new players.
Well Can You Help me with the problem??
Can you give us the part of the code that is making the problem? (5 lines before and 5 lines after)
Are you sure the object is there and you’re using waitforchild on the right instance?
yes i did i even checked the player gui.
local Click = game.Workspace.SFX.Click
local World1Spawn = game.Workspace.WorldSpawns.World1Spawn
local LoadingScreen = PlayerGui:WaitForChild("LoadingScreen")
local LoadingBar = LoadingScreen.MainFrame.LoadingBar
local LoadingSymbol = LoadingScreen.MainFrame.LoadingSymbol
wait(1)
Camera.CameraType = "Scriptable"
MainMenySong:Play()
Camera.CFrame = Cam1.CFrame
PlayerGui:WaitForChild("Coins Gui").Enabled = false
player.Character:WaitForChild("Humanoid").WalkSpeed = 0
player.Character:WaitForChild("Humanoid").JumpPower = 0
StarterGui:SetCore("TopbarEnabled",false)
Could you show us some code to see how you’re doing it?
this is just the quarter of the script it’s like 300 lines
Where do you define playergui?
on the first lines of the script.
local ReturnButton = game.Workspace.MainBoards.CreditsBoard.Board2.ReturnButton1.Ui.Return
local db = false
local MainMenySong = game.Workspace.Music["MainMenu Music"]
local Click = game.Workspace.SFX.Click
local World1Spawn = game.Workspace.WorldSpawns.World1Spawn
local LoadingScreen = PlayerGui:WaitForChild("LoadingScreen")
local LoadingBar = LoadingScreen.MainFrame.LoadingBar
local LoadingSymbol = LoadingScreen.MainFrame.LoadingSymbol
wait(1)
Camera.CameraType = "Scriptable"
MainMenySong:Play()
Camera.CFrame = Cam1.CFrame
PlayerGui:WaitForChild("Coins Gui").Enabled = false
player.Character:WaitForChild("Humanoid").WalkSpeed = 0
player.Character:WaitForChild("Humanoid").JumpPower = 0
StarterGui:SetCore("TopbarEnabled",false)
CreditsButton.MouseButton1Click:Connect(function()
if not db then
db = true
Click:Play()
wait(0.5)
LoadingScreen.MainFrame.BackgroundTransparency = 0
LoadingScreen.MainFrame.BlackFrame.BackgroundTransparency = 0.8
for i = 1,0,-0.1 do
wait(0.03)
LoadingScreen.MainFrame.BlackFrame.ImageTransparency = i
LoadingScreen.MainFrame.Icon.ImageTransparency = i
end
wait(2)
Camera.CFrame = Cam2.CFrame
LoadingScreen.MainFrame:TweenPosition(UDim2.new(0,0,1,0),"In","Sine",1)
wait(2)
LoadingScreen.MainFrame.BackgroundTransparency = 1
LoadingScreen.MainFrame.BlackFrame.BackgroundTransparency = 1
LoadingScreen.MainFrame.BlackFrame.ImageTransparency = 1
LoadingScreen.MainFrame.Icon.ImageTransparency = 1
LoadingScreen.MainFrame.Position = UDim2.new(0,0,0,0)
wait(1)
db = false
end
end)