ReplicatedFirst LocalScript not running at all

I’m working on a simple loading screen for my game, unfortunately, it stopped working out of the blue.
I looked into it and the localscript is not running in ReplicatedFirst at all. I didn’t find anything very useful on the forums and I’m wondering if there a fix for this?

Is it possible for you to show us some of the code?

repeat wait() until game.Players.LocalPlayer.Character
local Players = game:GetService("Players")
local player = Players.LocalPlayer 
player.Character:WaitForChild("AFK").Value = true
local playerGui = player:WaitForChild("PlayerGui")
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
StarterGui:SetCore("TopbarEnabled", false)
playerGui:WaitForChild("HealthBar").Enabled = false
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local TeleportService = game:GetService("TeleportService")
local customLoadingScreen = TeleportService:GetArrivingTeleportGui(ReplicatedStorage:WaitForChild("Loading Screen"))
local gui = script:WaitForChild("Starting Screen")
gui.Parent = playerGui

repeat wait() until game.ContentProvider.RequestQueueSize == 0

function SpinRM()
	local tweenInfo =
		1, -- The time the tween takes to complete
		Enum.EasingStyle.Back, -- The tween style in this case it is Linear
		Enum.EasingDirection.InOut, -- EasingDirection
		-1, -- How many times you want the tween to repeat. If you make it less than 0 it will repeat forever.
		false, -- Reverse?
		1 -- Delay

	local Tween = TweenService:Create(gui:WaitForChild("LoadingScreen"):WaitForChild("BottomLoadingScreenBar"):WaitForChild("RM"), tweenInfo, {Rotation = 360}) -- Creates the tween with the TweenInfo and what properties you want to chang 



local spin = coroutine.create(SpinRM)

local TopBarOut = TweenService:Create(gui:WaitForChild("LoadingScreen"):WaitForChild("TopLoadingScreenBar"),,Enum.EasingStyle.Back, Enum.EasingDirection.Out),{Position =,0,-.5,0)})
local BottomBarOut = TweenService:Create(gui:WaitForChild("LoadingScreen"):WaitForChild("BottomLoadingScreenBar"),,Enum.EasingStyle.Back, Enum.EasingDirection.Out),{Position =,0,1,0)})

if not game:IsLoaded() then
TopBarOut:Play() BottomBarOut:Play()
--StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
--StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
StarterGui:SetCore("TopbarEnabled", true)
if customLoadingScreen then

I tried printing a message at the very beginning of the script and it still didn’t print.

By the very beginning, are you referring to the first line? To my understanding LocalScripts work in ReplicatedFirst so that shouldn’t be an issue.

Also, is playerGui defined in your script at all?

Yes, I am referring to the first line.
Also I did define playerGui (updated my last reply)

Update: I put a localscript in ReplicatedFirst with only “Hello world” and it did not print.
Is this a issue on Roblox’s part?

Fixed it, I was missing something in workspace