Advertisement
Pukaciu

Untitled

Jul 30th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local ball = owner.Character.Ball.script.script.ball
  2. ball.Touched:Connect(function(oldPart)
  3.  
  4. if oldPart:IsA('Part') and oldPart.Name ~= "Baseplate" then
  5. local part = oldPart:Clone()
  6. part.Anchored = true
  7. part.Parent = workspace
  8.  
  9.  
  10.  
  11. part.Size = Vector3.new(oldPart.Size.X / 2, oldPart.Size.Y, oldPart.Size.Z)
  12. part.Position = oldPart.Position
  13. part.Position = part.Position - Vector3.new(part.Size.X / 2, 0, 0)
  14. oldPart.Size = Vector3.new(oldPart.Size.X / 2, oldPart.Size.Y, oldPart.Size.Z)
  15. oldPart.Position = oldPart.Position + Vector3.new(part.Size.X / 2, 0, 0)
  16. oldPart.Parent = workspace
  17. part.Anchored = false
  18. end
  19.  
  20.  
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement