|
| 22 Apr 2015 11:56 AM |
I want people to only be able to kill if there standing on a brick or walking on it(Like fencing)
I wish u can do it its really simple |
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 22 Apr 2015 12:02 PM |
What do you have so far.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 22 Apr 2015 01:00 PM |
| We don't make entire scripts for people, we help you with scripts that you have made. |
|
|
| Report Abuse |
|
|
Zanziber
|
  |
| Joined: 08 Dec 2008 |
| Total Posts: 5088 |
|
|
| 22 Apr 2015 01:10 PM |
| Make the brick change HP from 99999 to 100 |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 22 Apr 2015 01:30 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.MaxHealth.Value = 100 hit.Parent.Humanoid.Health.Value = 100 end end)
script.Parent.TouchEnded:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.MaxHealth.Value = math.huge hit.Parent.Humanoid.Health.Value = math.huge end end) |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 22 Apr 2015 01:37 PM |
@By
That will not work how he wants it.
It will just constantly change their health back and forth.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 22 Apr 2015 01:51 PM |
| just search for "lava" in the free models, or maybe "kill part"... |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Apr 2015 01:52 PM |
part.Touched:connect(part.BreakJoints)
hooray for lava |
|
|
| Report Abuse |
|
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 22 Apr 2015 02:50 PM |
| part.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health=0 end) |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 22 Apr 2015 02:52 PM |
For some reason people think he wants a kill brick.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 22 Apr 2015 02:53 PM |
| Just look for a fencing set. Derp |
|
|
| Report Abuse |
|
|
Proxemics
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 2542 |
|
|
| 22 Apr 2015 02:57 PM |
It's really simple actually.
First, you need to get the foil or sword or whatever you're using as a weapon. Next, fire a function that sets the weapon's deal damage to 0 if the player isn't in the arena and a function that sets the weapon's deal damage back to whatever it was before if the player is touching the arena floor.
Use the touched event. |
|
|
| Report Abuse |
|
|
Stiiky
|
  |
| Joined: 15 Jan 2010 |
| Total Posts: 451 |
|
|
| 22 Apr 2015 03:15 PM |
Could just set players health when spawning and touchended on the arena brick to math.huge and when they are on it, set it to 100. |
|
|
| Report Abuse |
|
|