Advertisement
Pukaciu

Untitled

Jul 31st, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. local Part = Instance.new("Part")
  2. Part.BottomSurface = Enum.SurfaceType.Smooth
  3. Part.CFrame = CFrame.new(5.5, 3, -23.5)
  4. Part.Size = Vector3.new(2, 6, 4)
  5. Part.TopSurface = Enum.SurfaceType.Smooth
  6. Part.Parent = game:GetService("Workspace").Model
  7.  
  8. local Attachment0 = Instance.new("Attachment")
  9. Attachment0.Axis = Vector3.new(0, 0, 1)
  10. Attachment0.Name = "Attachment0"
  11. Attachment0.Orientation = Vector3.new(0, -90, 0)
  12. Attachment0.Position = Vector3.new(0, 2, 2)
  13. Attachment0.Parent = Part
  14.  
  15. local SpringConstraint = Instance.new("SpringConstraint")
  16. SpringConstraint.Attachment0 = Attachment0
  17. SpringConstraint.Damping = 2
  18. SpringConstraint.FreeLength = 0.1
  19. SpringConstraint.Stiffness = 1000
  20. SpringConstraint.Visible = true
  21. SpringConstraint.Parent = Part
  22.  
  23. local Attachment1 = Instance.new("Attachment")
  24. Attachment1.Axis = Vector3.new(0, 0, -1)
  25. Attachment1.Name = "Attachment1"
  26. Attachment1.Orientation = Vector3.new(-90, 90, 0)
  27. Attachment1.Position = Vector3.new(0, 2, -2)
  28. Attachment1.SecondaryAxis = Vector3.new(-1, 0, 0)
  29. Attachment1.Parent = Part
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement