Cyber6210
|
  |
| Joined: 11 Apr 2016 |
| Total Posts: 110 |
|
|
| 26 Sep 2017 12:56 PM |
So im making an FPS and i want to people to not be able to kill in spawn BUT try out the practice range outside. Right now im using a local script in a part that when u touch it it gives you +5000 health and when u touch the teleporter it gives you -5000 health.
Here is my script. I dont know if it works or not. It in a local script in the teleporter
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") ~= nil then hit.Parent.Humanoid.Health = -50000 end end)
but this may not be the MOST efficient so is there a way you can give the player a shield until they touch a teleporter. |
|
|
| Report Abuse |
|
|
soutenu
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 1021 |
|
|
| 26 Sep 2017 12:59 PM |
| check if they're inside a Region3 before firing the gun |
|
|
| Report Abuse |
|
|
Cyber6210
|
  |
| Joined: 11 Apr 2016 |
| Total Posts: 110 |
|
| |
|
|
| 26 Sep 2017 01:21 PM |
add respawn hacks() if out of spawn then delete spawn hacks() if player is haxing then enabled fe with remote venet hecl() |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2017 02:31 PM |
Here try this out i know it may not be exactly what you are looking for but it might help you create what your aiming for
Safe-Zone https://www.roblox.com/catalog/1071292046/redirect |
|
|
| Report Abuse |
|
|