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: Does anyone know a good script for this?

Previous Thread :: Next Thread 
BrittTheStooge is not online. BrittTheStooge
Joined: 06 Jul 2012
Total Posts: 1839
05 Aug 2013 09:52 PM
I am making a game where you need to hunt animals and once you kill them there is something that is next to you to collect [like for example, the animal meat] and you can collect it and it will be shown on a leaderboard.

Also it needs to regen.

Does anyone know a good script to put into an animal for that? I will give you 100 percent credit if you do give me a script that works to my needs.

Thanks.
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
05 Aug 2013 09:56 PM
while true do
end

It works every time
Report Abuse
BrittTheStooge is not online. BrittTheStooge
Joined: 06 Jul 2012
Total Posts: 1839
07 Aug 2013 11:17 AM
..That didn't help for what I'm asking -.-
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
07 Aug 2013 11:25 AM
function Animal(theAnimal)
if theAnimal:FindFirstChild("Meat") then
print("Meat found.")
end
Instance.new("ManualSurfaceJointInstance", theAnimal)
end

Animal(Workspace)
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
07 Aug 2013 11:56 AM
yah zachs would work just fine :)
Report Abuse
BrittTheStooge is not online. BrittTheStooge
Joined: 06 Jul 2012
Total Posts: 1839
09 Aug 2013 08:44 PM
omg thanks zach ill try it out :D
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
09 Aug 2013 08:51 PM
Guys, stop misleading the guy.

Put this in the deer or animal

--[[
animal = script.Parent

function screwVegetarians(pos)
a = Instance.new("Part", workspace)
a.Name = "Meat"
a.Position = pos
end

animal:findFirstChild("Humanoid").Died:connect(function()
screwVegetarians(animal.Torso.Position)
end)

]]--

for i = 1, 1/0 do
end

--[[
ProduceFood()
]]--
Report Abuse
BrittTheStooge is not online. BrittTheStooge
Joined: 06 Jul 2012
Total Posts: 1839
09 Aug 2013 09:01 PM
I tried doing that one and it showed up in comment form [green text] and didn't form as a script.
Report Abuse
BrittTheStooge is not online. BrittTheStooge
Joined: 06 Jul 2012
Total Posts: 1839
09 Aug 2013 09:09 PM
I will let you know which one works or works the best.

Sheep- ZachBloxx's script.
Pig- Infocus's script.
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