Expected <eof>, got 'end' at line 110?
The error keeps happening at line 110 which I marked (not on the real script) this is the error Expected <eof>, got 'end' whats wrong???
001 | bolt.Size = Vector 3. new(. 1 ,. 1 ,. 1 ) |
002 | bolt.BrickColor = BrickColor.new( "New Yeller" ) |
003 | bolt.CanCollide = false |
005 | bolt.Material = "Neon" |
010 | local function ShootElectrode(from,too) |
016 | local distance = (from-too).maginute |
018 | if distance > range then distance = range end |
019 | for i = 0 ,distance, step do |
022 | local offset = Vector 3. new( |
023 | math.random(-off,off), |
024 | math.random(-off,off), |
025 | math.random(-off,off) |
028 | local too = from +- (from-too).unit * step + offset |
030 | local p = bolt.Clone() |
032 | local DebrisFolder = workspace:FindFirstChild( "DebrisFolder" ) or Instance.new( "Folder" , workspace) |
033 | DebrisFolder.Name = "DebrisFolder" |
034 | p.Parent = DebrisFolder |
035 | p.Size = Vector 3. new(p.Size.x,p.Size.y,(from-too).magnitude) |
036 | p.CFrame = CFrame.new()(from:Lerp(too, 0.5 ),too) |
038 | game.Debris:AddItem(p, 0.1 ) |
045 | local function ContinueScale(Part) |
046 | local Tweenservice = game:GetService( "TweenService" ) |
047 | local TweenInform = TweenInfo.new( |
049 | Enum.EasingStyle.Linear, |
050 | Enum.EasingDirection.Out, |
057 | Size = Vector 3. new( 2.901 , 2.722 , 35 ) |
060 | local Tween = Tweenservice:Create(Part,TweenInform,Properties) |
067 | Remote.OnServerEvent:Connect( function (Player,Aim,MousePos) |
069 | local Character = Player.Character |
070 | local RootPart = Character:WaitForChild( "HumanoidRootPart" ) |
071 | local RightHand = Character:WaitForChild( "RightHand" ) |
072 | local Humanoid = Character:WaitForChild( "Humanoid" ) |
075 | local DebrisFolder = workspace:FindFirstChild( "DebrisFolder" ) or Instance.new( "Folder" ,workspace) |
076 | DebrisFolder.Name = "DebrisFolder" |
077 | local Animation = Instance.new( "Animation" ) |
079 | local LoadAnimation = Character.Humanoid:LoadAnimation(Animation) |
083 | local BodPos = Instance.new( "BodyPosition" ) |
084 | BodPos.MaxForce = Vector 3. new( 5000000 , 5000000 , 5000000 ) |
086 | BodPos.Position = RootPart.Position |
087 | BodPos.Parent = RootPart |
095 | local YCFrame = RootPart.Position.Y - Humanoid.HipHeight |
096 | local CharParts = Character:GetChildren() |
098 | math.randomseed(tick()) |
100 | for i = 1 ,#CharParts do |
101 | local Current = CharParts [ i ] |
103 | if Current.ClassName = = "Part" or Current.ClassName = = "MeshPart" then |
104 | ShootElectrode(Vector 3. new(RootPart.Position.X - math.random(- 5 ,- 5 ),YCFrame,RootPart.Position.Z - math.random(- 5 , 5 )), Current.Position) |
105 | ShootElectrode(Vector 3. new(RootPart.Position.X - math.random(- 5 ,- 5 ),YCFrame,RootPart.Position.Z - math.random(- 5 , 5 )), Current.Position) |
115 | local DebrisFolder = workspace:FindFirstChild( "DebrisFolder" ) or Instance.new( "Folder" ,workspace) |
116 | DebrisFolder.Name = "DebrisFolder" |
117 | local Hitbox = Instance.new( "Part" ) |
118 | Hitbox.Anchored = false |
119 | Hitbox.Transparency = 1 |
120 | Hitbox.CanCollide = false |
121 | Hitbox.BrickColor = BrickColor.new( "Really red" ) |
122 | Hitbox.Size = Vector 3. new( 5 , 5 , 5 ) |
123 | Hitbox.Parent = DebrisFolder |