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