How can I make it so My script will work in all servers and keep working as the same?

Since I searched on the DevForum and did not find results.

I want to make it so
like for example.

My textlabel is being changed after a few seconds and when I join a different server it will keep the same and not redo the script.

Support would be appreciated.

You will need to look in to datastores for this. Use the developer wiki.

Here is a link:
https://developer.roblox.com/en-us/articles/Data-store

For this, I’d suggest using MessagingService to PublishAsync and then wait for a response from a running server with SubcribeAsync.

DataStore could be used, however you may hit your limits mattering on how fast the value changes.

I’m a beginner to scripting…
Can you please make it more clear… or write a script for me if you can that’d be cool.

This category isn’t for implicitly asking for Scripts, however I can provide an example to using MessagingSeevice.

You’ll need two “topics” which I’m going to name “Ask” and “Reply”, through the Ask you can PublishAaync and the receiving servers will use SubscribeAsync to listen for any.

Then the server that received will use PublishAsync to “Reply” that the awaiting server has used SubscribeAaync on.

Short example I promised:

--// Getting Script
local MessagingService = game:GetService("MessagingService");

MessagingService:SubscribeAsync(function(Info)
     local Data = Info.Data; --// Whatever was passed, there's also a Sent property (UNIX time sent)
    --// Do what you need to
end)

MessagingService:PublishAsync("Ask");
--// Receiving Script
local MessagingService = game:GetService("MessagingService");

MessagingService:SubscribeAsymc("Ask", function()
    MessagingService:PublishAsync("Reply", 1) --// 1 as an example
end)

Make sure not to Reply if the server itself ain’t ready.

More on MessagingService: