Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

[AWNSERED]Why does the model just break apart?

Asked by 5 years ago
Edited 5 years ago
01local ship = script.Parent
02local PP = script.Parent.PrimaryPart
03 
04function sink()
05    script.Parent.button.ClickDetector:Destroy()
06    for i= 1,50 do
07        wait()
08        ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.0025))
09    end
10    for i= 1,50 do
11        wait()
12        ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(0,0,.005))
13    end
14    for i= 1,50 do
15        wait()
View all 35 lines...

context: i've been making this script for a sinking ship game but the model breaks apart

0
Is it anchored? namespace25 594 — 5y
0
yes, it is. The parts dont fall, they just get far away from eachother and end up with a bunch of cracks and separations MradmannMvip 50 — 5y
0
Ok. Try to use a weld constraint script to weld all the parts together. namespace25 594 — 5y
0
I've made one if you want to use it. https://web.roblox.com/library/3159263768/sWeldScript-RAW namespace25 594 — 5y
View all comments (2 more)
0
didnt work MradmannMvip 50 — 5y
0
I'm looking at this code, maybe you could try welding everything together first, and anchor one part, and then unanchor it in the code? A_thruZ 29 — 5y

Answer this question