This repository was archived by the owner on Apr 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMaple.lua
More file actions
51 lines (45 loc) · 2.24 KB
/
Copy pathMaple.lua
File metadata and controls
51 lines (45 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
local hint = Instance.new("Hint",Instance.new("Folder",game:GetService("CoreGui")))
hint.Text = "\nYou can get the script without going through ads here:\nhttp://gg.gg/mscript"
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local rs = game:GetService("RunService")
local lp = Players.LocalPlayer
ReplicatedStorage:WaitForChild("Packages"):WaitForChild("Knit"):WaitForChild("Services"):WaitForChild("RolesService"):WaitForChild("__comm__"):WaitForChild("RE"):WaitForChild("SetRole"):FireServer("Janitor")
if not lp.Backpack:FindFirstChild("Mop") then
ReplicatedStorage:WaitForChild("Events"):WaitForChild("Equip"):FireServer(ReplicatedStorage:WaitForChild("Tools"):WaitForChild("Mop"))
end
local Garbage = workspace:WaitForChild("Garbage")
workspace.FallenPartsDestroyHeight = 0/0 --lazy
repeat task.wait() lp.Character:FindFirstChildWhichIsA("Humanoid"):UnequipTools() until lp.Backpack:FindFirstChild("Mop")
local Mop = lp.Backpack:FindFirstChild("Mop")
local Bottom = Mop:WaitForChild("Bottom")
if not hint then lp["\75\105\99\107"](lp,"Do not") end
hint:GetPropertyChangedSignal("Parent"):Connect(function()
lp.Kick(lp,"Do not touch my hint >:O")
end)
lp.Character:FindFirstChildWhichIsA("Humanoid"):GetPropertyChangedSignal("Sit"):Connect(function() --antisit
rs.Heartbeat:Wait()
lp.Character:FindFirstChildWhichIsA("Humanoid").Sit = false
end)
local currentlycleaning = false
local function clean(Spill)
if Spill:IsA("BasePart") then
if currentlycleaning then repeat task.wait() until not currentlycleaning end
currentlycleaning = true
local oldpos = lp.Character:FindFirstChildWhichIsA("Humanoid").RootPart.CFrame
repeat
Mop.Parent = lp.Character
lp.Character:FindFirstChildWhichIsA("Humanoid").RootPart.CFrame = Spill.CFrame
firetouchinterest(Bottom,Spill,0)
Mop:Activate()
firetouchinterest(Bottom,Spill,1)
rs.Heartbeat:Wait()
until not Spill or not Spill.Parent
currentlycleaning = false
lp.Character:FindFirstChildWhichIsA("Humanoid").RootPart.CFrame = oldpos
end
end
Garbage.ChildAdded:Connect(clean)
for i,v in next, Garbage:GetChildren() do
clean(v)
end