Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function giveBalloon(player,amount)
- char = player.Character
- Tool = Instance.new("Tool",char)
- Tool.Name = "Balloon"
- Handle = Instance.new("Part",Tool)
- Handle.CanCollide = false
- Handle.Name = "Handle"
- Handle.Transparency = 1
- Tool.AncestryChanged:connect(function()
- Tool.Parent = game.workspace
- Tool.balls:MoveTo(Tool.Handle.Position)
- print'moved'
- end)
- balls = Instance.new("Model",Tool)
- balls.Name = "balls"
- for i=1,amount or 1 do
- ball = Instance.new("Part",balls)
- ball.Shape = "Ball"
- ball.CustomPhysicalProperties = PhysicalProperties.new(1, .3, --friction
- 0.005, --Elasticity
- .0001, --FrictionWeight
- .0001) --ElasticityWeight
- ball.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,3,0)
- ball.Material = "SmoothPlastic"
- ball.BrickColor = BrickColor.random()
- helium = Instance.new("BodyForce",ball)
- helium.Force = Vector3.new(0,7000,0)
- knot1 = Instance.new("Attachment",ball)
- knot2 = Instance.new("Attachment",Handle)
- String = Instance.new("RopeConstraint",ball)
- String.Attachment0 = knot1
- String.Attachment1 = knot2
- String.Length = 10
- String.Color = BrickColor.new("White")
- String.Thickness = .1
- String.Visible = true
- end
- end
- -- giveBalloon(game.Players.dispeller,3)
- giveBalloon(owner,3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement