Expected "End" to close?
Asked by
4 years ago Edited 4 years ago
It's a shame I'm already back asking question but does anyone know how to fix this
Full Script
05 | local DivisionsFrame = script.Parent.Parent.Divisions |
06 | local UniformFrame = script.Parent.Parent.Uniforms |
07 | local MorphDir = game.ReplicatedStorage.Morphs |
08 | local Libs = game.ReplicatedStorage.Libs |
13 | for i, v in pairs (MorphDir:GetChildren () ) do |
14 | local Button = Instance.new( "TextButton" ) |
15 | Button.Size = UDim 2. new( 1 , 0 , 0 , 50 ) |
16 | Button.BackgroundTransparency = 1 |
17 | Button.Font = "GothamBlack" |
19 | Button.TextXAlignment = "Center" |
20 | Button.TextColor 3 = Color 3. fromRGB( 255 , 255 , 255 ) |
23 | Button.Parent = DivisionsFrame |
25 | Button.MouseButton 1 Click:connect( function () |
26 | for i, v 2 in pairs (UniformFrame:GetChildren () ) do |
27 | if v 2. ClassName = = "Text Button" then |
32 | for i, v 3 in pairs (v:GetChildren () ) do |
33 | for i, v 3 in pairs (MorphDir:GetChildren () ) do |
34 | local Button = Instance.new( "TextButton" ) |
35 | Button 2. Size = UDim 2. new( 1 , 0 , 0 , 50 ) |
36 | Button 2. BackgroundTransparency = 1 |
37 | Button 2. Font = "GothamBlack" |
39 | Button 2. TextXAlignment = "Center" |
40 | Button 2. TextColor 3 = Color 3. fromRGB( 255 , 255 , 255 ) |
42 | Button 2. Text = v 3. Name |
43 | Button 2. Parent = DivisionsFrame |
--It's the end above thats the problem, I think...
Edit- Heres the output
Players.JustTwiggy.PlayerGui.MorphSelection.Scripts.LocalScript:54: Expected 'end' (to close 'do' at line 18), got <eof>; did you forget to close 'do' at line 38?