Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a Billboard Gui become visible with a stringvalue?

So I have two scripts's the first script is the main script that when you touch it and your team is by the name of Kid it changes a StringValues Value to Player Entered. The next script that is named MakeVisible detects when the String values value is changed to Player Entered.

---Information---

  1. The First script is named Main and is in a part named Main.

  1. The Second script is named MakeVisible and is in the Image label.

  1. The StringValue is in a folder named Config.

  1. The Folder named Config is in a Parent name GuiPart50.

---Scripts---

--Main Script--

--"Kid" = Team the Player must be.

script.Parent.Touched:Connect(function(hit)
	if script.Parent.Parent.Parent.Workspace.Player.Team == "Kid" then
		if script.Parent.Parent.GuiPart50.Config.BurstType.Value == "" then
		script.Parent.Parent.GuiPart50.Config.BurstType.Value = "Player Entered"
		end
	end
end)

--MakeVisible Script--

if script.Parent.Parent.Parent.Parent.GuiPart50.Config.BurstType.Value == "Player Entered" then
	script.Parent.Visible = true
end

1 answer

✓ Accepted answer

Hey there! plox give me robux

To fix this problem you want to use Instance.Changed for this stringvalue

If this doesn't work, tell me.

Example script:

game.Players.Player1.leaderstats.Cash.Changed:Connect(function()
	print("Player1's leaderstats has changed!")
end)

To fix your problem it would be:

script.Parent.Parent.Parent.Parent.GuiPart50.Config.BurstType.Changed:Connect(function()
	if script.Parent.Parent.Parent.Parent.GuiPart50.Config.BurstType.Value == "Player Entered" then
	    script.Parent.Visible = true
	end
end)

If this helped, please mark this as the answer!

This discussion is preserved as it was. New answers, comments, and votes are closed.