|
| 15 Jun 2012 11:45 AM |
| Im trying to edit the script in the venomshank to make you turn blue instead of green. I really dont know how though. Halp? |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jun 2012 12:06 PM |
Heres the Venomshank Poison script:
function Poison(lastTime)
local character = script.Parent local humanoid = character:FindFirstChild("Humanoid")
if (character:FindFirstChild("ForceField") ~= nil) then return end
local childs = character:GetChildren()
local colors = {}
for i=1,#childs do if (childs[i].className == "Part") then colors[i] = childs[i].BrickColor childs[i].BrickColor = BrickColor.new(119) end end
wait(1) for i=1,#childs do if (childs[i].className == "Part") then childs[i].BrickColor = colors[i] end end
tagHumanoid(humanoid) humanoid.Health = humanoid.Health - (humanoid.MaxHealth / 8) -- forcefield won't stop poison damage wait(1) --untagHumanoid(humanoid)
end
function tagHumanoid(humanoid) local poisoner = script:FindFirstChild("poisoner") if (poisoner ~= nil) then
local creator_tag = Instance.new("ObjectValue") creator_tag.Value = poisoner.Value creator_tag.Name = "creator" creator_tag.Parent = humanoid game.Debris:AddItem(creator_tag, 1) end end
for i=1,5 do Poison(i == 5) wait(.1) end
script.Parent = nil |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 15 Jun 2012 12:07 PM |
Change this line: childs[i].BrickColor = BrickColor.new(119)
With this: childs[i].BrickColor = BrickColor.new('Bright blue') |
|
|
| Report Abuse |
|
|
| |
|