DRMOTT
|
  |
| Joined: 20 Oct 2008 |
| Total Posts: 515 |
|
|
| 11 Jan 2015 01:44 PM |
| Is there a way to make a "safe plate" without using forcefield. Instead you cant get damaged while you are on this plate? The only way i know is using the forcefield and setting a magnitude. Can you do it the other way? if so how? |
|
|
| Report Abuse |
|
|
| |
|
TannerLG
|
  |
| Joined: 08 Jan 2015 |
| Total Posts: 51 |
|
|
| 11 Jan 2015 02:20 PM |
Safe Plate is probably like a Safe Zone, where you are protected from certain elements in a game, I suppose.
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2015 02:33 PM |
humanoid.MaxHealth = math.huge humanoid.Health = math.huge |
|
|
| Report Abuse |
|
|
TannerLG
|
  |
| Joined: 08 Jan 2015 |
| Total Posts: 51 |
|
|
| 11 Jan 2015 02:36 PM |
| Some weapons can kill using the dmg amount math.huge though, too. |
|
|
| Report Abuse |
|
|
| |
|
TannerLG
|
  |
| Joined: 08 Jan 2015 |
| Total Posts: 51 |
|
| |
|
DRMOTT
|
  |
| Joined: 20 Oct 2008 |
| Total Posts: 515 |
|
| |
|
|
| 12 Jan 2015 12:37 PM |
local safe = script.Parent
safe.Touched:connect(function(hit) local human = hit.Parent:FindFirstChild("Humnaoid") if human then local oldMax = human.MaxHealth local oldHealth = human.Health human.MaxHealth = math.huge human.Health = math.huge repeat local hit2 = safe.TouchEnded:wait() until hit == hit2 hit.Heath = oldHealth hit.MaxHealth = oldMax end end)
Should work. |
|
|
| Report Abuse |
|
|
DRMOTT
|
  |
| Joined: 20 Oct 2008 |
| Total Posts: 515 |
|
| |
|
| |
|