My show status script is not working

Ops, sorry, i notice what script it is now.

Tested out in Studio, and my script seemed to work perfectly fine.
Script:

local replicatedStorage = game:GetService("ReplicatedStorage")
local Status = replicatedStorage.Status
local topStatus = script.Parent.TopStatus

topStatus.Text = tostring(Status.Value)

Status:GetPropertyChangedSignal("Value"):Connect(function()
    topStatus.Text = tostring(Status.Value)
end)

I believe there is something wrong with your indexing. Can I get an image of the explorer, please?

An image of my explorer:
My explorer

What are the “childrens” of the “TopStatus”, in @ilovedevex’s explorer.

Here is my explorer image.

Could we get a screenshot of the children of ReplicatedStorage too? Where is the “Status” object located?

Ok the Status object is located in ReplicatedStorage. Here is the screenshot.

Try this:

local repStorage = game:GetService("ReplicatedStorage")
local Status = repStorage:WaitForChild("Status")

	Status.Value.Changed:Connect(function()
	script.Parent.Text = tostring(Status.Value)
end)

Put that in a LocalScript and put that LocalScript inside the status label

1 Like

The status is not a label the label is a TopStatus the StringValue is Status.

I know.

What that code should do is check to see if the value of “Status” inside ReplicatedStorage has changed and if so - update the TextLabel accordingly.

1 Like

It says Players.Jblocksss.PlayerGui.MainGUI.TopStatus.StatusChange:4: attempt to index nil with ‘Connect’
In the output Box.

I had a feeling, try this:

local repStorage = game:GetService("ReplicatedStorage")
local Status = repStorage:WaitForChild("Status")

	Status.Changed:Connect(function()
	script.Parent.Text = tostring(Status.Value)
end)
2 Likes

Thanks so much it works! :DD I’m going to give you a follow! :smiley:

2 Likes

Also sorry to bug you, but do you know how to add a BoolValue tag to a player using a script?

How do you mean? Bool when if true gives the player a chat tag or…?

1 Like

No just add a BoolValue on the player when they join the game. Also sorry for the late response.

It should just be

game.Players.PlayerAdded:Connect(function(plr)
	Instance.new("BoolValue", plr)
end)
1 Like

Ok thanks it worked! :smiley: (30 characters)

1 Like