iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:14 PM |
_G.FREE_FOR_ALL = true
How do I make it so when i press "e" on my keyboard it turns _G.FREE_FOR_ALL = true into false and when i press e again it makes it true.
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:14 PM |
http://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:14 PM |
| http://wiki.roblox.com/?title=API:Class/UserInputService |
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:15 PM |
can someone just help me pls
|
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
| |
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 11 Mar 2017 03:20 PM |
Assuming this is in a localscript
local uis = game:GetService("UserInputService")
uis.InputBegan:connect(function(input,g) if not g and input.KeyCode == Enum.KeyCode.E then _G.FREEFORALL = not _G.FREEFORALL end end) |
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:23 PM |
I cant post the whole script here for some reason.. but that didn't work
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:23 PM |
and that's exactly why you're not getting help lol
|
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:25 PM |
lol discord Relix#1441 pl0x
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:26 PM |
No need. It's "not working" most likely because of the difference of the shared tables among the server and each client.
|
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 11 Mar 2017 03:27 PM |
| Why not have a boolvalue in workspace and change that from the client's code i just gave you? |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:27 PM |
No need for objects either. Just use a remote.
|
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:28 PM |
Idk anything about scripting so idk what u just said
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:28 PM |
Well, my last reply was contradictory. I meant there's no need to have more objects that you need to, because if the client updates the BoolValue then the change will only take place on the respective client.
|
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
| |
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:31 PM |
can someone add me so i can explain what i mean
|
|
|
| Report Abuse |
|
|
iReIix
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 5175 |
|
|
| 11 Mar 2017 03:33 PM |
https://www.roblox.com/library/340856112/something-exe
this is the script
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2017 03:34 PM |
Sorry, my computer can't run .exe files.
|
|
|
| Report Abuse |
|
|