Advertisement
taken56453453

converted

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