|
| 05 May 2012 06:40 PM |
| Hello, I'm a novice scripter. I want to know how you can make some kind of door that opens to a certain leaderboard stat. For example, a door that only opens if you have, say, 20 KOS or more. Something like that. |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 06:49 PM |
| isnt that only for admin?? |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 07:10 PM |
I'll try and make it.
~!~ Plus One Post ~!~ |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 05 May 2012 07:15 PM |
You can make this by using the .Touched event, and comparative operators.
http://wiki.roblox.com/index.php/Touched_(Event) http://wiki.roblox.com/index.php/Operators#Comparative |
|
|
| Report Abuse |
|
|
ozza
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 726 |
|
|
| 05 May 2012 08:32 PM |
script.Parent.Touched:connect(function(hit) g = game.Players:GetPlayerFromCharacter(hit.Parent) if g.leaderstats.KOs.Value >= 20 then script.Parent.Transparency = 0.2 script.Parent.CanCollide = false wait(3) script.Parent.Transparency = 0 script.Parent.CanCollide = true end end)
|
|
|
| Report Abuse |
|
|