|
| 22 May 2017 01:42 PM |
So basically on my game Papers Please RP there is a block if you walk into you'll become the inspector. How can I make it so when you touch it, it makes you the inspector and if the person on the inspector team quits it will come back. Here is the script I already have on the object:
function changer(part) if part.Parent.Humanoid ~= nil then if part.Parent.Humanoid.Health ~= 0 then if game.Players:FindFirstChild(part.Parent.Name) ~= nil then game.Players:FindFirstChild(part.Parent.Name).TeamColor = script.Parent.Value.Value part.Parent.Head:Remove() end end end end
script.Parent.Touched:connect(changer)
--saberboy117 RoFleet Tec 2010 May 22 NON REPUBLISHABLE |
|
|
| Report Abuse |
|
|
| |
|
Aerodox
|
  |
| Joined: 08 Mar 2017 |
| Total Posts: 145 |
|
|
| 22 May 2017 02:14 PM |
have u tried setting it to wumbo?
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
| |
|
| |
|
|
| 23 May 2017 09:43 PM |
ask patrick
he majored in wumbology, the study of wumbo
|
|
|
| Report Abuse |
|
|
Chrounum
|
  |
| Joined: 04 Apr 2015 |
| Total Posts: 2911 |
|
|
| 23 May 2017 09:46 PM |
part.Parent.Head:Destroy() ?
|
|
|
| Report Abuse |
|
|