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 » Scripters
Home Search
 

Problem with MakeJoints()

Previous Thread :: Next Thread 
robertgold is not online. robertgold
Joined: 08 Oct 2009
Total Posts: 2407
17 Mar 2015 01:18 PM
Okay so, I have my car in the server storage and my main script in ServerScriptService, and it won't respawn due to an error that occurs with this section.

function createCars()
for _, object in pairs(game.ServerStorage:GetChildren()) do
local carCopy = object:Clone()
carCopy.Parent = game.Workspace
carCopy:MakeJoints()
end
end

The error message is as follows:
MakeJoints is not a valid member of Configuration


When I remove the MakeJoints() line of code, my cars spawn. But they then fall apart.

Any ideas?
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
17 Mar 2015 01:19 PM
function createCars()
for _, object in pairs(game.ServerStorage:GetChildren()) do
local carCopy = object:Clone()
carCopy.Parent = game.Workspace
if carCopy:IsA("Model") then
carCopy:MakeJoints()
end
end
end
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
17 Mar 2015 01:19 PM
That clones everything in ServerStorage, not just your car models.

try:

for _, object in pairs(game.ServerStorage:GetChildren()) do

if object:IsA("Model") then
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
17 Mar 2015 01:20 PM
MakeJoints only works on models, you are cloning everything inside of ServerStorage, and apparently there is a Configuration object there.

What I did should fix it completely.
Report Abuse
kert109 is not online. kert109
Joined: 31 Dec 2009
Total Posts: 681
17 Mar 2015 01:23 PM
MakeJoints is a method for the object "Model."

Make sure the car is actually welded.

And for some extra info:
Try to use Motors (the object, not the surface) rather then plain Welds, since motors do not glitch like welds do. (You use them the same exact way. Weld.C0 is the same as Motor.C0.)
Report Abuse
robertgold is not online. robertgold
Joined: 08 Oct 2009
Total Posts: 2407
17 Mar 2015 01:27 PM
Thanks all of you
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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