|
| 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
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
|
| 05 Aug 2013 09:56 PM |
while true do end
It works every time |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2013 11:17 AM |
| ..That didn't help for what I'm asking -.- |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 07 Aug 2013 11:56 AM |
| yah zachs would work just fine :) |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2013 08:44 PM |
| omg thanks zach ill try it out :D |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|