Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 08:05 PM |
After reading the wiki, I still can't exactly figure out filtering enabled. Which in my eyes is kind of pathetic. I know it's not that hard from what I hear, it just takes a bit of time to learn how to do it, then it gets easier from there.
First question, it talks about needing a 'local' script, and a 'server script'.
Where would you put the 'local' script, and the 'server' script, when you are making a simple 'clicky' door?
[ Click door, it opens. ]
R$573,289 |
|
|
| Report Abuse |
|
|
XCVlll
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 963 |
|
|
| 02 Oct 2016 08:07 PM |
| you would use remote events |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 08:09 PM |
I know I'd use remote events, I'm just wondering where the scripts go. I'll try and make one real quick, maybe it'll make this easier.
R$573,309 |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 08:14 PM |
Object Location = Workspace
EVERYTHING used in this is inside of the Door brick.
Local Script
script.Parent.ClickDetector:connect(function() script.Parent.OpenEvent:FireAllClients() end)
Remote Event inside door named OpenEvent
Regular Script
script.Parent.ClickDetector:connect(function() script.Parent.OpenEvent:FireAllClients() end)
Clickdetector inside of door.
R$573,377 |
|
|
| Report Abuse |
|
|
XCVlll
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 963 |
|
|
| 02 Oct 2016 08:15 PM |
| you can ### them anywhere really, but it helps if you ### things together |
|
|
| Report Abuse |
|
|
isc88
|
  |
| Joined: 30 May 2013 |
| Total Posts: 27545 |
|
|
| 02 Oct 2016 08:19 PM |
| I'm not really sure how to use FE but If it's a normal door in the workspace, i don't think you need a localscript and serverscript ## ## use # ############## ### should only need those things if it's an actual client-to-server communication (like clicking a button in the player's GUI so you should just be able to do it all in a server script inside the door. ##### Robux: R$140,448 Rap: 19,585 |
|
|
| Report Abuse |
|
|
isc88
|
  |
| Joined: 30 May 2013 |
| Total Posts: 27545 |
|
|
| 02 Oct 2016 08:21 PM |
wait, nvm
i have no idea how to use FE, disregard everything I said XD
isc88 Robux: R$140,448 Rap: 19,593 |
|
|
| Report Abuse |
|
|
cabbler
|
  |
| Joined: 19 Jun 2015 |
| Total Posts: 735 |
|
|
| 02 Oct 2016 08:26 PM |
| It doesn't matter where the scripts go as long as they recognize and communicate with eachother. Filtering is not hard at all. Only annoying. |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 08:28 PM |
So what I did, was that incorrect I'm guessing?
R$573,758 |
|
|
| Report Abuse |
|
|
cabbler
|
  |
| Joined: 19 Jun 2015 |
| Total Posts: 735 |
|
|
| 02 Oct 2016 08:38 PM |
You have the right idea. It would be more like this though.
Local Script
script.Parent.ClickDetector:connect(function() script.Parent.OpenEvent:FireServer() end)
Regular Script
script.Parent.ClickDetector:connect(function() script.Parent.OpenEvent.OnServerEvent:connect(function() --open door end)
end)
Although you might be able to handle the door on server side only |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 08:38 PM |
I need to learn this.
Hackers are slaughtering my game from ever getting popular
R$573,594 |
|
|
| Report Abuse |
|
|
cabbler
|
  |
| Joined: 19 Jun 2015 |
| Total Posts: 735 |
|
|
| 02 Oct 2016 08:39 PM |
actually the script would simply be like this Regular Script
script.Parent.OpenEvent.OnServerEvent:connect(function() --open door end)
|
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 09:30 PM |
Oh I thought it always needed a regular script, and a local script.
R$574,038 |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 02 Oct 2016 09:44 PM |
Thanks so much! I understand finally!
R$574,049 |
|
|
| Report Abuse |
|
|