generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Poison script

Previous Thread :: Next Thread 
smiles1357 is not online. smiles1357
Joined: 03 Jul 2011
Total Posts: 6386
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
15 Jun 2012 11:45 AM
Post the script.

† KMXD †
Report Abuse
smiles1357 is not online. smiles1357
Joined: 03 Jul 2011
Total Posts: 6386
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 is not online. 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
smiles1357 is not online. smiles1357
Joined: 03 Jul 2011
Total Posts: 6386
15 Jun 2012 12:25 PM
Thanks a lot :3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image