Home   Search   Register  
Help Center  > Scripting Help  > How to stop copied map from falling apart  
 
Display using:  
Previous Thread :: Next Thread 
 Author  Thread: How to stop copied map from falling apart
Dylan is offline. Last active: 11/3/2024 3:56:33 PM Dylan
Forum Moderator
Joined: 04 Oct 2019
Total Posts: 22
 
How to stop copied map from falling apart
Posted: 13 Jul 2020 23:41 PM
im trying to make a script that every once and a while cleans everything up, pick another map, and put it in. the problem is that the parts dont spawn in at the exact same time, causing the structure to fall apart. it needs to be unanchored to be destructable. i was thinking about having the maps be anchored and once the map is spawned in its unanchored, but i dont know how to do that. any help?
Report Abuse
tie is offline. Last active: 8/29/2024 5:08:20 PM tie
Forum Moderator
Joined: 29 Apr 2020
Total Posts: 235
 
Re: How to stop copied map from falling apart
Posted: 13 Jul 2020 23:42 PM
can you put the script in? see if its something to do with yours or if you need a fresh new script
Report Abuse
Dylan is offline. Last active: 11/3/2024 3:56:33 PM Dylan
Forum Moderator
Joined: 04 Oct 2019
Total Posts: 22
 
Re: How to stop copied map from falling apart
Posted: 14 Jul 2020 00:00 AM
all it does is pick a map, does :Clone() and parents it as workspace
Report Abuse
tie is offline. Last active: 8/29/2024 5:08:20 PM tie
Forum Moderator
Joined: 29 Apr 2020
Total Posts: 235
 
Re: How to stop copied map from falling apart
Posted: 14 Jul 2020 00:18 AM
so due to my limited knowledge on scripting especially on a 2010 client im guessing that unlike in modern roblox when you clone something it unanchors everything so you might need to make it so that it checks the entire model to see if its anchored and if it isnt set it to true.
How to go about it I have no idea but maybe that could give you an idea idk.
Report Abuse
Dylan is offline. Last active: 11/3/2024 3:56:33 PM Dylan
Forum Moderator
Joined: 04 Oct 2019
Total Posts: 22
 
Re: How to stop copied map from falling apart
Posted: 14 Jul 2020 00:31 AM
i said it needs to be unanchored to be destructable, which is why i talked about unanchoring all of the parts inside of the model
Report Abuse
tie is offline. Last active: 8/29/2024 5:08:20 PM tie
Forum Moderator
Joined: 29 Apr 2020
Total Posts: 235
 
Re: How to stop copied map from falling apart
Posted: 14 Jul 2020 01:12 AM
Ok uh quick response problem was just parts werent welded.
Report Abuse
RGT is offline. Last active: 2/27/2021 10:19:58 PM RGT
Joined: 31 Oct 2019
Total Posts: 76
 
Re: How to stop copied map from falling apart
Posted: 14 Jul 2020 15:20 PM
you can use this script and put parts that need to be unanchored in a model and anchored parts in a different one. maybe also put something like wait(1) so all of the parts can load in.

for i, v in pairs(game.Workspace.MapHere.Unanchored:GetChildren()) do
if v:IsA("BasePart") then --i think :IsA("BasePart") will work
v.Anchored = false
end
end
Report Abuse
GuestIsJustBest is offline. Last active: 2/19/2021 9:10:16 PM GuestIsJustBest
Joined: 16 Sep 2020
Total Posts: 6
 
Re: How to stop copied map from falling apart
Posted: 02 Dec 2020 16:03 PM
If the map is one Model, then after parenting it to Workspace, call :MakeJoints() on it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
GoodBlox Forum  > Help Center  > Scripting Help  > How to stop copied map from falling apart