Vector3 Makes the ship get flung?
Asked by
5 years ago Edited 5 years ago
I've been trying to code a sinking ship, still not done yet, im working in the moving part.
Although, when i click the button to run the script, the thing nopes out of there and goes into low earth orbit. Anything i need to change?
01 | local ship = script.Parent |
02 | local PP = script.Parent.PrimaryPart |
07 | ship:SetPrimaryPartCFrame(PP.CFrame * CFrame.new(PP.CFrame * Vector 3. new( 0 ,- 0.01 , 0 ))) |
13 | game.Workspace.button.ClickDetector.MouseClick:Connect(sink) |
~~~~~~~~~~~~~~~~~