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: arguement 1 missing or nil

Previous Thread :: Next Thread 
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
29 Oct 2016 11:20 PM
im starting to get this recently with remote events

heres the problem:

-server script
script.Parent.Touched:connect(function()
script.Parent.BrickColor = BrickColor.new("Lime green")
game.ReplicatedStorage.CheckPointCheck:FireClient()
end)

-local script
game.ReplicatedStorage.CheckPointCheck.OnClientEvent:connect(function(cp)
script.Parent.Visible = true
wait(3)
script.Parent.Visible = false
end)





Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
29 Oct 2016 11:25 PM
You have to send the argument cp in FireClient()

why do you even have the that in there anyways?


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
29 Oct 2016 11:29 PM
ah i see, thank you!


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
30 Oct 2016 12:12 AM
found another bug

FireClient: player arguement must be a player object
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
30 Oct 2016 12:52 AM
You have to specify which client you want to fire the event on.


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
30 Oct 2016 09:07 AM
what do you mean exactly


Report Abuse
llaserx is online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
30 Oct 2016 09:25 AM
script.Parent.Touched:connect(function(player)
script.Parent.BrickColor = BrickColor.new("Lime green")
game.ReplicatedStorage.CheckPointCheck:FireClient(player,WhatEverCpIs)
end)


Report Abuse
llaserx is online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
30 Oct 2016 09:27 AM
^ignore i thought it was Clicked

script.Parent.Touched:connect(function(player)
script.Parent.BrickColor = BrickColor.new("Lime green")
game.ReplicatedStorage.CheckPointCheck:FireClient(DefinePlayer,WhatEverCpIs)
end)




Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
30 Oct 2016 09:28 AM
http://wiki.roblox.com/index.php?title=API:Class/RemoteEvent/FireClient

bruh read the wiki the arguments for this function are clearly stated
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
30 Oct 2016 09:36 AM
@OP

--server

local cpc = game.ReplicatedStorage:WaitForChild('CheckPointCheck')
local part = script.Parent


part.Touched:connect(function(hit)
part.BrickColor = BrickColor.new('Lime green')
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
cpc:FireClient(player)
end
end)

--local

local cpc = game.ReplicatedStorage:WaitForChild('CheckPointCheck')
local gui = script.Parent

cpc.OnClientEvent:connect(function()
gui.Visible = true
wait(3)
gui.Visible = false
end)


https://forum.roblox.com/Forum/ShowPost.aspx?PostID=200061209
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=198426552


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
30 Oct 2016 01:19 PM
"http://wiki.roblox.com/index.php?title=API:Class/RemoteEvent/FireClient

bruh read the wiki the arguments for this function are clearly stated"

i just did right before i went to church yesterday

im still trying to solve it.


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
30 Oct 2016 01:24 PM
alright guys tysm


im gonna try and fix it


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