|
| 06 Feb 2013 08:08 AM |
| I have used a script that starts a fire and makes it spread + removes the flames after a certain time. But it still kills players should they touch any of the blocks that were on fire. How do I stop this from happening? |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:59 AM |
| correction, the script does not remove the fire, which is killing the players. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 10:01 AM |
| Post the script so we can look at it. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 10:10 AM |
function onT(hit) if hit.Name ~= "Base" then if hit.Name == "Burning" then return end hit.Name = "Burning" hit.BrickColor = BrickColor.new("Really black") local f = script.Parent.Fire:clone() f.Parent = hit f.Size = 3 + hit:getMass() * 0.1 wait(20) local r = script.Parent.Remover:clone() r.Parent = hit local s = script:clone() s.Parent = hit hit:breakJoints() hit.Anchored= false hit.Velocity = Vector3.new(math.random(-5,5),5,math.random(-5,5)) end end script.Parent.Touched:connect(onT)
|
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 10:11 AM |
and this is the remover bit mentioned in the above script
wait(script.Parent:getMass()*3) script.Parent:remove()
Its not actually my script so I dont understand 100% how it works but I assume its not removing the fire |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 11:23 AM |
try script.Parent:Destroy() if that dosent work try script.Parent:Remove() |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 11:49 AM |
| Ok, I'm pretty sure I've completely broken it now, if I make it a friends only personal server, would anyone be willing to fix it for me? I would like there to be flames (which is what I've got but I don't want the blocks to kill people that touch them, just the flames to damage them. Can anyone help me with this? |
|
|
| Report Abuse |
|
|