|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 30 Oct 2016 12:12 AM |
found another bug
FireClient: player arguement must be a player object |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 30 Oct 2016 01:24 PM |
alright guys tysm
im gonna try and fix it
|
|
|
| Report Abuse |
|
|