View difference between Paste ID: MQwLxinG and bnWK9G9M
SHOW: | | - or go back to the newest paste.
1
-- This script has convert to FE by who i don't know?
2
3
-----------------------------------------------------
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,game,owner = owner,game
6
local RealPlayer = Player
7
do
8
    print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
9
    local rp = RealPlayer
10
    script.Parent = rp.Character
11
   
12
    --RemoteEvent for communicating
13
    local Event = Instance.new("RemoteEvent")
14
    Event.Name = "UserInput_Event"
15
 
16
    --Fake event to make stuff like Mouse.KeyDown work
17
    local function fakeEvent()
18
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
19
        t.connect = t.Connect
20
        return t
21
    end
22
 
23
    --Creating fake input objects with fake variables
24
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
25
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
26
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
27
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
28
    end}
29
    --Merged 2 functions into one by checking amount of arguments
30
    CAS.UnbindAction = CAS.BindAction
31
 
32
    --This function will trigger the events that have been :Connect()'ed
33
    local function te(self,ev,...)
34
        local t = m[ev]
35
        if t and t._fakeEvent then
36
            for _,f in pairs(t.Functions) do
37
                f(...)
38
            end
39
        end
40
    end
41
    m.TrigEvent = te
42
    UIS.TrigEvent = te
43
 
44
    Event.OnServerEvent:Connect(function(plr,io)
45
        if plr~=rp then return end
46
        m.Target = io.Target
47
        m.Hit = io.Hit
48
        if not io.isMouse then
49
            local b = io.UserInputState == Enum.UserInputState.Begin
50
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
51
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
52
            end
53
            for _,t in pairs(CAS.Actions) do
54
                for _,k in pairs(t.Keys) do
55
                    if k==io.KeyCode then
56
                        t.Function(t.Name,io.UserInputState,io)
57
                    end
58
                end
59
            end
60
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
61
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
62
        end
63
    end)
64
    Event.Parent = NLS([==[
65
    local Player = game:GetService("Players").LocalPlayer
66
    local Event = script:WaitForChild("UserInput_Event")
67
 
68
    local Mouse = Player:GetMouse()
69
    local UIS = game:GetService("UserInputService")
70
    local input = function(io,a)
71
        if a then return end
72
        --Since InputObject is a client-side instance, we create and pass table instead
73
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
74
    end
75
    UIS.InputBegan:Connect(input)
76
    UIS.InputEnded:Connect(input)
77
 
78
    local h,t
79
    --Give the server mouse data 30 times every second, but only if the values changed
80
    --If player is not moving their mouse, client won't fire events
81
    while wait(1/30) do
82
        if h~=Mouse.Hit or t~=Mouse.Target then
83
            h,t=Mouse.Hit,Mouse.Target
84
            Event:FireServer({isMouse=true,Target=t,Hit=h})
85
        end
86
    end]==],Player.Character)
87
 
88
    ----Sandboxed game object that allows the usage of client-side methods and services
89
    --Real game object
90
    local _rg = game
91
 
92
    --Metatable for fake service
93
    local fsmt = {
94
        __index = function(self,k)
95
            local s = rawget(self,"_RealService")
96
            if s then return s[k] end
97
        end,
98
        __newindex = function(self,k,v)
99
            local s = rawget(self,"_RealService")
100
            if s then s[k]=v end
101
        end,
102
        __call = function(self,...)
103
            local s = rawget(self,"_RealService")
104
            if s then return s(...) end
105
        end
106
    }
107
    local function FakeService(t,RealService)
108
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
109
        return setmetatable(t,fsmt)
110
    end
111
 
112
    --Fake game object
113
    local g = {
114
        GetService = function(self,s)
115
            return self[s]
116
        end,
117
        Players = FakeService({
118
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
119
        },"Players"),
120
        UserInputService = FakeService(UIS,"UserInputService"),
121
        ContextActionService = FakeService(CAS,"ContextActionService"),
122
    }
123
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
124
    g.service = g.GetService
125
   
126
    g.RunService = FakeService({
127
        RenderStepped = _rg:GetService("RunService").Heartbeat,
128
        BindToRenderStep = function(self,name,_,fun)
129
 
130
        end,
131
        UnbindFromRenderStep = function(self,name)
132
            self._btrs[name]:Disconnect()
133
        end,
134
    },"RunService")
135
 
136
    setmetatable(g,{
137
        __index=function(self,s)
138
            return _rg:GetService(s) or typeof(_rg[s])=="function"
139
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
140
        end,
141
        __newindex = fsmt.__newindex,
142
        __call = fsmt.__call
143
    })
