Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. function giveBalloon(player,amount)
  2. char = player.Character
  3. Tool = Instance.new("Tool",char)
  4. Tool.Name = "Balloon"
  5. Handle = Instance.new("Part",Tool)
  6. Handle.CanCollide = false
  7. Handle.Name = "Handle"
  8. Handle.Transparency = 1
  9. Tool.AncestryChanged:connect(function()
  10. Tool.Parent = game.workspace
  11. Tool.balls:MoveTo(Tool.Handle.Position)
  12. print'moved'
  13. end)
  14. balls = Instance.new("Model",Tool)
  15. balls.Name = "balls"
  16. for i=1,amount or 1 do
  17. ball = Instance.new("Part",balls)
  18. ball.Shape = "Ball"
  19. ball.CustomPhysicalProperties = PhysicalProperties.new(1, .3, --friction
  20. 0.005, --Elasticity
  21. .0001, --FrictionWeight
  22. .0001) --ElasticityWeight
  23. ball.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,3,0)
  24. ball.Material = "SmoothPlastic"
  25. ball.BrickColor = BrickColor.random()
  26. helium = Instance.new("BodyForce",ball)
  27. helium.Force = Vector3.new(0,7000,0)
  28. knot1 = Instance.new("Attachment",ball)
  29. knot2 = Instance.new("Attachment",Handle)
  30. String = Instance.new("RopeConstraint",ball)
  31. String.Attachment0 = knot1
  32. String.Attachment1 = knot2
  33. String.Length = 10
  34. String.Color = BrickColor.new("White")
  35. String.Thickness = .1
  36. String.Visible = true
  37. end
  38. end
  39. -- giveBalloon(game.Players.dispeller,3)
  40. giveBalloon(owner,3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement