Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variable
- local player = game.Players.LocalPlayer
- local jobStation = false
- -- Get Station
- models = {}
- for i,v in pairs(workspace.OfficeArea:GetChildren()) do
- if v.Name == "Model" then
- table.insert(models, v)
- end
- end
- jobStation = models[math.random(1, #models)]
- -- Get Answer
- local function eq()
- local shit = workspace:GetChildren()
- for i = 1, #shit do local v = shit[i]
- local gui = v:FindFirstChildOfClass("SurfaceGui")
- if v:IsA("Model") and gui and gui:FindFirstChild("Equasion") and gui.Adornee == jobStation.Model.Part then
- return tostring(loadstring("return "..gui.Equasion.Text)())
- end
- end
- end
- -- Click
- while wait() do
- local answer = eq()
- for i,v in pairs(jobStation.Model.Ans:GetChildren()) do
- if v.S.A.Text == answer then
- fireclickdetector(v.ClickDetector, 1)
- wait()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement