Advertisement
Dxcay

Untitled

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