TheUnknownDiscord

sliding box

Sep 28th, 2021 (edited)
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. part = Instance.new("Part", script)
  2. part.CFrame = owner.Character.Head.CFrame * CFrame.new(0,7.5,-10)
  3. part.Anchored = true
  4. part2 = Instance.new("Part", script)
  5. part3 = Instance.new("Part", script)
  6. part4 = Instance.new("Part", script)
  7. part5 = Instance.new("Part", script)
  8. part.Size = Vector3.new(5,1,5)
  9. part2.Size = Vector3.new(5,3,1)
  10. part3.Size = Vector3.new(5,3,1)
  11. part4.Size = Vector3.new(1,3,5)
  12. part5.Size = Vector3.new(1,3,5)
  13. local weld = Instance.new("Weld", part)
  14. weld.Part0 = part2
  15. weld.Part1 = part
  16. weld.C0 = CFrame.new(0,-2,2)
  17. local weld2 = Instance.new("Weld", part)
  18. weld2.Part0 = part3
  19. weld2.Part1 = part
  20. weld2.C0 = CFrame.new(0,-2,-2)
  21. local weld3 = Instance.new("Weld", part)
  22. weld3.Part0 = part4
  23. weld3.Part1 = part
  24. weld3.C0 = CFrame.new(2,-2,0)
  25. local weld4 = Instance.new("Weld", part)
  26. weld4.Part0 = part5
  27. weld4.Part1 = part
  28. weld4.C0 = CFrame.new(-2,-2,0)
  29. local density = 0.5
  30. local friction = 0.1
  31. local elasticity = 0
  32. local frictionWeight = 100000000000
  33. local elasticityWeight = 0
  34. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  35. part.CustomPhysicalProperties = physProperties
  36. owner.Character.Humanoid.AutoJumpEnabled = false
  37. wait()
  38. part.Anchored = false
RAW Paste Data