|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 25 Dec 2012 11:38 AM |
| Thanks! Can you be more specific? |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2012 11:38 AM |
| Like, how would I do that using a dialog giver? |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 30 Dec 2012 04:34 PM |
| For some reason, it still won't work. |
|
|
| Report Abuse |
|
|