Hello! Recently I have been making a camping like game and I've been using scripts to change the text on the text label. But for some reason, only a few or maybe even 1 user is seeing the change and the rest getting stuck on some text.
I'm not sure if I'm doing anything wrong with the code but the script is just a normal script, the code is below if you want to know it.
local NPC = game.Workspace.Josh
local Monster = game.Workspace.Monster
local Background = game.Workspace.BackgroundMusic
local NightMusic = game.Workspace.NightMusic
local TextGUI = game.StarterGui.ScreenGui.Frame.TextLabel.Text
NPC.Torso.Anchored = true
Background.Playing = true
Background.Looped = true
TextGUI = "Lets wait for everyone to get in!"
wait(40)
NPC.Torso.Anchored = false
TextGUI = "Lets get moving then! We will set camp in the forest."
game.Workspace.WallA1.CanCollide = false
game.Workspace.WallA2.CanCollide = false
game.Workspace.WallA3.CanCollide = false
NPC.Humanoid:MoveTo(game.Workspace.Point1.Position)
NPC.Humanoid.MoveToFinished:Wait()
NPC.Humanoid:MoveTo(game.Workspace.Point1.Position)
NPC.Humanoid.MoveToFinished:Wait()
wait()
NPC.Torso.Anchored = true
TextGUI = "We will set up camp here! Feel free to explore whilst I set up!"
wait(50)
TextGUI = "Night is approching..."
game.ServerStorage.Evening.Parent = game.Lighting
game.Lighting.Day.Parent = game.ServerStorage
wait(10)
All up to there is fine but then people get stuck with "Night is approaching..." and then nothing else, I think the whole script stops from there but I'm not sure as I've never had this issue but my BETA testers have.
The lines of code that follow the are.
TextGUI = "Night is here! Everyone get settled in your tents and tell some scary stories!"
game.StarterGui.BlacknessGUI.Frame.Visible = true
game.ServerStorage.Night.Parent = game.Lighting
game.Lighting.Evening.Parent = game.ServerStorage
game.Workspace.Camp.Campfire.Sphere1.Flame.Enabled = true
game.Workspace.Camp.Campfire.Sphere1.LightParticles.Enabled = true
game.Workspace.Camp.Campfire.Sphere1.Sparks.Enabled = true
game.Workspace.Camp.Campfire.Sphere2.Flame.Enabled = true
game.Workspace.Camp.Campfire.Sphere2.LightParticles.Enabled = true
game.Workspace.Camp.Campfire.Sphere2.Sparks.Enabled = true
game.Workspace.Camp.Campfire.Sphere3.Flame.Enabled = true
game.Workspace.Camp.Campfire.Sphere3.Sparks.Enabled = true
wait(3)
game.Workspace.WallB1.CanCollide = true
game.Workspace.WallB2.CanCollide = true
game.Workspace.WallB3.CanCollide = true
game.Workspace.WallB4.CanCollide = true
wait(1)
game.StarterGui.BlacknessGUI.Frame.Visible = false
Background.Playing = false
Background.Looped = false
NightMusic.Playing = true
NightMusic.Looped = true
wait(15)
TextGUI = "I'm just going to the bathroom! I'll be back soon!"
wait(1)
NPC.Torso.Anchored = false
NPC.Humanoid:MoveTo(game.Workspace.PointB2.Position)
NPC.Humanoid.MoveToFinished:Wait()
NPC.Humanoid:MoveTo(game.Workspace.Point2.Position)
NPC.Humanoid.MoveToFinished:Wait()
game.Workspace.WallB3.CanCollide = false
NPC.Humanoid:MoveTo(game.Workspace.Point3.Position)
NPC.Humanoid.MoveToFinished:Wait()
game.Workspace.WallB3.CanCollide = true
NPC.Humanoid:MoveTo(game.Workspace.Point4.Position)
NPC.Humanoid.MoveToFinished:Wait()
game.Workspace.BathroomBlocker.CanCollide = false
NPC.Humanoid:MoveTo(game.Workspace.Point5.Position)
NPC.Humanoid.MoveToFinished:Wait()
script.Parent.Parent.ImageLabel.Visible = false
wait(2)
TextGUI = "Lets all get ready for bed! We should get into our tents."
wait(10)
game.Workspace.TentDoor1.Transparency = 0
game.Workspace.TentDoor2.Transparency = 0
game.Workspace.TentDoor1.CanCollide = true
game.Workspace.TentDoor2.CanCollide = true
wait(10)
game.Workspace.Screaming.Playing = true
wait(10)
game.Workspace.Stab.Playing = true
game.Workspace.DeadBody.CanCollide = true
game.Workspace.DeadBody.Transparency = 0
wait(15)
game.Lighting.Night.Parent = game.ServerStorage
game.ServerStorage.Day.Parent = game.Lighting
NightMusic.Playing = false
Background.Playing = true
game.Workspace.TentDoor1.Transparency = 1
game.Workspace.TentDoor2.Transparency = 1
game.Workspace.TentDoor1.CanCollide = false
game.Workspace.TentDoor2.CanCollide = false
wait(1)
TextGUI = "Oh my god! What happened!"
wait(5)
NPC.Humanoid:MoveTo(game.Workspace.Point4.Position)
NPC.Humanoid.MoveToFinished:Wait()
game.Workspace.BathroomBlocker.CanCollide = true
NPC.Humanoid:MoveTo(game.Workspace.Point3.Position)
NPC.Humanoid.MoveToFinished:Wait()
game.Workspace.WallB3.CanCollide = false
NPC.Humanoid:MoveTo(game.Workspace.Point2.Position)
NPC.Humanoid.MoveToFinished:Wait()
game.Workspace.WallB3.CanCollide = true
NPC.Humanoid:MoveTo(game.Workspace.PointB2.Position)
NPC.Humanoid.MoveToFinished:Wait()
NPC.Humanoid:MoveTo(game.Workspace.Point1.Position)
NPC.Humanoid.MoveToFinished:Wait()
script.Parent.Parent.ImageLabel.Visible = true
wait(1)
TextGUI = "I heard screaming last night so I stayed in the bathroom."
wait(4)
TextGUI = "What happened here?! Is that what the screaming was?!"
wait(999999999999999)
I'm not sure what I've done wrong after that but for some reason its glitches at the end and redoes the text from the Night if approaching bit, so I added the long wait onto the end as I haven't finished coding and won't until I can fix this bug.
The script is located in ServerScriptService but I've tried putting it in may place such as in the Text Label. I'm not sure if its an error I have made or just a bug. I've also noticed that the part that says
game.StarterGui.BlacknessGUI.Frame.Visible = true
and
game.StarterGui.BlacknessGUI.Frame.Visible = false
Doesn't work for some reason, I've done this before a while back and it worked fine but as soon as I try and recode it and make a new one, nothing works.
I am also aware that I have put something to do with script.Parent somewhere for an ImageLabel, this is because the script was in the text label before.

1 comment
yeah, game.StarterGui doens't change for anybody..