Why is the text on line 265 a bad argument??
I have a textBox search engine script but it didn't work, When I looked at the output it said "14:38:10.825 - Players.Player1.PlayerGui.LocalScript:265: bad argument #3 to 'Text' (string expected, got boolean)"
I don't know what that means and yes I did look around and didn't find anything, Here is the part of the script that it is yelling at me for:
01 | e.FocusLost:connect( function () |
02 | local text = Type.Text |
03 | if text = = "spiderman90438" then |
04 | textone.Text = "spiderman90438 is the Owner & Founder of Roogle, He currently is a Ro-Wrestler, Developer, And Youtuber," and texttwo.Text = = "spiderman90438 signed into roblox at Nov, 28th, 2012, He is a 1x U.S champion and 1x Warriors champion, He is currently looking for developer offers." |
05 | elseif text = = "spiderman90438" then |
06 | textone.Text = "spiderman90438 is the owner of roogle" |
07 | elseif text = = "Puppies" then |
08 | textone.Text = "Puppies are cute." |
Here is the whole script in case you need it:
001 | local screenGui = Instance.new( "ScreenGui" ) |
002 | screenGui.Parent = script.Parent |
005 | local frame = Instance.new( "Frame" ) |
006 | frame.Parent = screenGui |
007 | frame.Position = UDim 2. new( 0 , - 100 , 0 , - 100 ) |
008 | frame.Size = UDim 2. new( 0 , 2500 , 0 , 2500 ) |
009 | frame.BackgroundColor 3 = BrickColor.White().Color |
014 | local textLabel = Instance.new( "TextLabel" ) |
015 | textLabel.Parent = screenGui |
016 | textLabel.Position = UDim 2. new( 0 , 700 , 0 , 350 ) |
017 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
018 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
020 | textLabel.Font = "Legacy" |
021 | textLabel.FontSize = 14 |
022 | textLabel.BackgroundTransparency = 1 |
023 | textLabel.TextColor 3 = BrickColor.Green().Color |
027 | textLabel.Text = "Wel" |
029 | textLabel.Text = "Welc" |
031 | textLabel.Text = "Weloc" |
033 | textLabel.Text = "Weloco" |
035 | textLabel.Text = "Weloc" |
037 | textLabel.Text = "Welo" |
039 | textLabel.Text = "Wel" |
041 | textLabel.Text = "Welc" |
043 | textLabel.Text = "Welco" |
045 | textLabel.Text = "Welcom" |
047 | textLabel.Text = "Welcome" |
049 | textLabel.Text = "Welcome " |
051 | textLabel.Text = "Welcome T" |
053 | textLabel.Text = "Welcome To" |
059 | local textLabel = Instance.new( "TextLabel" ) |
060 | textLabel.Parent = screenGui |
061 | textLabel.Position = UDim 2. new( 0 , 700 , 0 , 350 ) |
062 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
063 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
064 | textLabel.Text = "Roogle" |
065 | textLabel.Font = "Legacy" |
066 | textLabel.FontSize = 14 |
067 | textLabel.BackgroundTransparency = 1 |
068 | textLabel.TextColor 3 = BrickColor.Red().Color |
071 | textLabel.TextTransparency = i/ 100 |
081 | local textLabel = Instance.new( "TextLabel" ) |
082 | textLabel.Parent = screenGui |
083 | textLabel.Position = UDim 2. new( 0 , 700 , 0 , 350 ) |
084 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
085 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
086 | textLabel.Text = "PM the owner of the game/spiderman90438 to put a Game/Group in the system" |
087 | textLabel.Font = "Legacy" |
088 | textLabel.FontSize = 5 |
089 | textLabel.BackgroundTransparency = 1 |
090 | textLabel.TextColor 3 = BrickColor.Red().Color |
100 | local Type = Instance.new( "TextBox" ) |
101 | Type.Parent = screenGui |
102 | Type.Position = UDim 2. new( 0 , 425 , 0 , 200 ) |
103 | Type.Size = UDim 2. new( 0 , 750 , 0 , 50 ) |
104 | Type.BackgroundColor 3 = BrickColor.White().Color |
105 | Type.Text = "Roogle Searchbar | Click me and type !" |
108 | Type.BorderColor 3 = BrickColor.White().Color |
111 | local textLabel = Instance.new( "TextLabel" ) |
112 | textLabel.Parent = screenGui |
113 | textLabel.Position = UDim 2. new( 0 , 550 , 0 , 100 ) |
114 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
115 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
117 | textLabel.Font = "Legacy" |
118 | textLabel.FontSize = 14 |
119 | textLabel.BackgroundTransparency = 1 |
120 | textLabel.TextColor 3 = BrickColor.Blue().Color |
123 | local textLabel = Instance.new( "TextLabel" ) |
124 | textLabel.Parent = screenGui |
125 | textLabel.Position = UDim 2. new( 0 , 625 , 0 , 100 ) |
126 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
127 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
129 | textLabel.Font = "Legacy" |
130 | textLabel.FontSize = 14 |
131 | textLabel.BackgroundTransparency = 1 |
132 | textLabel.TextColor 3 = BrickColor.Red().Color |
135 | local textLabel = Instance.new( "TextLabel" ) |
136 | textLabel.Parent = screenGui |
137 | textLabel.Position = UDim 2. new( 0 , 700 , 0 , 100 ) |
138 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
139 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
141 | textLabel.Font = "Legacy" |
142 | textLabel.FontSize = 14 |
143 | textLabel.BackgroundTransparency = 1 |
144 | textLabel.TextColor 3 = BrickColor.Yellow().Color |
147 | local textLabel = Instance.new( "TextLabel" ) |
148 | textLabel.Parent = screenGui |
149 | textLabel.Position = UDim 2. new( 0 , 775 , 0 , 100 ) |
150 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
151 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
153 | textLabel.Font = "Legacy" |
154 | textLabel.FontSize = 14 |
155 | textLabel.BackgroundTransparency = 1 |
156 | textLabel.TextColor 3 = BrickColor.Blue().Color |
159 | local textLabel = Instance.new( "TextLabel" ) |
160 | textLabel.Parent = screenGui |
161 | textLabel.Position = UDim 2. new( 0 , 825 , 0 , 100 ) |
162 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
163 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
165 | textLabel.Font = "Legacy" |
166 | textLabel.FontSize = 14 |
167 | textLabel.BackgroundTransparency = 1 |
168 | textLabel.TextColor 3 = BrickColor.Green().Color |
171 | local textLabel = Instance.new( "TextLabel" ) |
172 | textLabel.Parent = screenGui |
173 | textLabel.Position = UDim 2. new( 0 , 875 , 0 , 100 ) |
174 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
175 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
177 | textLabel.Font = "Legacy" |
178 | textLabel.FontSize = 14 |
179 | textLabel.BackgroundTransparency = 1 |
180 | textLabel.TextColor 3 = BrickColor.Red().Color |
183 | local textLabel = Instance.new( "TextLabel" ) |
184 | textLabel.Parent = screenGui |
185 | textLabel.Position = UDim 2. new( 0 , 650 , 0 , - 8 ) |
186 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
187 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
188 | textLabel.Text = "Roogle is protected by Roblox Rules - Illegal Activitys, Tips: If you search something it is gonna be politically correct, For ex: Stickmasterluke not stickmasterluke or stickMasterluke " |
189 | textLabel.FontSize = 2 |
190 | textLabel.BackgroundTransparency = 1 |
193 | local textLabel = Instance.new( "TextLabel" ) |
194 | textLabel.Parent = screenGui |
195 | textLabel.Position = UDim 2. new( 0 , 650 , 0 , 4 ) |
196 | textLabel.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
197 | textLabel.BackgroundColor 3 = BrickColor.White().Color |
198 | textLabel.Text = "Keywords: Unknown games | Games | Restaurants | Groups | All of the genres | Unknown people | Wrestling Groups | Restaurant Groups | Sponsors | Youtubers | Famous People | Help | " |
199 | textLabel.FontSize = 2 |
200 | textLabel.BackgroundTransparency = 1 |
204 | local textone = Instance.new( "TextLabel" ) |
205 | textone.Parent = screenGui |
206 | textone.Position = UDim 2. new( 0 , 775 , 0 , 400 ) |
207 | textone.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
208 | textone.BackgroundColor 3 = BrickColor.White().Color |
210 | textone.Font = "Legacy" |
212 | textone.BackgroundTransparency = 1 |
215 | local texttwo = Instance.new( "TextLabel" ) |
216 | texttwo.Parent = screenGui |
217 | texttwo.Position = UDim 2. new( 0 , 775 , 0 , 435 ) |
218 | texttwo.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
219 | texttwo.BackgroundColor 3 = BrickColor.White().Color |
221 | texttwo.Font = "Legacy" |
223 | texttwo.BackgroundTransparency = 1 |
226 | local textone = Instance.new( "TextLabel" ) |
227 | textone.Parent = screenGui |
228 | textone.Position = UDim 2. new( 0 , 775 , 0 , 400 ) |
229 | textone.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
230 | textone.BackgroundColor 3 = BrickColor.White().Color |
232 | textone.Font = "Legacy" |
234 | textone.BackgroundTransparency = 1 |
237 | local textone = Instance.new( "TextLabel" ) |
238 | textone.Parent = screenGui |
239 | textone.Position = UDim 2. new( 0 , 775 , 0 , 400 ) |
240 | textone.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
241 | textone.BackgroundColor 3 = BrickColor.White().Color |
243 | textone.Font = "Legacy" |
245 | textone.BackgroundTransparency = 1 |
248 | local textone = Instance.new( "TextLabel" ) |
249 | textone.Parent = screenGui |
250 | textone.Position = UDim 2. new( 0 , 775 , 0 , 400 ) |
251 | textone.Size = UDim 2. new( 0 , 150 , 0 , 50 ) |
252 | textone.BackgroundColor 3 = BrickColor.White().Color |
254 | textone.Font = "Legacy" |
256 | textone.BackgroundTransparency = 1 |
259 | Type.FocusLost:connect( function () |
260 | local text = Type.Text |
261 | if text = = "spiderman90438" then |
262 | textone.Text = "spiderman90438 is the Owner & Founder of Roogle, He currently is a Ro-Wrestler, Developer, And Youtuber," and texttwo.Text = = "spiderman90438 signed into roblox at Nov, 28th, 2012, He is a 1x U.S champion and 1x Warriors champion, He is currently looking for developer offers." |
263 | elseif text = = "spiderman90438" then |
264 | textone.Text = "spiderman90438 is the owner of roogle" |
265 | elseif text = = "Puppies" then |
266 | textone.Text = "Puppies are cute." |
On line 265 I put and
to do both text lines but I think it was wrong, I honestly looked and I can't find anything except for the bad argument on text, I don't know what that means, Please explain?