|
| 17 Sep 2016 11:41 PM |
start.MouseButton1Click:connect(function() game:GetService('ReplicatedStorage').RandomShtEvent:FireServer()--FireServer end)
rep.RandomShtEvent.OnServerEvent:connect(function() print('1') end) |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 17 Sep 2016 11:52 PM |
--server
local re = game.ReplicatedStorage:WaitForChild('RemoteEvent')
re.OnServerEvent:connect(function(plr,msg) print(msg) end)
>> Hi
--local
local re = game.ReplicatedStorage:WaitForChild('RemoteEvent') local gui = script.Parent
gui.MouseButton1Click:connect(function() re:FireServer('Hi') end)
|
|
|
| Report Abuse |
|
|
|
| 17 Sep 2016 11:52 PM |
| I was doing wait for child and exactly what ur doing, but for some reason it didn't print in the output. |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2016 11:55 PM |
Doesn't work, please I need u bae @Time.
local rep = game:GetService('ReplicatedStorage') local re = rep:WaitForChild('RandomShtEvent')
start.MouseButton1Click:connect(function() re:FireServer('hi') end)
local rep = game:GetService('ReplicatedStorage') local re = rep:WaitForChild('RandomShtEvent')
re.OnServerEvent:connect(function(plr,msg) print(msg) end) |
|
|
| Report Abuse |
|
|
|
| 18 Sep 2016 12:00 AM |
| And yes the event object (RE) is correct the gui works (tested with prints,) so idk... |
|
|
| Report Abuse |
|
|
| |
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
|
| 18 Sep 2016 01:15 AM |
>lua basics >does not know basics
Ha! |
|
|
| Report Abuse |
|
|