Advertisement
fial

Untitled

Jun 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. local renderstepped = game:GetService("RunService").RenderStepped
  2. local uis = game:GetService("UserInputService")
  3. local plr = game.Players.LocalPlayer
  4. local function check()
  5. local portafab = plr.Backpack:FindFirstChild("Portafab") or plr.Character:FindFirstChild("Portafab")
  6. while
  7. not plr.Character or
  8. not plr.Character.Parent or
  9. not plr.Character:FindFirstChild("Humanoid") or
  10. not portafab or
  11. not portafab:FindFirstChild("Remote") or
  12. not plr.Character:FindFirstChild("FallDamageScript") or
  13. not plr.Character:FindFirstChild("IridiumTank") or
  14. not plr.Character.IridiumTank:FindFirstChild("IridiumUsed")
  15. do renderstepped:Wait() end
  16. end
  17.  
  18. local function hack()
  19. check()
  20. local char = plr.Character
  21. plr.Backpack.ChildAdded:connect(function(child)
  22. if child:IsA("Tool") and child.Name ~= "Portafab" then
  23. child:WaitForChild("Remote"):FireServer("IridiumConsumed", -10000000000)
  24. end
  25. end)
  26. char.FallDamageScript:Destroy()
  27. char.IridiumTank.IridiumUsed:Destroy()
  28. Instance.new("RemoteEvent", char.IridiumTank).Name = "IridiumUsed"
  29. local portafab = plr.Backpack:FindFirstChild("Portafab") or char:FindFirstChild("Portafab")
  30. if portafab then
  31. local remote = portafab:FindFirstChild("Remote")
  32. if remote then
  33. local function fire()
  34. while renderstepped:Wait() do
  35. if char.Humanoid.Health == 0 or portafab.Parent == plr.Backpack then break end
  36. if uis:IsKeyDown(Enum.KeyCode.E) or uis:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
  37. remote:FireServer("Activated", plr:GetMouse().Hit.p, plr:GetMouse().Target)
  38. remote:FireServer("TargetUpdated", plr:GetMouse().Hit.p, plr:GetMouse().Target)
  39. elseif uis:IsKeyDown(Enum.KeyCode.G) then
  40. while uis:IsKeyDown(Enum.KeyCode.G) do
  41. remote:FireServer("DestroyActivated",plr:GetMouse().Hit.p,plr:GetMouse().Target)
  42. renderstepped:Wait()
  43. end
  44. remote:FireServer("DestroyDeactivated")
  45. end
  46. end
  47. end
  48. if portafab.Parent == char then
  49. fire()
  50. end
  51. portafab.Equipped:connect(function()
  52. fire()
  53. end)
  54. end
  55. end
  56. end
  57.  
  58. local screengui = Instance.new("ScreenGui")
  59. screengui.ResetOnSpawn = false
  60. screengui.Parent = game.CoreGui
  61. local frame = Instance.new("Frame")
  62. frame.BorderSizePixel = 0
  63. frame.BackgroundColor3 = Color3.fromRGB(0, 150, 117)
  64. frame.Position = UDim2.new(0.5, - 100, 0, 0)
  65. frame.Size = UDim2.new(0, 210, 0, 50)
  66. frame.Draggable = true
  67. frame.Active = true
  68. frame.Parent = screengui
  69. local textbox = Instance.new("TextBox")
  70. textbox.BackgroundColor3 = Color3.fromRGB(0, 170, 127)
  71. textbox.BorderSizePixel = 0
  72. textbox.ClearTextOnFocus = false
  73. textbox.Position = UDim2.new(0, 0, 0, 0)
  74. textbox.Size = UDim2.new(0, 200, 0, 50)
  75. textbox.TextSize = 15
  76. textbox.Font = Enum.Font.SourceSansBold
  77. textbox.Text = ""
  78. textbox.TextWrap = true
  79. textbox.PlaceholderColor3 = Color3.new(1, 1, 1)
  80. textbox.PlaceholderText = "Type a player name and press enter"
  81. textbox.TextColor3 = Color3.new(1, 1, 1)
  82. textbox.TextTransparency = 0.35
  83. textbox.Parent = frame
  84. textbox.FocusLost:connect(function(enter)
  85. if enter and textbox.Text ~= "" then
  86. local text = textbox.Text
  87. for _, v in next, game.Players:GetPlayers() do
  88. local len = string.len(text)
  89. if string.match(string.lower(string.sub(v.Name,1,len)), string.lower(text)) then
  90. game.ReplicatedStorage.Remotes.FallDamageDamageTaken:FireServer(v.Character.Humanoid, 100)
  91. end
  92. end
  93. end
  94. end)
  95.  
  96. hack()
  97.  
  98. plr.CharacterAdded:connect(function(char)
  99. hack()
  100. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement