Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plr = game:GetService("Players").LocalPlayer
  2.  
  3. local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
  4.  
  5. local function Create(classname)
  6. return function(t)
  7. local ins = Instance.new(classname)
  8. for i,v in pairs(t) do
  9. ins[i] = v
  10. end
  11. return ins
  12. end
  13. end
  14.  
  15. local function Tween(obj, t, props)
  16. local TweenService = game:GetService("TweenService")
  17. local ti = TweenInfo.new(t,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
  18. local tween = TweenService:Create(obj,ti,props)
  19. tween:Play()
  20. return tween
  21. end
  22.  
  23. --gui converters are for noobz-
  24. local main = Create "Frame" {
  25. Parent = gui,
  26. ClipsDescendants = true,
  27. Size = UDim2.new(0,400,0,300),
  28. BackgroundColor3 = Color3.fromRGB(120, 120, 120),
  29. BorderSizePixel = 1,
  30. Position = UDim2.new(0.5,-200,0.5,-150),
  31. Draggable = true,
  32. Active = true,
  33. }
  34.  
  35. local topbar = Create "TextLabel" {
  36. BackgroundColor3 = Color3.fromRGB(106, 106, 106),
  37. BorderSizePixel = 0,
  38. Position = UDim2.new(0,0,0,0),
  39. Size = UDim2.new(1,0,0,50),
  40. TextColor3 = Color3.new(1,1,1),
  41. TextSize = 40,
  42. Text = "Reason 2 Die Gui",
  43. Font = Enum.Font.SourceSansSemibold,
  44. TextStrokeTransparency = 0.5,
  45. TextStrokeColor3 = Color3.new(0,0,0),
  46. Parent = main
  47. }
  48.  
  49. local function CreateButton(text, parent)
  50. return Create "TextButton" {
  51. BackgroundColor3 = Color3.fromRGB(106, 106, 106),
  52. BorderColor3 = Color3.new(0,0,0),
  53. BorderSizePixel = 1,
  54. Size = UDim2.new(0,80,0,40),
  55. Font = Enum.Font.SourceSansSemibold,
  56. Text = text,
  57. TextColor3 = Color3.new(1,1,1),
  58. TextSize = 18,
  59. TextStrokeTransparency = 0.5,
  60. TextStrokeColor3 = Color3.new(0,0,0),
  61. Parent = parent
  62. }
  63. end
  64.  
  65. local SpeedHack = CreateButton("Speed Hack\n(z)", main)
  66. SpeedHack.Position = UDim2.new(0,10,0,70)
  67. local SpeedHackClick = function()
  68. local active = SpeedHack.BackgroundColor3 == Color3.fromRGB(85, 255, 127) and true or false
  69. SpeedHack.BackgroundColor3 = active and Color3.fromRGB(106, 106, 106) or Color3.fromRGB(85, 255, 127)
  70. plr.Character.Humanoid.WalkSpeed = active and 16 or 50
  71. end
  72. SpeedHack.MouseButton1Click:connect(SpeedHackClick)
  73.  
  74. local HighJump = CreateButton("High Jump\n(x)", main)
  75. HighJump.Position = UDim2.new(0,110,0,70)
  76. local HighJumpClick = function()
  77. local active = HighJump.BackgroundColor3 == Color3.fromRGB(85, 255, 127) and true or false
  78. HighJump.BackgroundColor3 = active and Color3.fromRGB(106, 106, 106) or Color3.fromRGB(85, 255, 127)
  79. plr.Character.Humanoid.JumpPower = active and 50 or 100
  80. end
  81. HighJump.MouseButton1Click:connect(HighJumpClick)
  82.  
  83. local InfEnergyActive = false
  84. local InfEnergy = CreateButton("Infinite Energy\n(c)", main)
  85. InfEnergy.Position = UDim2.new(0,210,0,70)
  86. InfEnergy.Size = UDim2.new(0,100,0,40)
  87. local InfEnergyClick = function()
  88. local active = InfEnergy.BackgroundColor3 == Color3.fromRGB(85, 255, 127) and true or false
  89. InfEnergy.BackgroundColor3 = active and Color3.fromRGB(106, 106, 106) or Color3.fromRGB(85, 255, 127)
  90. InfEnergyActive = not active
  91. end
  92. InfEnergy.MouseButton1Click:connect(InfEnergyClick)
  93.  
  94. local NoClipEnabled = false
  95. local NoClip = CreateButton("NoClip\n(v)", main)
  96. NoClip.Position = UDim2.new(0,330,0,70)
  97. NoClip.Size = UDim2.new(0,60,0,40)
  98. local NoClipClick = function()
  99. local active = NoClip.BackgroundColor3 == Color3.fromRGB(85, 255, 127) and true or false
  100. NoClip.BackgroundColor3 = active and Color3.fromRGB(106, 106, 106) or Color3.fromRGB(85, 255, 127)
  101. NoClipEnabled = not active
  102. end
  103.  
  104. plr.CharacterAdded:connect(function(char)
  105. char:WaitForChild"Humanoid".Changed:connect(function(prop)
  106. if prop == "WalkSpeed" and SpeedHack.BackgroundColor3 == Color3.fromRGB(85, 255, 127) and char.Humanoid.WalkSpeed ~= 200 then
  107. char.Humanoid.WalkSpeed = 50
  108. elseif prop == "JumpPower" and HighJump.BackgroundColor3 == Color3.fromRGB(85, 255, 127) and char.Humanoid.JumpPower ~= 200 then
  109. char.Humanoid.JumpPower = 100
  110. end
  111. end)
  112. if SpeedHack.BackgroundColor3 == Color3.fromRGB(85, 255, 127) then
  113. char:WaitForChild"Humanoid".WalkSpeed = 50
  114. end
  115. if HighJump.BackgroundColor3 == Color3.fromRGB(85, 255, 127) then
  116. char:WaitForChild"Humanoid".JumpPower = 100
  117. end
  118. end)
  119.  
  120. local TransparencyTweens = {}
  121. main.MouseLeave:connect(function()
  122. spawn(function()
  123. local bool = false
  124. local ev = main.MouseEnter:connect(function()
  125. bool = true
  126. end)
  127. wait(1)
  128. ev:Disconnect()
  129. if bool then return end
  130. for i,v in pairs(TransparencyTweens) do
  131. v:Pause()
  132. end
  133. TransparencyTweens = {}
  134. for i,v in pairs(main:GetDescendants()) do
  135. if v.Visible then
  136. local totween = {}
  137. if v.ClassName:sub(1,4) == "Text" then
  138. totween.TextTransparency = 0.7
  139. end
  140. if v.BackgroundTransparency ~= 1 then
  141. totween.BackgroundTransparency = 0.7
  142. end
  143. TransparencyTweens[#TransparencyTweens + 1] = Tween(v, 0.5, totween)
  144. end
  145. end
  146. main:TweenSize(UDim2.new(0,400,0,50),nil,nil,nil,true)
  147. end)
  148. end)
  149. main.MouseEnter:connect(function()
  150. for i,v in pairs(TransparencyTweens) do
  151. v:Pause()
  152. end
  153. TransparencyTweens = {}
  154. for i,v in pairs(main:GetDescendants()) do
  155. if v.Visible then
  156. local totween = {}
  157. if v.ClassName:sub(1,4) == "Text" then
  158. totween.TextTransparency = 0
  159. end
  160. if v.BackgroundTransparency ~= 1 then
  161. totween.BackgroundTransparency = 0
  162. end
  163. TransparencyTweens[#TransparencyTweens + 1] = Tween(v, 0.5, totween)
  164. end
  165. end
  166. main:TweenSize(UDim2.new(0,400,0,300),nil,nil,nil,true)
  167. end)
  168.  
  169. --tracers--
  170. local Tracers = {}
  171.  
  172. local function AddLasso(p,team)
  173. if not Tracers[team.Name] then return end
  174. if p == plr then return end
  175. spawn(function()
  176. if p.Character then
  177. local l = Instance.new("SelectionPartLasso")
  178. l.Parent = p.Character
  179. l.Humanoid = p.Character:FindFirstChildOfClass"Humanoid"
  180. l.Part = plr.Character:WaitForChild"HumanoidRootPart"
  181. l.Visible = true
  182. l.Color3 = team.TeamColor.Color
  183. for i=0,5 do
  184. local sg = Instance.new("SurfaceGui")
  185. sg.Face = i
  186. sg.Parent = p.Character
  187. sg.Adornee = p.Character:FindFirstChild"HumanoidRootPart"
  188. sg.AlwaysOnTop = true
  189. local f = Instance.new("Frame", sg)
  190. f.Size = UDim2.new(1,0,1,0)
  191. f.BorderSizePixel = 0
  192. f.BackgroundColor3 = team.TeamColor.Color
  193. f.BackgroundTransparency = 0.5
  194. end
  195. end
  196. end)
  197. end
  198.  
  199. local function RemoveLasso(p)
  200. if not p.Character then return end
  201. for i,v in pairs(p.Character:GetDescendants()) do
  202. if v.ClassName:find("Selection") or v.ClassName == "SurfaceGui" then
  203. v:Destroy()
  204. end
  205. end
  206. end
  207.  
  208. for _,team in pairs(game:GetService("Teams"):GetChildren()) do
  209. team.PlayerAdded:connect(function(p)
  210. AddLasso(p,team)
  211. end)
  212.  
  213. team.PlayerRemoved:connect(function(p)
  214. RemoveLasso(p)
  215. end)
  216. end
  217.  
  218. function ToggleTracers(team, bool)
  219. Tracers[team] = bool
  220. local t = game:GetService("Teams"):FindFirstChild(team)
  221. if not t then return end
  222. for i,v in pairs(t:GetPlayers()) do
  223. if bool then
  224. AddLasso(v,t)
  225. else
  226. RemoveLasso(v)
  227. end
  228. end
  229. end
  230.  
  231. local function CharAdded(plr, char)
  232. if Tracers[tostring(plr.Team)] then
  233. AddLasso(plr,plr.Team)
  234. end
  235. end
  236.  
  237. local function PlrAdded(plr)
  238. plr.CharacterAdded:connect(function(char)
  239. CharAdded(plr, char)
  240. end)
  241. if plr.Character then
  242. CharAdded(plr, plr.Character)
  243. end
  244. end
  245.  
  246. game:GetService("Players").PlayerAdded:connect(PlrAdded)
  247. for _,v in pairs(game:GetService("Players"):GetPlayers()) do
  248. PlrAdded(v)
  249. end
  250.  
  251. local TracersBtn = CreateButton("Tracers: None\n(b)", main)
  252. TracersBtn.Size = UDim2.new(0,140,0,40)
  253. TracersBtn.Position = UDim2.new(0,10,0,130)
  254. local TracersBtnClick = function()
  255. local curr = TracersBtn.Text:sub(10)
  256. if curr ~= "None" then
  257. ToggleTracers(curr, false)
  258. end
  259. local teams = {"None", "Survivior", "Zombie"}
  260. local new = ""
  261. for i,v in pairs(teams) do
  262. if v == curr then
  263. new = teams[i + 1] or teams[1]
  264. end
  265. end
  266. if new ~= "None" then
  267. ToggleTracers(new, true)
  268. end
  269. TracersBtn.Text = "Tracers: " .. new .. "\n(b)"
  270. end
  271. TracersBtn.MouseButton1Click:connect(TracersBtnClick)
  272.  
  273. local ClickTp = CreateButton("ClickTp\n(e)", main)
  274. ClickTp.Position = UDim2.new(0,170,0,130)
  275. ClickTp.Size = UDim2.new(0,80,0,40)
  276. local ClickTpClick = function()
  277. local m = plr:GetMouse()
  278. if m.Target then
  279. ClickTp.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  280. plr.Character:MoveTo(m.Hit.p)
  281. wait(0.5)
  282. ClickTp.BackgroundColor3 = Color3.fromRGB(106, 106, 106)
  283. else
  284. ClickTp.BackgroundColor3 = Color3.new(1,0,0)
  285. wait(0.5)
  286. ClickTp.BackgroundColor3 = Color3.fromRGB(106, 106, 106)
  287. end
  288. end
  289. ClickTp.MouseButton1Click:connect(ClickTpClick)
  290.  
  291. --[[local FlyEnabled = true
  292. local Fly = CreateButton("Fly\n(t)", main)
  293. Fly.Position = UDim2.new(0,270,0,130)
  294. local FlyClick = function()
  295. doesn't work
  296. end
  297. Fly.MouseButton1Click:connect(function()
  298. Fly.BackgroundColor3 = Color3.new(1,0,0)
  299. wait(0.5)
  300. Fly.BackgroundColor3 = Color3.fromRGB(106, 106, 106)
  301. end)]]
  302.  
  303. local Exit = Create "TextButton" {
  304. Parent = main,
  305. BackgroundColor3 = Color3.new(1,0,0),
  306. Position = UDim2.new(1,-40,0,10),
  307. Size = UDim2.new(0,30,0,30),
  308. Font = Enum.Font.SourceSansBold,
  309. Text = "X",
  310. TextColor3 = Color3.new(1,1,1),
  311. TextSize = 30
  312. }
  313. Exit.MouseButton1Click:connect(function()
  314. gui:Destroy()
  315. script.Disabled = true
  316. end)
  317.  
  318. local mt = getrawmetatable(game)
  319. make_writeable(mt)
  320.  
  321. local old = mt.__index
  322. mt.__index = function(self, i)
  323. if i == "WalkSpeed" and not checkcaller() then
  324. return 16
  325. elseif i == "JumpPower" and not checkcaller() then
  326. return 50
  327. end
  328. return old(self, i)
  329. end
  330.  
  331. local oldnc = mt.__namecall
  332. mt.__namecall = function(self, ...)
  333. local args = {...}
  334. local method = args[#args]
  335. if self.Name == "Energy" and self.ClassName == "BindableFunction" and method == "Invoke" and InfEnergyActive then
  336. return true
  337. end
  338. return oldnc(self, ...)
  339. end
  340.  
  341. local state = Enum.HumanoidStateType
  342. local statemt = getrawmetatable(state)
  343. make_writeable(statemt)
  344. local oldsi = statemt.__index
  345. statemt.__index = function(self, i)
  346. if self == state and i == "StrafingNoPhysics" and not checkcaller() then
  347. return 1337
  348. end
  349. return oldsi(self, i)
  350. end
  351.  
  352. local Hotkeys = {
  353. z = SpeedHackClick,
  354. x = HighJumpClick,
  355. c = InfEnergyClick,
  356. v = NoClipClick,
  357. b = TracersBtnClick,
  358. e = ClickTpClick,
  359. --t = FlyClick,
  360. }
  361.  
  362. local m = plr:GetMouse()
  363. m.KeyDown:connect(function(k)
  364. if Hotkeys[k] then
  365. Hotkeys[k]()
  366. end
  367. end)
  368.  
  369. spawn(function()
  370. while wait() do
  371. if NoClipEnabled then
  372. plr.Character:WaitForChild"Humanoid":SetStateEnabled(11, true)
  373. plr.Character:WaitForChild"Humanoid":ChangeState(11)
  374. end
  375. end
  376. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement