of     1   

Butterbuds24
#182917475Wednesday, February 03, 2016 3:19 AM GMT

function onTouched(hit) local human = hit.Parent:findFirstChild("Humanoid") local fire = script.Parent.ParticleEmitter if (human ~= nil) then local TR = hit.Parent:findFirstChild("Torso") local LA = hit.Parent:findFirstChild("Left Arm") local RA = hit.Parent:findFirstChild("Right Arm") local RL = hit.Parent:findFirstChild("Left Leg") local LL = hit.Parent:findFirstChild("Right Leg") if (LL ~= nil) then local clone = fire:Clone() clone.Parent = TR clone.Parent = LA clone.Parent = RA clone.Parent = LL clone.Parent = RL wait(2) local p= hit.Parent:GetChildren() for i= 1, #p do if p[i].className == "Part" then p[i].BrickColor = BrickColor.new(26) wait(1) human.Health = human.Health - 0.4 end end end end end The script only sets my Left Leg (LL) on fire when I touch it, can someone fix this problem so it effects the whole body when you touch the fire. Thankyou q.q ;c.
swimmaster07
#182917686Wednesday, February 03, 2016 3:23 AM GMT

fire is being cloned once you need to make a for loop to put fire in every body part for example for i,v in pairs(body parts) do fire:clone() end
Kurokku
#182917704Wednesday, February 03, 2016 3:23 AM GMT

I have a feeling it has something to do with if LL ~= nill then
Butterbuds24
#182917838Wednesday, February 03, 2016 3:25 AM GMT

the problem is at local TR = hit.Parent:findFirstChild("Torso") local LA = hit.Parent:findFirstChild("Left Arm") local RA = hit.Parent:findFirstChild("Right Arm") local RL = hit.Parent:findFirstChild("Left Leg") local LL = hit.Parent:findFirstChild("Right Leg") ^ i put the bottom LL as RL and only the Right leg would have effect. so i changed it to LL and now only LL has effect
Kurokku
#182917953Wednesday, February 03, 2016 3:27 AM GMT

local RL = hit.Parent:findFirstChild("Left Leg") local LL = hit.Parent:findFirstChild("Right Leg") Just imbrase that ^
Butterbuds24
#182918010Wednesday, February 03, 2016 3:28 AM GMT

the particles is now on my right leg xD :C

    of     1