generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: RemoteEvent help?

Previous Thread :: Next Thread 
Pink_Sai is not online. 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
NetworkEngineer is not online. NetworkEngineer
Joined: 08 Aug 2017
Total Posts: 64
08 Oct 2017 02:53 PM
Expect me to understand this.
Report Abuse
Pink_Sai is not online. 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
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
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 is not online. Pink_Sai
Joined: 23 Jul 2017
Total Posts: 1505
08 Oct 2017 03:13 PM
oh ty


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image