Rocko02
|
  |
| Joined: 06 Oct 2012 |
| Total Posts: 91 |
|
|
| 11 Jun 2016 02:34 PM |
| I'm trying to find a way to add a script to a morph to where it can only be used if you are a certain rank in a certain group, otherwise you are killed, and I've been out of luck finding out how to make it/find it. I'm only used to editing information in pre-made scripts. Could someone give me a hand? I'd really appreciate it. |
|
|
| Report Abuse |
|
|
Rocko02
|
  |
| Joined: 06 Oct 2012 |
| Total Posts: 91 |
|
| |
|
Rocko02
|
  |
| Joined: 06 Oct 2012 |
| Total Posts: 91 |
|
| |
|
XBLAX
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 82 |
|
|
| 11 Jun 2016 04:26 PM |
Well I can't exactly help you with "How" to morph a player. But i can definitely help you with group ranking permissions. Your script would go something like this:
script.Parent.Touched:connect(function(otherPart) if player:GetRankInGroup(0) == 255 then [Morphing command] else --Set "0" to the ID of the Group and "255" to the Rank's value local Find = otherPart.Parent:FindFirstChild("Humanoid") if Find then otherPart.Parent.Humanoid.Health = 0 else return end end) |
|
|
| Report Abuse |
|
|