IHackShootingGames

Tron?

Nov 30th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.67 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------------------------------------
  2. wait(0.1)
  3. local KillPhrases = {"defragged","defragmented","shredded","derezzed","killed","deleted","erased","destroyed","annihilated","wrecked"}
  4. local ShirtId = ""
  5. local PantsId = ""
  6. local Sounds = {
  7. Burst = "101084318",
  8. Defrag = "28104389"
  9. }
  10. for _,v in pairs(Sounds) do
  11. game:service("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..v)
  12. end
  13. function CheckI(Item,Blacklist,Specific)
  14. for _,v in pairs(Item:children()) do
  15. if not Specific then
  16. if v:IsA(Blacklist) or v.Name:match(Blacklist) then
  17. v:Destroy()
  18. end
  19. else
  20. if v:IsA(Blacklist) or v.Name == Blacklist then
  21. v:Destroy()
  22. end
  23. end
  24. end
  25. end
  26. if(game.Players.LocalPlayer.Parent == nil)then
  27. pcall(function()
  28. game.Players.LocalPlayer.Backpack:Remove()
  29. end)
  30. m = Instance.new("Backpack",game.Players.LocalPlayer)
  31. end
  32. local Boost = false
  33. local Speed = 100
  34. local SpinningSpeed = .2
  35. --> Basic Variables
  36. me = game.Players.LocalPlayer
  37. Backpack = me.Backpack
  38. PGui = me.PlayerGui
  39. Character = me.Character
  40. Torso = Character.Torso
  41. Head = Character.Head
  42. mouse = me:GetMouse()
  43. LeftArm = Character["Left Arm"]
  44. RightArm = Character["Right Arm"]
  45. RightLeg = Character["Right Leg"]
  46. LeftLeg = Character["Left Leg"]
  47. Humanoid = Character.Humanoid
  48. LS = Torso["Left Shoulder"]
  49. LH = Torso["Left Hip"]
  50. RS = Torso["Right Shoulder"]
  51. RH = Torso["Right Hip"]
  52. LSC0 = LS.c0
  53. RSC0 = RS.c0
  54. Head.face:Destroy()
  55. local Color = Torso.BrickColor
  56. if Color == BrickColor.new("Really black") then
  57. Color = BrickColor.Black()
  58. end
  59. local Defrag
  60. if me:FindFirstChild("Defrag") then
  61. Defrag = me.Defrag
  62. else
  63. Defrag = Instance.new("NumberValue",me)
  64. end
  65. CheckI(Character,"Hat")
  66. CheckI(Character,"BodyColors")
  67. CheckI(Character,"ShirtGraphic")
  68. CheckI(Character,"Clothing")
  69. CheckI(Torso,"Decal")
  70. CheckI(PGui,"ScreenGui")
  71. CheckI(Head,"Sound")
  72. Instance.new("Shirt",Character).ShirtTemplate = "http://www.roblox.com/asset/?id=14661984"
  73. Instance.new("Pants",Character).PantsTemplate = "http://www.roblox.com/asset/?id=14664846"
  74. local Gui = Instance.new("ScreenGui",PGui)
  75. Gui.Name = "HUD"
  76. local notifyti = false
  77. function Notify(Msg)
  78. if not notifyti then
  79. Delay(0,function()
  80. notifyti = true
  81. local Frame = Instance.new("Frame",Gui)
  82. Frame.Size = UDim2.new(0.3,0,0.1,0)
  83. Frame.Position = UDim2.new(0.35,0,1,0)
  84. Frame.BorderSizePixel = 0
  85. Frame.BackgroundTransparency = 0.5
  86. Frame.BackgroundColor = Color
  87. Frame:TweenPosition(UDim2.new(0.35,0,0.9,0))
  88. local TextLabel = Instance.new("TextLabel",Frame)
  89. TextLabel.Text = Msg
  90. TextLabel.Size = UDim2.new(1,0,1,0)
  91. TextLabel.BackgroundTransparency = 1
  92. TextLabel.Font = 2
  93. TextLabel.TextStrokeTransparency = 0
  94. TextLabel.TextColor3 = Color3.new(1,1,1)
  95. TextLabel.TextScaled = true
  96. wait(3)
  97. Frame:TweenPosition(UDim2.new(0.35,0,-0.15,0))
  98. game.Debris:AddItem(Frame,3)
  99. notifyti = false
  100. end)
  101. end
  102. end
  103. for i = 0,5 do
  104. local dec = Instance.new("Decal",Head)
  105. dec.Texture = "http://www.roblox.com/asset/?id=8772734"
  106. dec.Face = i
  107. end
  108. function laser(to,from) -- MUST BE VECTOR3
  109. local las=Instance.new("Part",Torso)
  110. las.Anchored=true
  111. las.Locked=true
  112. las.CanCollide=false
  113. las.TopSurface=0
  114. las.BottomSurface=0
  115. las.FormFactor = 3
  116. las.BrickColor=Color
  117. las.Size=Vector3.new(3,1,3)
  118. las.CFrame=CFrame.new((to+from)/2,from)*CFrame.Angles(math.rad(90),0,0)
  119. las.Touched:connect(function(paaart)
  120. local plaay = game.Players:GetPlayerFromCharacter(paaart.Parent) or game.Players:GetPlayerFromCharacter(paaart.Parent.Parent)
  121. if plaay and plaay ~= me then
  122. if not plaay.Character:FindFirstChild("Killer") then
  123. plaay.Character:BreakJoints()
  124. local tag = Instance.new("ObjectValue",plaay.Character)
  125. tag.Name = "Killer"
  126. tag.Value = me
  127. Notify("You "..KillPhrases[math.random(1,#KillPhrases)].." "..plaay.Name.."!")
  128. end
  129. end
  130. end)
  131. local msh=Instance.new("CylinderMesh",las)
  132. msh.Scale=Vector3.new(0.025,(to-from).magnitude,0.025)
  133. game.Debris:AddItem(las,4)
  134. return las
  135. end
  136. if(Backpack:findFirstChild("Surf") ~= nil)then
  137. Backpack.Surf:Remove()
  138. end
  139. script.Parent = nil
  140. script.Name = "Flight"
  141. function Derez(part)
  142. part.Transparency = 1
  143. CheckI(part,"Decal")
  144. part.Anchored = true
  145. for i = 1,5 do
  146. local parti = Instance.new("Part",Character)
  147. parti.Anchored = true
  148. parti.TopSurface = 0
  149. parti.BottomSurface = 0
  150. parti.formFactor = 3
  151. parti.CanCollide = false
  152. parti.Size = Vector3.new(math.random(2,14)/10,math.random(2,14)/10,math.random(2,14)/10)
  153. parti.CFrame = part.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  154. parti.Transparency = 0
  155. parti.BrickColor = part.BrickColor
  156. local pax = 0
  157. local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  158. game:service("RunService").Stepped:connect(function()
  159. pax = pax + 0.2
  160. parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(pax),math.rad(pax),math.rad(pax)))+pad
  161. parti.Transparency = parti.Transparency + 0.015
  162. end)
  163. end
  164. game.Debris:AddItem(part,3)
  165. end
  166. function Play(id,pi,vol)
  167. local So = Instance.new("Sound",Character.Torso)
  168. So.SoundId = "http://www.roblox.com/asset/?id="..id
  169. So.Pitch = pi or 1
  170. So.Volume = vol or 1
  171. wait()
  172. So:Play()
  173. end
  174. Humanoid.Died:connect(function()
  175. for _,v in pairs(Character:children()) do
  176. if v:IsA("Part") then
  177. Derez(v)
  178. end
  179. end
  180. Notify("[DEFRAGMENTATION]")
  181. Defrag.Value = Defrag.Value + 1
  182. Play(Sounds.Defrag)
  183. end)
  184. Clicking = false
  185. Spinning = false
  186. LSpinning = false
  187. LAP = Vector3.new(0,0,0)
  188. RAP = Vector3.new(0,0,0)
  189. bg = Instance.new("BodyGyro")
  190. bg.Parent = Torso
  191. bg.maxTorque = Vector3.new(0,0,0)
  192. bv = Instance.new("BodyVelocity")
  193. bv.Parent = Torso
  194. bv.maxForce = Vector3.new(0,0,0)
  195. mouse.Button1Down:connect(function()
  196. Clicking = true
  197. CF = LeftArm.CFrame*CFrame.new(0,-1,0)
  198. LAP = CF.p
  199. CF = RightArm.CFrame*CFrame.new(0,-1,0)
  200. RAP = CF.p
  201. end)
  202. mouse.Button1Up:connect(function()
  203. Clicking = false
  204. end)
  205. mouse.KeyDown:connect(function(key)
  206. if Clicking then
  207. if key == "d" then
  208. Spinning = true
  209. LSpinning = false
  210. num = 0
  211. elseif key == "a" then
  212. LSpinning = true
  213. Spinning = false
  214. num = 0
  215. elseif key == " " and Boost == false then
  216. Boost = true
  217. Play(Sounds.Burst)
  218. local prevspeed = Speed
  219. Speed = Speed * 1.8
  220. wait(4)
  221. Speed = prevspeed
  222. Boost = false
  223. end
  224. end
  225. end)
  226. mouse.KeyUp:connect(function(key)
  227. if key == "d" then
  228. Spinning = false
  229. elseif key == "a" then
  230. LSpinning = false
  231. end
  232. end)
  233. num = 0
  234. game:service("RunService").Stepped:connect(function()
  235. for _,v in pairs(Character:children()) do
  236. if v:IsA("Part") then
  237. v.BrickColor = Color
  238. end
  239. end
  240. if(Clicking == true)then
  241. Hit = mouse.hit
  242. Target = mouse.target
  243. Humanoid.PlatformStand = true
  244. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  245. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  246. if Spinning == true or LSpinning == true then
  247. if Spinning then
  248. num = num + SpinningSpeed
  249. elseif LSpinning then
  250. num = num - SpinningSpeed
  251. end
  252. bg.cframe = CFrame.new(Torso.Position,mouse.Hit.p)*CFrame.Angles(-1.55,num,0)
  253. else
  254. bg.cframe = CFrame.new(Torso.Position,mouse.Hit.p)*CFrame.Angles(-1.55,0,0)
  255. end
  256. Hit2 = Hit*CFrame.Angles(0,0,1.55)
  257. bv.velocity = (Hit2.lookVector*Speed)
  258. if Boost then
  259. RS.C0 = RSC0*CFrame.Angles(-math.rad(30),0,0)*CFrame.new(0,-.5,-.5)
  260. LS.C0 = LSC0*CFrame.Angles(-math.rad(30),0,0)*CFrame.new(0,-.5,-.5)
  261. else
  262. RS.C0 = RSC0*CFrame.Angles(-math.rad(60),0,0)*CFrame.new(0,-.5,-.5)
  263. LS.C0 = LSC0*CFrame.Angles(-math.rad(60),0,0)*CFrame.new(0,-.5,-.5)
  264. end
  265. CF = RightArm.CFrame*CFrame.new(0,-0.9,0)
  266. laser(CF.p,RAP)
  267. RAP = CF.p
  268. CF = LeftArm.CFrame*CFrame.new(0,-0.9,0)
  269. laser(CF.p,LAP)
  270. LAP = CF.p
  271. else
  272. Humanoid.PlatformStand = false
  273. bg.maxTorque = Vector3.new(0,0,0)
  274. bv.maxForce = Vector3.new(0,0,0)
  275. RS.C0 = RSC0
  276. LS.C0 = LSC0
  277. end
  278. end)
Add Comment
Please, Sign In to add comment