local ship = script.Parent local PP = script.Parent.PrimaryPart function sink() script.Parent.button.ClickDetector:Destroy() for i= 1,50 do wait() ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.0025)) end for i= 1,50 do wait() ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(0,0,.005)) end for i= 1,50 do wait() ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.003)) end for i= 1,25000 do wait() ship:SetPrimaryPartCFrame(PP.CFrame - Vector3.new(0,.001,0) ) ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(-.000006,0,-.000009)) end for i= 1,500 do wait() ship:SetPrimaryPartCFrame(PP.CFrame - Vector3.new(0,.01,0)) ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(-.0001,0,-.0001)) end for i= 1,17000 do wait() ship:SetPrimaryPartCFrame(PP.CFrame - Vector3.new(0,.05,0)) ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.001)) end end script.Parent.button.ClickDetector.MouseClick:Connect(sink)
context: i've been making this script for a sinking ship game but the model breaks apart