Hi, I'm trying to figure out how to make a text change for everyone when a player has clicked a certain click detector. I'm assuming I need to use FireAllClients() but I'm not sure how to do it as I've never used it before. I also tried looking on the wiki, but couldn't find anything. If anyone could have that'll be great.
The script in the ClickDetector
local RepStorage = game:GetService("ReplicatedStorage")
local OpenN = RepStorage:WaitForChild("OpenNote")
local CD = game.Workspace.Cave.Bench.Paper.paper
local function clicked()
OpenN:FireServer()
end
CD.ClickDetector.MouseClick:Connect(clicked)
The script in ServerScriptService
local CD = game.Workspace.Cave.Bench.Paper.paper.ClickDetector
local Time = 0.08
game.ReplicatedStorage.OpenNote.OnServerEvent:Connect(function(player)
local StartingText = player.PlayerGui.StoryLine.PostCrashText.Text
local Task = player.PlayerGui.StoryLine.PostCrashText.Task.Desc
local TaskFrame =player .PlayerGui.StoryLine.PostCrashText.Task
local Paper = game.Workspace.Cave.Bench.Paper.paper
local PaperDecal = game.Workspace.Cave.Bench.Paper.paper.Decal
-- // Player Found Note \\ --
CD:Remove()
Paper.Transparency = 1
PaperDecal.Transparency = 1
Task.Text = " "
StartingText.Text = " ".. player.Name
wait(Time)
StartingText.Text = " ".. player.Name.." h"
wait(Time)
StartingText.Text = " ".. player.Name.." ha"
wait(Time)
StartingText.Text = " ".. player.Name.." has"
wait(Time)
StartingText.Text = " ".. player.Name.." has f"
wait(Time)
StartingText.Text = " ".. player.Name.." has fo"
wait(Time)
StartingText.Text = " ".. player.Name.." has fou"
wait(Time)
StartingText.Text = " ".. player.Name.." has foun"
wait(Time)
StartingText.Text = " ".. player.Name.." has found"
wait(Time)
StartingText.Text = " ".. player.Name.." has found a"
wait(Time)
StartingText.Text = " ".. player.Name.." has found a n"
wait(Time)
StartingText.Text = " ".. player.Name.." has found a no"
wait(Time)
StartingText.Text = " ".. player.Name.." has found a not"
wait(Time)
StartingText.Text = " ".. player.Name.." has found a note"
wait(Time)
StartingText.Text = " ".. player.Name.." has found a note!"

5 comments
thanks
If this helped you ???
i didn't use this script, but i used part of it to make my own script
ok
thanks though