View difference between Paste ID: g0FeEnrB and bnWK9G9M
SHOW: | | - or go back to the newest paste.
1
--Made by Hirari_Tear, credits to expro for the GUI--
2
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
5
local RealPlayer = Player
6
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
7
8
local Handle = Instance.new('Part')
9
10
local Mesh = Instance.new('SpecialMesh')
11
12
local Death = Instance.new('Tool')
13-
Death.Parent = game.Players.LocalPlayer.Backpack
13+
14
Death.Name = "Death Note"
15
16
Handle.Name = "Handle"
17
18
Death.Parent = owner.LocalPlayer.Backpack
19
20
Death.GripForward = Vector3.new(0.331, -0.766, 0.551)
21
22
Death.GripPos = Vector3.new(-0.8, 0, -0.8)
23
24
Death.GripRight = Vector3.new(-0.943, -0.297, 0.152)
25
26
Death.GripUp = Vector3.new(-0.048, 0.57, 0.82)
27
28
Death.ToolTip = "Kill your fucking rival"
29
30
Handle.Parent = Death
31
32
Mesh.Parent = Handle
33
34
Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
35
36
Mesh.TextureId = "http://www.roblox.com/asset/?id=18276952"
37
38
Mesh.Scale = Vector3.new(0.55, 0.174, 0.6)
39
40
Handle.Rotation = Vector3.new(0,-90,0)
41
42
Death.Equipped:connect(function(mouse)
43
44
local Bounce = Enum.EasingStyle.Bounce
45
46
local Quad = Enum.EasingStyle.Quad
47-
local ScreenGui = Instance.new("ScreenGui", game.Players["LocalPlayer"].PlayerGui)
47+
48
local Normal = Enum.EasingStyle.Linear
49
50
51
52
local ScreenGui = Instance.new("ScreenGui", owner["LocalPlayer"].PlayerGui)
53
54
ScreenGui.Name = "Death Note"
55
56
57
58
local open = Instance.new("ImageButton", ScreenGui)
59
60
open.Position = UDim2.new(1, -110, 1, 500)
61
62
open.Size = UDim2.new(0, 100,0, 150)
63
64
open.Image = "rbxassetid://18536731"
65
66
open:TweenPosition(UDim2.new(1, -110, 1, -150), "In", Bounce, 0.8, true)
67
68
69
70
local Note = Instance.new("Frame", ScreenGui)
71
72
Note.Active = true
73
74
Note.Position = UDim2.new(1, -321, 1, 500)
75
76
Note.Size = UDim2.new(0, 320,0, 250)
77
78
Note.Visible = false
79
80
Note.Draggable = true
81
82
83
84
open.MouseButton1Down:connect(function()
85
86
open:TweenPosition(UDim2.new(open.Position.X.Scale,open.Position.X.Offset, 1, 500), "Out", Normal, 0.8, true)
87
88
wait(0.30)
89
90
open.Visible = false
91
92
Note.Visible = true
93
94
Note.Position = UDim2.new(1, -321, 1, 500)
95
96
Note:TweenPosition(UDim2.new(1, -321, 1, -251), "In", Normal, 0.5, true)
97
98
end)
99
100
101
102
local bg = Instance.new("Frame", Note)
103
104
bg.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
105
106
bg.Size = UDim2.new(0, 160,0, 250)
107
108
bg.ZIndex = 2
109
110
111
112
-- Background
113
114
115
116
local close = Instance.new("TextButton", bg)
117
118
close.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
119
120
close.BackgroundTransparency = 1
121
122
close.Position = UDim2.new(0, 8,0, 10)
123
124
close.Size = UDim2.new(0, 10,0, 10)
125
126
close.ZIndex = 4
127
128
close.Font = "Cartoon"
129
130
close.Text = "X"
131
132
close.TextColor3 = Color3.fromRGB(255, 255, 255)
133
134
close.TextSize = "17"
135
136
137
138
close.MouseButton1Down:connect(function()
139
140
Note:TweenPosition(UDim2.new(Note.Position.X.Scale,Note.Position.X.Offset,1, 500), "Out", Normal, 0.5, true)
141
142
wait(0.30)
143
144
Note.Visible = false
145
146
open.Visible = true
147
148
open:TweenPosition(UDim2.new(1, -110, 1, -150), "In", Normal, 0.8, true)
149
150
end)
151
152
153
154
local image1 = Instance.new("ImageLabel", bg)
155
156
image1.BackgroundTransparency = 1
157
158
image1.Size = UDim2.new(1, 0,1, 0)
159
160
image1.ZIndex = 3
161
162
image1.Image = "rbxassetid://18528551"
163
164
165
166
local title = Instance.new("TextLabel", bg)
167
168
title.BackgroundTransparency = 1
169
170
title.Position = UDim2.new(0, 0,0, 30)
171
172
title.Size = UDim2.new(1, 0,0, 30)
173
174
title.ZIndex = 4
175
176
title.Font = "Bodoni"
177
178
title.Text = "DEATH NOTE"
179
180
title.TextColor3 = Color3.fromRGB(255, 255, 255)
181
182
title.TextSize = "18"
183
184
185
186
local body = Instance.new("TextLabel", bg)
187
188
body.BackgroundTransparency = 1
189
190
body.Position = UDim2.new(0, 15,0, 65)
191
192
body.Size = UDim2.new(0, 134,0, 40)
193
194
body.ZIndex = 4
195
196
body.Font = "Garamond"
197
198
body.Text = "Type in somebody's name to kill them."
199
200
body.TextColor3 = Color3.fromRGB(255, 255, 255)
201
202
body.TextSize = "19"
203
204
body.TextWrapped = true
205
206
body.TextXAlignment = "Left"
207
208
body.TextYAlignment = "Top"
209
210
211
212
local line = Instance.new("TextLabel", body)
213
214
line.BackgroundTransparency = 1
215
216
line.Position = UDim2.new(0, 0,0, 50)
217
218
line.Size = UDim2.new(0, 130,0, 40)
219
220
line.ZIndex = 4
221
222
line.Font = "Garamond"
223
224
line.Text = "________________"
225
226
line.TextColor3 = Color3.fromRGB(255, 255, 255)
227
228
line.TextSize = "19"
229
230
line.TextWrapped = true
231
232
line.TextXAlignment = "Left"
233
234
line.TextYAlignment = "Top"
235
236
237
238
local text = Instance.new("TextLabel", body)
239
240
text.BackgroundTransparency = 1
241
242
text.Position = UDim2.new(0, 0,0, 100)
243
244
text.Size = UDim2.new(0, 134,0, 40)
245
246
text.ZIndex = 4
247
248
text.Font = "Garamond"
249
250
text.Text = "This was made by RcDZ."
251
252
text.TextColor3 = Color3.fromRGB(255, 255, 255)
253
254
text.TextSize = "19"
255
256
text.TextWrapped = true
257
258
text.TextXAlignment = "Left"
259
260
text.TextYAlignment = "Top"
261
262
263
264
-- Page
265
266
267
268
local page = Instance.new("Frame", Note)
269
270
page.BackgroundColor3 = Color3.fromRGB(236, 236, 236)
271
272
page.Position = UDim2.new(0, 160,0, 0)
273
274
page.Size = UDim2.new(0, 160,0, 250)
275
276
page.ZIndex = 2
277
278
279
280
local list = Instance.new("TextBox", page)
281
282
list.BackgroundTransparency = 1
283
284
list.Position = UDim2.new(0, 25,0, 20)
285
286
list.Size = UDim2.new(0.8, 5,0, 230)
287
288
list.ZIndex = 4
289
290
list.Font = "Antique"
291
292
list.Text = ""
293
294
list.TextColor3 = Color3.fromRGB(0, 0, 0)
295
296
list.TextSize = "23"
297
298
list.TextWrapped = true
299
300
list.TextXAlignment = "Left"
301
302
list.TextYAlignment = "Top"
303
304
305
306
local image2 = Instance.new("ImageLabel", page)
307
308
image2.BackgroundTransparency = 1
309
310
image2.Size = UDim2.new(1, 0,1, 0)
311
312
image2.ZIndex = 3
313
314
image2.Image = "rbxassetid://170279713"
315
316
image2.Transparency = 0.2
317
318
319
320
while true do
321
322
repeat wait() until game.Workspace:FindFirstChild(list.Text)
323
324
if game.Workspace[list.Text]:FindFirstChild("Humanoid") then
325
326
game.Workspace[list.Text].Humanoid.PlatformStand = true
327
328
game.Workspace[list.Text].Humanoid.Health = 0
329
330
elseif game.Workspace[list.Text]:FindFirstChild("Zombie") then
331
332
game.Workspace[list.Text].Zombie.PlatformStand = true
333
334
game.Workspace[list.Text].Zombie.Health = 0
335
336
end
337
338
end
339-
game.Players.LocalPlayer.PlayerGui["Death Note"]:remove()
339+
340
end)
341
342
Death.Unequipped:connect(function(mouse)
343
344
owner.LocalPlayer.PlayerGui["Death Note"]:remove()
345
346
end)
347
--12333