Pink_Sai
|
  |
| Joined: 23 Jul 2017 |
| Total Posts: 1505 |
|
|
| 08 Oct 2017 02:52 PM |
| ok so I just started learning FE ############ - Argument 1 missing or nil local statuschange = game:GetService('StarterGui').ScreenGui.TextLabel.LocalScript:WaitForChild('StatusChanger') local value = game.ReplicatedStorage:WaitForChild('Main') script.Parent.Parent:WaitForChild('TextLabel') statuschange.OnClientEvent:connect(function(plr) script.Parent.Text = value.Value end) thats in the local script, a remoteevent is inside the local script local main = game.ReplicatedStorage:WaitForChild('Main') main.Changed:connect(function() game.StarterGui.ScreenGui.TextLabel.LocalScript.StatusChanger:FireClient() end) this is in sss I'm trying to make everyone in the game have an updated text everytime the main value is changed so say I have like a screengui that has a timer on it I want everyone to see that timer even when its updated so like 4:30, 4:29, etc but each time it updates it updates for EVERYONE through FE |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2017 02:53 PM |
| Expect me to understand this. |
|
|
| Report Abuse |
|
|
Pink_Sai
|
  |
| Joined: 23 Jul 2017 |
| Total Posts: 1505 |
|
|
| 08 Oct 2017 02:57 PM |
local main = game.ReplicatedStorage:WaitForChild('Main')
main.Changed:connect(function() game.StarterGui.ScreenGui.TextLabel.LocalScript.StatusChanger:FireClient() end)
SSS
local statuschange = game:GetService('StarterGui').ScreenGui.TextLabel.LocalScript:WaitForChild('StatusChanger') local value = game.ReplicatedStorage:WaitForChild('Main')
script.Parent.Parent:WaitForChild('TextLabel')
statuschange.OnClientEvent:connect(function(plr) script.Parent.Text = value.Value end)
|
|
|
| Report Abuse |
|
|
|
| 08 Oct 2017 03:04 PM |
when u use :Fire Client u need to direct that to a specific player
also ur changing stuff inside of the starter gui, which will not affect the player, rather the players that have just respawned
instead, find their player gui
ALSO, you're trying to access stuff that only local scripts can access with a server script, do not edit guis with a server script unless they were parented to the player by a server script
what u want to do is in the script in SSS, change the event to .OnServerEvent:Connect()
and in the local script, use :FireServer()
#code error("you're*") |
|
|
| Report Abuse |
|
|
Pink_Sai
|
  |
| Joined: 23 Jul 2017 |
| Total Posts: 1505 |
|
| |
|