|
| 07 Jun 2015 09:04 AM |
Hello, I am making a FlameThrower and need some help.
So the flamethrower is fully functional, but if you walk into your own fire, it kills you.
Can anyone help me develop a script that makes it impossible to die by your own fire?
Thanks,
BLIX |
|
|
| Report Abuse |
|
|
ganger800
|
  |
| Joined: 06 Dec 2012 |
| Total Posts: 427 |
|
|
| 07 Jun 2015 09:08 AM |
you need to edit your flamethrower to do this including an extra script will be very inefficient |
|
|
| Report Abuse |
|
|
Luminak
|
  |
| Joined: 27 May 2012 |
| Total Posts: 2809 |
|
|
| 07 Jun 2015 09:10 AM |
| just make it do 0 damage if your not an expierenced scripter |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2015 09:13 AM |
| can i actually have an answer? |
|
|
| Report Abuse |
|
|
ganger800
|
  |
| Joined: 06 Dec 2012 |
| Total Posts: 427 |
|
|
| 07 Jun 2015 09:16 AM |
you already got answers luminak also gave you a way how to do it: make the damage 0 when you hit yourself don't expect someone to write a script if you need to change your original script |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 07 Jun 2015 09:17 AM |
| You don't just ask for a script, especially like that. And that one guy already told you how, it'd take 5 seconds to do it.. |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2015 09:29 AM |
But it doesn't work.
local Tool = script.Parent; local character = Tool.Parent; local humanoid = character.Humanoid if hit.Parent.Parent = character then script.Parent.Parent.Parent.Power.Value = 0 else script.Parent.Parent.Parent.Power.Value = 2 end
It's not working...
|
|
|
| Report Abuse |
|
|