|
| 21 Jan 2012 08:26 PM |
I am making a Plug-In, when I made just one little tweek to it, it always says: FogAdjust.lua:2: 'end' expected near 'eof' (Add <> between the eof) In the output. My script: g = nil self = PluginManager():CreatePlugin() toolbar = self:CreateToolbar("Fog Adjust") toolbarbutton = toolbar:CreateButton("Fog Adjuster", "Adjust Fog", "FogPic.png") toolbarbutton.Click:connect(function() if g == nil then local RbxGui = LoadLibrary("RbxGui") g = Instance.new("ScreenGui", game:GetService("CoreGui")) frame = Instance.new("Frame") frame.Parent = g frame.Size = UDim2.new(0,300,0,140) frame.Position = UDim2.new(0,300,0,300) frame.BackgroundColor3 = Color3.new(178,178,178) frame.BorderColor3 = Color3.new(178,178,178) text1 = Instance.new("TextLabel") g = nil self = PluginManager():CreatePlugin() toolbar = self:CreateToolbar("Fog Adjust") toolbarbutton = toolbar:CreateButton("Fog Adjuster", "Adjust Fog", "FogPic.png") toolbarbutton.Click:connect(function() if g == nil then local RbxGui = LoadLibrary("RbxGui") g = Instance.new("ScreenGui", game:GetService("CoreGui")) frame = Instance.new("Frame") frame.Parent = g frame.Size = UDim2.new(0,300,0,140) frame.Position = UDim2.new(0,300,0,300) frame.BackgroundColor3 = Color3.new(178,178,178) frame.BorderColor3 = Color3.new(178,178,178) text1 = Instance.new("TextLabel") text1.Parent = frame text1.TextColor3 = Color3.new(255,255,255) text1.Text = "Fog Adjuster" text1.Position = UDim2.new(0,150,0,20) text1.FontSize = Enum.FontSize.Size24 text2 = Instance.new("TextLabel") text2.Parent = frame text2.Text = "Made By timothyrulze" text2.TextColor3 = Color3.new(255,255,255) text2.FontSize = Enum.FontSize.Size14 text2.Position = UDim2.new(0,150,0,45) start = Instance.new("TextBox") start.Size = UDim2.new(0,250,0,20) start.Position = UDim2.new(0,25,0,60) start.TextColor3 = Color3.new(255,255,255) start.BackgroundColor3 = Color3.new(102,255,255) start.BorderColor3 = Color3.new(102,255,255) start.Text = "FogStart" start.Parent = frame start.FontSize = Enum.FontSize.Size14 second = Instance.new("TextBox") second.Size = UDim2.new(0,250,0,20) second.Position = UDim2.new(0,25,0,90) second.TextColor3 = Color3.new(255,255,255) second.BackgroundColor3 = Color3.new(102,255,255) second.BorderColor3 = Color3.new(102,255,255) second.Text = "FogEnd" second.Parent = frame second.FontSize = Enum.FontSize.Size14 tbutton = Instance.new("TextButton") tbutton.Parent = frame tbutton.Size = UDim2.new(0,250,0,20) tbutton.Position = UDim2.new(0,25,0,115) tbutton.TextColor3 = Color3.new(255,255,255) tbutton.Text = "Change" tbutton.BackgroundColor3 = Color3.new(0,255,0) tbutton.BorderColor3 = Color3.new(0,255,0) tbutton.MouseButton1Click:connect(function() game.Lighting.FogStart = start.Text game.Lighting.FogEnd = second.Text end) else g:remove() g = nil end end) |
|
|
| Report Abuse |
|
|
| 21 Jan 2012 08:28 PM |
| I hope I dont have to restart. It took me over an hour to type. T_T |
|
|
| Report Abuse |
|
| |
|
| 21 Jan 2012 08:30 PM |
| I have no idea what line 2 is, but it seems you're missing an end. |
|
|
| Report Abuse |
|
| |
|
| 21 Jan 2012 08:32 PM |
| Can you please tell me where to add an end? |
|
|
| Report Abuse |
|
|
| 21 Jan 2012 08:33 PM |
| Around line 2. I don't know where line 2 is because the text is so disorganized, and I'm not going to take the time to attempt to find line 2. If you clean up your code, I will be willing to help. |
|
|
| Report Abuse |
|
|
| 21 Jan 2012 08:34 PM |
| Ok, I will clean it up, then see what I got in the output. |
|
|
| Report Abuse |
|
|
| 21 Jan 2012 08:40 PM |
| Forget it, I think I need to start over. T_T |
|
|
| Report Abuse |
|
|
| 21 Jan 2012 08:48 PM |
| Nevermind! I fixed it and now it works! :D What I did wrong? I somehow pasted PlugIn maker a bunch of times. OOPS! X3 |
|
|
| Report Abuse |
|