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
 

Re: HOW!?!?!?!?!

Previous Thread :: Next Thread 
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
25 Dec 2012 10:24 AM
Hey guys, I was just wondering how you make an HR giver on a group fort. Like, a dialog weapon giver that only works for High ranks... If anyone has any idea how to do that please tell me! Thanks! (Please don't just tell me how to learn to script...I'mm in the process.)
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
25 Dec 2012 10:26 AM
Bump
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
25 Dec 2012 10:42 AM
BumpX2
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
25 Dec 2012 11:27 AM
HEEEEEELP
Report Abuse
popdosprlte is not online. popdosprlte
Joined: 18 Dec 2009
Total Posts: 4801
25 Dec 2012 11:28 AM
You use the Player:GetRankInGroup function to find the high ranks, then you clone a weapon into their backpack.
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
25 Dec 2012 11:38 AM
Thanks! Can you be more specific?
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
25 Dec 2012 11:38 AM
Like, how would I do that using a dialog giver?
Report Abuse
gerit99 is not online. gerit99
Joined: 21 Jul 2010
Total Posts: 521
25 Dec 2012 11:48 AM
I would suggest doing this:
You'll have to change some things in it though.
script.Parent.DialogChoiceSelected:connect(function(player,choice)
if player:GetRankInGroup(YourGroup) => Your HR rank then
if choice.Name == "YOURFIRSTWEAPONDIALOGCHOICENAME" then -- Copy this
if player["Which Value Is Money?"] => HowMuchItCosts then
player["Which Value Is Money?"] = player["Which Value Is Money?"] - HowMuchItCosts
game.Lighting["WeaponYouWantToSell"]:clone().Parent = playr
end
end -- To this, and paste it below, to make another store item.
end
end)
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
26 Dec 2012 10:33 AM
Ok! I'll try it!
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
26 Dec 2012 10:57 AM
Actually, it shows that there is an error in the script...can you check it again?
Report Abuse
gerit99 is not online. gerit99
Joined: 21 Jul 2010
Total Posts: 521
26 Dec 2012 10:58 AM
script.Parent.DialogChoiceSelected:connect(function(player,choice)
if player:GetRankInGroup(YourGroup) => Your HR rank then
if choice.Name == "YOURFIRSTWEAPONDIALOGCHOICENAME" then -- Copy this
if player["Which Value Is Money?"] => HowMuchItCosts then
player["Which Value Is Money?"] = player["Which Value Is Money?"] - HowMuchItCosts
game.Lighting["WeaponYouWantToSell"]:clone().Parent = player
end
end -- To this, and paste it below, to make another store item.
end
end)



Fixed, little typo.
Report Abuse
LamborghiniAventa is not online. LamborghiniAventa
Joined: 22 Jun 2012
Total Posts: 1518
30 Dec 2012 04:34 PM
For some reason, it still won't work.
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