Answered by
8 years ago Edited 8 years ago
You're using an extra end and using a connect function, which requires an ending )
If you use a normal function, you don't have to use the )
; however, if you use it in a connect function, you need to have a )
on the end. I.e end)
.
Sorry if I made that confusing :P.
01 | Mouse.KeyDown:connect( function (key) |
03 | if game.Players.LocalPlayer.leaderstats.Level.Value = = 1 then |
05 | game.Players.LocalPlayer.leaderstats.Exp.Value = game.Players.LocalPlayer.leaderstats.Exp.Value + 10 |
06 | Part = Instance.new( "Part" , workspace) |
08 | Part.CanCollide = false |
10 | c = game.Workspace [ "Clone Scripts" ] .FireBoltDamage:Clone() |
13 | FireParticles = Instance.new( "ParticleEmitter" , Part) |
14 | FireParticles.Color = ColorSequence.new(Color 3. fromRGB( 255 , 128 , 16 )) |
15 | FireParticles.Lifetime = NumberRange.new( 0.1 , 0.5 ) |
16 | FireParticles.LightEmission = 0.25 |
17 | FireParticles.Size = NumberSequence.new( 10 ) |
18 | FireParticles.LockedToPart = true |
19 | FireParticles.Speed = NumberRange.new( 1 ) |
20 | FireParticles.Rate = 20 |
21 | PartMovement = Instance.new( "BodyVelocity" , Part) |
22 | Part.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new( 1 , 1 , - 5 ) |
23 | Part.BodyVelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 85 |
27 | game.Players.LocalPlayer.leaderstats.Exp.Value = game.Players.LocalPlayer.leaderstats.Exp.Value + 10 |
28 | Part = Instance.new( "Part" , workspace) |
29 | Part.CanCollide = false |
31 | c = game.Workspace [ "Clone Scripts" ] .FireBoltDamage:Clone() |
34 | FireParticles = Instance.new( "ParticleEmitter" , Part) |
35 | FireParticles.Color = ColorSequence.new(Color 3. fromRGB( 255 , 128 , 16 )) |
36 | FireParticles.Lifetime = NumberRange.new( 0.1 , 0.5 ) |
37 | FireParticles.LightEmission = 0.25 |
38 | FireParticles.Size = NumberSequence.new( 10 ) |
39 | FireParticles.LockedToPart = true |
40 | FireParticles.Speed = NumberRange.new( 1 ) |
41 | FireParticles.Rate = 20 |
42 | PartMovement = Instance.new( "BodyVelocity" , Part) |
43 | Part.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new( 1 , 1 , - 5 ) |
44 | Part.BodyVelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 85 |
48 | game.Players.LocalPlayer.leaderstats.Exp.Value = game.Players.LocalPlayer.leaderstats.Exp.Value + 10 |
49 | Part = Instance.new( "Part" , workspace) |
50 | Part.CanCollide = false |
52 | c = game.Workspace [ "Clone Scripts" ] .FireBoltDamage:Clone() |
55 | FireParticles = Instance.new( "ParticleEmitter" , Part) |
56 | FireParticles.Color = ColorSequence.new(Color 3. fromRGB( 255 , 128 , 16 )) |
57 | FireParticles.Lifetime = NumberRange.new( 0.1 , 0.5 ) |
58 | FireParticles.LightEmission = 0.25 |
59 | FireParticles.Size = NumberSequence.new( 10 ) |
60 | FireParticles.LockedToPart = true |
61 | FireParticles.Speed = NumberRange.new( 1 ) |
62 | FireParticles.Rate = 20 |
63 | PartMovement = Instance.new( "BodyVelocity" , Part) |
64 | Part.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new( 1 , 1 , - 5 ) |
65 | Part.BodyVelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 85 |
69 | game.Players.LocalPlayer.leaderstats.Exp.Value = game.Players.LocalPlayer.leaderstats.Exp.Value + 10 |
70 | Part = Instance.new( "Part" , workspace) |
71 | Part.CanCollide = false |
73 | c = game.Workspace [ "Clone Scripts" ] .FireBoltDamage:Clone() |
76 | FireParticles = Instance.new( "ParticleEmitter" , Part) |
77 | FireParticles.Color = ColorSequence.new(Color 3. fromRGB( 255 , 128 , 16 )) |
78 | FireParticles.Lifetime = NumberRange.new( 0.1 , 0.5 ) |
79 | FireParticles.LightEmission = 0.25 |
80 | FireParticles.Size = NumberSequence.new( 10 ) |
81 | FireParticles.LockedToPart = true |
82 | FireParticles.Speed = NumberRange.new( 1 ) |
83 | FireParticles.Rate = 20 |
84 | PartMovement = Instance.new( "BodyVelocity" , Part) |
85 | Part.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new( 1 , 1 , - 5 ) |
86 | Part.BodyVelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 85 |