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
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.
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