Use :WaitForChild() when getting all of the ScreenGuis. These need to first be loaded in before they exist on the client, and sometimes the scripts load first!
If the remotes aren’t firing because of this, use breakpoints to see what the code is actually doing.
Next, you use a deprecated function (spawn).
Refer to using task.spawn and ideally get rid of it
same code but more barable:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StarterGui = game:GetService("StarterGui")
local TweenService = game:GetService("TweenService")
local Plr = Players.LocalPlayer::Player
local PlayerGui = Plr:WaitForChild("PlayerGui")::PlayerGui
local Announcements = PlayerGui:WaitForChild("Announcements")::ScreenGui
local MainUI = PlayerGui:WaitForChild("MainUI")::ScreenGui
local CoinsGui = PlayerGui:WaitForChild("CoinsGui")::ScreenGui
local Camera = workspace.CurrentCamera
local Parent = script.Parent::ScreenGui
local SkipButton = Parent.SkipButton::GuiObject
ReplicatedStorage.MovePlayer:FireServer("no")
ReplicatedStorage.PlayerCantMove:FireServer("no")
CoinsGui.Enabled = false
MainUI.Enabled = false
Announcements.Enabled = false
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
Camera.CameraType = Enum.CameraType.Scriptable
Parent.Enabled = true
local i = TweenInfo.new(0.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out)
local c = TweenService:Create(SkipButton, i, {BackgroundTransparency = 0})
local c2 = TweenService:Create(SkipButton.UIStroke, i, {Transparency = 0})
local c3 = TweenService:Create(SkipButton, i, {TextTransparency = 0})
local c4 = TweenService:Create(SkipButton["Drop Shadow"], i, {ImageTransparency = 0.45})
if not game:IsLoaded() then game.Loaded:Wait() end
task.wait(2)
SkipButton.Visible = true
c:Play()
c2:Play()
c3:Play()
c4:Play()
task.wait(4)
script.Parent:FindFirstChild("LoadingFinished?").Value = true
Ok I made a mistake on my part, the reason why I said this was because I wanted to make it so that you don’t hear the sound effects in the lobby, so i just make it teleport to a different part faraway from the sounds. This was my mistake, thanks for the help however