Snowball spell not summoning a snowball when used once, as well of the snowball falling (?)
I am making a tool that summons a snowball that moves In a straight line, which grows every 0.1 second (In roblox time) anyway It somewhat works, when I use the tool once It works just the snowball falls down, but when I used It again It won't let me summon a snowball
Script:
01 | local tool = script.Parent |
04 | tool.Activated:Connect( function () |
05 | if Debounce = = false then |
08 | print ( "Snowball use uh turn people Into snowman or whatever, yeah" ) |
09 | local SnowBall = Instance.new( "Part" ) |
10 | local VectorForce = Instance.new( "VectorForce" ) |
11 | local Attachment = Instance.new( "Attachment" ) |
12 | local ParticleEffect = Instance.new( "ParticleEmitter" ) |
13 | SnowBall.Parent = game.Workspace |
14 | SnowBall.Position = tool.Parent.Torso.Position |
15 | SnowBall.Orientation = tool.Parent.Torso.Orientation |
16 | SnowBall.Shape = Enum.PartType.Ball |
17 | SnowBall.Size = Vector 3. new( 1.553 , 1.553 , 1.553 ) |
18 | SnowBall.CanCollide = false |
19 | SnowBall.Material = Enum.Material.Sand |
20 | SnowBall.BrickColor = BrickColor.White() |
21 | VectorForce.Parent = SnowBall |
22 | Attachment.Parent = SnowBall |
23 | VectorForce.Attachment 0 = Attachment |
24 | VectorForce.Force = Vector 3. new( 0 , 600 ,- 3000 ) |
25 | ParticleEffect.Parent = SnowBall |
27 | ParticleEffect.Transparency = NumberSequence.new( 0.5 ) |
28 | ParticleEffect.Lifetime = NumberRange.new( 1 , 1 ) |
29 | ParticleEffect.Rate = 10 |
30 | ParticleEffect.Rotation = NumberRange.new(- 90 , 90 ) |
31 | ParticleEffect.RotSpeed = NumberRange.new(- 75 , 75 ) |
32 | ParticleEffect:Emit( 10 ) |
34 | SnowBall.Size = SnowBall.Size+Vector 3. new( 1 , 0 , 0 ) |
36 | game:GetService( "Debris" ):AddItem(SnowBall, 3 ) |