View difference between Paste ID: fQuMuLnB and 9AviN7Tg
SHOW: | | - or go back to the newest paste.
1-
-- Farewell Infortality.
1+
-- -- Farewell Infortality.
2
-- Version: 2.82
3
-- Instances:
4
local BloxBurgGUI = Instance.new("ScreenGui")
5
local Frame = Instance.new("Frame")
6
local ImageLabel = Instance.new("ImageLabel")
7
local title = Instance.new("TextLabel")
8
local credit = Instance.new("TextLabel")
9
local howto = Instance.new("TextLabel")
10
local close = Instance.new("TextButton")
11
local start = Instance.new("TextButton")
12
--Properties:
13
BloxBurgGUI.Name = "BloxBurgGUI"
14
BloxBurgGUI.Parent = game.CoreGui
15
16
Frame.Parent = BloxBurgGUI
17
Frame.BackgroundColor3 = Color3.new(1, 1, 1)
18
Frame.Position = UDim2.new(0.613021195, 0, 0.401639342, 0)
19
Frame.Size = UDim2.new(0, 419, 0, 380)
20
21
ImageLabel.Parent = Frame
22
ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
23
ImageLabel.Position = UDim2.new(0.00724332687, 0, -0.00167280436, 0)
24
ImageLabel.Size = UDim2.new(0, 415, 0, 380)
25
ImageLabel.Image = "rbxassetid://1794652238"
26
27
title.Name = "title"
28
title.Parent = Frame
29
title.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
30
title.BackgroundTransparency = 0.40000000596046
31
title.Position = UDim2.new(0.0238661785, 0, 0.0237466805, 0)
32
title.Size = UDim2.new(0, 393, 0, 65)
33
title.Font = Enum.Font.SourceSans
34
title.Text = "BloxBurg"
35
title.TextColor3 = Color3.new(0, 0.866667, 1)
36
title.TextSize = 14
37
38
credit.Name = "credit"
39
credit.Parent = Frame
40
credit.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
41
credit.BackgroundTransparency = 0.40000000596046
42
credit.Position = UDim2.new(0.0190930795, 0, 0.918205798, 0)
43
credit.Size = UDim2.new(0, 396, 0, 25)
44
credit.Font = Enum.Font.SourceSans
45
credit.Text = "Made By Mikwbm"
46
credit.TextColor3 = Color3.new(0, 0.866667, 1)
47
credit.TextSize = 14
48
49
howto.Name = "howto"
50
howto.Parent = Frame
51
howto.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
52
howto.BackgroundTransparency = 0.75
53
howto.Position = UDim2.new(0.0352112688, 0, 0.488188982, 0)
54
howto.Size = UDim2.new(0, 388, 0, 153)
55
howto.Font = Enum.Font.SourceSans
56
howto.Text = "1. Press The \"Press Me\" Button 2. Go to hairdresser job 3. complete a order 4. After you complete one order it will start doin it automaticly 5. Watch youtube and sub to pewdiepie while using afk script"
57
howto.TextColor3 = Color3.new(0, 0.317647, 1)
58
howto.TextSize = 14
59
howto.TextWrapped = true
60
61
close.Name = "close"
62
close.Parent = Frame
63
close.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
64
close.Position = UDim2.new(0.89498806, 0, -0.00263157906, 0)
65
close.Size = UDim2.new(0, 44, 0, 42)
66
close.Font = Enum.Font.SourceSans
67
close.Text = "X"
68
close.TextColor3 = Color3.new(0.0156863, 1, 0)
69
close.TextSize = 14
70
close.MouseButton1Click:connect(function()
71
	Frame.Visible = false
72
end)
73
74
75
76
start.Name = "start"
77
start.Parent = Frame
78
start.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
79
start.BackgroundTransparency = 0.44999998807907
80
start.Position = UDim2.new(0.0512017608, 0, 0.248551726, 0)
81
start.Size = UDim2.new(0, 381, 0, 63)
82
start.Font = Enum.Font.SourceSans
83
start.Text = "Press Me"
84
start.TextColor3 = Color3.new(0.215686, 1, 0)
85
start.TextSize = 14
86
start.MouseButton1Click:connect(function()
87
	-- Variables -- 
88
local remote = nil
89
local orderInc = 0
90
local workstationTable = {}
91
92
-- Metatable --
93
function setupMetatable()
94
    warn("[?] Setting up the Metamethods.")
95
96
    -- Metatable and Metamethods --
97
    local metatable = getrawmetatable(game)
98
    local backupNamecall = metatable.__namecall
99
100
    -- Make metatable writeable --
101
    local setreadonly = make_writeable or setreadonly
102
    setreadonly(metatable, false)
103
104
    -- Overwrite __namecall metamethod --
105
    metatable.__namecall = function(...)
106
        local args = {...}
107
        if(args[#args] == "FireServer") then
108
            if(args[2] and type(args[2]) == "table" and args[2]["Order"] and not workstationTable[args[2]["Workstation"]]) then
109
                warn("[!] Remote and Workstation have been found.")
110
                remote = args[1]
111
                
112
                doWork(args[2]["Workstation"])
113
            end
114
        end
115
        return backupNamecall(...)
116
    end
117
end
118
119
-- Get Order --
120
function getOrder(workstation)
121
    local orderValue = workstation.Occupied.Value:WaitForChild("Order")
122
    
123
    return {
124
        orderValue.Style.Value,
125
        orderValue.Color.Value
126
    }
127
end
128
129
-- Main --
130
warn("[?] Welcome to Hairdressers Farm Script!")
131
warn("[?] By Luaa #0381")
132
warn("[-] Go to work at the Hairdressers.")
133
warn("[-] Complete an order.")
134
warn("[-] Magic, it will now complete orders.")
135
setupMetatable()
136
137
function doWork(workstation)
138
    local workEvent = nil
139
    local inUseEvent = nil
140
    workstationTable[workstation] = true
141
142
    workEvent = workstation.Occupied.Changed:Connect(function(value)
143
        if(value == nil) then return end
144
145
        local order = getOrder(workstation)
146
        remote:FireServer({
147
            Type = "FinishHair",
148
            Workstation = workstation,
149
            Order = order
150
        })
151
152
        orderInc = orderInc + 1
153
        local date = os.date("*t", now)
154
        warn("[!] Finished Order => " .. orderInc .. " => " .. date["hour"] .. ":" .. date["min"])
155
    end)
156
157
    inUseEvent = workstation.InUse.Changed:Connect(function(value)
158
        if(value ~= game:GetService("Players").LocalPlayer and workEvent ~= nil) then
159
            warn("[?] You have changed your workstation, stopping old workEvent and resetting metamethod.")
160
            workstationTable = {}
161
            workEvent:Disconnect() 
162
            inUseEvent:Disconnect()
163
        end
164
    end)
165
end
166
end)
167
-- Scripts:.
168
-- Version: 2.82
169
-- Instances:
170
local BloxBurgGUI = Instance.new("ScreenGui")
171
local Frame = Instance.new("Frame")
172
local ImageLabel = Instance.new("ImageLabel")
173
local title = Instance.new("TextLabel")
174
local credit = Instance.new("TextLabel")
175
local howto = Instance.new("TextLabel")
176
local close = Instance.new("TextButton")
177
local start = Instance.new("TextButton")
178
--Properties:
179
BloxBurgGUI.Name = "BloxBurgGUI"
180
BloxBurgGUI.Parent = game.CoreGui
181
182
Frame.Parent = BloxBurgGUI
183
Frame.BackgroundColor3 = Color3.new(1, 1, 1)
184
Frame.Position = UDim2.new(0.613021195, 0, 0.401639342, 0)
185
Frame.Size = UDim2.new(0, 419, 0, 380)
186
187
ImageLabel.Parent = Frame
188
ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
189
ImageLabel.Position = UDim2.new(0.00724332687, 0, -0.00167280436, 0)
190
ImageLabel.Size = UDim2.new(0, 415, 0, 380)
191
ImageLabel.Image = "rbxassetid://1794652238"
192
193
title.Name = "title"
194
title.Parent = Frame
195
title.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
196
title.BackgroundTransparency = 0.40000000596046
197
title.Position = UDim2.new(0.0238661785, 0, 0.0237466805, 0)
198
title.Size = UDim2.new(0, 393, 0, 65)
199
title.Font = Enum.Font.SourceSans
200
title.Text = "BloxBurg"
201
title.TextColor3 = Color3.new(0, 0.866667, 1)
202
title.TextSize = 14
203
204
credit.Name = "credit"
205
credit.Parent = Frame
206
credit.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
207
credit.BackgroundTransparency = 0.40000000596046
208
credit.Position = UDim2.new(0.0190930795, 0, 0.918205798, 0)
209
credit.Size = UDim2.new(0, 396, 0, 25)
210
credit.Font = Enum.Font.SourceSans
211
credit.Text = "Made By Mikwbm"
212
credit.TextColor3 = Color3.new(0, 0.866667, 1)
213
credit.TextSize = 14
214
215
howto.Name = "howto"
216
howto.Parent = Frame
217
howto.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
218
howto.BackgroundTransparency = 0.75
219
howto.Position = UDim2.new(0.0352112688, 0, 0.488188982, 0)
220
howto.Size = UDim2.new(0, 388, 0, 153)
221
howto.Font = Enum.Font.SourceSans
222
howto.Text = "1. Press The \"Press Me\" Button 2. Go to hairdresser job 3. complete a order 4. After you complete one order it will start doin it automaticly 5. Watch youtube and sub to pewdiepie while using afk script"
223
howto.TextColor3 = Color3.new(0, 0.317647, 1)
224
howto.TextSize = 14
225
howto.TextWrapped = true
226
227
close.Name = "close"
228
close.Parent = Frame
229
close.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
230
close.Position = UDim2.new(0.89498806, 0, -0.00263157906, 0)
231
close.Size = UDim2.new(0, 44, 0, 42)
232
close.Font = Enum.Font.SourceSans
233
close.Text = "X"
234
close.TextColor3 = Color3.new(0.0156863, 1, 0)
235
close.TextSize = 14
236
close.MouseButton1Click:connect(function()
237
	Frame.Visible = false
238
end)
239
240
241
242
start.Name = "start"
243
start.Parent = Frame
244
start.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
245
start.BackgroundTransparency = 0.44999998807907
246
start.Position = UDim2.new(0.0512017608, 0, 0.248551726, 0)
247
start.Size = UDim2.new(0, 381, 0, 63)
248
start.Font = Enum.Font.SourceSans
249
start.Text = "Press Me"
250
start.TextColor3 = Color3.new(0.215686, 1, 0)
251
start.TextSize = 14
252
start.MouseButton1Click:connect(function()
253
	-- Variables -- 
254
local remote = nil
255
local orderInc = 0
256
local workstationTable = {}
257
258
-- Metatable --
259
function setupMetatable()
260
    warn("[?] Setting up the Metamethods.")
261
262
    -- Metatable and Metamethods --
263
    local metatable = getrawmetatable(game)
264
    local backupNamecall = metatable.__namecall
265
266
    -- Make metatable writeable --
267
    local setreadonly = make_writeable or setreadonly
268
    setreadonly(metatable, false)
269
270
    -- Overwrite __namecall metamethod --
271
    metatable.__namecall = function(...)
272
        local args = {...}
273
        if(args[#args] == "FireServer") then
274
            if(args[2] and type(args[2]) == "table" and args[2]["Order"] and not workstationTable[args[2]["Workstation"]]) then
275
                warn("[!] Remote and Workstation have been found.")
276
                remote = args[1]
277
                
278
                doWork(args[2]["Workstation"])
279
            end
280
        end
281
        return backupNamecall(...)
282
    end
283
end
284
285
-- Get Order --
286
function getOrder(workstation)
287
    local orderValue = workstation.Occupied.Value:WaitForChild("Order")
288
    
289
    return {
290
        orderValue.Style.Value,
291
        orderValue.Color.Value
292
    }
293
end
294
295
-- Main --
296
warn("[?] Welcome to Hairdressers Farm Script!")
297
warn("[?] By Luaa #0381")
298
warn("[-] Go to work at the Hairdressers.")
299
warn("[-] Complete an order.")
300
warn("[-] Magic, it will now complete orders.")
301
setupMetatable()
302
303
function doWork(workstation)
304
    local workEvent = nil
305
    local inUseEvent = nil
306
    workstationTable[workstation] = true
307
308
    workEvent = workstation.Occupied.Changed:Connect(function(value)
309
        if(value == nil) then return end
310
311
        local order = getOrder(workstation)
312
        remote:FireServer({
313
            Type = "FinishHair",
314
            Workstation = workstation,
315
            Order = order
316
        })
317
318
        orderInc = orderInc + 1
319
        local date = os.date("*t", now)
320
        warn("[!] Finished Order => " .. orderInc .. " => " .. date["hour"] .. ":" .. date["min"])
321
    end)
322
323
    inUseEvent = workstation.InUse.Changed:Connect(function(value)
324
        if(value ~= game:GetService("Players").LocalPlayer and workEvent ~= nil) then
325
            warn("[?] You have changed your workstation, stopping old workEvent and resetting metamethod.")
326
            workstationTable = {}
327
            workEvent:Disconnect() 
328
            inUseEvent:Disconnect()
329
        end
330
    end)
331
end
332
end)
333
-- Scripts: