Advertisement
firebudgy

Untitled

Jan 29th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. HopperBin2 = Instance.new("HopperBin")
  22. Script3 = Instance.new("Script")
  23. ObjectValue4 = Instance.new("ObjectValue")
  24. Script5 = Instance.new("Script")
  25. Script6 = Instance.new("Script")
  26. Model7 = Instance.new("Model")
  27. Part8 = Instance.new("Part")
  28. BlockMesh9 = Instance.new("BlockMesh")
  29. BodyGyro10 = Instance.new("BodyGyro")
  30. BodyPosition11 = Instance.new("BodyPosition")
  31. Part12 = Instance.new("Part")
  32. BlockMesh13 = Instance.new("BlockMesh")
  33. Weld14 = Instance.new("Weld")
  34. Part15 = Instance.new("Part")
  35. BlockMesh16 = Instance.new("BlockMesh")
  36. Weld17 = Instance.new("Weld")
  37. Part18 = Instance.new("Part")
  38. BlockMesh19 = Instance.new("BlockMesh")
  39. Weld20 = Instance.new("Weld")
  40. Model21 = Instance.new("Model")
  41. Part22 = Instance.new("Part")
  42. BlockMesh23 = Instance.new("BlockMesh")
  43. Weld24 = Instance.new("Weld")
  44. Part25 = Instance.new("Part")
  45. BlockMesh26 = Instance.new("BlockMesh")
  46. Weld27 = Instance.new("Weld")
  47. Part28 = Instance.new("Part")
  48. BlockMesh29 = Instance.new("BlockMesh")
  49. Weld30 = Instance.new("Weld")
  50. Part31 = Instance.new("Part")
  51. BlockMesh32 = Instance.new("BlockMesh")
  52. Weld33 = Instance.new("Weld")
  53. Part34 = Instance.new("Part")
  54. BlockMesh35 = Instance.new("BlockMesh")
  55. Weld36 = Instance.new("Weld")
  56. Part37 = Instance.new("Part")
  57. BlockMesh38 = Instance.new("BlockMesh")
  58. Weld39 = Instance.new("Weld")
  59. Script40 = Instance.new("Script")
  60. BoolValue41 = Instance.new("BoolValue")
  61. NumberValue42 = Instance.new("NumberValue")
  62. Vector3Value43 = Instance.new("Vector3Value")
  63. Script44 = Instance.new("Script")
  64. Script45 = Instance.new("Script")
  65. Script46 = Instance.new("Script")
  66. Script47 = Instance.new("Script")
  67. Script48 = Instance.new("Script")
  68. StringValue49 = Instance.new("StringValue")
  69. Script50 = Instance.new("Script")
  70. NumberValue51 = Instance.new("NumberValue")
  71. Part52 = Instance.new("Part")
  72. Model0.Name = "Administrative Satellite"
  73. Model0.Parent = mas
  74. Part1.Name = "Giver"
  75. Part1.Parent = Model0
  76. Part1.BrickColor = BrickColor.new("Really black")
  77. Part1.Rotation = Vector3.new(0, -90, 0)
  78. Part1.Anchored = true
  79. Part1.Size = Vector3.new(1, 1.20000005, 4)
  80. Part1.CFrame = CFrame.new(19, 3.00001097, -57.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  81. Part1.BottomSurface = Enum.SurfaceType.Smooth
  82. Part1.TopSurface = Enum.SurfaceType.Smooth
  83. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  84. Part1.Position = Vector3.new(19, 3.00001097, -57.5)
  85. Part1.Orientation = Vector3.new(0, -90, 0)
  86. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  87. HopperBin2.Name = "Control Satellite"
  88. HopperBin2.Parent = Part1
  89. Script3.Parent = HopperBin2
  90. table.insert(cors,sandbox(Script3,function()
  91. function onMove(mouse)
  92. targ = mouse.Target
  93. hit = mouse.Hit
  94. if (targ == nil) then
  95. script.Parent.Parent.Parent.Message.Text = "No target position"
  96. return
  97. end
  98. if (script.Parent.SAT.Value == nil) then
  99. script.Parent.Parent.Parent.Message.Text = "No sattelite is being controlled"
  100. return
  101. end
  102. if (script.Parent.SAT.Value.Controlling.Value == "") then
  103. script.Parent.Parent.Parent.Message.Text = "Nobody is controlling the sattelite. Click to control."
  104. return
  105. end
  106. if (script.Parent.SAT.Value.Controlling.Value ~= "" and script.Parent.SAT.Value.Controlling.Value ~= script.Parent.Parent.Parent.Name) then
  107. script.Parent.Parent.Parent.Message.Text = script.Parent.SAT.Value.Controlling.Value .. " is already controlling the sattelite."
  108. return
  109. end
  110. if (script.Parent.SAT.Value.Recharge_time.Value ~= 0) then
  111. script.Parent.Parent.Parent.Message.Text = "Reloading (" .. script.Parent.SAT.Value.Recharge_time.Value .. ") Taking your control in " .. script.Parent.SAT.Value.TControl.Value .. " seconds."
  112. else
  113. script.Parent.Parent.Parent.Message.Text = "Ready ... Taking your control in " .. script.Parent.SAT.Value.TControl.Value .. " seconds."
  114. end
  115. script.Parent.SAT.Value.Position.Value = hit.p
  116. end
  117.  
  118. function onButton1Down(mouse)
  119. if (script.Parent.SAT.Value == nil) then
  120. script.Parent.Parent.Parent.Message.Text = "No sattelite is being controlled"
  121. return
  122. end
  123. if (script.Parent.SAT.Value.Controlling.Value == "") then
  124. script.Parent.SAT.Value.Controlling.Value = script.Parent.Parent.Parent.Name
  125. return
  126. end
  127. if (script.Parent.SAT.Value.Controlling.Value ~= "" and script.Parent.SAT.Value.Controlling.Value ~= script.Parent.Parent.Parent.Name) then
  128. script.Parent.Parent.Parent.Message.Text = script.Parent.SAT.Value.Controlling.Value .. " is already controlling the sattelite."
  129. return
  130. end
  131. if (script.Parent.SAT.Value.Recharge_time.Value ~= 0) then
  132. script.Parent.Parent.Parent.Message.Text = "Reloading (" .. script.Parent.SAT.Value.Recharge_time.Value .. ")"
  133. else
  134. script.Parent.Parent.Parent.Message.Text = "Ready"
  135. script.Parent.SAT.Value.Fire.Value = true
  136. end
  137. end
  138.  
  139. function onS(mouse)
  140. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  141. Instance.new("Hint").Parent = script.Parent.Parent.Parent
  142. mouse.Move:connect(function() onMove(mouse) end)
  143. end
  144. script.Parent.Selected:connect(onS)
  145.  
  146. function onUnS(mouse)
  147. script.Parent.Parent.Parent.Message:Remove()
  148. end
  149.  
  150. script.Parent.Parent.Parent.Character.Humanoid.Died:connect(onUnS)
  151. script.Parent.Deselected:connect(onUnS)
  152. end))
  153. ObjectValue4.Name = "SAT"
  154. ObjectValue4.Parent = HopperBin2
  155. ObjectValue4.Value = Model7
  156. Script5.Name = "Select"
  157. Script5.Parent = Part1
  158. table.insert(cors,sandbox(Script5,function()
  159. script.Parent["Control sattelite"].SAT.Value = script.Parent.Parent.Sattelite
  160. end))
  161. Script6.Parent = Part1
  162. table.insert(cors,sandbox(Script6,function()
  163. function collide(hit)
  164. a = hit.Parent.Name
  165. b = game.Players:children()
  166. for c = 1, #b do
  167. if (b[c].Name == a and b[c].Backpack:findFirstChild("Control Satellite") == nil) then
  168. d = script.Parent["Control Satellite"]:clone()
  169. e = d:clone()
  170. e.Parent = b[c].Backpack
  171. end
  172. end
  173. end
  174.  
  175. script.Parent.Touched:connect(collide)
  176. end))
  177. Model7.Name = "Satellite"
  178. Model7.Parent = Model0
  179. Part8.Name = "Part1"
  180. Part8.Parent = Model7
  181. Part8.BrickColor = BrickColor.new("Really black")
  182. Part8.Rotation = Vector3.new(-135.009995, 0, -180)
  183. Part8.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  184. Part8.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  185. Part8.CanCollide = false
  186. Part8.Size = Vector3.new(1, 1.20000005, 4)
  187. Part8.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999821, 1.07091682e-06, -8.60602825e-07, 1.48881057e-07, 0.707193077, 0.707020402, 1.3657725e-06, 0.707020462, -0.707192957)
  188. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  189. Part8.Position = Vector3.new(19, 9.077878, -54.9978638)
  190. Part8.Orientation = Vector3.new(-44.9899979, -180, 0)
  191. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  192. BlockMesh9.Parent = Part8
  193. BlockMesh9.Scale = Vector3.new(8, 0.5, 0.200000003)
  194. BlockMesh9.Scale = Vector3.new(8, 0.5, 0.200000003)
  195. BodyGyro10.Parent = Part8
  196. BodyGyro10.CFrame = CFrame.new(-1.56223493e-07, 49.9891243, -49.9989243, -1, 2.20916463e-09, -2.20959784e-09, 9.79514194e-18, 0.707176089, 0.707037449, 3.12453707e-09, 0.707037449, -0.707176089)
  197. BodyGyro10.maxTorque = Vector3.new(900000000, 900000000, 900000000)
  198. BodyGyro10.MaxTorque = Vector3.new(900000000, 900000000, 900000000)
  199. BodyPosition11.Parent = Part8
  200. BodyPosition11.position = Vector3.new(0, 45, -148)
  201. BodyPosition11.Position = Vector3.new(0, 45, -148)
  202. Part12.Name = "Part2"
  203. Part12.Parent = Model7
  204. Part12.BrickColor = BrickColor.new("Really black")
  205. Part12.Rotation = Vector3.new(-135.009995, 0, -180)
  206. Part12.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  207. Part12.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  208. Part12.CanCollide = false
  209. Part12.Size = Vector3.new(1, 1.20000005, 4)
  210. Part12.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  211. Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  212. Part12.Position = Vector3.new(19, 9.077878, -54.9978638)
  213. Part12.Orientation = Vector3.new(-44.9899979, -180, 0)
  214. Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  215. BlockMesh13.Parent = Part12
  216. BlockMesh13.Scale = Vector3.new(4, 3, 1)
  217. BlockMesh13.Scale = Vector3.new(4, 3, 1)
  218. Weld14.Parent = Part12
  219. Weld14.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  220. Weld14.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  221. Weld14.Part0 = Part12
  222. Weld14.Part1 = Part8
  223. Part15.Name = "Part3"
  224. Part15.Parent = Model7
  225. Part15.BrickColor = BrickColor.new("Bright blue")
  226. Part15.Reflectance = 0.5
  227. Part15.Rotation = Vector3.new(-135.009995, 0, -180)
  228. Part15.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  229. Part15.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  230. Part15.CanCollide = false
  231. Part15.Size = Vector3.new(1, 1.20000005, 4)
  232. Part15.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  233. Part15.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  234. Part15.Position = Vector3.new(19, 9.077878, -54.9978638)
  235. Part15.Orientation = Vector3.new(-44.9899979, -180, 0)
  236. Part15.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  237. BlockMesh16.Parent = Part15
  238. BlockMesh16.Offset = Vector3.new(-8, 0, 0)
  239. BlockMesh16.Scale = Vector3.new(8, 4, 0.100000001)
  240. BlockMesh16.Scale = Vector3.new(8, 4, 0.100000001)
  241. Weld17.Parent = Part15
  242. Weld17.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  243. Weld17.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  244. Weld17.Part0 = Part15
  245. Weld17.Part1 = Part8
  246. Part18.Name = "Part4"
  247. Part18.Parent = Model7
  248. Part18.BrickColor = BrickColor.new("Bright blue")
  249. Part18.Reflectance = 0.5
  250. Part18.Rotation = Vector3.new(-135.009995, 0, -180)
  251. Part18.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  252. Part18.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  253. Part18.CanCollide = false
  254. Part18.Size = Vector3.new(1, 1.20000005, 4)
  255. Part18.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  256. Part18.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  257. Part18.Position = Vector3.new(19, 9.077878, -54.9978638)
  258. Part18.Orientation = Vector3.new(-44.9899979, -180, 0)
  259. Part18.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  260. BlockMesh19.Parent = Part18
  261. BlockMesh19.Offset = Vector3.new(8, 0, 0)
  262. BlockMesh19.Scale = Vector3.new(8, 4, 0.100000001)
  263. BlockMesh19.Scale = Vector3.new(8, 4, 0.100000001)
  264. Weld20.Parent = Part18
  265. Weld20.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  266. Weld20.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  267. Weld20.Part0 = Part18
  268. Weld20.Part1 = Part8
  269. Model21.Name = "Laser"
  270. Model21.Parent = Model7
  271. Part22.Name = "Part3"
  272. Part22.Parent = Model21
  273. Part22.BrickColor = BrickColor.new("Really black")
  274. Part22.Rotation = Vector3.new(-135.009995, 0, -180)
  275. Part22.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  276. Part22.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  277. Part22.CanCollide = false
  278. Part22.Size = Vector3.new(1, 1.20000005, 4)
  279. Part22.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  280. Part22.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  281. Part22.Position = Vector3.new(19, 9.077878, -54.9978638)
  282. Part22.Orientation = Vector3.new(-44.9899979, -180, 0)
  283. Part22.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  284. BlockMesh23.Parent = Part22
  285. BlockMesh23.Offset = Vector3.new(0, 0, -4)
  286. BlockMesh23.Scale = Vector3.new(1.10000002, 1.10000002, 0.100000001)
  287. BlockMesh23.Scale = Vector3.new(1.10000002, 1.10000002, 0.100000001)
  288. Weld24.Parent = Part22
  289. Weld24.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  290. Weld24.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  291. Weld24.Part0 = Part22
  292. Weld24.Part1 = Part8
  293. Part25.Name = "Part1"
  294. Part25.Parent = Model21
  295. Part25.BrickColor = BrickColor.new("Bright blue")
  296. Part25.Transparency = 0.5
  297. Part25.Rotation = Vector3.new(-135.009995, 0, -180)
  298. Part25.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  299. Part25.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  300. Part25.CanCollide = false
  301. Part25.Size = Vector3.new(1, 1.20000005, 4)
  302. Part25.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  303. Part25.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  304. Part25.Position = Vector3.new(19, 9.077878, -54.9978638)
  305. Part25.Orientation = Vector3.new(-44.9899979, -180, 0)
  306. Part25.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  307. BlockMesh26.Parent = Part25
  308. BlockMesh26.Offset = Vector3.new(0, 0, -2)
  309. Weld27.Parent = Part25
  310. Weld27.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  311. Weld27.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  312. Weld27.Part0 = Part25
  313. Weld27.Part1 = Part8
  314. Part28.Name = "Part2"
  315. Part28.Parent = Model21
  316. Part28.Transparency = 0.20000000298023
  317. Part28.Rotation = Vector3.new(-135.009995, 0, -180)
  318. Part28.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  319. Part28.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  320. Part28.CanCollide = false
  321. Part28.Size = Vector3.new(1, 1.20000005, 4)
  322. Part28.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  323. Part28.Position = Vector3.new(19, 9.077878, -54.9978638)
  324. Part28.Orientation = Vector3.new(-44.9899979, -180, 0)
  325. BlockMesh29.Parent = Part28
  326. BlockMesh29.Offset = Vector3.new(0, 0, -2)
  327. BlockMesh29.Scale = Vector3.new(0.5, 0.5, 1)
  328. BlockMesh29.Scale = Vector3.new(0.5, 0.5, 1)
  329. Weld30.Parent = Part28
  330. Weld30.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  331. Weld30.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  332. Weld30.Part0 = Part28
  333. Weld30.Part1 = Part8
  334. Part31.Name = "Part4"
  335. Part31.Parent = Model21
  336. Part31.BrickColor = BrickColor.new("Really black")
  337. Part31.Rotation = Vector3.new(-135.009995, 0, -180)
  338. Part31.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  339. Part31.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  340. Part31.CanCollide = false
  341. Part31.Size = Vector3.new(1, 1.20000005, 4)
  342. Part31.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  343. Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  344. Part31.Position = Vector3.new(19, 9.077878, -54.9978638)
  345. Part31.Orientation = Vector3.new(-44.9899979, -180, 0)
  346. Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  347. BlockMesh32.Parent = Part31
  348. BlockMesh32.Offset = Vector3.new(1, 0, -2)
  349. BlockMesh32.Scale = Vector3.new(0.100000001, 0.100000001, 1)
  350. BlockMesh32.Scale = Vector3.new(0.100000001, 0.100000001, 1)
  351. Weld33.Parent = Part31
  352. Weld33.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  353. Weld33.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  354. Weld33.Part0 = Part31
  355. Weld33.Part1 = Part8
  356. Part34.Name = "Part5"
  357. Part34.Parent = Model21
  358. Part34.BrickColor = BrickColor.new("Really black")
  359. Part34.Rotation = Vector3.new(-135.009995, 0, -180)
  360. Part34.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  361. Part34.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  362. Part34.CanCollide = false
  363. Part34.Size = Vector3.new(1, 1.20000005, 4)
  364. Part34.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.999999702, 1.07091682e-06, -8.60602654e-07, 1.48881057e-07, 0.707193077, 0.707020342, 1.36577239e-06, 0.707020462, -0.707192898)
  365. Part34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  366. Part34.Position = Vector3.new(19, 9.077878, -54.9978638)
  367. Part34.Orientation = Vector3.new(-44.9899979, -180, 0)
  368. Part34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  369. BlockMesh35.Parent = Part34
  370. BlockMesh35.Offset = Vector3.new(0.5, 0, -4)
  371. BlockMesh35.Scale = Vector3.new(1, 0.100000001, 0.0500000007)
  372. BlockMesh35.Scale = Vector3.new(1, 0.100000001, 0.0500000007)
  373. Weld36.Parent = Part34
  374. Weld36.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  375. Weld36.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  376. Weld36.Part0 = Part34
  377. Weld36.Part1 = Part8
  378. Part37.Name = "Part6"
  379. Part37.Parent = Model21
  380. Part37.BrickColor = BrickColor.new("Really black")
  381. Part37.Rotation = Vector3.new(-135.009995, 0, -180)
  382. Part37.RotVelocity = Vector3.new(0.000143375102, -8.25583811e-06, 9.02566683e-07)
  383. Part37.Velocity = Vector3.new(2.51575875e-06, 0.0170512218, -0.0172119159)
  384. Part37.CanCollide = false
  385. Part37.Size = Vector3.new(1, 1.20000005, 4)
  386. Part37.CFrame = CFrame.new(19, 9.077878, -54.9978638, -0.99999994, 1.07091682e-06, -8.60602995e-07, 1.48881057e-07, 0.707193077, 0.707020462, 1.36577262e-06, 0.707020462, -0.707193017)
  387. Part37.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  388. Part37.Position = Vector3.new(19, 9.077878, -54.9978638)
  389. Part37.Orientation = Vector3.new(-44.9899979, -180, 0)
  390. Part37.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  391. BlockMesh38.Parent = Part37
  392. BlockMesh38.Offset = Vector3.new(0, 0, -5)
  393. BlockMesh38.Scale = Vector3.new(0.200000003, 0.200000003, 0.5)
  394. BlockMesh38.Scale = Vector3.new(0.200000003, 0.200000003, 0.5)
  395. Weld39.Parent = Part37
  396. Weld39.C0 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  397. Weld39.C1 = CFrame.new(-1.10502624e-13, -9.14326392e-11, 2.65840436e-06, -0.99999994, 4.20365165e-09, 4.32008989e-07, 3.08411984e-07, 0.707193077, 0.707020462, -3.02541707e-07, 0.707020462, -0.707193017)
  398. Weld39.Part0 = Part37
  399. Weld39.Part1 = Part8
  400. Script40.Name = "Weld"
  401. Script40.Parent = Model7
  402. table.insert(cors,sandbox(Script40,function()
  403. function stick(x, y)
  404. weld = Instance.new("Weld")
  405. weld.Part0 = x
  406. weld.Part1 = y
  407. local HitPos = x.Position
  408. local CJ = CFrame.new(HitPos)
  409. local C0 = x.CFrame:inverse() *CJ
  410. local C1 = y.CFrame:inverse() * CJ
  411. weld.C0 = C0
  412. weld.C1 = C1
  413. weld.Parent = x
  414. end
  415.  
  416. a = script.Parent:children()
  417. for b = 1, #a do
  418. if (a[b].className == "Part" and a[b].Name ~= "Part1") then
  419. a[b].CFrame = script.Parent.Part1.CFrame
  420. stick(a[b], script.Parent.Part1)
  421. end
  422. end
  423.  
  424. a = script.Parent.Laser:children()
  425. for b = 1, #a do
  426. if (a[b].className == "Part") then
  427. a[b].CFrame = script.Parent.Part1.CFrame
  428. stick(a[b], script.Parent.Part1)
  429. end
  430. end
  431.  
  432. end))
  433. BoolValue41.Name = "Fire"
  434. BoolValue41.Parent = Model7
  435. NumberValue42.Name = "Recharge_time"
  436. NumberValue42.Parent = Model7
  437. Vector3Value43.Name = "Position"
  438. Vector3Value43.Parent = Model7
  439. Script44.Name = "LaserFireAnimation"
  440. Script44.Parent = Model7
  441. table.insert(cors,sandbox(Script44,function()
  442. laser = script.Parent.Laser
  443. while true do
  444. if (script.Parent.Fire.Value) then
  445. for a = 1, 4 do
  446. laser.Part1.Mesh.Offset = laser.Part1.Mesh.Offset + Vector3.new(0,0,0.5)
  447. laser.Part2.Mesh.Offset = laser.Part2.Mesh.Offset + Vector3.new(0,0,0.5)
  448. laser.Part3.Mesh.Offset = laser.Part3.Mesh.Offset + Vector3.new(0,0,0.5)
  449. laser.Part4.Mesh.Offset = laser.Part4.Mesh.Offset + Vector3.new(0,0,0.5)
  450. laser.Part5.Mesh.Offset = laser.Part5.Mesh.Offset + Vector3.new(0,0,0.5)
  451. laser.Part6.Mesh.Offset = laser.Part6.Mesh.Offset + Vector3.new(0,0,0.5)
  452. wait()
  453. end
  454. for a = 1, 4 do
  455. laser.Part1.Mesh.Offset = laser.Part1.Mesh.Offset - Vector3.new(0,0,0.5)
  456. laser.Part2.Mesh.Offset = laser.Part2.Mesh.Offset - Vector3.new(0,0,0.5)
  457. laser.Part3.Mesh.Offset = laser.Part3.Mesh.Offset - Vector3.new(0,0,0.5)
  458. laser.Part4.Mesh.Offset = laser.Part4.Mesh.Offset - Vector3.new(0,0,0.5)
  459. laser.Part5.Mesh.Offset = laser.Part5.Mesh.Offset - Vector3.new(0,0,0.5)
  460. laser.Part6.Mesh.Offset = laser.Part6.Mesh.Offset - Vector3.new(0,0,0.5)
  461. wait()
  462. end
  463. script.Parent.Fire.Value = false
  464. end
  465. wait()
  466. end
  467.  
  468. end))
  469. Script45.Name = "Aim"
  470. Script45.Parent = Model7
  471. table.insert(cors,sandbox(Script45,function()
  472. wait()
  473. P = Instance.new("Part")
  474. P.Parent = game
  475. while true do
  476. Hit = script.Parent.Part1.CFrame
  477. P.Name = "AIMANCE"
  478. local Place0 = CFrame.new(script.Parent.Position.Value)
  479. P.formFactor = 0
  480. P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  481. P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  482. P.BrickColor = BrickColor.Yellow()
  483. P.Anchored = true
  484. P.CanCollide = false
  485. r = script.Parent.Part1.BodyGyro
  486. r.cframe = P.CFrame
  487. wait()
  488. P:remove()
  489. wait()
  490. end
  491.  
  492. end))
  493. Script46.Name = "Move"
  494. Script46.Parent = Model7
  495. table.insert(cors,sandbox(Script46,function()
  496. BodyPos = script.Parent.Part1.BodyPosition
  497. while true do
  498. a = script.Parent.Position.Value.x - script.Parent.Part1.Position.x
  499. if (a > 10) then
  500. BodyPos.position = BodyPos.position + Vector3.new(1,0,0)
  501. end
  502. if (a < -10) then
  503. BodyPos.position = BodyPos.position - Vector3.new(1,0,0)
  504. end
  505. a = script.Parent.Position.Value.z - script.Parent.Part1.Position.z
  506. if (a > 10) then
  507. BodyPos.position = BodyPos.position + Vector3.new(0,0,1)
  508. end
  509. if (a < -10) then
  510. BodyPos.position = BodyPos.position - Vector3.new(0,0,1)
  511. end
  512. wait()
  513. end
  514.  
  515. end))
  516. Script47.Name = "Fire_Script"
  517. Script47.Parent = Model7
  518. table.insert(cors,sandbox(Script47,function()
  519. while true do
  520. if (script.Parent.Fire.Value) then
  521. script.Parent.Controlling.Value = ""
  522. script.Parent.Recharge_time.Value = 5
  523. Hit = script.Parent.Part1.CFrame
  524. local P = Instance.new("Part")
  525. P.Name = "Laser"
  526. local Place0 = CFrame.new(script.Parent.Position.Value)
  527. P.formFactor = 0
  528. P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  529. P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  530. P.Parent = game.Workspace
  531. P.BrickColor = BrickColor.Blue()
  532. P.Anchored = true
  533. P.CanCollide = false
  534. M = Instance.new("BlockMesh")
  535. M.Scale = Vector3.new(0.2,0.2,1)
  536. M.Parent = P
  537. E = Instance.new("Explosion")
  538. E.Position = script.Parent.Position.Value
  539. E.Parent = game.Workspace
  540. for a = 1, 10 do
  541. P.Transparency = a/10
  542. wait()
  543. end
  544. P:remove()
  545. end
  546. wait()
  547. end
  548.  
  549.  
  550. end))
  551. Script48.Name = "Charge"
  552. Script48.Parent = Model7
  553. table.insert(cors,sandbox(Script48,function()
  554. while true do
  555. if (script.Parent.Recharge_time.Value > 0) then
  556. script.Parent.Recharge_time.Value = script.Parent.Recharge_time.Value - 1
  557. end
  558. wait(1)
  559. end
  560.  
  561. end))
  562. StringValue49.Name = "Controlling"
  563. StringValue49.Parent = Model7
  564. Script50.Name = "TakeControl"
  565. Script50.Parent = Model7
  566. table.insert(cors,sandbox(Script50,function()
  567. b = 20
  568. while true do
  569. if (script.Parent.Controlling ~= "") then
  570. a = script.Parent.Controlling.Value
  571. b = b - 1
  572. if (script.Parent.Controlling.Value == a and b == 0) then
  573. script.Parent.Controlling.Value = ""
  574. b = 20
  575. end
  576. script.Parent.TControl.Value = b
  577. wait(1)
  578. end
  579. if (script.Parent.Controlling.Value == "") then
  580. b = 20
  581. script.Parent.TControl.Value = b
  582. end
  583. wait()
  584. end
  585.  
  586. end))
  587. NumberValue51.Name = "TControl"
  588. NumberValue51.Parent = Model7
  589. NumberValue51.Value = 20
  590. Part52.Name = "GiverHolder"
  591. Part52.Parent = Model0
  592. Part52.BrickColor = BrickColor.new("Really black")
  593. Part52.Rotation = Vector3.new(180, 0, -180)
  594. Part52.Anchored = true
  595. Part52.Size = Vector3.new(4, 4.80000019, 4)
  596. Part52.CFrame = CFrame.new(19, 2.40001297, -55, -1, 0, -0, -0, 1, -0, -0, 0, -1)
  597. Part52.BottomSurface = Enum.SurfaceType.Smooth
  598. Part52.TopSurface = Enum.SurfaceType.Smooth
  599. Part52.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  600. Part52.Position = Vector3.new(19, 2.40001297, -55)
  601. Part52.Orientation = Vector3.new(0, -180, 0)
  602. Part52.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  603. for i,v in pairs(mas:GetChildren()) do
  604. v.Parent = workspace
  605. pcall(function() v:MakeJoints() end)
  606. end
  607. mas:Destroy()
  608. for i,v in pairs(cors) do
  609. spawn(function()
  610. pcall(v)
  611. end)
  612. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement