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: Zombie Grinder Works, just need control over amounts...

Previous Thread :: Next Thread 
Ajw2000 is not online. Ajw2000
Joined: 30 Jul 2008
Total Posts: 295
16 Oct 2009 11:14 AM
function grind(hit)
if hit.Name == "Zombie" then
wait(.1)
local p = Instance.new("Part")
p.Parent = game.Workspace
p.Name = "Goop"
p.BrickColor = BrickColor.new("Camo")
p.Anchored = false
p.formFactor = 2
p.TopSurface = 0
p.BottomSurface =0
p.Position = Vector3.new(56, 10, -38)
p.Locked = true
wait(.1)
end
end
script.Parent.Touched:connect(grind)

------------------------------------------------
I need to control if 1 "Zombie" named brick hits the grinder then 1 goop comes out, if 5 hit it, then 5 goop comes out...can anyone help me?
Report Abuse
Pady is not online. Pady
Joined: 18 Nov 2007
Total Posts: 1744
16 Oct 2009 11:58 AM
function grind(hit)
if hit.Parent.Name == "Zombie" then --parent of part
wait(.1)
hit.Parent:remove() --remove the zombie so it doesnt fire script again.
local p = Instance.new("Part")
p.Parent = game.Workspace
p.Name = "Goop"
p.BrickColor = BrickColor.new("Camo")
p.Anchored = false
p.formFactor = 2
p.TopSurface = 0
p.BottomSurface =0
p.Position = Vector3.new(56, 10, -38)
p.Locked = true
wait(.1)
end
end
script.Parent.Touched:connect(grind)
Report Abuse
Ajw2000 is not online. Ajw2000
Joined: 30 Jul 2008
Total Posts: 295
16 Oct 2009 12:08 PM
Tyvm, but the zombies arent grouped yet, when they are I will re- add the hit.(parent) part(removing the parent of hit, kuz its just a bricks in the shape of a zombie right now)
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