Changing values in a function [this was only a bug, please don't reply]

This was only a bug in my code. This thread doesn’t make sense. Please don’t reply

Hi. I’m trying to send some data from the server to the client. So theres a variable “key” which data is “” and then it receives data gets in a function and changes key to the data from the server. I just can’t get it to working. I tried printing and the key variable in the function. Nothing. How can i make this work?

1 Like

Can I see your script please. I can help you better if I can see the error in the script.

1 Like

You have to put a script into the thing you want to use then e.g into textlable then do this script:

`local Status = game:GetService("ReplicatedStorage"):WaitForChild("Status")--Status is the Value you want to use

script.Parent.Text = Status.Value

Status:GetPropertyChangedSignal("Value"):Connect(function() --checks if the value is changed
	
	script.Parent.Text = Status.Value -- sets the text to the value
	
end)

No, I want to change a variable in the function

It would really help if you provided some code that you already wrote

Sorry this was only a bug in my code. This thread doesn’t make sense. Please don’t reply