I'm working on an F.E. game, a script I'm using is supposed to change values and things... Although most of it works well, there is one line that just doesn't seem to be working for no reason.
script.Parent.OnServerEvent:connect(function(player, Player, Side) script.Parent.Parent[Side].PZone.Player.Value = Player.Name game.Workspace[Player.Name].Humanoid.WalkSpeed = 0 -- To stop character walk animation game.Workspace[Player.Name].Humanoid.JumpPower = 0 wait(0.2) game.Workspace[Player.Name].Torso.Anchored = true game.Workspace[Player.Name].Humanoid.WalkSpeed = 16 game.Workspace[Player.Name].Humanoid.JumpPower = 50 if script.Parent.Parent.Red.PZone.Player.Value == "None" or script.Parent.Parent.Blue.PZone.Player.Value == "None" then game.Players[Player.Name].Wait:FireClient(player) repeat wait() until script.Parent.Parent.Blue.PZone.Player.Value ~= "None" and script.Parent.Parent.Red.PZone.Player.Value ~= "None" -- wait until there are two players end script.Parent.Parent[Side].FoeLP.Background.LifePoints.LifeLeft.Text = "8000" --Problem line script.Parent.Parent[Side].YourLP.Background.LifePoints.LifeLeft.Text = "8000" -- exact same thing but works fine script.Parent.Parent[Side].Deck.SurfaceGui.ImageLabel.Visible = true script.Parent.Parent[Side].Deck.SurfaceGui.TextLabel.Text = #(game.Players[player.Name].Cards.Deck:GetChildren()) script.Parent.Parent[Side].Extra.SurfaceGui.TextLabel.Text = #(game.Players[player.Name].Cards.Extra:GetChildren()) script.Parent.Parent[Side].Extra.SurfaceGui.ImageLabel.Visible = true script.Parent.Parent[Side].Graveyard.SurfaceGui.ImageLabel.Visible = true script.Parent.Parent[Side].Graveyard.SurfaceGui.TextLabel.Text = "0" end)
I put --Problem line where the problem is, the following line does the exact same thing to the other part, and aside from the name being FoeLP instead of YourLP, they are identical in every way, yet it doesn't want to show the text I change it to in the script. I tried changing it before I clicked play, see if it wasn't showing correctly, but it worked. Other thing is, the text in the surface gui changes, but it doesn't show the actual text on the part... I am stumped on this, can anybody help?