generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Leaderboard script

Previous Thread :: Next Thread 
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
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
brickmasterX is not online. brickmasterX
Joined: 03 May 2012
Total Posts: 17
05 May 2012 06:49 PM
isnt that only for admin??
Report Abuse
TheLuaNoob is not online. TheLuaNoob
Joined: 04 May 2012
Total Posts: 482
05 May 2012 07:10 PM
I'll try and make it.

~!~ Plus One Post ~!~
Report Abuse
UFAIL2 is online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image