So I'm developing a camping game and I'm trying to make the players wait until everyone is loaded in until the guide starts talking
I have this localscript in replicatedfirst
wait(2)
local player = game.Players.LocalPlayer
repeat wait() until player.Character
local character = player.Character
local torso = character:WaitForChild("UpperTorso")
torso.Anchored = true --Anchoring the torso, or the entire character.
repeat wait() until game.ContentProvider.RequestQueueSize > 0 --This line will make it wait until everything is loaded.
game.StarterGui.LoadedFalse.Name.Value = "LoadedTrue"
if game.StarterGui.LoadedTrue then
torso.Anchored = false --Unanchoring the torso, or the entire character.
end
it basically makes the player not move until it changes the name of the part to LoadedTrue then I have this other script that makes the guide start to talk when the part's name is LoadedTrue
while true do
script.Parent.Text = "Let's wait for everyone to load in." -- Put Text You Want
wait(10)
if game.StarterGui.LoadedTrue then
script.Parent.Text = "h" -- Put Text You Want
wait(0.5)
script.Parent.Text = "hi"
wait(10)
script.Parent.Text = "Text Here" -- Put Text You Want
wait(10)
script.Parent.Text = "Text Here" -- Put Text You Want
wait(10)
script.Parent.Text = "Text Here" -- Put Text You Want
wait(10)
script.Parent.Text = "Text Here" -- Put Text You Want
wait(10)
end
end
the problem is that the localscript in replicatedfirst never changes the name of the part resulting in me never able to move

1 comment
LocalScripts cannot rename parts the way you want them to. LOCALscript only make changes on the client. Since the server is checking wether or not the name changes, and the part is only renamed on the client, nothing will happen. Try changing the part's name on a regular script and see what it does.