asdasdaaa11

Untitled

Jan 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.66 KB | None | 0 0
  1. --Destructo Mage by DevGamerzz
  2.  
  3. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  4. local plr = game.Players.LocalPlayer
  5. repeat wait() until plr.Character
  6. local char = plr.Character
  7. local larm = char["Left Arm"]
  8. local rarm = char["Right Arm"]
  9. local lleg = char["Left Leg"]
  10. local rleg = char["Right Leg"]
  11. local torso = char.Torso
  12. local head = char.Head
  13. local root = char.HumanoidRootPart
  14. local rootjoint = root.RootJoint
  15. local rootjointc = rootjoint:Clone()
  16. local hum = char.Humanoid
  17. local mouse = plr:GetMouse()
  18. local mode = nil
  19. local sizemult = 100.5
  20. local deb_h = false
  21. local deb_t = false
  22. local chat = game:service'Chat'
  23. local s = Instance.new("Sound",char)
  24. s.SoundId = "http://www.roblox.com/asset/?id=415880409"
  25. s.Pitch = 0.98
  26. s.Volume = 50
  27. s.Looped = false
  28. wait(0.1)
  29. s:play()
  30.  
  31. local s = Instance.new("Sound",char)
  32. s.SoundId = "http://www.roblox.com/asset/?id=365364196"
  33. s.Pitch = 1
  34. s.Volume = 4
  35. s.Looped = true
  36. wait(0.1)
  37. s:play()
  38.  
  39. local p = game.Players.LocalPlayer
  40. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  41. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  42. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  43. HBill.Size = UDim2.new(45,0,10.2,0)
  44. HBill.Name = "Health Display"
  45. HBill.StudsOffset = Vector3.new(2,30,2)
  46. HBill.AlwaysOnTop = true
  47. HBill.Enabled = true
  48. HMain.BackgroundColor3 = Color3.new(255, 255, 255)
  49. HMain.BackgroundTransparency = 1
  50. HMain.Size = UDim2.new(1,0,1,0)
  51. HBarBack.Parent = HMain
  52. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  53. HBarBack.BorderColor3 = Color3.new(0,0,0)
  54. HBarBack.BorderSizePixel = 2
  55. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  56. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  57. HBar.Parent = HBarBack
  58. HBar.BackgroundColor3 = Color3.new(0, 0, 0)
  59. HBar.BorderColor3 = Color3.new(0,0,0)
  60. HBar.Size = UDim2.new(.5,0,1,0)
  61. HHealth.BackgroundTransparency = 1
  62. HHealth.Size = UDim2.new(1,0,1,0)
  63. HHealth.Font = "SciFi"
  64. HHealth.Text = " "
  65. HHealth.TextScaled = true
  66. HHealth.TextColor3 = Color3.new(1,1,1)
  67. HHealth.TextStrokeColor3 = BrickColor.new("Really red").Color
  68. HHealth.TextStrokeTransparency = 0
  69. HName.Parent = HMain
  70. HName.BackgroundTransparency = 1
  71. HName.Size = UDim2.new(1,0,100,0)
  72. HName.Font = "Bodoni"
  73. HName.Text = "Satana"
  74. HName.TextScaled = true
  75. HName.TextColor3 = BrickColor.new("Really red").Color
  76. HName.TextStrokeColor3 = Color3.new(0,0,0)
  77. HName.TextStrokeTransparency = 0
  78. HName.TextYAlignment = "Top"
  79.  
  80.  
  81. local reverb = game:GetService("SoundService").AmbientReverb
  82. reverb = 12
  83. local lighting = game:GetService("Lighting")
  84. larm.CanCollide = true
  85. rarm.CanCollide = true
  86. lleg.CanCollide = true
  87. rleg.CanCollide = true
  88. hum.WalkSpeed = 25
  89. hum.MaxHealth = math.huge
  90. hum.Health = math.huge
  91.  
  92. local endScript = function()
  93. lighting.FogEnd = 100000
  94. lighting.FogColor = Color3.new(191/255,191/255,191/255)
  95. lighting.TimeOfDay = "14:00:00"
  96. lighting.OutdoorAmbient = Color3.new(127/255,127/255,127/255)
  97. --work on ending the script (M#1: getfenv().script = script)
  98. end
  99.  
  100. plr.Chatted:connect(function(msg)
  101. if string.lower(msg) == "g/r" then
  102. endScript()
  103. end
  104. end)
  105.  
  106. for _,hats in next,char:children() do
  107. if hats:IsA("Hat") then
  108. hats:Destroy()
  109. end
  110. end
  111.  
  112. local createWeld = function(wp0,wp1,wc0x,wc0y,wc0z)
  113. local w = Instance.new("Weld", wp1)
  114. w.Part0 = wp0
  115. w.Part1 = wp1
  116. w.C0 = CFrame.new(wc0x, wc0y, wc0z)
  117. return w
  118. end
  119.  
  120. larm.Size = larm.Size*sizemult
  121. rarm.Size = rarm.Size*sizemult
  122. lleg.Size = lleg.Size*sizemult
  123. rleg.Size = rleg.Size*sizemult
  124. head.Size = head.Size*sizemult
  125. torso.Size = torso.Size*sizemult
  126. root.Size = root.Size*sizemult
  127.  
  128. local larmweld = createWeld(torso,larm,-1.5*sizemult,0.5*sizemult,0)
  129. larmweld.C1 = CFrame.new(0,0.5*sizemult,0)
  130. local rarmweld = createWeld(torso,rarm,1.5*sizemult,0.5*sizemult,0)
  131. rarmweld.C1 = CFrame.new(0,0.5*sizemult,0)
  132. local headweld = createWeld(torso,head,0,sizemult,0)
  133. local llegweld = createWeld(torso,lleg,-0.5*sizemult,-1*sizemult,0)
  134. llegweld.C1 = CFrame.new(0,sizemult,0)
  135. local rlegweld = createWeld(torso,rleg,0.5*sizemult,-1*sizemult,0)
  136. rlegweld.C1 = CFrame.new(0,sizemult,0)
  137. local rj = rootjointc:Clone()
  138. rj.Part0 = root
  139. rj.Part1 = torso
  140. rj.Parent = root
  141. headweld.C1 = CFrame.new(0,-(sizemult/2),0)
  142.  
  143. local hatholder = Instance.new("Part",char)
  144. hatholder.Name = "HatHolder"
  145. hatholder.TopSurface,hatholder.BottomSurface = 0,0
  146. hatholder.Size = Vector3.new(2.3*sizemult,2.3*sizemult,2.3*sizemult)
  147. hatholder.CFrame = torso.CFrame
  148. hatholder.CanCollide = false
  149. hatholder.BrickColor = BrickColor.new("Really black")
  150. hatholder:BreakJoints()
  151. local hm = Instance.new("SpecialMesh",hatholder)
  152. hm.Name = "Hood"
  153. hm.MeshType = "FileMesh"
  154. hm.Scale = Vector3.new(sizemult,sizemult,sizemult)
  155. hm.MeshId = "rbxassetid://16952952"
  156. hm.VertexColor = Vector3.new(1,1,1)
  157. local hw = Instance.new("Weld")
  158. hw.Part0 = head
  159. hw.Part1 = hatholder
  160. hw.Parent = head
  161. hw.C0 = CFrame.new(0,0.3*sizemult,0)
  162. if head:FindFirstChild("face") then
  163. head.face:Destroy()
  164. end
  165. local face = Instance.new("Decal",head)
  166. face.Texture = "rbxassetid://87863552"
  167. for _,shpa in next,char:children() do
  168. if shpa:IsA("Shirt") or shpa:IsA("Pants") then
  169. shpa:Destroy()
  170. end
  171. end
  172. head.BrickColor = BrickColor.new("Really black")
  173. torso.BrickColor = BrickColor.new("Really black")
  174. larm.BrickColor = BrickColor.new("Really black")
  175. rarm.BrickColor = BrickColor.new("Really black")
  176. lleg.BrickColor = BrickColor.new("Really black")
  177. rleg.BrickColor = BrickColor.new("Really black")
  178. local shirt = Instance.new("Shirt",char)
  179. shirt.ShirtTemplate = "rbxassetid://770622763"
  180. local pants = Instance.new("Pants",char)
  181. pants.PantsTemplate = "rbxassetid://473574503"
  182.  
  183. local bg = Instance.new("BillboardGui",head)
  184. bg.AlwaysOnTop = true
  185. local bgframe = Instance.new("Frame",bg)
  186. bgframe.BackgroundTransparency = 1
  187. bgframe.Size = UDim2.new(0,200,0,25)
  188. bgframe.Position = UDim2.new(0.5,-100,0.5,-12)
  189. local bgtxt = Instance.new("TextLabel",bgframe)
  190. bgtxt.Size = UDim2.new(0,200,0,25)
  191. bgtxt.Position = UDim2.new(0.5,-100,0.5,-12)
  192. bgtxt.BackgroundTransparency = 1
  193. bgtxt.TextColor3 = BrickColor.new("Really red").Color
  194. bgtxt.Font = "SciFi"
  195. bgtxt.TextScaled = true
  196. spawn(function()
  197. local txt1 = "Destructo Mage by DevGamerzz"
  198. local txt2 = "Credits: Darkus_Theory"
  199. local txt3 = "Welcome to the end!"
  200. for i=1,#txt1 do
  201. bgtxt.Text = txt1:sub(1,i)
  202. wait()
  203. end
  204. wait()
  205. for i=#txt1,1,-1 do
  206. bgtxt.Text = txt1:sub(1,i)
  207. wait()
  208. end
  209. wait()
  210. for i=1,#txt2 do
  211. bgtxt.Text = txt2:sub(1,i)
  212. wait()
  213. end
  214. wait()
  215. for i=#txt2,1,-1 do
  216. bgtxt.Text = txt2:sub(1,i)
  217. wait()
  218. end
  219. wait()
  220. for i=1,#txt3 do
  221. bgtxt.Text = txt3:sub(1,i)
  222. wait()
  223. end
  224. wait()
  225. for i=0,1,0.1 do
  226. bgtxt.TextTransparency = i
  227. wait()
  228. end
  229. bg:Destroy()
  230. end)
  231.  
  232. local origlarmc0 = larmweld.C0
  233. local origrarmc0 = rarmweld.C0
  234. local origllegc0 = llegweld.C0
  235. local origrlegc0 = rlegweld.C0
  236. local origheadc0 = headweld.C0
  237. local origrjc1 = rj.C1
  238.  
  239. game:service'RunService'.RenderStepped:connect(function()
  240. local mg = Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude
  241. if mg > 3 then
  242. mode = "Walking"
  243. elseif mg < 3 then
  244. mode = "Idle"
  245. end
  246. if mode == "Walking" then
  247. larmweld.C0 = larmweld.C0:lerp(origlarmc0,0.1)
  248. rarmweld.C0 = rarmweld.C0:lerp(origrarmc0,0.1)
  249. llegweld.C0 = llegweld.C0:lerp(origllegc0,0.1)
  250. rlegweld.C0 = rlegweld.C0:lerp(origrlegc0,0.1)
  251. headweld.C0 = headweld.C0:lerp(origheadc0,0.1)
  252. rj.C1 = rj.C1:lerp(origrjc1,0.1)
  253. larmweld.C0 = larmweld.C0:lerp(larmweld.C0*CFrame.Angles(-math.rad(30),0,-math.rad(20)),0.1)
  254. rarmweld.C0 = rarmweld.C0:lerp(rarmweld.C0*CFrame.Angles(-math.rad(30),0,math.rad(20)),0.1)
  255. llegweld.C0 = llegweld.C0:lerp(llegweld.C0*CFrame.Angles(-math.rad(30),0,-math.rad(10)),0.1)
  256. rlegweld.C0 = rlegweld.C0:lerp(rlegweld.C0*CFrame.Angles(-math.rad(30),0,math.rad(10)),0.1)
  257. headweld.C0 = headweld.C0:lerp(headweld.C0*CFrame.Angles(-math.rad(20),0,0),0.1)
  258. rj.C1 = rj.C1:lerp(rj.C1*CFrame.new(0,0,-3),0.1)
  259. elseif mode == "Idle" then
  260. larmweld.C0 = larmweld.C0:lerp(origlarmc0,0.1)
  261. rarmweld.C0 = rarmweld.C0:lerp(origrarmc0,0.1)
  262. llegweld.C0 = llegweld.C0:lerp(origllegc0,0.1)
  263. rlegweld.C0 = rlegweld.C0:lerp(origrlegc0,0.1)
  264. headweld.C0 = headweld.C0:lerp(origheadc0,0.1)
  265. rj.C1 = rj.C1:lerp(origrjc1,0.1)
  266. larmweld.C0 = larmweld.C0:lerp(larmweld.C0*CFrame.Angles(math.rad(65),0,math.rad(55)),0.1)
  267. rarmweld.C0 = rarmweld.C0:lerp(rarmweld.C0*CFrame.Angles(math.rad(45),0,-math.rad(55)),0.1)
  268. larmweld.C0 = larmweld.C0:lerp(larmweld.C0*CFrame.new(0,-0.7,0),0.1)
  269. rarmweld.C0 = rarmweld.C0:lerp(rarmweld.C0*CFrame.new(0,-0.7,0),0.1)
  270. llegweld.C0 = llegweld.C0:lerp(llegweld.C0*CFrame.Angles(-math.rad(10),0,-math.rad(5)),0.1)
  271. rlegweld.C0 = rlegweld.C0:lerp(rlegweld.C0*CFrame.Angles(-math.rad(10),0,math.rad(5)),0.1)
  272. rj.C1 = rj.C1:lerp(origrjc1,0.1)
  273. end
  274. end)
  275.  
  276. mouse.KeyDown:connect(function(key)
  277. if key == "x" and deb_h == false then
  278. deb_h = true
  279. chat:Chat(head,"Redemption's Inevitable Downfall",Enum.ChatColor.Red)
  280. local cce = Instance.new("ColorCorrectionEffect",lighting)
  281. cce.TintColor = Color3.new(1,0,0)
  282. for i=0,1,0.005 do
  283. cce.Brightness = i
  284. wait()
  285. end
  286. for _,c in next,workspace:children() do
  287. if c:FindFirstChild("Humanoid") and c.Name ~= plr.Character.Name then
  288. c.Humanoid.MaxHealth = 100
  289. c.Humanoid.Health = c.Humanoid.Health-math.random(60,99)
  290. end
  291. end
  292. cce:Destroy()
  293. spawn(function()
  294. wait(0)
  295. deb_h = false
  296. end)
  297. elseif key == "z" and deb_t == false then
  298. deb_t = true
  299. chat:Chat(head,"Redemption's Absolution",Enum.ChatColor.Red)
  300. for _,c in next,workspace:children() do
  301. if c:FindFirstChild("Humanoid") and c.Name ~= plr.Character.Name and c:FindFirstChild("Head") then
  302. local fire = Instance.new("Fire",c.Head)
  303. fire.Size = 30
  304. fire.Heat = 25
  305. fire.Color = Color3.new(65/255,0,0)
  306. fire.SecondaryColor = Color3.new(0,0,0)
  307. spawn(function()
  308. for i=1,math.random(1,10) do
  309. if c:FindFirstChild("Humanoid") then
  310. c.Humanoid.Health = c.Humanoid.Health-math.random(1,5)
  311. wait()
  312. else
  313. break
  314. end
  315. end
  316. spawn(function()
  317. wait(0)
  318. if fire then
  319. fire:Destroy()
  320. end
  321. end)
  322. end)
  323. end
  324. end
  325. spawn(function()
  326. wait(0)
  327. deb_t = false
  328. end)
  329. end
  330. end)
  331. hum.CameraOffset = head.Position
  332. repeat wait()
  333. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  334. local mouse = game.Players.LocalPlayer:GetMouse()
  335. repeat wait() until mouse
  336. local plr = game.Players.LocalPlayer
  337. local torso = plr.Character.Torso
  338. local flying = true
  339. local deb = true
  340. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  341. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  342. local maxspeed = 50
  343. local speed = 0
  344. repeat wait()
  345. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  346. local mouse = game.Players.LocalPlayer:GetMouse()
  347. repeat wait() until mouse
  348. local plr = game.Players.LocalPlayer
  349. local torso = plr.Character.Torso
  350. local flying = true
  351. local deb = true
  352. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  353. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  354. local maxspeed = 50
  355. local speed = 0
  356.  
  357. function Fly()
  358. local bg = Instance.new("BodyGyro", torso)
  359. bg.P = 9e4
  360. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  361. bg.cframe = torso.CFrame
  362. local bv = Instance.new("BodyVelocity", torso)
  363. bv.velocity = Vector3.new(0,0.1,0)
  364. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  365. repeat wait()
  366. plr.Character.Humanoid.PlatformStand = true
  367. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  368. speed = speed+.5+(speed/maxspeed)
  369. if speed > maxspeed then
  370. speed = maxspeed
  371. end
  372. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  373. speed = speed-1
  374. if speed < 0 then
  375. speed = 0
  376. end
  377. end
  378. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  379. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  380. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  381. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  382. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  383. else
  384. bv.velocity = Vector3.new(0,0.1,0)
  385. end
  386. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  387. until not flying
  388. ctrl = {f = 0, b = 0, l = 0, r = 0}
  389. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  390. speed = 0
  391. bg:Destroy()
  392. bv:Destroy()
  393. plr.Character.Humanoid.PlatformStand = false
  394. end
  395. mouse.KeyDown:connect(function(key)
  396. if key:lower() == "e" then
  397. if flying then flying = false
  398. else
  399. flying = true
  400. Fly()
  401. end
  402. elseif key:lower() == "w" then
  403. ctrl.f = 1
  404. elseif key:lower() == "s" then
  405. ctrl.b = -1
  406. elseif key:lower() == "a" then
  407. ctrl.l = -1
  408. elseif key:lower() == "d" then
  409. ctrl.r = 1
  410. end
  411. end)
  412. mouse.KeyUp:connect(function(key)
  413. if key:lower() == "w" then
  414. ctrl.f = 0
  415. elseif key:lower() == "s" then
  416. ctrl.b = 0
  417. elseif key:lower() == "a" then
  418. ctrl.l = 0
  419. elseif key:lower() == "d" then
  420. ctrl.r = 0
  421. end
  422. end)
  423. Fly()
Add Comment
Please, Sign In to add comment