REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 21 Nov 2013 08:41 PM |
How do I make this work only for 5 minutes and then when they come back it will work right away? I want to make a 5 minute demo of my game...
Game['Players']['PlayerAdded']:connect(function(p) p:WaitForDataReady(); if p:LoadBoolean("Demo") then p:Kick() else p:SaveBoolean("Demo", not false); end end)
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 08:42 PM |
| So it kicks the player after 5 minutes. But they can still join again? |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 21 Nov 2013 08:43 PM |
ok here i'll elaborate:
Once the player joins the game they will have 5 minutes before they will get kicked...
wait nvm I got it XD |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 08:43 PM |
| Do you want them to be banned after their 5 minutes or not? |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 09:01 PM |
| Why are you using 'not false' when you can just write 'true' ? |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 21 Nov 2013 09:09 PM |
@not yes and I found a solution to that
@crazy I did not write this script, a fellow scripting helper forumer helped me with this...I also found that weird when he sent me this code... |
|
|
| Report Abuse |
|
|