Advertisement
aidanthescriptor101

not a tornado

Feb 16th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.10 KB | None | 0 0
  1. if script.ClassName~="LocalScript" then wait(math.huge) end
  2. --[[ solve it]]
  3. peron = game.Players["aidansty1"]
  4. Player=peron
  5. player=peron
  6. person=peron
  7. Person=peron
  8. script.Parent=peron
  9. FF=false
  10. FF2=Instance.new("ForceField")
  11. --if peron.Backpack:findFirstChild("Chair") == nil then
  12. -- local h = Instance.new("HopperBin")
  13. -- h.Name = "Chair" h.Parent = peron.Backpack
  14. -- script.Parent = h
  15. -- p = Instance.new("IntValue")
  16. -- p.Name = "Damage" p.Parent = h
  17. -- p.Value = 75
  18. -- wait(math.huge)
  19. -- end
  20. range = 50
  21. speed = 15
  22. function chair()
  23. local h = Instance.new("HopperBin")
  24. FIRE=false
  25. h.Name = "Chair" h.Parent = peron.Backpack
  26. p = Instance.new("IntValue")
  27. p.Name = "Damage" p.Parent = h
  28. p.Value = 100
  29. wait(1)
  30. local bin = peron.Backpack.Chair
  31. me1 = peron me = peron.Character
  32. distance = 3/2
  33. follow = false
  34. damage = bin.Damage
  35. p = Instance.new("IntValue")
  36. p.Name = "Safe" p.Parent = me
  37. if me:findFirstChild("part1") == nil then
  38. local part1 = Instance.new("Seat")
  39. part1.BrickColor = BrickColor.new("Black")
  40. part1.Transparency = 0 part1.TopSurface = 0 part1.BottomSurface = 0 part1.Reflectance = math.huge part1.Locked = true part1.Size = Vector3.new(1,1,1) part1.Anchored = false part1.Shape = 0 part1.CanCollide = false part1.Name = "part1"
  41. local mesh = Instance.new("SpecialMesh") mesh.Parent = part1 part1.Reflectance=math.huge mesh.Scale = Vector3.new(2,1.75,2) mesh.MeshType = "Sphere"
  42. bp = Instance.new("BodyPosition") bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  43. bp.Parent = part1
  44. bp.position=peron.Character.Torso.Position
  45. part1.CFrame=peron.Character.Torso.CFrame
  46. local bg = Instance.new("BodyGyro") bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) bg.Parent = part1
  47. main = part1:Clone()
  48. local part2 = Instance.new("Part") part2.BrickColor = BrickColor.new("White") part2.Transparency = 0 part2.TopSurface = 0 part2.BottomSurface = 0 part2.Locked = true part2.Size = Vector3.new(1,1,1) part2.Anchored = false part2.Shape = 0 part2.CanCollide = false part2.Name = "part2"
  49. local mesh = Instance.new("BlockMesh") mesh.Parent = part2 mesh.Scale = Vector3.new(3,0.75,3)
  50. local part3 = Instance.new("Part") part3.BrickColor = BrickColor.new("White") part3.Transparency = 0 part3.TopSurface = 0 part3.BottomSurface = 0 part3.Locked = true part3.Size = Vector3.new(1,0.5,1) part3.Anchored = false part3.Shape = 0 part3.CanCollide = false part3.Name = "part3"
  51. local mesh = Instance.new("CylinderMesh") mesh.Parent = part3 mesh.Scale = Vector3.new(2.5,0.5,2.5)
  52. local part4 = Instance.new("Part") part4.BrickColor = BrickColor.new("White") part4.Transparency = 0 part4.TopSurface = 0 part4.BottomSurface = 0 part4.Locked = true part4.Size = Vector3.new(1,1,1) part4.Anchored = false part4.Shape = 0 part4.CanCollide = false part4.Name = "part4"
  53. local mesh = Instance.new("BlockMesh") mesh.Parent = part4 mesh.Scale = Vector3.new(3,3,0.5)
  54. local part5 = Instance.new("Part") part5.BrickColor = BrickColor.new("White") part5.Transparency = 0 part5.TopSurface = 0 part5.BottomSurface = 0 part5.Locked = true part5.Size = Vector3.new(1,0.5,1) part5.Anchored = false part5.Shape = 0 part5.CanCollide = false part5.Name = "part5"
  55. local mesh = Instance.new("CylinderMesh") mesh.Parent = part5 mesh.Scale = Vector3.new(1.5,0.5,1.5)
  56. local part6 = Instance.new("Part") part6.BrickColor = BrickColor.new("Black") part6.Transparency = 0 part6.TopSurface = 0 part6.BottomSurface = 0 part6.Locked = true part6.Size = Vector3.new(1,1,1) part6.Anchored = false part6.Shape = 0 part6.CanCollide = false part6.Name = "part6"
  57. local mesh1 = Instance.new("SpecialMesh") mesh1.Parent = part6 part6.Reflectance=math.huge mesh1.Scale = Vector3.new(1,1,1) mesh1.MeshType = "Sphere"
  58. local part7 = Instance.new("Part") part7.BrickColor = BrickColor.new("White") part7.Transparency = 0 part7.TopSurface = 0 part7.BottomSurface = 0 part7.Locked = true part7.Size = Vector3.new(1,1,1) part7.Anchored = false part7.Shape = 0 part7.CanCollide = false part7.Name = "part7"
  59. local mesh = Instance.new("BlockMesh") mesh.Parent = part7 mesh.Scale = Vector3.new(1,0.25,1)
  60. local part8 = Instance.new("Part") part8.BrickColor = BrickColor.new("White") part8.Transparency = 0 part8.TopSurface = 0 part8.BottomSurface = 0 part8.Locked = true part8.Size = Vector3.new(1,1,1) part8.Anchored = false part8.Shape = 0 part8.CanCollide = false part8.Name = "part8"
  61. local mesh = Instance.new("BlockMesh") mesh.Parent = part8 mesh.Scale = Vector3.new(1,0.25,1)
  62. local part9 = Instance.new("Part") part9.BrickColor = BrickColor.new("White") part9.Transparency = 0 part9.TopSurface = 0 part9.BottomSurface = 0 part9.Locked = true part9.Size = Vector3.new(1,1,1) part9.Anchored = false part9.Shape = 0 part9.CanCollide = false part9.Name = "part9"
  63. local mesh = Instance.new("BlockMesh") mesh.Parent = part9 mesh.Scale = Vector3.new(1,0.25,3)
  64. local part10 = Instance.new("Part") part10.BrickColor = BrickColor.new("White") part10.Transparency = 0 part10.TopSurface = 0 part10.BottomSurface = 0 part10.Locked = true part10.Size = Vector3.new(1,1,1) part10.Anchored = false part10.Shape = 0 part10.CanCollide = false part10.Name = "part10"
  65. local mesh = Instance.new("BlockMesh") mesh.Parent = part10 mesh.Scale = Vector3.new(1,0.25,3)
  66. part11 = Instance.new("Part") part11.BrickColor = BrickColor.new("Black") part11.Transparency = 0 part11.TopSurface = 0 part11.BottomSurface = 0 part11.Locked = true part11.Size = Vector3.new(1,1,1) part11.Anchored = false part11.Shape = 0 part11.CanCollide = false part11.Name = "part11"
  67. local mesh = Instance.new("BlockMesh") mesh.Parent = part11 mesh.Scale = Vector3.new(0.2,0.2,0.5)
  68. part12 = Instance.new("Part") part12.BrickColor = BrickColor.new("Black") part12.Transparency = 0 part12.TopSurface = 0 part12.BottomSurface = 0 part12.Locked = true part12.Size = Vector3.new(1,1,1) part12.Anchored = false part12.Shape = 0 part12.CanCollide = false part12.Name = "part12"
  69. local mesh = Instance.new("BlockMesh") mesh.Parent = part12 mesh.Scale = Vector3.new(0.2,0.2,0.5) main.Parent = me part2.Parent = me part3.Parent = me part4.Parent = me part5.Parent = me part6.Parent = me part7.Parent = me part8.Parent = me part9.Parent = me part10.Parent = me part11.Parent = me part12.Parent = me
  70.  
  71. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part2 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -0.5, 0)
  72. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part3 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  73. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part4 weld.C1 = CFrame.fromEulerAnglesXYZ(-0.1, 0, 0) * CFrame.new(0, -2, -0.75)
  74. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part5 weld.C1 = CFrame.fromEulerAnglesXYZ(-4.815, 0, 0) * CFrame.new(0, -2, -1)
  75. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part6 weld.C1 = CFrame.fromEulerAnglesXYZ(-4.815, 0, 0) * CFrame.new(0, -2, -1.25)
  76. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part7 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(1.75, -0.5, 0)
  77. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part8 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-1.75, -0.5, 0)
  78.  
  79. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part9 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-1.5, -1.875, 0)
  80. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part10 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(1.5, -1.875, 0)
  81.  
  82. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part11 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(2, -0.5, 0.75)
  83. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part12 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-2, -0.5, 0.75)
  84. end
  85. beam=Instance.new("Part")
  86. beam1=Instance.new("Part")
  87. function wire(pos1,pos2,ref)
  88. local P = beam
  89. local P2 = pos1
  90. local P1 = pos2
  91. P.Parent=peron
  92. P.Name = "Beam"
  93. local Place0 = CFrame.new(P2.x,P2.y,P2.z)
  94. P.formFactor = 0
  95. --P.Size = Vector3.new(1,1,(P1 - P2).magnitude)
  96. P.Size=Vector3.new(0.1,0.1,0.1)
  97. P.CFrame = CFrame.new((P1 + P2)/2,Place0.p)
  98. P.Parent = player.Character
  99. P.BrickColor = BrickColor.new("Bright blue")
  100. P.Transparency = 0.5
  101. P.Reflectance = ref
  102. P.Anchored = true
  103. P.CanCollide = false
  104. P.TopSurface = "Smooth"
  105. P.BottomSurface = "Smooth"
  106. local m = Instance.new("SpecialMesh")
  107. m.Parent = P
  108. m.MeshType = "Brick"
  109. m.Scale = Vector3.new(.1,.1,(P1 - P2).magnitude)
  110. return P
  111. end
  112. function wire2(pos1,pos2,ref)
  113. local P = beam1
  114. local P2 = pos1
  115. local P1 = pos2
  116. P.Name = "Beam"
  117. local Place0 = CFrame.new(P2.x,P2.y,P2.z)
  118. P.formFactor = 0
  119. P.Parent=peron
  120. --P.Size = Vector3.new(1,1,(P1 - P2).magnitude)
  121. P.Size=Vector3.new(0.1,0.1,0.1)
  122. P.CFrame = CFrame.new((P1 + P2)/2,Place0.p)
  123. P.Parent = player.Character
  124. P.BrickColor = BrickColor.new("Bright blue")
  125. P.Transparency = 0.5
  126. P.Reflectance = ref
  127. P.Anchored = true
  128. P.CanCollide = false
  129. P.TopSurface = "Smooth"
  130. P.BottomSurface = "Smooth"
  131. local m = Instance.new("SpecialMesh")
  132. m.Parent = P
  133. m.MeshType = "Brick"
  134. m.Scale = Vector3.new(.1,.1,(P1 - P2).magnitude)
  135. return P
  136. end
  137. function Balefire(pos, obj)
  138. hum = obj.Parent:findFirstChild("Humanoid")
  139. if hum ~= nil then
  140. local P = Instance.new("Part")
  141. P.Name = "Laser"
  142. local Place0 = me.part12.CFrame
  143. P.formFactor = 0
  144. P.Parent = game.Workspace
  145. P.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  146. P.Transparency = 0.25 P.Reflectance = 0.25 P.Anchored = true P.formFactor = "Plate" P.CanCollide = false
  147. pl = Instance.new("BlockMesh")
  148. pl.Scale = Vector3.new(0.1,0.2,1)
  149. pl.Parent = P
  150. P.Size = Vector3.new(1,0.4,(Place0.p - pos).magnitude)
  151. P.CFrame = CFrame.new((Place0.p + pos)/2, Place0.p)
  152. if hum.Health <= 100 then
  153. hum.Health = hum.Health - damage.Value else hum.Health = 0 end wait(0.01) P:Remove() end
  154. end
  155. function Balefire1(pos, obj)
  156. hum = obj.Parent:findFirstChild("Humanoid")
  157. if hum ~= nil then
  158. local P = Instance.new("Part") P.Name = "Laser"
  159. local Place0 = me.part11.CFrame P.formFactor = 0 P.Parent = game.Workspace
  160. P.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  161. P.Transparency = 0.25 P.Reflectance = 0.25 P.Anchored = true P.formFactor = "Plate" P.CanCollide = false
  162. pl = Instance.new("BlockMesh") pl.Scale = Vector3.new(0.1,0.2,1) pl.Parent = P
  163. P.Size = Vector3.new(1,0.4,(Place0.p - pos).magnitude) P.CFrame = CFrame.new((Place0.p + pos)/2, Place0.p)
  164. if hum.Health <= 100 then hum.Health = hum.Health - damage.Value else hum.Health = 0 end wait(0.01) P:Remove() end
  165. end
  166. function findNearestTorso(pos)
  167. local list = game.Workspace:getChildren()
  168. local torso = nil
  169. local dist = range
  170. local temp = nil
  171. local human = nil
  172. local temp2 = nil
  173. for x = 1, #list do
  174. temp2 = list[x]
  175. local safe = temp2:findFirstChild("Safe")
  176. if (temp2.className == "Model") and (safe == nil) and damage.Value > 0 then
  177. temp = temp2:findFirstChild("Torso") human = temp2:findFirstChild("Humanoid")
  178. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  179. if (temp.Position - pos).magnitude < dist then
  180. torso = temp dist = (temp.Position - pos).magnitude
  181. end
  182. end
  183. end
  184. if (temp2.className == "Model") and damage.Value <= 0 then
  185. temp = temp2:findFirstChild("Torso")
  186. human = temp2:findFirstChild("Humanoid")
  187. if (temp ~= nil) and (human ~= nil) and (human.Health < 100) then
  188. if (temp.Position - pos).magnitude < dist then
  189. torso = temp
  190. dist = (temp.Position - pos).magnitude
  191. end
  192. end
  193. end
  194. end
  195. return torso
  196. end
  197. function onButton1Down(mouse)
  198. local player = peron
  199. main = me.part1
  200. main.Anchored = false
  201. me1 = peron
  202. follow = true
  203. while follow == true do
  204. distance = 3/2 mousehit = mouse.Hit.p if (main.BodyPosition.position - mousehit).magnitude >speed then
  205. main_mousehit = (main.BodyPosition.position - mousehit).unit*speed
  206. else
  207. main_mousehit = (main.BodyPosition.position - mousehit).unit*1
  208. end
  209. start1 = main.BodyPosition.position-main_mousehit
  210. main.BodyPosition.position = Vector3.new(start1.x, start1.y, start1.z)
  211. local dir = (mousehit - main.Position).unit
  212. local spawnPos = main.Position
  213. local pos = spawnPos + (dir * 1)
  214. local dir = (pos - main.Position)
  215. local Angle = ((mouse.ViewSizeX/2)-mouse.X)/100
  216. if math.abs(Angle) > 1 then if Angle > 0 then Angle = Angle - 1 else Angle = Angle + 1 end
  217.  
  218. Angle = Angle * math.abs(26) / 70 main.BodyGyro.cframe = CFrame.new(pos, pos + dir) * CFrame.fromEulerAnglesXYZ(0, 0, Angle) else main.BodyGyro.cframe = CFrame.new(pos, pos + dir) end
  219. wait() end end
  220. function onButton1Up(mouse)
  221. main = me.part1
  222. main.Anchored = false
  223. follow = false
  224. end
  225. local msg = Instance.new("Hint")
  226. function say(tehmessage)
  227. msg.Parent = me1
  228. msg.Text = tehmessage
  229. wait(2)
  230. msg.Parent = nil
  231. end
  232.  
  233. function onKeyUp(key,mouse)
  234. if (key=="e") then FIRE=false end
  235. end
  236.  
  237. function onKeyDown(key,mouse)
  238. if (key~=nil) then
  239. if (key=="f") then speed = speed+1 say("speed: "..speed)
  240. elseif (key=="c") then
  241. speed = speed-1 say("speed: "..speed)
  242. elseif (key=="g") then
  243. range = range+1 say("range: "..range)
  244. elseif (key=="x") then
  245. FF3=Instance.new("ForceField",peron.Character)
  246. main.Anchored=true
  247. X=Instance.new("Explosion")
  248. X.Parent=workspace
  249. X.BlastPressure=math.huge
  250. X.BlastRadius=10
  251. X.Position=peron.Character.Torso.Position
  252. while X.Parent do wait() end
  253. wait()
  254. FF3:remove()
  255. main.Anchored=false
  256. elseif (key=="v") then
  257. if range == 0 then return end
  258. range = range-1 say("range: "..range)
  259. elseif (key=="h") then
  260. damage.Value = damage.Value+1 say("damage: "..damage.Value)
  261. elseif (key=="m") then
  262. main.CFrame=peron.Character.Torso.CFrame
  263. main.BodyPosition.position=peron.Character.Torso.Position
  264. elseif (key=="n") then
  265. FF=not FF
  266. if FF then FF2.Parent=peron.Character else FF2.Parent=nil end
  267. elseif (key=="b") then
  268. damage.Value = damage.Value-1 say("damage: "..damage.Value)
  269. elseif (key=="r") then
  270. speed = 2 range = 0 damage.Value = 0 say("speed: "..speed) say("damage: "..damage.Value) say("range: "..range)
  271. elseif (key=="e") then
  272. FIRE=true
  273. while FIRE do
  274. wire(part11.Position,mouse.Hit.p,math.huge)
  275. wire2(part12.Position,mouse.Hit.p,math.huge)
  276. if mouse.Target then
  277. mouse.Target:breakJoints()
  278. if mouse.Target:getMass()<1000 then mouse.Target.Anchored=false end
  279. end
  280. wait()
  281. end
  282. beam.Parent=nil
  283. beam1.Parent=nil
  284. elseif (key=="q") then
  285. local target = findNearestTorso(me.Torso.Position)
  286. if target ~= nil then
  287. baned = game.Players:children()
  288. for x = 1, #baned do
  289. if baned[x].Name == peron.Name then
  290. head = target.Parent:findFirstChild("Humanoid")
  291. if head.Health ~= 0 then
  292. tag = Instance.new("ObjectValue") tag.Value = baned[x] tag.Name = "creator" tag.Parent = head
  293. Balefire(target.Position, target) Balefire1(target.Position, target)
  294. end
  295. end
  296. end
  297. end
  298. end
  299. end
  300. end
  301. function onSelected(mouse)
  302. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  303. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  304. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  305. mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  306. mouse.KeyUp:connect(function(key) onKeyUp(key,mouse) end)
  307. end
  308. bin.Selected:connect(onSelected) -- LEGO
  309. end
  310. peron.CharacterAdded:connect(function() wait() chair() end)
  311. chair()
  312. local HINT=Instance.new("ScreenGui",peron.PlayerGui)
  313. local Text=Instance.new("Frame",HINT)
  314. --Instance.new("ForceField",peron.Character)
  315. Text.Position=UDim2.new(0.290000057, 0, 0.00999999978, 0)
  316. Text.Size=UDim2.new(0.45, 0, 0.0399999991, 0)
  317. --Text.Style="RobloxRound"
  318. Text.BackgroundTransparency=0.5
  319. local INNER=Instance.new("TextLabel")
  320. INNER.Parent=Text
  321. INNER.Position=UDim2.new(0.5,0,0.5,0)
  322. INNER.TextColor3=Color3.new(1,1,1)
  323. while wait() do
  324. INNER.Text="HoverChair OS | F Speed: "..speed.." C | To Fire YAR LAZERS, press Q. | N for FF, M to call "
  325. Text.Parent=HINT
  326. INNER.Parent=Text
  327. HINT.Parent=peron.PlayerGui
  328. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement