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: Spawn

Previous Thread :: Next Thread 
hithere4994 is not online. hithere4994
Joined: 25 Sep 2010
Total Posts: 2459
31 Jul 2011 04:47 PM
local current = script.Parent.Parent:FindFirstChild("F-16")
local copy = current:Clone()

function add()
if current.Parent then
current.Parent = game.Workspace
end
local c = copy:Clone()
c.Parent = script.Parent.Parent
c:MakeJoints()
current = c
end

while true do
wait(5)
if script.Parent.Parent:FindFirstChild(current.Name) == nil
or (current:FindFirstChild("Nose")
and (script.Parent.Position - current.Nose.Position).magnitude > 20) then
add()
end
end

Output says it's running fine, but it isn't respawning. Yes, I know, it's anaminus's script for the regen that was in his arrow-keys plane. It's pretty old, so there were some things I had to fix. It might just be that I missed some stuff.
Report Abuse
hithere4994 is not online. hithere4994
Joined: 25 Sep 2010
Total Posts: 2459
31 Jul 2011 04:55 PM
Nevermind, I got it fixed
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