Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Scripters test--
- Allowed = false
- local Player = game.Players.LocalPlayer
- PlayerGui = Player:WaitForChild("PlayerGui")
- Screen = Instance.new("ScreenGui",PlayerGui)
- local Tests = {}
- function Addtest(Text,Answer,noanswer,Title)
- table.insert(Tests,{Text=Text,Answer=Answer,NeedAnswer=noanswer,Title=(Title or "Scripters test")})
- end
- Addtest("In this test we will make sure you know how to script, if you can script, these questions should be easy.\ntype continue to go on.","continue")
- Addtest("What language is robloxes scripting langauge?",{"Lua","lua","lau"})
- Addtest("How do you insert text into the output?","print")
- Addtest("What is a table?",function(txt) if txt:find("table") and #txt>10 then return true end end)
- Addtest("What is a function?",function(txt) if (txt:find("function") or txt:find("run") or txt:find("execute") or txt:find("args") or txt:find("return")) and #txt>10 then return true end end)
- Level = 0
- game:GetService("RunService").RenderStepped:connect(function()
- if not Allowed then
- game:GetService("StarterGui"):SetCoreGuiEnabled(4,false)
- end
- end)
- for i,v in pairs(Tests) do
- local n = Level
- local Gui = Instance.new("Frame",Screen)
- Gui.Size = UDim2.new(1,0,1,0)
- Gui.BackgroundColor3 = Color3.new(0,0,0)
- Gui.ZIndex = 9
- local Title = Instance.new("TextLabel",Gui)
- Title.Text = v.Title
- Title.BackgroundTransparency = 1
- Title.FontSize = "Size24"
- Title.TextColor3 = Color3.new(0.8,0.8,0.8)
- Title.Size = UDim2.new(1,0,0.1,0)
- Title.ZIndex = 10
- local Ticker = Instance.new("TextLabel",Gui)
- Ticker.ZIndex = 10
- Ticker.BackgroundTransparency = 1
- Ticker.Text = 120
- Ticker.FontSize = "Size24"
- Ticker.Size = UDim2.new(0.1,0,0.1,0)
- Ticker.TextColor3 = Title.TextColor3
- local Question = Instance.new("TextLabel",Gui)
- Question.Text = v.Text
- Question.TextScaled = true
- Question.BackgroundTransparency = 1
- Question.TextColor3 = Color3.new(1,1,1)
- Question.Size = UDim2.new(0.8,0,0.5,0)
- Question.Position = UDim2.new(0.1,0,0.1,0)
- Question.ZIndex = 10
- local Answer = Instance.new("TextBox",Gui)
- Answer.Position = UDim2.new(0,0,0.7,0)
- Answer.Size = UDim2.new(1,0,0.2,0)
- Answer.Text = "Answer here"
- Answer.ZIndex = 10
- Answer.TextScaled = true
- Answer.BackgroundColor3 = Color3.new(1,1,1)
- Answer.FocusLost:connect(function(t)
- if t then
- if type(v.Answer) == "string" then
- if Answer.Text:find(v.Answer) then
- Level = Level +1
- end
- elseif type(v.Answer) == 'function' then
- if v.Answer(Answer.Text) then
- Level = Level+1
- end
- elseif type(v.Answer) == 'table' then
- for _,g in pairs(v.Answer) do
- if Answer.Text:find(_) or Answer.Text:find(g) then
- Level = Level +1
- end
- end
- end
- end
- end)
- local time = tick()
- repeat wait() Ticker.Text = 120-math.ceil(tick()-time) if tick()-time > 120 then Answer:Destroy() Ticker:Destroy() Title:Destroy() Question.Size = UDim2.new(1,0,1,0) Question.Position = UDim2.new() Question.Text = "Your out of time, you are now being kicked." wait(3) Player:Kick() end until Level > n
- Gui:Destroy()
- end
- Allowed = true
- game:GetService("StarterGui"):SetCoreGuiEnabled(4,true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement