-
Notifications
You must be signed in to change notification settings - Fork 0
/
Delete Tool.lua
168 lines (168 loc) · 5.24 KB
/
Delete Tool.lua
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
local wait = task.wait
local function chat(msg)
game:GetService("Players"):Chat(msg)
end
local random = true -- set this to false if you want to use custom delete position
local customdeletepos = CFrame.new(-491323,783321,54662)
local function ivory()
chat("gear me 0000000000000108158379")
end
local lp = game:GetService("Players").LocalPlayer
local function equipivory()
if lp.Backpack:FindFirstChild("IvoryPeriastron") then
lp.Backpack.IvoryPeriastron.Parent = lp.Character
end
end
local function move(target)
if lp.Character:FindFirstChild("IvoryPeriastron") then
local cf = lp.Character.HumanoidRootPart
if not random == true then cf.CFrame = customdeletepos else cf.CFrame = CFrame.new(math.random(-800000,-100000),math.random(-980053,-123387),math.random(-768319,-492917)) end
repeat wait() until lp.Character:FindFirstChild("IvoryPeriastron")
repeat wait() until lp.Character:FindFirstChild("IvoryPeriastron"):FindFirstChild("Remote")
lp.Character.IvoryPeriastron.Remote:FireServer(Enum.KeyCode.E)
local looping = true
coroutine.wrap(function()
while true do
game:GetService('RunService').RenderStepped:Wait()
game.Players.LocalPlayer.Character['Humanoid']:ChangeState(11)
target.RotVelocity = Vector3.new(0,0,0)
target.Velocity = Vector3.new(0,0,0)
cf.CFrame = target.CFrame * CFrame.new(-1*(target.Size.X/2)-(lp.Character.Torso.Size.X/2), 0, 0)
if not looping then break end
end
end)()
coroutine.wrap(function() while looping do wait() game:GetService("Players"):Chat('unpunish me') end end)()
wait(0.3)
looping = false
lp.Character.IvoryPeriastron.Remote:FireServer(Enum.KeyCode.E)
wait(0.1)
chat("respawn me")
end
end
local del = Instance.new("Tool")
del.Name = "Delete"
del.TextureId = "rbxasset://Textures/Hammer.png"
local m = lp:GetMouse()
local con = {}
local sb = Instance.new("SelectionBox")
local spl = Instance.new("SelectionPartLasso")
local b1p
local mov
del.Equipped:Connect(function()
sb.Parent = workspace
spl.Parent = workspace
sb.Color = BrickColor.new("Bright red")
spl.Color = BrickColor.new("Bright red")
mov = m.Move:Connect(function()
if m.Target and m.Target:IsA("BasePart") and not m.Target:IsDescendantOf(lp.Character) then
sb.Adornee = m.Target
spl.Part = m.Target
end
end)
b1p = m.Button1Up:Connect(function()
workspace.FallenPartsDestroyHeight = "nan"
local old = lp.Character.HumanoidRootPart.CFrame
ivory()
repeat task.wait() until lp.Backpack:FindFirstChild("IvoryPeriastron")
equipivory()
if m.Target and m.Target:IsA("BasePart") and not m.Target:IsDescendantOf(lp.Character) then
move(m.Target)
end
wait(0.2)
lp.Character.HumanoidRootPart.CFrame = old
local del = Instance.new("Tool")
del.Name = "Delete"
del.TextureId = "rbxasset://Textures/Hammer.png"
local m = lp:GetMouse()
local con = {}
local sb = Instance.new("SelectionBox")
local spl = Instance.new("SelectionPartLasso")
local b1p
local mov
del.Equipped:Connect(function()
sb.Parent = workspace
spl.Parent = workspace
sb.Color = BrickColor.new("Bright red")
spl.Color = BrickColor.new("Bright red")
mov = m.Move:Connect(function()
if m.Target and m.Target:IsA("BasePart") and not m.Target:IsDescendantOf(lp.Character) then
sb.Adornee = m.Target
spl.Part = m.Target
end
end)
b1p = m.Button1Up:Connect(function()
local old = lp.Character.HumanoidRootPart.CFrame
ivory()
repeat task.wait() until lp.Backpack:FindFirstChild("IvoryPeriastron")
equipivory()
if m.Target and m.Target:IsA("BasePart") and not m.Target:IsDescendantOf(lp.Character) then
move(m.Target)
end
wait(0.2)
lp.Character.HumanoidRootPart.CFrame = old
local del = Instance.new("Tool")
del.Name = "Delete"
del.TextureId = "rbxasset://Textures/Hammer.png"
local m = lp:GetMouse()
local con = {}
local sb = Instance.new("SelectionBox")
local spl = Instance.new("SelectionPartLasso")
local b1p
local mov
del.Equipped:Connect(function()
sb.Parent = workspace
spl.Parent = workspace
sb.Color = BrickColor.new("Bright red")
spl.Color = BrickColor.new("Bright red")
mov = m.Move:Connect(function()
if m.Target and m.Target:IsA("BasePart") and not m.Target:IsDescendantOf(lp.Character) then
sb.Adornee = m.Target
spl.Part = m.Target
end
end)
b1p = m.Button1Up:Connect(function()
local old = lp.Character.HumanoidRootPart.CFrame
ivory()
wait(0.3)
equipivory()
if m.Target and m.Target:IsA("BasePart") and not m.Target:IsDescendantOf(lp.Character) then
move(m.Target)
end
wait(0.2)
lp.Character.HumanoidRootPart.CFrame = old
end)
end)
del.Unequipped:Connect(function()
sb.Parent = nil
spl.Parent = nil
sb.Adornee = nil
spl.Part = nil
b1p:Disconnect()
mov:Disconnect()
end)
del.RequiresHandle = false
del.Parent = lp.Backpack
end)
end)
del.Unequipped:Connect(function()
sb.Parent = nil
spl.Parent = nil
sb.Adornee = nil
spl.Part = nil
b1p:Disconnect()
mov:Disconnect()
end)
del.RequiresHandle = false
del.Parent = lp.Backpack
end)
end)
del.Unequipped:Connect(function()
sb.Parent = nil
spl.Parent = nil
sb.Adornee = nil
spl.Part = nil
b1p:Disconnect()
mov:Disconnect()
end)
del.RequiresHandle = false
del.Parent = lp.Backpack