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
 

Argument 1 missing or nil? [Remote events]

Previous Thread :: Next Thread 
AlvinBLOXX is not online. AlvinBLOXX
Joined: 22 Feb 2011
Total Posts: 1557
04 Aug 2015 02:57 PM
Hi, I'm trying to use Remote Events to make a GUI show up because FilteringEnabled breaks it but I get this error: - Argument 1 missing or nil, here's my scripts:

Script in serverscriptservice:

for i, v in pairs(game.Players:GetChildren()) do
v.Backpack.RemoteClient.ChangeGUI:FireClient()
end

RemoteClient Local Script which is in starterpack: (Remote Event is called ChangeGUI and is in the local script

script:WaitForChild("ChangeGUI")
script.ChangeGUI.OnServerEvent:connect(function(player)
player.PlayerGUI.HUD.RoundFrame:TweenPosition(UDim2.new(0.5, -375,0.5, -200) 'Out', 'Quint', 1)
local mt = Instance.new('BoolValue', player.Character)
mt.Name = 'MatchTag'
end)



AlvinBLOXX | Scripter, Game Developer, Community Member | @AlvinBLOX
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Aug 2015 02:58 PM
v.Backpack.RemoteClient.ChangeGUI:FireClient(v)
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
04 Aug 2015 02:59 PM
v.Backpack.RemoteClient.ChangeGUI:FireClient(v)

Fire Client takes in the player you wish to fire to
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Aug 2015 02:59 PM
And you use 'OnClientEvent' and no parameters.
Report Abuse
LunaScripter is not online. LunaScripter
Joined: 27 Nov 2008
Total Posts: 813
04 Aug 2015 02:59 PM
use FireAllClients()


- This is the will of Steins;Gate
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