|
| 01 Jul 2015 09:49 AM |
local p = game.Players:GetChildren() for i = 1, #p do wait(2) p[i].PlayerGui.ScreenGui.TextBox.Text = "Example Text 1" wait(5) p[i].PlayerGui.ScreenGui.TextBox.Text = "Example Text 2" end
For some reason the above script wont work. I'm getting no error messages or anything, and I can't find the problem. |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2015 09:50 AM |
Thats probably because it doesnt loop. It also wont work with FilteringEnabled. |
|
|
| Report Abuse |
|
|
| |
|
Jeysea
|
  |
| Joined: 13 Apr 2015 |
| Total Posts: 268 |
|
|
| 01 Jul 2015 09:56 AM |
----In a Script in workspace or whatever-- local Event = Instance.new("RemoteEvent") Event.Parent = game:GetService("ServerStorage")
Event:FireAllClients("ChangeText", "Example Text") -- Change "Example Text"
----In a LocalScript in StarterGui----
local Event = game:GetService("ServerStorage"):WaitForChild("RemoteEvent")
Event.OnClientEvent:connect(function(...) local Tuple = {...} local P = game.Players.LocalPlayer if Tuple[1] == "ChangeText" then P.PlayerGui.ScreenGui.TextBox.Text = Tuple[2] end end) |
|
|
| Report Abuse |
|
|