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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
22 Dec 2013 12:08 AM
They work in normal mode, but when they are cloned they seem to keep dieing as they enter the map.

a = "AIBOT [C1]"
b = "AIBOT [C2]"
c = "AIBOT [C3]"
d = "AIBOT [C4]"
while wait(2) do
for i,v in pairs(game.Lighting:GetChildren()) do
if v.Name==a or v.Name==b or v.Name==c or v.Name==d then
v:MakeJoints()
v:clone().Parent = game.Workspace
end
end
end
Report Abuse
tuxedoman23 is not online. tuxedoman23
Joined: 24 Apr 2009
Total Posts: 4670
22 Dec 2013 12:09 AM
Have the model anchored when cloning it?
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
22 Dec 2013 12:11 AM
The models are humanoids, so they are not anchored.
Report Abuse
tuxedoman23 is not online. tuxedoman23
Joined: 24 Apr 2009
Total Posts: 4670
22 Dec 2013 12:25 AM
Try anchoring the model in the lighting, cloning it, then unanchoring and using the :MakeJoints() function after.
Report Abuse
iNinjaOS is not online. iNinjaOS
Joined: 12 Sep 2013
Total Posts: 74
22 Dec 2013 12:44 AM
a = "AIBOT [C1]"
b = "AIBOT [C2]"
c = "AIBOT [C3]"
d = "AIBOT [C4]"
while wait(2) do
for i,v in pairs(game.Lighting:GetChildren()) do
if v.Name==a or v.Name==b or v.Name==c or v.Name==d then
local clone=v:Clone()
clone.Parent=game.Workspace
clone:MakeJoints()
end
end
end

Try that.
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
22 Dec 2013 12:50 AM
[ Content Deleted ]
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
22 Dec 2013 01:02 AM
Whenever I have to do something like that I always use a grotesquely excessive amount of MakeJoints. Like, every other line is a MakeJoints. It may not be the best way to do it, but it works.
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