SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --Made by Hirari_Tear, credits to expro for the GUI-- |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
|
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | local Handle = Instance.new('Part')
| |
| 172 | ||
| 173 | local Mesh = Instance.new('SpecialMesh')
| |
| 174 | ||
| 175 | local Death = Instance.new('Tool')
| |
| 176 | ||
| 177 | Death.Name = "Death Note" | |
| 178 | ||
| 179 | Handle.Name = "Handle" | |
| 180 | ||
| 181 | Death.Parent = game.Players.LocalPlayer.Backpack | |
| 182 | ||
| 183 | Death.GripForward = Vector3.new(0.331, -0.766, 0.551) | |
| 184 | ||
| 185 | Death.GripPos = Vector3.new(-0.8, 0, -0.8) | |
| 186 | ||
| 187 | Death.GripRight = Vector3.new(-0.943, -0.297, 0.152) | |
| 188 | ||
| 189 | Death.GripUp = Vector3.new(-0.048, 0.57, 0.82) | |
| 190 | ||
| 191 | Death.ToolTip = "Kill your fucking rival" | |
| 192 | ||
| 193 | Handle.Parent = Death | |
| 194 | ||
| 195 | Mesh.Parent = Handle | |
| 196 | ||
| 197 | Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139" | |
| 198 | ||
| 199 | Mesh.TextureId = "http://www.roblox.com/asset/?id=18276952" | |
| 200 | ||
| 201 | Mesh.Scale = Vector3.new(0.55, 0.174, 0.6) | |
| 202 | ||
| 203 | Handle.Rotation = Vector3.new(0,-90,0) | |
| 204 | ||
| 205 | Death.Equipped:connect(function(mouse) | |
| 206 | ||
| 207 | local Bounce = Enum.EasingStyle.Bounce | |
| 208 | ||
| 209 | local Quad = Enum.EasingStyle.Quad | |
| 210 | ||
| 211 | local Normal = Enum.EasingStyle.Linear | |
| 212 | ||
| 213 | ||
| 214 | ||
| 215 | local ScreenGui = Instance.new("ScreenGui", game.Players["LocalPlayer"].PlayerGui)
| |
| 216 | ||
| 217 | ScreenGui.Name = "Death Note" | |
| 218 | ||
| 219 | ||
| 220 | ||
| 221 | local open = Instance.new("ImageButton", ScreenGui)
| |
| 222 | ||
| 223 | open.Position = UDim2.new(1, -110, 1, 500) | |
| 224 | ||
| 225 | open.Size = UDim2.new(0, 100,0, 150) | |
| 226 | ||
| 227 | open.Image = "rbxassetid://18536731" | |
| 228 | ||
| 229 | open:TweenPosition(UDim2.new(1, -110, 1, -150), "In", Bounce, 0.8, true) | |
| 230 | ||
| 231 | ||
| 232 | ||
| 233 | local Note = Instance.new("Frame", ScreenGui)
| |
| 234 | ||
| 235 | Note.Active = true | |
| 236 | ||
| 237 | Note.Position = UDim2.new(1, -321, 1, 500) | |
| 238 | ||
| 239 | Note.Size = UDim2.new(0, 320,0, 250) | |
| 240 | ||
| 241 | Note.Visible = false | |
| 242 | ||
| 243 | Note.Draggable = true | |
| 244 | ||
| 245 | ||
| 246 | ||
| 247 | open.MouseButton1Down:connect(function() | |
| 248 | ||
| 249 | open:TweenPosition(UDim2.new(open.Position.X.Scale,open.Position.X.Offset, 1, 500), "Out", Normal, 0.8, true) | |
| 250 | ||
| 251 | wait(0.30) | |
| 252 | ||
| 253 | open.Visible = false | |
| 254 | ||
| 255 | Note.Visible = true | |
| 256 | ||
| 257 | Note.Position = UDim2.new(1, -321, 1, 500) | |
| 258 | ||
| 259 | Note:TweenPosition(UDim2.new(1, -321, 1, -251), "In", Normal, 0.5, true) | |
| 260 | ||
| 261 | end) | |
| 262 | ||
| 263 | ||
| 264 | ||
| 265 | local bg = Instance.new("Frame", Note)
| |
| 266 | ||
| 267 | bg.BackgroundColor3 = Color3.fromRGB(31, 31, 31) | |
| 268 | ||
| 269 | bg.Size = UDim2.new(0, 160,0, 250) | |
| 270 | ||
| 271 | bg.ZIndex = 2 | |
| 272 | ||
| 273 | ||
| 274 | ||
| 275 | -- Background | |
| 276 | ||
| 277 | ||
| 278 | ||
| 279 | local close = Instance.new("TextButton", bg)
| |
| 280 | ||
| 281 | close.BackgroundColor3 = Color3.fromRGB(0, 0, 0) | |
| 282 | ||
| 283 | close.BackgroundTransparency = 1 | |
| 284 | ||
| 285 | close.Position = UDim2.new(0, 8,0, 10) | |
| 286 | ||
| 287 | close.Size = UDim2.new(0, 10,0, 10) | |
| 288 | ||
| 289 | close.ZIndex = 4 | |
| 290 | ||
| 291 | close.Font = "Cartoon" | |
| 292 | ||
| 293 | close.Text = "X" | |
| 294 | ||
| 295 | close.TextColor3 = Color3.fromRGB(255, 255, 255) | |
| 296 | ||
| 297 | close.TextSize = "17" | |
| 298 | ||
| 299 | ||
| 300 | ||
| 301 | close.MouseButton1Down:connect(function() | |
| 302 | ||
| 303 | Note:TweenPosition(UDim2.new(Note.Position.X.Scale,Note.Position.X.Offset,1, 500), "Out", Normal, 0.5, true) | |
| 304 | ||
| 305 | wait(0.30) | |
| 306 | ||
| 307 | Note.Visible = false | |
| 308 | ||
| 309 | open.Visible = true | |
| 310 | ||
| 311 | open:TweenPosition(UDim2.new(1, -110, 1, -150), "In", Normal, 0.8, true) | |
| 312 | ||
| 313 | end) | |
| 314 | ||
| 315 | ||
| 316 | ||
| 317 | local image1 = Instance.new("ImageLabel", bg)
| |
| 318 | ||
| 319 | image1.BackgroundTransparency = 1 | |
| 320 | ||
| 321 | image1.Size = UDim2.new(1, 0,1, 0) | |
| 322 | ||
| 323 | image1.ZIndex = 3 | |
| 324 | ||
| 325 | image1.Image = "rbxassetid://18528551" | |
| 326 | ||
| 327 | ||
| 328 | ||
| 329 | local title = Instance.new("TextLabel", bg)
| |
| 330 | ||
| 331 | title.BackgroundTransparency = 1 | |
| 332 | ||
| 333 | title.Position = UDim2.new(0, 0,0, 30) | |
| 334 | ||
| 335 | title.Size = UDim2.new(1, 0,0, 30) | |
| 336 | ||
| 337 | title.ZIndex = 4 | |
| 338 | ||
| 339 | title.Font = "Bodoni" | |
| 340 | ||
| 341 | title.Text = "DEATH NOTE" | |
| 342 | ||
| 343 | title.TextColor3 = Color3.fromRGB(255, 255, 255) | |
| 344 | ||
| 345 | title.TextSize = "18" | |
| 346 | ||
| 347 | ||
| 348 | ||
| 349 | local body = Instance.new("TextLabel", bg)
| |
| 350 | ||
| 351 | body.BackgroundTransparency = 1 | |
| 352 | ||
| 353 | body.Position = UDim2.new(0, 15,0, 65) | |
| 354 | ||
| 355 | body.Size = UDim2.new(0, 134,0, 40) | |
| 356 | ||
| 357 | body.ZIndex = 4 | |
| 358 | ||
| 359 | body.Font = "Garamond" | |
| 360 | ||
| 361 | body.Text = "Type in somebody's name to kill them." | |
| 362 | ||
| 363 | body.TextColor3 = Color3.fromRGB(255, 255, 255) | |
| 364 | ||
| 365 | body.TextSize = "19" | |
| 366 | ||
| 367 | body.TextWrapped = true | |
| 368 | ||
| 369 | body.TextXAlignment = "Left" | |
| 370 | ||
| 371 | body.TextYAlignment = "Top" | |
| 372 | ||
| 373 | ||
| 374 | ||
| 375 | local line = Instance.new("TextLabel", body)
| |
| 376 | ||
| 377 | line.BackgroundTransparency = 1 | |
| 378 | ||
| 379 | line.Position = UDim2.new(0, 0,0, 50) | |
| 380 | ||
| 381 | line.Size = UDim2.new(0, 130,0, 40) | |
| 382 | ||
| 383 | line.ZIndex = 4 | |
| 384 | ||
| 385 | line.Font = "Garamond" | |
| 386 | ||
| 387 | line.Text = "________________" | |
| 388 | ||
| 389 | line.TextColor3 = Color3.fromRGB(255, 255, 255) | |
| 390 | ||
| 391 | line.TextSize = "19" | |
| 392 | ||
| 393 | line.TextWrapped = true | |
| 394 | ||
| 395 | line.TextXAlignment = "Left" | |
| 396 | ||
| 397 | line.TextYAlignment = "Top" | |
| 398 | ||
| 399 | ||
| 400 | ||
| 401 | local text = Instance.new("TextLabel", body)
| |
| 402 | ||
| 403 | text.BackgroundTransparency = 1 | |
| 404 | ||
| 405 | text.Position = UDim2.new(0, 0,0, 100) | |
| 406 | ||
| 407 | text.Size = UDim2.new(0, 134,0, 40) | |
| 408 | ||
| 409 | text.ZIndex = 4 | |
| 410 | ||
| 411 | text.Font = "Garamond" | |
| 412 | ||
| 413 | text.Text = "This was made by RcDZ." | |
| 414 | ||
| 415 | text.TextColor3 = Color3.fromRGB(255, 255, 255) | |
| 416 | ||
| 417 | text.TextSize = "19" | |
| 418 | ||
| 419 | text.TextWrapped = true | |
| 420 | ||
| 421 | text.TextXAlignment = "Left" | |
| 422 | ||
| 423 | text.TextYAlignment = "Top" | |
| 424 | ||
| 425 | ||
| 426 | ||
| 427 | -- Page | |
| 428 | ||
| 429 | ||
| 430 | ||
| 431 | local page = Instance.new("Frame", Note)
| |
| 432 | ||
| 433 | page.BackgroundColor3 = Color3.fromRGB(236, 236, 236) | |
| 434 | ||
| 435 | page.Position = UDim2.new(0, 160,0, 0) | |
| 436 | ||
| 437 | page.Size = UDim2.new(0, 160,0, 250) | |
| 438 | ||
| 439 | page.ZIndex = 2 | |
| 440 | ||
| 441 | ||
| 442 | ||
| 443 | local list = Instance.new("TextBox", page)
| |
| 444 | ||
| 445 | list.BackgroundTransparency = 1 | |
| 446 | ||
| 447 | list.Position = UDim2.new(0, 25,0, 20) | |
| 448 | ||
| 449 | list.Size = UDim2.new(0.8, 5,0, 230) | |
| 450 | ||
| 451 | list.ZIndex = 4 | |
| 452 | ||
| 453 | list.Font = "Antique" | |
| 454 | ||
| 455 | list.Text = "" | |
| 456 | ||
| 457 | list.TextColor3 = Color3.fromRGB(0, 0, 0) | |
| 458 | ||
| 459 | list.TextSize = "23" | |
| 460 | ||
| 461 | list.TextWrapped = true | |
| 462 | ||
| 463 | list.TextXAlignment = "Left" | |
| 464 | ||
| 465 | list.TextYAlignment = "Top" | |
| 466 | ||
| 467 | ||
| 468 | ||
| 469 | local image2 = Instance.new("ImageLabel", page)
| |
| 470 | ||
| 471 | image2.BackgroundTransparency = 1 | |
| 472 | ||
| 473 | image2.Size = UDim2.new(1, 0,1, 0) | |
| 474 | ||
| 475 | image2.ZIndex = 3 | |
| 476 | ||
| 477 | image2.Image = "rbxassetid://170279713" | |
| 478 | ||
| 479 | image2.Transparency = 0.2 | |
| 480 | ||
| 481 | ||
| 482 | ||
| 483 | while true do | |
| 484 | ||
| 485 | repeat wait() until game.Workspace:FindFirstChild(list.Text) | |
| 486 | ||
| 487 | if game.Workspace[list.Text]:FindFirstChild("Humanoid") then
| |
| 488 | ||
| 489 | game.Workspace[list.Text].Humanoid.PlatformStand = true | |
| 490 | ||
| 491 | game.Workspace[list.Text].Humanoid.Health = 0 | |
| 492 | ||
| 493 | elseif game.Workspace[list.Text]:FindFirstChild("Zombie") then
| |
| 494 | ||
| 495 | game.Workspace[list.Text].Zombie.PlatformStand = true | |
| 496 | ||
| 497 | game.Workspace[list.Text].Zombie.Health = 0 | |
| 498 | ||
| 499 | end | |
| 500 | ||
| 501 | end | |
| 502 | ||
| 503 | end) | |
| 504 | ||
| 505 | Death.Unequipped:connect(function(mouse) | |
| 506 | ||
| 507 | game.Players.LocalPlayer.PlayerGui["Death Note"]:remove() | |
| 508 | ||
| 509 | end) | |
| 510 | --12333 |