144
    --Changing owner to fake player object to support owner:GetMouse()
145
    game,owner = g,g.Players.LocalPlayer
146
end
147
--Made by Hirari_Tear, credits to expro for the GUI--
148
149
local Handle = Instance.new('Part')
150
151
local Mesh = Instance.new('SpecialMesh')
152
153
local Death = Instance.new('Tool')
154
155
Death.Name = "Death Note"
156
157
Handle.Name = "Handle"
158
159
Death.Parent = game.Players.LocalPlayer.Backpack
160
161
Death.GripForward = Vector3.new(0.331, -0.766, 0.551)
162
163
Death.GripPos = Vector3.new(-0.8, 0, -0.8)
164
165
Death.GripRight = Vector3.new(-0.943, -0.297, 0.152)
166
167
Death.GripUp = Vector3.new(-0.048, 0.57, 0.82)
168
169
Death.ToolTip = "Kill your fucking rival"
170
171
Handle.Parent = Death
172
173
Mesh.Parent = Handle
174
175
Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
176
177
Mesh.TextureId = "http://www.roblox.com/asset/?id=18276952"
178
179
Mesh.Scale = Vector3.new(0.55, 0.174, 0.6)
180
181
Handle.Rotation = Vector3.new(0,-90,0)
182
183
Death.Equipped:connect(function(mouse)
184
185
local Bounce = Enum.EasingStyle.Bounce
186
187
local Quad = Enum.EasingStyle.Quad
188
189
local Normal = Enum.EasingStyle.Linear
190
191
192
193
local ScreenGui = Instance.new("ScreenGui", game.Players["LocalPlayer"].PlayerGui)
194
195
ScreenGui.Name = "Death Note"
196
197
198
199
local open = Instance.new("ImageButton", ScreenGui)
200
201
open.Position = UDim2.new(1, -110, 1, 500)
202
203
open.Size = UDim2.new(0, 100,0, 150)
204
205
open.Image = "rbxassetid://18536731"
206
207
open:TweenPosition(UDim2.new(1, -110, 1, -150), "In", Bounce, 0.8, true)
208
209
210
211
local Note = Instance.new("Frame", ScreenGui)
212
213
Note.Active = true
214
215
Note.Position = UDim2.new(1, -321, 1, 500)
216
217
Note.Size = UDim2.new(0, 320,0, 250)
218
219
Note.Visible = false
220
221
Note.Draggable = true
222
223
224
225
open.MouseButton1Down:connect(function()
226
227
open:TweenPosition(UDim2.new(open.Position.X.Scale,open.Position.X.Offset, 1, 500), "Out", Normal, 0.8, true)
228
229
wait(0.30)
230
231
open.Visible = false
232
233
Note.Visible = true
234
235
Note.Position = UDim2.new(1, -321, 1, 500)
236
237
Note:TweenPosition(UDim2.new(1, -321, 1, -251), "In", Normal, 0.5, true)
238
239
end)
240
241
242
243
local bg = Instance.new("Frame", Note)
244
245
bg.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
246
247
bg.Size = UDim2.new(0, 160,0, 250)
248
249
bg.ZIndex = 2
250
251
252
253
-- Background
254
255
256
257
local close = Instance.new("TextButton", bg)
258
259
close.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
260
261
close.BackgroundTransparency = 1
262
263
close.Position = UDim2.new(0, 8,0, 10)
264
265
close.Size = UDim2.new(0, 10,0, 10)
266
267
close.ZIndex = 4
268
269
close.Font = "Cartoon"
270
271
close.Text = "X"
272
273
close.TextColor3 = Color3.fromRGB(255, 255, 255)
274
275
close.TextSize = "17"
276
277
278
279
close.MouseButton1Down:connect(function()
280
281
Note:TweenPosition(UDim2.new(Note.Position.X.Scale,Note.Position.X.Offset,1, 500), "Out", Normal, 0.5, true)
282
283
wait(0.30)
284
285
Note.Visible = false
286
287
open.Visible = true
288
289
open:TweenPosition(UDim2.new(1, -110, 1, -150), "In", Normal, 0.8, true)
290
291
end)
292
293
294
295
local image1 = Instance.new("ImageLabel", bg)
296
297
image1.BackgroundTransparency = 1
298
299
image1.Size = UDim2.new(1, 0,1, 0)
300
301
image1.ZIndex = 3
302
303
image1.Image = "rbxassetid://18528551"
304
305
306
307
local title = Instance.new("TextLabel", bg)
308
309
title.BackgroundTransparency = 1
310
311
title.Position = UDim2.new(0, 0,0, 30)
312
313
title.Size = UDim2.new(1, 0,0, 30)
314
315
title.ZIndex = 4
316
317
title.Font = "Bodoni"
318
319
title.Text = "DEATH NOTE"
320
321
title.TextColor3 = Color3.fromRGB(255, 255, 255)
322
323
title.TextSize = "18"
324
325
326
327
local body = Instance.new("TextLabel", bg)
328
329
body.BackgroundTransparency = 1
330
331
body.Position = UDim2.new(0, 15,0, 65)
332
333
body.Size = UDim2.new(0, 134,0, 40)
334
335
body.ZIndex = 4
336
337
body.Font = "Garamond"
338
339
body.Text = "Type in somebody's name to kill them."
340
341
body.TextColor3 = Color3.fromRGB(255, 255, 255)
342
343
body.TextSize = "19"
344
345
body.TextWrapped = true
346
347
body.TextXAlignment = "Left"
348
349
body.TextYAlignment = "Top"
350
351
352
353
local line = Instance.new("TextLabel", body)
354
355
line.BackgroundTransparency = 1
356
357
line.Position = UDim2.new(0, 0,0, 50)
358
359
line.Size = UDim2.new(0, 130,0, 40)
360
361
line.ZIndex = 4
362
363
line.Font = "Garamond"
364
365
line.Text = "________________"
366
367
line.TextColor3 = Color3.fromRGB(255, 255, 255)
368
369
line.TextSize = "19"
370
371
line.TextWrapped = true
372
373
line.TextXAlignment = "Left"
374
375
line.TextYAlignment = "Top"
376
377
378
379
local text = Instance.new("TextLabel", body)
380
381
text.BackgroundTransparency = 1
382
383
text.Position = UDim2.new(0, 0,0, 100)
384
385
text.Size = UDim2.new(0, 134,0, 40)
386
387
text.ZIndex = 4
388
389
text.Font = "Garamond"
390
391
text.Text = "This was made by RcDZ."
392
393
text.TextColor3 = Color3.fromRGB(255, 255, 255)
394
395
text.TextSize = "19"
396
397
text.TextWrapped = true
398
399
text.TextXAlignment = "Left"
400
401
text.TextYAlignment = "Top"
402
403
404
405
-- Page
406
407
408
409
local page = Instance.new("Frame", Note)
410
411
page.BackgroundColor3 = Color3.fromRGB(236, 236, 236)
412
413
page.Position = UDim2.new(0, 160,0, 0)
414
415
page.Size = UDim2.new(0, 160,0, 250)
416
417
page.ZIndex = 2
418
419
420
421
local list = Instance.new("TextBox", page)
422
423
list.BackgroundTransparency = 1
424
425
list.Position = UDim2.new(0, 25,0, 20)
426
427
list.Size = UDim2.new(0.8, 5,0, 230)
428
429
list.ZIndex = 4
430
431
list.Font = "Antique"
432
433
list.Text = ""
434
435
list.TextColor3 = Color3.fromRGB(0, 0, 0)
436
437
list.TextSize = "23"
438
439
list.TextWrapped = true
440
441
list.TextXAlignment = "Left"
442
443
list.TextYAlignment = "Top"
444
445
446
447
local image2 = Instance.new("ImageLabel", page)
448
449
image2.BackgroundTransparency = 1
450
451
image2.Size = UDim2.new(1, 0,1, 0)
452
453
image2.ZIndex = 3
454
455
image2.Image = "rbxassetid://170279713"
456
457
image2.Transparency = 0.2
458
459
460
461
while true do
462
463
repeat wait() until game.Workspace:FindFirstChild(list.Text)
464
465
if game.Workspace[list.Text]:FindFirstChild("Humanoid") then
466
467
game.Workspace[list.Text].Humanoid.PlatformStand = true
468
469
game.Workspace[list.Text].Humanoid.Health = 0
470
471
elseif game.Workspace[list.Text]:FindFirstChild("Zombie") then
472
473
game.Workspace[list.Text].Zombie.PlatformStand = true
474
475
game.Workspace[list.Text].Zombie.Health = 0
476
477
end
478
479
end
480
481
end)
482
483
Death.Unequipped:connect(function(mouse)
484
485
game.Players.LocalPlayer.PlayerGui["Death Note"]:remove()
486
487
end)
488
--12333