maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 02 Jan 2015 12:09 AM |
Found this in his hoverboard: if (Player.Name == "Merely" or Player.Name == "Seranok" or Player.Name == "moded") then speed = speed * 1.5 --holy hax end |
|
|
| Report Abuse |
|
|
ImInABlox
|
  |
| Joined: 15 Apr 2009 |
| Total Posts: 822 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Jan 2015 12:16 AM |
He should have done this
if ({Merely = 0; Seranok = 0; moded = 0;})[player.Name] then speed = speed * 1.5 end
Or this
speed = (speed * (({Merely = 0; Seranok = 0; moded = 0;})[player.Name] and 1.5 or 1)) |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 02 Jan 2015 12:19 AM |
| why would you make that a dictionary? lol |
|
|
| Report Abuse |
|
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Jan 2015 12:23 AM |
So you can do tab[name] to check if it exist
It wouldn't work if it wasn't a dictionary because the key of the name would be nil |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|