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: What's wrong with this script?

Previous Thread :: Next Thread 
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
27 Sep 2014 04:27 PM
It spawns the models, but they all just fall apart, I've added :MakeJoints(), but nothing changes.

map1 = game.Lighting:findFirstChild("House")
map2 = game.Lighting:findFirstChild("Noob")
map3 = game.Lighting:findFirstChild("Skyscraper")
map4 = game.Lighting:findFirstChild("Justin Bieber")
map5 = game.Lighting:findFirstChild("Ship")
map6 = game.Lighting:findFirstChild("Barney")
map7 = game.Lighting:findFirstChild("Castle")
map8 = game.Lighting:findFirstChild("Patrick")
map9 = game.Lighting:findFirstChild("Spongebob")
map10 = game.Lighting:findFirstChild("Tower")
time = 120
clone = map1:clone()
clone:MakeJoints()
clone2 = map2:clone()
clone2:MakeJoints()
clone3 = map3:clone()
clone3:MakeJoints()
clone4 = map4:clone()
clone4:MakeJoints()
clone5 = map5:clone()
clone5:MakeJoints()
clone6 = map6:clone()
clone6:MakeJoints()
clone7 = map7:clone()
clone7:MakeJoints()
clone8 = map8:clone()
clone8:MakeJoints()
clone9 = map9:clone()
clone9:MakeJoints()
clone10 = map10:clone()
clone10:MakeJoints()
wait()
map1:remove()
map2:remove()
map3:remove()
map4:remove()
map5:remove()
map6:remove()
map7:remove()
map8:remove()
map9:remove()
map10:remove()
while true do
local map = clone:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone2:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone3:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone4:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone5:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone6:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone7:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone8:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone9:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone10:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
end
Report Abuse
ViciousFox is not online. ViciousFox
Joined: 22 Oct 2009
Total Posts: 1596
27 Sep 2014 04:28 PM
You need to anchor everything, the stuff falling apart has nothing to do with the script.
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
27 Sep 2014 04:30 PM
@vicious, I want the model to be destroyable
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
27 Sep 2014 04:32 PM
and the models don't fall apart when they're on their own
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
27 Sep 2014 04:37 PM
come on ppl, trying to make a game here :/
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
27 Sep 2014 04:49 PM
-_-
Report Abuse
NuclearRisk is not online. NuclearRisk
Joined: 27 Jan 2012
Total Posts: 2694
27 Sep 2014 05:00 PM
prai to shrek and it fixes eet
Report Abuse
Curozilla is not online. Curozilla
Joined: 18 Jun 2014
Total Posts: 2219
27 Sep 2014 05:02 PM
Welding should do the job.
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
27 Sep 2014 05:04 PM
*facepalm
Report Abuse
Curozilla is not online. Curozilla
Joined: 18 Jun 2014
Total Posts: 2219
27 Sep 2014 05:55 PM
Now that's just disrespectful.
Report Abuse
HyroadCoder is not online. HyroadCoder
Joined: 15 Jul 2014
Total Posts: 813
27 Sep 2014 05:58 PM
map1 = game.Lighting:findFirstChild("House")
map2 = game.Lighting:findFirstChild("Noob")
map3 = game.Lighting:findFirstChild("Skyscraper")
map4 = game.Lighting:findFirstChild("Justin Bieber")
map5 = game.Lighting:findFirstChild("Ship")
map6 = game.Lighting:findFirstChild("Barney")
map7 = game.Lighting:findFirstChild("Castle")
map8 = game.Lighting:findFirstChild("Patrick")
map9 = game.Lighting:findFirstChild("Spongebob")
map10 = game.Lighting:findFirstChild("Tower")
time = 120
clone = map1:clone()
clone:MakeJoints()
clone2 = map2:clone()
clone2:MakeJoints()
clone3 = map3:clone()
clone3:MakeJoints()
clone4 = map4:clone()
clone4:MakeJoints()
clone5 = map5:clone()
clone5:MakeJoints()
clone6 = map6:clone()
clone6:MakeJoints()
clone7 = map7:clone()
clone7:MakeJoints()
clone8 = map8:clone()
clone8:MakeJoints()
clone9 = map9:clone()
clone9:MakeJoints()
clone10 = map10:clone()
clone10:MakeJoints()
wait()
local weld
map1:remove()
map2:remove()
map3:remove()
map4:remove()
map5:remove()
map6:remove()
map7:remove()
map8:remove()
map9:remove()
map10:remove()
while true do
local map = clone:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone2:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone3:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone4:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone5:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone6:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone7:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
spawn(wait)
local map = clone8:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone9:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
local map = clone10:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
end
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
28 Sep 2014 03:08 AM
@hyroad, didn't work, the model still falls apart...
Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
28 Sep 2014 04:17 AM
And this is why loops were created. So ur code doesn't come out like that.
Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
28 Sep 2014 04:20 AM
One other thing... You need to parent the models to the workspace before u call :MakeJoints()
Report Abuse
HyroadCoder is not online. HyroadCoder
Joined: 15 Jul 2014
Total Posts: 813
28 Sep 2014 10:38 AM
That's what I was about to say, Roblock, also, you could probably efficionize this by a ton.
Report Abuse
Miztix is not online. Miztix
Joined: 11 May 2009
Total Posts: 3510
28 Sep 2014 01:27 PM
already fixed it, thanks to everyone who helped
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