Whats the best way to use one remoteEvent to update text

What do you want to achieve? I just need some insight on how I could possibly achieve this, I am not sure if I am allowed to do this. I am not asking for code just need some info. I am trying to make a horror game with objective text but is there any way to keep updating the text but with only one remote event?

Thanks for all of your time!

– also just a little info, im gonna be activating the text by different parts in the Workspace meaning that it will be in the client

1 Like

Is it a server? or a Client? :roll_eyes:

Sorry about that check scripting support

Sorry about that check it again but its in client

do you mean like if some player did the objective, the text will be changed to everyone? something like this?

Yes you can, just send the text you want to display as an argument (or is it parameter, I keep forgetting)

No because its a single player and im using a typerwriter effect so i have to use a remote event

you can use a BindableEvent! It does the same thing but you can use a same script with other script (ex. Normal script with Normal Script)

Are you doing something more than just displaying plain text? Your thread says “keep updating text” so it gets me thinking that way. You just create one RemoteEvent and then have the server fire to the clients you want or all of them the text that they should be updating their Guis with.

Are you doing anything specific with that text? Your thread seems to suggest that you want to do more than just have the server send over text and the client sets a Text property to the received text.

idk if you have heard of CollectionService but this is something i would use along side the tag editor plugin.

You would probably make the script inside the part a server script (bare with me) and do this

Script.Parent.Touched:Connect(function(hit)
    Local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
    game.ReplicatedStorage.RemoteEvent:FireClient(player)
end)

Then in the local script for the text label do

game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
--Change text here
end)

yes thats similar to waht i did thanks for the info, except i made it so when the player loaded in it checked if everything else loaded in and played the first text then when you click the flashlight it changes and so on

1 Like