Advertisement
BabyGoatz

Untitled

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