Advertisement
Void_scripter0

MTF 2

Jan 11th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 167.84 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. CV="White"
  145.  
  146. p = game.Players.LocalPlayer
  147. char = p.Character
  148. local txt = Instance.new("BillboardGui", char)
  149. txt.Adornee = char .Head
  150. txt.Name = "_status"
  151. txt.Size = UDim2.new(2, 0, 1.2, 0)
  152. txt.StudsOffset = Vector3.new(-9, 6, 0)
  153. local text = Instance.new("TextLabel", txt)
  154. text.Size = UDim2.new(10, 0, 7, 0)
  155. text.FontSize = "Size24"
  156. text.TextScaled = true
  157. text.TextTransparency = 0
  158. text.BackgroundTransparency = 1
  159. text.TextTransparency = 0
  160. text.TextStrokeTransparency = 1
  161. text.Font = "Code"
  162. text.TextStrokeColor3 = Color3.new(40,0,0)
  163.  
  164. v=Instance.new("Part")
  165. v.Name = "ColorBrick"
  166. v.Parent=p.Character
  167. v.FormFactor="Symmetric"
  168. v.Anchored=true
  169. v.CanCollide=false
  170. v.BottomSurface="Smooth"
  171. v.TopSurface="Smooth"
  172. v.Size=Vector3.new(10,5,3)
  173. v.Transparency=1
  174. v.CFrame=char.Torso.CFrame
  175. v.BrickColor=BrickColor.new(CV)
  176. v.Transparency=1
  177. text.TextColor3 = Color3.fromRGB(255,140,0)
  178. v.Shape="Block"
  179. text.Text = "Nine Tailed Fox Heavy Unit"
  180. coroutine.wrap(function()
  181. while wait() do
  182. wait(3)
  183. text.Text = "Kill"
  184. wait()
  185. text.Text = "Nine Tailed Fox Heavy Unit";
  186. wait(2)
  187. local str = ""
  188. for i = 1, math.random(3,25) do
  189. str = str..string.char(math.random(65,122))
  190. end
  191. text.Text = str
  192. wait()
  193. str = ""
  194. for i = 1, math.random(12,25) do
  195. str = str..string.char(math.random(48,122))
  196. end
  197. wait()
  198. text.Text = str
  199. wait()
  200. text.Text = "Meme Tailed Fox Heavy Unit";
  201. wait(1)
  202. text.Text = "Thats how mafia works"
  203. wait()
  204. text.Text = "XDDDDDDDD"
  205. wait()
  206. text.Text = "Meme Tailed Fox Heavy Unit";
  207. wait(2)
  208. text.Text = "BE GONE.";
  209. wait()
  210. text.Text = "this is america";
  211. wait()
  212. for i = 1, math.random(12,25) do
  213. str = str..string.char(math.random(48,57))
  214. end
  215. text.Text = str
  216. wait()
  217. text.Text = "Nine Tailed Fox Heavy Unit";
  218. wait(2)
  219. end
  220. end)()
  221. local Player = game.Players.localPlayer
  222. local Character = Player.Character
  223. local Torso = Character.Torso
  224. local hum = Character.Humanoid
  225. hum.MaxHealth = 1000
  226. wait(0.1)
  227. hum.Health = 1000
  228.  
  229. local Music = Instance.new("Sound")
  230.  
  231. Music.Name = "Sound"
  232. Music.SoundId = "http://roblox.com/asset/?id=714974960"
  233. Music.Volume = 4
  234. Music.Looped = false
  235. Music.Parent = Character
  236. Music:play()
  237.  
  238. GasMask = true
  239.  
  240. if GasMask == true then
  241. o1 = Instance.new("Model")
  242. o2 = Instance.new("Part")
  243. o3 = Instance.new("SpecialMesh")
  244. o4 = Instance.new("Part")
  245. o5 = Instance.new("Part")
  246. o6 = Instance.new("Part")
  247. o7 = Instance.new("SpecialMesh")
  248. o8 = Instance.new("Part")
  249. o9 = Instance.new("Part")
  250. o10 = Instance.new("SpecialMesh")
  251. o11 = Instance.new("Part")
  252. o12 = Instance.new("Part")
  253. o13 = Instance.new("SpecialMesh")
  254. o14 = Instance.new("Part")
  255. o15 = Instance.new("Part")
  256. o16 = Instance.new("Part")
  257. o17 = Instance.new("Part")
  258. o1.Name = "MODEL"
  259. o2.Name = "Middle"
  260. o2.Parent = o1
  261. o2.BrickColor = BrickColor.new("Pastel brown")
  262. o2.Transparency = 1
  263. o2.Position = Vector3.new(-13.5356159, 3.71991396, 50.2649117)
  264. o2.Rotation = Vector3.new(-5.66336393, -89.7626114, -5.66246414)
  265. o2.Anchored = true
  266. o2.FormFactor = Enum.FormFactor.Custom
  267. o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  268. o2.CFrame = CFrame.new(-13.5356159, 3.71991396, 50.2649117, 1.75646369e-006, 1.74156298e-007, -0.999991417, -1.04150445e-007, 1, 1.60883403e-007, 0.999999762, 9.62157287e-008, 1.6223396e-006)
  269. o2.BottomSurface = Enum.SurfaceType.Smooth
  270. o2.TopSurface = Enum.SurfaceType.Smooth
  271. o2.Color = Color3.new(1, 0.8, 0.6)
  272. o3.Parent = o2
  273. o3.Scale = Vector3.new(6.25, 6.25, 6.25)
  274. o3.MeshType = Enum.MeshType.FileMesh
  275. o4.Name = "Lense 1"
  276. o4.Parent = o1
  277. o4.Material = Enum.Material.Metal
  278. o4.Transparency = 0.050000011920929
  279. o4.Position = Vector3.new(-12.900528, 3.77991295, 50.5080605)
  280. o4.Rotation = Vector3.new(-180, 20.6807137, -179.999985)
  281. o4.Anchored = true
  282. o4.CanCollide = false
  283. o4.FormFactor = Enum.FormFactor.Custom
  284. o4.Shape = Enum.PartType.Cylinder
  285. o4.Size = Vector3.new(0.200000003, 0.320000023, 0.939999998)
  286. o4.CFrame = CFrame.new(-12.900528, 3.77991295, 50.5080605, -0.935553849, 3.06141374e-007, 0.353159934, 3.19927466e-007, 1, 2.01617603e-008, -0.353163034, 1.1997561e-007, -0.935561478)
  287. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  288. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  289. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  290. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  291. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  292. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  293. o5.Name = "Lense2"
  294. o5.Parent = o1
  295. o5.Material = Enum.Material.Metal
  296. o5.Transparency = 0.050000011920929
  297. o5.Position = Vector3.new(-12.8961124, 3.77492094, 50.0302277)
  298. o5.Rotation = Vector3.new(-180, -23.8323021, -179.999985)
  299. o5.Anchored = true
  300. o5.CanCollide = false
  301. o5.FormFactor = Enum.FormFactor.Custom
  302. o5.Shape = Enum.PartType.Cylinder
  303. o5.Size = Vector3.new(0.200000003, 0.330000043, 0.99000001)
  304. o5.CFrame = CFrame.new(-12.8961124, 3.77492094, 50.0302277, -0.914722979, 2.85652249e-007, -0.404061079, 2.36339361e-007, 1, 1.37493373e-007, 0.404064298, 2.15865228e-008, -0.914730668)
  305. o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  306. o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  307. o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  308. o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  309. o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  310. o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  311. o6.Name = "Handle"
  312. o6.Parent = o1
  313. o6.Material = Enum.Material.Metal
  314. o6.BrickColor = BrickColor.new("Green")
  315. o6.Position = Vector3.new(-12.8799381, 3.69992495, 50.2599869)
  316. o6.Rotation = Vector3.new(-90, 9.97842108e-006, -89.9999008)
  317. o6.Anchored = true
  318. o6.CanCollide = false
  319. o6.FormFactor = Enum.FormFactor.Plate
  320. o6.Size = Vector3.new(1, 0.400000006, 1)
  321. o6.CFrame = CFrame.new(-12.8799381, 3.69992495, 50.2599869, 1.75646369e-006, 0.999991417, 1.74156298e-007, -1.04150445e-007, -1.60883403e-007, 1, 0.999999762, -1.6223396e-006, 9.62157287e-008)
  322. o6.BottomSurface = Enum.SurfaceType.Weld
  323. o6.TopSurface = Enum.SurfaceType.Smooth
  324. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  325. o7.Parent = o6
  326. o7.MeshId = "http://www.roblox.com/asset/?id=5158270"
  327. o7.Scale = Vector3.new(0.140000001, 0.170000002, 0.100000001)
  328. o7.MeshType = Enum.MeshType.FileMesh
  329. o8.Name = "Straps"
  330. o8.Parent = o1
  331. o8.Material = Enum.Material.Fabric
  332. o8.BrickColor = BrickColor.new("Green")
  333. o8.Position = Vector3.new(-13.5199518, 3.48991394, 50.2599869)
  334. o8.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
  335. o8.Anchored = true
  336. o8.CanCollide = false
  337. o8.FormFactor = Enum.FormFactor.Custom
  338. o8.Shape = Enum.PartType.Cylinder
  339. o8.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
  340. o8.CFrame = CFrame.new(-13.5199518, 3.48991394, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762)
  341. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  342. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  343. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  344. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  345. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  346. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  347. o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  348. o9.Name = "Ring2"
  349. o9.Parent = o1
  350. o9.BrickColor = BrickColor.new("Red")
  351. o9.Position = Vector3.new(-12.8061161, 3.77991295, 49.9993477)
  352. o9.Rotation = Vector3.new(-1.48261315e-005, -66.1664276, -2.4695395e-005)
  353. o9.Anchored = true
  354. o9.CanCollide = false
  355. o9.FormFactor = Enum.FormFactor.Custom
  356. o9.Size = Vector3.new(0.600000024, 0.200000003, 1)
  357. o9.CFrame = CFrame.new(-12.8061161, 3.77991295, 49.9993477, 0.404059976, 1.74156298e-007, -0.914723039, -1.6136562e-007, 1, 1.0455733e-007, 0.914730787, 9.62157287e-008, 0.404063195)
  358. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  359. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  360. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  361. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  362. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  363. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  364. o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
  365. o10.Parent = o9
  366. o10.MeshId = "http://www.roblox.com/asset/?id=3270017"
  367. o10.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
  368. o10.MeshType = Enum.MeshType.FileMesh
  369. o11.Name = "Straps"
  370. o11.Parent = o1
  371. o11.Material = Enum.Material.Fabric
  372. o11.BrickColor = BrickColor.new("Green")
  373. o11.Position = Vector3.new(-13.5199518, 4.00991392, 50.2599869)
  374. o11.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
  375. o11.Anchored = true
  376. o11.CanCollide = false
  377. o11.FormFactor = Enum.FormFactor.Custom
  378. o11.Shape = Enum.PartType.Cylinder
  379. o11.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
  380. o11.CFrame = CFrame.new(-13.5199518, 4.00991392, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762)
  381. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  382. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  383. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  384. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  385. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  386. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  387. o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  388. o12.Name = "Ring1"
  389. o12.Parent = o1
  390. o12.BrickColor = BrickColor.new("Red")
  391. o12.Position = Vector3.new(-12.7999144, 3.76992106, 50.5299988)
  392. o12.Rotation = Vector3.new(-179.999969, -69.3177338, -179.999985)
  393. o12.Anchored = true
  394. o12.CanCollide = false
  395. o12.FormFactor = Enum.FormFactor.Custom
  396. o12.Size = Vector3.new(0.600000024, 0.200000003, 1)
  397. o12.CFrame = CFrame.new(-12.7999144, 3.76992106, 50.5299988, -0.353160918, 1.74156298e-007, -0.935553372, -4.22077129e-008, 1, 1.87534141e-007, 0.935561061, 9.62157287e-008, -0.353164017)
  398. o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  399. o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  400. o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  401. o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  402. o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  403. o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  404. o12.Color = Color3.new(0.388235, 0.372549, 0.384314)
  405. o13.Parent = o12
  406. o13.MeshId = "http://www.roblox.com/asset/?id=3270017"
  407. o13.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
  408. o13.MeshType = Enum.MeshType.FileMesh
  409. o14.Name = "Breather"
  410. o14.Parent = o1
  411. o14.Material = Enum.Material.Metal
  412. o14.BrickColor = BrickColor.new("Green")
  413. o14.Position = Vector3.new(-12.7419596, 3.69627094, 50.2550011)
  414. o14.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
  415. o14.Anchored = true
  416. o14.CanCollide = false
  417. o14.FormFactor = Enum.FormFactor.Custom
  418. o14.Shape = Enum.PartType.Cylinder
  419. o14.Size = Vector3.new(0.600000024, 0.340000093, 0.25000003)
  420. o14.CFrame = CFrame.new(-12.7419596, 3.69627094, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762)
  421. o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  422. o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  423. o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  424. o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  425. o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  426. o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  427. o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  428. o15.Name = "Breather"
  429. o15.Parent = o1
  430. o15.Material = Enum.Material.Metal
  431. o15.BrickColor = BrickColor.new("Green")
  432. o15.Position = Vector3.new(-12.5337915, 3.51434994, 50.2550011)
  433. o15.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
  434. o15.Anchored = true
  435. o15.CanCollide = false
  436. o15.FormFactor = Enum.FormFactor.Custom
  437. o15.Shape = Enum.PartType.Cylinder
  438. o15.Size = Vector3.new(0.200000003, 0.340000093, 0.350000024)
  439. o15.CFrame = CFrame.new(-12.5337915, 3.51434994, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762)
  440. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  441. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  442. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  443. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  444. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  445. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  446. o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  447. o16.Name = "Breather"
  448. o16.Parent = o1
  449. o16.Material = Enum.Material.Metal
  450. o16.BrickColor = BrickColor.new("Green")
  451. o16.Position = Vector3.new(-12.7920103, 3.39220095, 49.784256)
  452. o16.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
  453. o16.Anchored = true
  454. o16.CanCollide = false
  455. o16.FormFactor = Enum.FormFactor.Custom
  456. o16.Shape = Enum.PartType.Cylinder
  457. o16.Size = Vector3.new(0.230000019, 0.540000081, 0.75)
  458. o16.CFrame = CFrame.new(-12.7920103, 3.39220095, 49.784256, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967)
  459. o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  460. o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  461. o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  462. o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  463. o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  464. o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  465. o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  466. o17.Name = "Breather"
  467. o17.Parent = o1
  468. o17.Material = Enum.Material.Metal
  469. o17.BrickColor = BrickColor.new("Green")
  470. o17.Position = Vector3.new(-12.8723783, 3.42192006, 49.8816109)
  471. o17.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
  472. o17.Anchored = true
  473. o17.CanCollide = false
  474. o17.FormFactor = Enum.FormFactor.Custom
  475. o17.Shape = Enum.PartType.Cylinder
  476. o17.Size = Vector3.new(0.370000005, 0.540000081, 0.310000002)
  477. o17.CFrame = CFrame.new(-12.8723783, 3.42192006, 49.8816109, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967)
  478. o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  479. o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  480. o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  481. o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  482. o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  483. o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  484. o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  485. function onTouched(hit)
  486. local d = hit.Parent:GetChildren()
  487. for i=1, #d do
  488. if (d[i].className == "Hat") then
  489. d[i]:remove()
  490. end
  491. end
  492. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Face") == nil then
  493. local g = o1:clone()
  494. g.Parent = hit.Parent
  495. local C = g:GetChildren()
  496. for i=1, #C do
  497. if C[i].className == "Part" then
  498. local W = Instance.new("Weld")
  499. W.Part0 = g.Middle
  500. W.Part1 = C[i]
  501. local CJ = CFrame.new(g.Middle.Position)
  502. local C0 = g.Middle.CFrame:inverse()*CJ
  503. local C1 = C[i].CFrame:inverse()*CJ
  504. W.C0 = C0
  505. W.C1 = C1
  506. W.Parent = g.Middle
  507. g.Middle.Transparency = 1
  508. end
  509. local Y = Instance.new("Weld")
  510. Y.Part0 = hit.Parent.Head
  511. Y.Part1 = g.Middle
  512. Y.C0 = CFrame.new(0, 0, 0)
  513. Y.Parent = Y.Part0
  514. end
  515.  
  516. local h = g:GetChildren()
  517. for i = 1, # h do
  518. h[i].Anchored = false
  519. h[i].CanCollide = false
  520. end
  521.  
  522. end
  523. end
  524.  
  525. onTouched(game.Players.LocalPlayer.Character.Head)
  526. end
  527. local Player = game:service'Players'.localPlayer
  528. local chara = Player.Character
  529.  
  530. shirt= Instance.new("Shirt", Character)
  531. shirt.Name = "Shirt"
  532. pants = Instance.new("Pants", Character)
  533. pants.Name = "Pants"
  534. chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=245656735"
  535. chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=245656766"
  536.  
  537. local Player = game:service'Players'.localPlayer
  538. local chara = Player.Character
  539. local Character = Player.Character
  540. torso = chara.Torso
  541.  
  542. New = function(Object, Parent, Name, Data)
  543. local Object = Instance.new(Object)
  544. for Index, Value in pairs(Data or {}) do
  545. Object[Index] = Value
  546. end
  547. Object.Parent = Parent
  548. Object.Name = Name
  549. return Object
  550. end
  551. local LoPa = game:GetService("Players").LocalPlayer
  552. local C = LoPa.Character
  553.  
  554.  
  555. LaserMinigun = New("Model",C,"LaserMinigun",{})
  556. Gunpart = New("Model",LaserMinigun,"Gunpart",{})
  557. FrontHandle = New("Part",Gunpart,"FrontHandle",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.334096551, 0.668193102, 0.334096551),CFrame = CFrame.new(30.8316956, 0.787470937, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  558. Mesh = New("CylinderMesh",FrontHandle,"Mesh",{})
  559. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  560. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  561. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  562. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  563. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  564. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  565. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  566. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  567. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  568. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  569. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.556827545, 0.111365512, 0.556827545),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  570. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  571. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  572. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  573. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  574. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  575. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  576. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  577. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  578. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  579. gun4 = New("Part",Gunpart,"gun4",{BrickColor = BrickColor.new("Pastel blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  580. Mesh = New("CylinderMesh",gun4,"Mesh",{})
  581. gun1 = New("Part",Gunpart,"gun1",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  582. Mesh = New("CylinderMesh",gun1,"Mesh",{})
  583. gun3 = New("Part",Gunpart,"gun3",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  584. Mesh = New("CylinderMesh",gun3,"Mesh",{})
  585. gun2 = New("Part",Gunpart,"gun2",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  586. Mesh = New("CylinderMesh",gun2,"Mesh",{})
  587. PowerHolder = New("Model",LaserMinigun,"PowerHolder",{})
  588. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(27.7135086, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  589. Mesh = New("CylinderMesh",Part,"Mesh",{})
  590. Model = New("Model",Part,"Model",{})
  591. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  592. Mesh = New("CylinderMesh",Part,"Mesh",{})
  593. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  594. Mesh = New("CylinderMesh",Part,"Mesh",{})
  595. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  596. Mesh = New("CylinderMesh",Part,"Mesh",{})
  597. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  598. Mesh = New("CylinderMesh",Part,"Mesh",{})
  599. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  600. Mesh = New("CylinderMesh",Part,"Mesh",{})
  601. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  602. Mesh = New("CylinderMesh",Part,"Mesh",{})
  603. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  604. Mesh = New("CylinderMesh",Part,"Mesh",{})
  605. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  606. Mesh = New("CylinderMesh",Part,"Mesh",{})
  607. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  608. Mesh = New("CylinderMesh",Part,"Mesh",{})
  609. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  610. Mesh = New("CylinderMesh",Part,"Mesh",{})
  611. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  612. Mesh = New("CylinderMesh",Part,"Mesh",{})
  613. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  614. Mesh = New("CylinderMesh",Part,"Mesh",{})
  615. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  616. Mesh = New("CylinderMesh",Part,"Mesh",{})
  617. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  618. Mesh = New("CylinderMesh",Part,"Mesh",{})
  619. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(29.4953289, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  620. Mesh = New("CylinderMesh",Part,"Mesh",{})
  621. Model = New("Model",Part,"Model",{})
  622. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  623. Mesh = New("CylinderMesh",Part,"Mesh",{})
  624. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  625. Mesh = New("CylinderMesh",Part,"Mesh",{})
  626. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  627. Mesh = New("CylinderMesh",Part,"Mesh",{})
  628. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  629. Mesh = New("CylinderMesh",Part,"Mesh",{})
  630. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  631. Mesh = New("CylinderMesh",Part,"Mesh",{})
  632. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  633. Mesh = New("CylinderMesh",Part,"Mesh",{})
  634. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  635. Mesh = New("CylinderMesh",Part,"Mesh",{})
  636. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  637. Mesh = New("CylinderMesh",Part,"Mesh",{})
  638. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  639. Mesh = New("CylinderMesh",Part,"Mesh",{})
  640. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  641. Mesh = New("CylinderMesh",Part,"Mesh",{})
  642. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  643. Mesh = New("CylinderMesh",Part,"Mesh",{})
  644. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  645. Mesh = New("CylinderMesh",Part,"Mesh",{})
  646. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  647. Mesh = New("CylinderMesh",Part,"Mesh",{})
  648. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  649. Mesh = New("CylinderMesh",Part,"Mesh",{})
  650. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.222731024, 0.890924096),CFrame = CFrame.new(29.7180557, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  651. Mesh = New("CylinderMesh",Part,"Mesh",{})
  652. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  653. Mesh = New("CylinderMesh",Part,"Mesh",{})
  654. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  655. Mesh = New("CylinderMesh",Part,"Mesh",{})
  656. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  657. Mesh = New("CylinderMesh",Part,"Mesh",{})
  658. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  659. Mesh = New("CylinderMesh",Part,"Mesh",{})
  660. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  661. Mesh = New("CylinderMesh",Part,"Mesh",{})
  662. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  663. Mesh = New("CylinderMesh",Part,"Mesh",{})
  664. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  665. Mesh = New("CylinderMesh",Part,"Mesh",{})
  666. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  667. Mesh = New("CylinderMesh",Part,"Mesh",{})
  668. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(29.9407845, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  669. Mesh = New("CylinderMesh",Part,"Mesh",{})
  670. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  671. Mesh = New("CylinderMesh",Part,"Mesh",{})
  672. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.38624, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  673. Mesh = New("CylinderMesh",Part,"Mesh",{})
  674. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.668193102, 0.445462048),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  675. Mesh = New("CylinderMesh",Part,"Mesh",{})
  676. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(30.6089668, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  677. Mesh = New("CylinderMesh",Part,"Mesh",{})
  678. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.0498734, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  679. Mesh = New("CylinderMesh",Part,"Mesh",{})
  680. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000644, 0.707109809, 0.70710659, 0, 0.707112432, -0.707108617, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  681. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 2.00457907, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787482023, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  682. Mesh = New("CylinderMesh",Part,"Mesh",{})
  683. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.500002861, 0.866023839, 0, 0.866023839, -0.500002861, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  684. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.86602217, 0.500005305, 0, 0.500005305, -0.86602217, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  685. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.965924263, 0.258825034, 0, 0.258825064, -0.965924263, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  686. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.25882262, 0.965924919, 0, 0.965924919, -0.25882262, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  687. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  688. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.8271465, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  689. Mesh = New("CylinderMesh",Part,"Mesh",{})
  690. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.381691, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  691. Mesh = New("CylinderMesh",Part,"Mesh",{})
  692. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(28.1589584, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  693. Mesh = New("CylinderMesh",Part,"Mesh",{})
  694. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.222731024),CFrame = CFrame.new(26.9784832, 0.787473083, -52.2899971, -5.52762662e-11, 1.00582838e-05, 1.00000024, -3.50170376e-06, -1.00000024, 1.00582838e-05, 1, -3.50170421e-06, 9.06084097e-11),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  695. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.512281358, 0.111365512),CFrame = CFrame.new(26.7446499, 1.07702565, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  696. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(26.7111912, 0.787473083, -52.2899971, -5.53331096e-11, -0.258809268, 0.965928495, -3.50170376e-06, -0.965928495, -0.258809268, 1, -3.38240966e-06, -9.06219896e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  697. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.111365512),CFrame = CFrame.new(26.6666946, 0.475645214, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  698. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.579100668, 0.111365512),CFrame = CFrame.new(26.4769592, 0.766716778, -52.2899971, -5.52867474e-11, -0.258809447, 0.96592921, -3.50170421e-06, -0.96592921, -0.258809447, 1, -3.38241125e-06, -9.06220293e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  699. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.289550334, 0.111365512),CFrame = CFrame.new(26.8782501, 0.787470937, -52.2899971, -5.69528105e-11, -1, 1.04902101e-05, -3.50170967e-06, -1.04902101e-05, -1, 1, -9.36864822e-11, -3.50170967e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  700. Mesh = New("CylinderMesh",Part,"Mesh",{})
  701. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -52.7354622, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  702. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -51.8445435, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  703. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.178184807, 0.890924096, 0.178184807),CFrame = CFrame.new(29.4285202, 1.67839265, -52.2899971, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  704. Mesh = New("CylinderMesh",Part,"Mesh",{})
  705. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -51.9559135, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  706. Mesh = New("CylinderMesh",Part,"Mesh",{})
  707. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -52.6240959, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  708. Mesh = New("CylinderMesh",Part,"Mesh",{})
  709. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.779558599, 0.222731024),CFrame = CFrame.new(29.4285202, 1.67839491, -52.2900124, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  710. Mesh = New("CylinderMesh",Part,"Mesh",{})
  711. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.4907551, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  712. Mesh = New("CylinderMesh",Part,"Mesh",{})
  713. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  714. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  715. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  716. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  717. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  718. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  719. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  720. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  721. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  722. Mesh = New("CylinderMesh",Part,"Mesh",{})
  723. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  724. Mesh = New("CylinderMesh",Part,"Mesh",{})
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736. Handle = New("Part",LaserMinigun,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.22300005, 4.51200008, 1.11099994),CFrame = CFrame.new(28.6618481, 0.8217237, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749. MiniDroid = New("Model",C,"MiniDroid",{})
  750. armor = New("Model",MiniDroid,"armor",{})
  751. Main = New("Model",armor,"Main",{})
  752. Part = New("Part",Main,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.800000012, 0.800000012),CFrame = CFrame.new(30.9500008, 1.7000351, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  753. Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.899999976, 0.699999988, 0.899999976),CFrame = CFrame.new(30.9499989, 1.80003405, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  754. Mesh = New("SpecialMesh",Part,"Mesh",{})
  755. Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.50999999, 1),CFrame = CFrame.new(30.9499989, 1.90003407, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  756. Mesh = New("SpecialMesh",Part,"Mesh",{})
  757. Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.5, 1),CFrame = CFrame.new(30.9499989, 1.70003402, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  758. Mesh = New("SpecialMesh",Part,"Mesh",{})
  759. Neon = New("Model",MiniDroid,"Neon",{})
  760. LaPart = New("Part",Neon,"LaPart",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.100000001, 0.949999988, 0.949999988),CFrame = CFrame.new(30.9500008, 1.80000031, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  761. FirePart = New("Part",Neon,"FirePart",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Transparency = 0.5,Shape = Enum.PartType.Ball,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(30.9499989, 1.65004444, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  762. miniHandle = New("Part",MiniDroid,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(30.9500008, 1.80504608, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  763.  
  764.  
  765.  
  766.  
  767.  
  768. Glow1 = Color3.fromRGB(174,198,207)
  769. Glow2 = Color3.fromRGB(119,158,203)
  770.  
  771. GlowParticle = Instance.new("ParticleEmitter",FirePart)
  772. GlowParticle.LightEmission = 1
  773. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  774. GlowParticle.Size = NumberSequence.new(0,20)
  775. GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985"
  776. GlowParticle.Transparency = NumberSequence.new(0,1)
  777. GlowParticle.LockedToPart = true
  778. GlowParticle.Lifetime = NumberRange.new(1)
  779. GlowParticle.Rate= 1
  780. GlowParticle.Speed =NumberRange.new(0)
  781. GlowParticle.Enabled = false
  782.  
  783.  
  784.  
  785.  
  786. GlowParticle2 = Instance.new("ParticleEmitter",FirePart)
  787. GlowParticle2.LightEmission = .7
  788. GlowParticle2.Color = ColorSequence.new(Glow1,Glow2)
  789. GlowParticle2.Size = NumberSequence.new(0,1)
  790. GlowParticle2.Texture = "http://www.roblox.com/asset/?id=589325350"
  791. GlowParticle2.Transparency = NumberSequence.new(0,1)
  792. GlowParticle2.LockedToPart = false
  793. GlowParticle2.Lifetime = NumberRange.new(0.2)
  794. GlowParticle2.Rate= 150
  795. GlowParticle2.Speed =NumberRange.new(3)
  796. GlowParticle2.Acceleration = Vector3.new(0, -10.5, 0)
  797.  
  798.  
  799.  
  800.  
  801.  
  802. local all,last = {}
  803. function scan(p)
  804. for _,v in pairs(p:GetChildren()) do
  805. if (v:IsA("BasePart")) then
  806. if (last) then
  807. local w = Instance.new("Weld")
  808. w.Part0,w.Part1 = last,v
  809. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  810. w.Parent = last
  811. end
  812. table.insert(all,v)
  813. last = v
  814. end
  815. scan(v)
  816. end
  817. end
  818. scan(LaserMinigun)
  819.  
  820. scan(MiniDroid)
  821. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  822. MiniDroid.Parent = C
  823. LaserMinigun.Parent = C
  824.  
  825.  
  826. Main:Destroy()
  827.  
  828. Effects = { }
  829. Rapid = false
  830. local Player = game.Players.localPlayer
  831. local Character = Player.Character
  832. local Humanoid = Character.Humanoid
  833. local mouse = Player:GetMouse()
  834. local LeftArm = Character["Left Arm"]
  835. local RightArm = Character["Right Arm"]
  836. local LeftLeg = Character["Left Leg"]
  837. local RightLeg = Character["Right Leg"]
  838. local Head = Character.Head
  839. local Torso = Character.Torso
  840. local cam = game.Workspace.CurrentCamera
  841. local RootPart = Character.HumanoidRootPart
  842. local RootJoint = RootPart.RootJoint
  843. local equipped = false
  844. local attack = false
  845. local Anim = 'Idle'
  846. local idle = 0
  847. local attacktype = 1
  848. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  849. local velocity = RootPart.Velocity.y
  850. local sine = 0
  851. local change = 1
  852. local grabbed = false
  853. local cn = CFrame.new
  854. local mr = math.rad
  855. local angles = CFrame.Angles
  856. local ud = UDim2.new
  857. local c3 = Color3.new
  858. local slashDamage = 15
  859. local dir = {w = 0, s = 0, a = 0, d = 0}
  860. local dir2 = {w = 0, s = 0, a = 0, d = 0}
  861. killcom=true
  862. trans = 1
  863. sentrymode = false
  864. sentrywait = false
  865. local LightMod = Instance.new("Model", Character)
  866. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  867. Humanoid.Animator:Destroy()
  868. npcanim = Character.Animate:Clone()
  869. ultwait=false
  870.  
  871.  
  872.  
  873.  
  874. Character.Animate:Destroy()
  875.  
  876.  
  877. local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  878. local oldParts = {}
  879. for _,v in pairs(Par:GetChildren()) do
  880. v.CFrame = CFrame.new(5e5, 5e5, 5e5)
  881. table.insert(oldParts, v)
  882. end
  883. local Distance = (Start-End).Magnitude
  884. local ArcScale = ArcScale or 1
  885. local RandomScale = RandomScale or 0
  886. local Last = Start
  887. local IterNum = 0
  888.  
  889. while Par.Parent do
  890. IterNum = IterNum + 1
  891. local New = nil
  892. if (Last-End).Magnitude < Length then
  893. New = CFrame.new(End)
  894. else
  895. if (End-Last).Magnitude < Length*2 then
  896. RandomScale = RandomScale*0.1
  897. ArcScale = ArcScale*0.5
  898. end
  899. local Direct = CFrame.new(Last,End)
  900. New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale)))
  901. New = New*CFrame.new(0,0,-Length)
  902. end
  903. local Trail = nil
  904. if oldParts[IterNum] then
  905. Trail = oldParts[IterNum]
  906. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Pastel Blue")) or BrickColor.new("Pastel Blue")
  907. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  908. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  909. oldParts[IterNum] = nil
  910. game:GetService("Debris"):AddItem(Trail, .03)
  911. else
  912. Trail = Instance.new("Part")
  913. Trail.Name = "Part"
  914. Trail.FormFactor = "Custom"
  915. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Pastel Blue")) or BrickColor.new("Pastel Blue")
  916. Trail.Transparency = 0
  917. Trail.Anchored = true
  918. Trail.CanCollide = false
  919. Trail.Locked = true
  920. Trail.BackSurface = "SmoothNoOutlines"
  921. Trail.BottomSurface = "SmoothNoOutlines"
  922. Trail.FrontSurface = "SmoothNoOutlines"
  923. Trail.LeftSurface = "SmoothNoOutlines"
  924. Trail.RightSurface = "SmoothNoOutlines"
  925. Trail.TopSurface = "SmoothNoOutlines"
  926. Trail.Material = "Neon"
  927. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  928. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  929. Trail.Parent = Par
  930. game:GetService("Debris"):AddItem(Trail, .03)
  931. end
  932. Last = New.p
  933. if (Last-End).Magnitude < 1 then
  934. break
  935. end
  936. end
  937. for _,v in pairs(oldParts) do
  938. v:Destroy()
  939. end
  940. end
  941.  
  942.  
  943.  
  944. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  945. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  946. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  947.  
  948. RSH, LSH = nil, nil
  949.  
  950.  
  951. DW = Instance.new("Weld")
  952. DW.Name = "GuW"
  953. DW.Part0 = Torso
  954. DW.C0 = cn(0, 50, 0)
  955. DW.C1 = cn(0, 0, 0)
  956. DW.Part1 = miniHandle
  957. DW.Parent = Torso
  958.  
  959.  
  960. GuW = Instance.new("Weld")
  961. GuW.Name = "GuW"
  962. GuW.Part0 = RightArm
  963. GuW.C0 = cn(0, -1, -1)
  964. GuW.C1 = cn(0, 0, 0)
  965. GuW.Part1 = Handle
  966. GuW.Parent = RightArm
  967.  
  968. RW = Instance.new("Weld")
  969. LW = Instance.new("Weld")
  970.  
  971.  
  972. RH = Torso["Right Hip"]
  973. LH = Torso["Left Hip"]
  974.  
  975. RSH = Torso["Right Shoulder"]
  976. LSH = Torso["Left Shoulder"]
  977.  
  978. RSH.Parent = nil
  979. LSH.Parent = nil
  980.  
  981. RW.Name = "RW"
  982. RW.Part0 = Torso
  983. RW.C0 = cn(1.5, 0.5, 0)
  984. RW.C1 = cn(0, 0.5, 0)
  985. RW.Part1 = RightArm
  986. RW.Parent = Torso
  987.  
  988. LW.Name = "LW"
  989. LW.Part0 = Torso
  990. LW.C0 = cn(-1.5, 0.5, 0)
  991. LW.C1 = cn(0, 0.5, 0)
  992. LW.Part1 = LeftArm
  993. LW.Parent = Torso
  994.  
  995. function clerp(a, b, t)
  996. local qa = {
  997. QuaternionFromCFrame(a)
  998. }
  999. local qb = {
  1000. QuaternionFromCFrame(b)
  1001. }
  1002. local ax, ay, az = a.x, a.y, a.z
  1003. local bx, by, bz = b.x, b.y, b.z
  1004. local _t = 1 - t
  1005. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1006. end
  1007.  
  1008. function QuaternionFromCFrame(cf)
  1009. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1010. local trace = m00 + m11 + m22
  1011. if trace > 0 then
  1012. local s = math.sqrt(1 + trace)
  1013. local recip = 0.5 / s
  1014. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1015. else
  1016. local i = 0
  1017. if m11 > m00 then
  1018. i = 1
  1019. end
  1020. if m22 > (i == 0 and m00 or m11) then
  1021. i = 2
  1022. end
  1023. if i == 0 then
  1024. local s = math.sqrt(m00 - m11 - m22 + 1)
  1025. local recip = 0.5 / s
  1026. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1027. elseif i == 1 then
  1028. local s = math.sqrt(m11 - m22 - m00 + 1)
  1029. local recip = 0.5 / s
  1030. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1031. elseif i == 2 then
  1032. local s = math.sqrt(m22 - m00 - m11 + 1)
  1033. local recip = 0.5 / s
  1034. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1035. end
  1036. end
  1037. end
  1038.  
  1039. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1040. local xs, ys, zs = x + x, y + y, z + z
  1041. local wx, wy, wz = w * xs, w * ys, w * zs
  1042. local xx = x * xs
  1043. local xy = x * ys
  1044. local xz = x * zs
  1045. local yy = y * ys
  1046. local yz = y * zs
  1047. local zz = z * zs
  1048. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1049. end
  1050.  
  1051. function QuaternionSlerp(a, b, t)
  1052. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1053. local startInterp, finishInterp;
  1054. if cosTheta >= 0.0001 then
  1055. if (1 - cosTheta) > 0.0001 then
  1056. local theta = math.acos(cosTheta)
  1057. local invSinTheta = 1 / math.sin(theta)
  1058. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1059. finishInterp = math.sin(t * theta) * invSinTheta
  1060. else
  1061. startInterp = 1 - t
  1062. finishInterp = t
  1063. end
  1064. else
  1065. if (1 + cosTheta) > 0.0001 then
  1066. local theta = math.acos(-cosTheta)
  1067. local invSinTheta = 1 / math.sin(theta)
  1068. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1069. finishInterp = math.sin(t * theta) * invSinTheta
  1070. else
  1071. startInterp = t - 1
  1072. finishInterp = t
  1073. end
  1074. end
  1075. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1076. end
  1077.  
  1078. function swait(num)
  1079. if num == 0 or num == nil then
  1080. game:service'RunService'.RenderStepped:wait(0)
  1081. else
  1082. for i = 0, num do
  1083. game:service'RunService'.RenderStepped:wait(0)
  1084. end
  1085. end
  1086. end
  1087.  
  1088. local RbxUtility = LoadLibrary("RbxUtility")
  1089. local Create = RbxUtility.Create
  1090.  
  1091. function RemoveOutlines(part)
  1092. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1093. end
  1094.  
  1095. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1096. local Part = Create("Part"){
  1097. formFactor = FormFactor,
  1098. Parent = Parent,
  1099. Reflectance = Reflectance,
  1100. Transparency = Transparency,
  1101. CanCollide = false,
  1102. Locked = true,
  1103. BrickColor = BrickColor.new(tostring(BColor)),
  1104. Name = Name,
  1105. Size = Size,
  1106. Material = Material,
  1107. }
  1108. RemoveOutlines(Part)
  1109. return Part
  1110. end
  1111.  
  1112. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1113. local Msh = Create(Mesh){
  1114. Parent = Part,
  1115. Offset = OffSet,
  1116. Scale = Scale,
  1117. }
  1118. if Mesh == "SpecialMesh" then
  1119. Msh.MeshType = MeshType
  1120. Msh.MeshId = MeshId
  1121. end
  1122. return Msh
  1123. end
  1124.  
  1125. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1126. local Weld = Create("Weld"){
  1127. Parent = Parent,
  1128. Part0 = Part0,
  1129. Part1 = Part1,
  1130. C0 = C0,
  1131. C1 = C1,
  1132. }
  1133. return Weld
  1134. end
  1135.  
  1136. function rayCast(Position, Direction, Range, Ignore)
  1137. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1138. end
  1139.  
  1140. function CreateSound(id, par, vol, pit)
  1141. coroutine.resume(coroutine.create(function()
  1142. local sou = Instance.new("Sound", par or workspace)
  1143. sou.Volume = vol
  1144. sou.Pitch = pit or 1
  1145. sou.SoundId = id
  1146. wait()
  1147. sou:play()
  1148. game:GetService("Debris"):AddItem(sou, 6)
  1149. end))
  1150. end
  1151.  
  1152. local function getclosest(obj, distance)
  1153. local last, lastx = distance + 1
  1154. for i, v in pairs(workspace:GetChildren()) do
  1155. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  1156. local t = v.Torso
  1157. local dist = (t.Position - obj.Position).magnitude
  1158. if dist <= distance then
  1159. if dist < last then
  1160. last = dist
  1161. lastx = v
  1162. end
  1163. end
  1164. end
  1165. end
  1166. return lastx
  1167. end
  1168.  
  1169. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  1170. for i, v in pairs(hit:GetChildren()) do
  1171. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  1172. local find = v:FindFirstChild("Hitz")
  1173. if not find then
  1174. if v.Parent:findFirstChild("Head") then
  1175. local BillG = Create("BillboardGui"){
  1176. Parent = v.Parent.Head,
  1177. Size = UDim2.new(1, 0, 1, 0),
  1178. Adornee = v.Parent.Head,
  1179. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  1180. }
  1181. local TL = Create("TextLabel"){
  1182. Parent = BillG,
  1183. Size = UDim2.new(3, 3, 3, 3),
  1184. BackgroundTransparency = 1,
  1185. Text = tostring(damage).."-",
  1186. TextColor3 = Color1.Color,
  1187. TextStrokeColor3 = Color2.Color,
  1188. TextStrokeTransparency = 0,
  1189. TextXAlignment = Enum.TextXAlignment.Center,
  1190. TextYAlignment = Enum.TextYAlignment.Center,
  1191. FontSize = Enum.FontSize.Size18,
  1192. Font = "ArialBold",
  1193. }
  1194. coroutine.resume(coroutine.create(function()
  1195. wait(1)
  1196. for i = 0, 1, .1 do
  1197. wait(.1)
  1198. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  1199. end
  1200. BillG:Destroy()
  1201. end))
  1202. end
  1203. v.Health = v.Health - damage
  1204. local bool = Create("BoolValue"){
  1205. Parent = v,
  1206. Name = 'Hitz',
  1207. }
  1208. if HSound ~= nil and HPitch ~= nil then
  1209. CreateSound(HSound, hit, 1, HPitch)
  1210. end
  1211. game:GetService("Debris"):AddItem(bool, cooldown)
  1212. end
  1213. end
  1214. end
  1215. end
  1216.  
  1217.  
  1218. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1219. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1220. prt.Anchored = true
  1221. prt.CFrame = cframe
  1222. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1223. game:GetService("Debris"):AddItem(prt, 10)
  1224. if Type == 1 or Type == nil then
  1225. table.insert(Effects, {
  1226. prt,
  1227. "Block1",
  1228. delay,
  1229. x3,
  1230. y3,
  1231. z3,
  1232. msh
  1233. })
  1234. elseif Type == 2 then
  1235. table.insert(Effects, {
  1236. prt,
  1237. "Block2",
  1238. delay,
  1239. x3,
  1240. y3,
  1241. z3,
  1242. msh
  1243. })
  1244. end
  1245. end
  1246.  
  1247. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1248. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1249. prt.Anchored = true
  1250. prt.CFrame = cframe
  1251. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1252. game:GetService("Debris"):AddItem(prt, 10)
  1253. table.insert(Effects, {
  1254. prt,
  1255. "Cylinder",
  1256. delay,
  1257. x3,
  1258. y3,
  1259. z3,
  1260. msh
  1261. })
  1262. end
  1263.  
  1264. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1265. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1266. prt.Anchored = true
  1267. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1268. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1269. game:GetService("Debris"):AddItem(prt, 10)
  1270. table.insert(Effects, {
  1271. prt,
  1272. "Cylinder",
  1273. delay,
  1274. x3,
  1275. y3,
  1276. z3,
  1277. msh
  1278. })
  1279. end
  1280.  
  1281. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1282. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1283. prt.Anchored = true
  1284. prt.CFrame = cframe
  1285. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1286. game:GetService("Debris"):AddItem(prt, 10)
  1287. table.insert(Effects, {
  1288. prt,
  1289. "Cylinder",
  1290. delay,
  1291. x3,
  1292. y3,
  1293. z3,
  1294. msh
  1295. })
  1296. end
  1297.  
  1298. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1299. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1300. prt.Anchored = true
  1301. prt.CFrame = cframe
  1302. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1303. game:GetService("Debris"):AddItem(prt, 10)
  1304. table.insert(Effects, {
  1305. prt,
  1306. "Cylinder",
  1307. delay,
  1308. x3,
  1309. y3,
  1310. z3,
  1311. msh
  1312. })
  1313. end
  1314.  
  1315. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1316. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1317. prt.Anchored = true
  1318. prt.CFrame = cframe
  1319. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1320. game:GetService("Debris"):AddItem(prt, 10)
  1321. table.insert(Effects, {
  1322. prt,
  1323. "Cylinder",
  1324. delay,
  1325. x3,
  1326. y3,
  1327. z3,
  1328. msh
  1329. })
  1330. end
  1331.  
  1332. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1333. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1334. prt.Anchored = true
  1335. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1336. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1337. local num = math.random(10, 50) / 1000
  1338. game:GetService("Debris"):AddItem(prt, 10)
  1339. table.insert(Effects, {
  1340. prt,
  1341. "Shatter",
  1342. num,
  1343. prt.CFrame,
  1344. math.random() - math.random(),
  1345. 0,
  1346. math.random(50, 100) / 100
  1347. })
  1348. end
  1349.  
  1350.  
  1351.  
  1352.  
  1353. for i = 0, 1, 0.05 do
  1354. swait()
  1355. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1356. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  1357. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1358. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1359. if Torsovelocity > 2 then
  1360. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  1361. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  1362. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  1363. elseif Torsovelocity < 1 then
  1364. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1365. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  1366. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  1367. end
  1368. end
  1369. attack = false
  1370.  
  1371.  
  1372.  
  1373. game:GetService'RunService'.Stepped:connect(function()
  1374. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1375. velocity = RootPart.Velocity.y
  1376. sine = sine + change
  1377. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1378. if equipped == true or equipped == false then
  1379. if RootPart.Velocity.y > 1 and hit == nil then
  1380. Anim = "Jump"
  1381. if attack == false then
  1382. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1383. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1384. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1385. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1386. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  1387. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  1388. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  1389. DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,0 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1390. end
  1391. elseif RootPart.Velocity.y < 1 and hit == nil then
  1392. Anim = "Fall"
  1393. if attack == false then
  1394. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1395. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1396. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(65), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1397. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(55 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1398. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1399. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1400. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  1401. DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,8 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1402. end
  1403. elseif Torsovelocity < 1 and hit ~= nil then
  1404. Anim = "Idle"
  1405. if attack == false then
  1406. change = 1
  1407. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  1408. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  1409. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1410. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1411. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1412. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1413. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  1414.  
  1415. DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1416. end
  1417. elseif Torsovelocity > 1 and hit ~= nil then
  1418. Anim = "Walk"
  1419. if attack == false then
  1420. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2)
  1421. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2)
  1422. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3)
  1423. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2)
  1424. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1425. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1426. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1427. DW.C0 = clerp(DW.C0, CFrame.new(3+.1 * math.cos(sine / 5) , 3.05 - .1 * math.cos(sine / 3), 2.5 + .5 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1428. end
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447. end
  1448. end
  1449. if #Effects > 0 then
  1450. for e = 1, #Effects do
  1451. if Effects[e] ~= nil then
  1452. local Thing = Effects[e]
  1453. if Thing ~= nil then
  1454. local Part = Thing[1]
  1455. local Mode = Thing[2]
  1456. local Delay = Thing[3]
  1457. local IncX = Thing[4]
  1458. local IncY = Thing[5]
  1459. local IncZ = Thing[6]
  1460. if Thing[1].Transparency <= 1 then
  1461. if Thing[2] == "Block1" then
  1462. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1463. local Mesh = Thing[1].Mesh
  1464. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1465. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1466. elseif Thing[2] == "Block2" then
  1467. Thing[1].CFrame = Thing[1].CFrame
  1468. local Mesh = Thing[7]
  1469. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1470. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1471. elseif Thing[2] == "Cylinder" then
  1472. local Mesh = Thing[1].Mesh
  1473. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1474. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1475. elseif Thing[2] == "Blood" then
  1476. local Mesh = Thing[7]
  1477. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1478. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1479. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1480. elseif Thing[2] == "Elec" then
  1481. local Mesh = Thing[1].Mesh
  1482. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1483. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1484. elseif Thing[2] == "Disappear" then
  1485. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1486. elseif Thing[2] == "Shatter" then
  1487. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1488. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1489. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1490. Thing[6] = Thing[6] + Thing[5]
  1491. end
  1492. else
  1493. Part.Parent = nil
  1494. table.remove(Effects, e)
  1495. end
  1496. end
  1497. end
  1498. end
  1499. end
  1500. end)
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529. RemoveOutlines = function(part)
  1530.  
  1531. part.TopSurface = 10
  1532. end
  1533.  
  1534. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1535.  
  1536. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1537. RemoveOutlines(Part)
  1538. return Part
  1539. end
  1540.  
  1541. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1542.  
  1543. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1544. if Mesh == "SpecialMesh" then
  1545. Msh.MeshType = MeshType
  1546. Msh.MeshId = MeshId
  1547. end
  1548. return Msh
  1549. end
  1550.  
  1551. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  1552.  
  1553. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1554. return Weld
  1555. end
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572. CFuncs = {
  1573. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1574.  
  1575. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1576. RemoveOutlines(Part)
  1577. return Part
  1578. end
  1579. }
  1580. ,
  1581. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1582.  
  1583. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1584. if Mesh == "SpecialMesh" then
  1585. Msh.MeshType = MeshType
  1586. Msh.MeshId = MeshId
  1587. end
  1588. return Msh
  1589. end
  1590. }
  1591. ,
  1592. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1593.  
  1594. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1595. if Mesh == "SpecialMesh" then
  1596. Msh.MeshType = MeshType
  1597. Msh.MeshId = MeshId
  1598. end
  1599. return Msh
  1600. end
  1601. }
  1602. ,
  1603. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1604.  
  1605. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1606. return Weld
  1607. end
  1608. }
  1609. ,
  1610. Sound = {Create = function(id, par, vol, pit)
  1611.  
  1612. coroutine.resume(coroutine.create(function()
  1613.  
  1614. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1615. wait()
  1616. S:play()
  1617. game:GetService("Debris"):AddItem(S, 6)
  1618. end
  1619. ))
  1620. end
  1621. }
  1622. ,
  1623. articleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1624.  
  1625. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  1626. return fp
  1627. end
  1628. }
  1629. }
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1636.  
  1637. if hit.Parent == nil then
  1638. return
  1639. end
  1640. local h = hit.Parent:FindFirstChild("Humanoid")
  1641. for _,v in pairs(hit.Parent:children()) do
  1642. if v:IsA("Humanoid") then
  1643. h = v
  1644. end
  1645. end
  1646. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1647. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1648. return
  1649. end
  1650. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1651. game:GetService("Debris"):AddItem(c, 0.5)
  1652. if HitSound ~= nil and HitPitch ~= nil then
  1653. CreateSound(HitSound, hit, 1, HitPitch)
  1654. end
  1655. local Damage = math.random(minim, maxim)
  1656. local blocked = false
  1657. local block = hit.Parent:findFirstChild("Block")
  1658. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1659. blocked = true
  1660. block.Value = block.Value - 1
  1661. print(block.Value)
  1662. end
  1663. if blocked == false then
  1664. h.Health = h.Health - Damage
  1665. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1666. else
  1667. h.Health = h.Health - Damage / 2
  1668. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1669. end
  1670. if Type == "Knockdown" then
  1671. local hum = hit.Parent.Humanoid
  1672. hum.PlatformStand = true
  1673. coroutine.resume(coroutine.create(function(HHumanoid)
  1674.  
  1675. swait(1)
  1676. HHumanoid.PlatformStand = false
  1677. end
  1678. ), hum)
  1679. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1680. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1681. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1682. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1683. game:GetService("Debris"):AddItem(rl, 0.5)
  1684. elseif Type == "Normal" then
  1685. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  1686. if knockback > 0 then
  1687. vp.Parent = hit.Parent.HumanoidRootPart
  1688. end
  1689. game:GetService("Debris"):AddItem(vp, 0.5)
  1690. elseif Type == "Up" then
  1691. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1692. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1693. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1694. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1695. elseif Type == "Snare" then
  1696. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1697. local bp = Create("BodyPosition")({P = 200, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position + Vector3.new(0, -5, 0), Parent = hit.Parent.HumanoidRootPart})
  1698. local rl2 = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500, 500, 500) * 10, angularvelocity = Vector3.new(math.random(-15,15), math.random(-0, 0), math.random(-15,15)), Parent = hit})
  1699. game:GetService("Debris"):AddItem(rl2, 0.01)
  1700. game:GetService("Debris"):AddItem(bp, .1)
  1701. hit.Parent.Humanoid.PlatformStand = true
  1702.  
  1703.  
  1704. wait(.1)
  1705. hit.Parent.Humanoid.PlatformStand = false
  1706. elseif Type == "Freeze" then
  1707. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position, Parent = hit.Parent.HumanoidRootPart})
  1708. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.HumanoidRootPart, cframe = hit.Parent.HumanoidRootPart.CFrame})
  1709. hit.Parent.HumanoidRootPart.Anchored = true
  1710. coroutine.resume(coroutine.create(function(Part)
  1711.  
  1712. swait(1.5)
  1713. Part.Anchored = false
  1714. end
  1715. ), hit.Parent.HumanoidRootPart)
  1716. game:GetService("Debris"):AddItem(BodPos, 3)
  1717. game:GetService("Debris"):AddItem(BodGy, 3)
  1718. end
  1719. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1720. game:GetService("Debris"):AddItem(debounce, Delay)
  1721. c = Instance.new("ObjectValue")
  1722. c.Name = "creator"
  1723. c.Value = Player
  1724. c.Parent = h
  1725. game:GetService("Debris"):AddItem(c, 0.5)
  1726. end
  1727. end
  1728.  
  1729. ShowDamage = function(Pos, Text, Time, Color)
  1730.  
  1731. local Rate = 0.033333333333333
  1732. if not Pos then
  1733. local Pos = Vector3.new(0, 0, 0)
  1734. end
  1735. local Text = Text or ""
  1736. local Time = Time or 2
  1737. if not Color then
  1738. local Color = Color3.new(1, 0, 1)
  1739. end
  1740. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1741. EffectPart.Anchored = true
  1742. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1743. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1744. game.Debris:AddItem(EffectPart, Time + 0.1)
  1745. EffectPart.Parent = game:GetService("Workspace")
  1746. delay(0, function()
  1747.  
  1748. local Frames = Time / Rate
  1749. for Frame = 1, Frames do
  1750. wait(Rate)
  1751. local Percent = Frame / Frames
  1752. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1753. TextLabel.TextTransparency = Percent
  1754. end
  1755. if EffectPart and EffectPart.Parent then
  1756. EffectPart:Destroy()
  1757. end
  1758. end
  1759. )
  1760. end
  1761.  
  1762. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1763.  
  1764. for _,c in pairs(workspace:children()) do
  1765. local hum = c:findFirstChild("Humanoid")
  1766. if hum ~= nil then
  1767. local head = c:findFirstChild("HumanoidRootPart")
  1768. if head ~= nil then
  1769. local targ = head.Position - Part.Position
  1770. local mag = targ.magnitude
  1771. if mag <= magni and c.Name ~= Player.Name then
  1772. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  1773. end
  1774. end
  1775. end
  1776. end
  1777. end
  1778. MagniKILL = function(Part, magni, knock, Type)
  1779.  
  1780. for _,c in pairs(workspace:children()) do
  1781. local hum = c:findFirstChild("Humanoid")
  1782. if hum ~= nil then
  1783. local head = c:findFirstChild("Head")
  1784. if head ~= nil then
  1785. local targ = head.Position - Part.Position
  1786. local mag = targ.magnitude
  1787. if mag <= magni and c.Name ~= Player.Name then
  1788. hum.Health = 0
  1789. end
  1790. end
  1791. end
  1792. end
  1793. end
  1794.  
  1795. EffectModel = Instance.new("Model", Character)
  1796. EffectModel.Name = "Effects"
  1797. Effects = {
  1798. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1799.  
  1800. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1801. prt.Anchored = true
  1802. prt.CFrame = cframe
  1803. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1804. game:GetService("Debris"):AddItem(prt, 10)
  1805. if Type == 1 or Type == nil then
  1806. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1807. else
  1808. if Type == 2 then
  1809. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1810. end
  1811. end
  1812. end
  1813. }
  1814. ,
  1815. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1816.  
  1817. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1818. prt.Anchored = true
  1819. prt.CFrame = cframe
  1820. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1821. game:GetService("Debris"):AddItem(prt, 10)
  1822. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1823. end
  1824. }
  1825. ,
  1826. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1827.  
  1828. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1829. prt.Anchored = true
  1830. prt.CFrame = cframe
  1831. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1832. game:GetService("Debris"):AddItem(prt, 10)
  1833. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1834. end
  1835. }
  1836. ,
  1837. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1838.  
  1839. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1840. prt.Anchored = true
  1841. prt.CFrame = cframe
  1842. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1843. game:GetService("Debris"):AddItem(prt, 10)
  1844. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1845. end
  1846. }
  1847. ,
  1848. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1849.  
  1850. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1851. prt.Anchored = true
  1852. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1853. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1854. game:GetService("Debris"):AddItem(prt, 10)
  1855. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1856. end
  1857. }
  1858. ,
  1859. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  1860.  
  1861. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1862. prt.Anchored = true
  1863. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1864. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1865. local num = math.random(10, 50) / 1000
  1866. game:GetService("Debris"):AddItem(prt, 10)
  1867. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1868. end
  1869. }
  1870. }
  1871. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1872.  
  1873. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1874. prt.Anchored = true
  1875. prt.CFrame = cframe
  1876. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1877. game:GetService("Debris"):AddItem(prt, 10)
  1878. if Type == 1 or Type == nil then
  1879. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1880. else
  1881. if Type == 2 then
  1882. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1883. end
  1884. end
  1885. end
  1886.  
  1887. CreateSound = function(id, par, vol, pit)
  1888.  
  1889. coroutine.resume(coroutine.create(function()
  1890.  
  1891. local sou = Instance.new("Sound", par or workspace)
  1892. sou.Volume = vol
  1893. sou.Pitch = pit or 1
  1894. sou.SoundId = id
  1895. swait()
  1896. sou:play()
  1897. game:GetService("Debris"):AddItem(sou, 6)
  1898. end
  1899. ))
  1900. end
  1901.  
  1902. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1903.  
  1904. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1905. prt.Anchored = true
  1906. prt.CFrame = cframe
  1907. prt.Material = "Neon"
  1908. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1909. game:GetService("Debris"):AddItem(prt, 10)
  1910. coroutine.resume(coroutine.create(function(Part, Mesh)
  1911.  
  1912. for i = 0, 6, delay do
  1913. swait()
  1914. Part.Transparency = i
  1915. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1916. end
  1917. Part.Parent = nil
  1918. end
  1919. ), prt, msh)
  1920. end
  1921. LigLaser = function(mouse, partt, SpreadAmount)
  1922.  
  1923. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1924. local MainPos = partt.Position
  1925. local MainPos2 = mouse + SpreadVectors
  1926. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1927. local speed = 1000
  1928. local num = 1
  1929. coroutine.resume(coroutine.create(function()
  1930.  
  1931. repeat
  1932. swait()
  1933. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1934. local mag = (MainPos - pos).magnitude
  1935.  
  1936. MainPos = MainPos + MouseLook.lookVector * speed
  1937. num = num - 1
  1938. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1939. if hit ~= nil then
  1940. num = 0
  1941. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1942. refpart.Anchored = true
  1943. refpart.CFrame = CFrame.new(pos)
  1944. game:GetService("Debris"):AddItem(refpart, 2)
  1945. end
  1946.  
  1947. do
  1948. if num <= 0 then
  1949. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1950. refpart.Anchored = true
  1951. refpart.CFrame = CFrame.new(pos)
  1952. if hit ~= nil then
  1953. for i = 0,5 do
  1954.  
  1955. makeLightning(LightMod, partt.Position, refpart.Position, 0.17, 4, 30, 1, 10)
  1956. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  1957. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
  1958. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
  1959. MagniDamage(refpart, 3, .05, .2, 6, "Normal")
  1960. swait()
  1961. end
  1962.  
  1963.  
  1964. end
  1965. game:GetService("Debris"):AddItem(refpart, 0)
  1966. end
  1967. end
  1968. until num <= 0
  1969. end
  1970. ))
  1971. end
  1972. bigLigLaser = function(mouse, partt, SpreadAmount)
  1973.  
  1974. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1975. local MainPos = partt.Position
  1976. local MainPos2 = mouse + SpreadVectors
  1977. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1978. local speed = 1000
  1979. local num = 1
  1980. coroutine.resume(coroutine.create(function()
  1981.  
  1982. repeat
  1983. swait()
  1984. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1985. local mag = (MainPos - pos).magnitude
  1986.  
  1987. MainPos = MainPos + MouseLook.lookVector * speed
  1988. num = num - 1
  1989. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1990. if hit ~= nil then
  1991. num = 0
  1992. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1993. refpart.Anchored = true
  1994. refpart.CFrame = CFrame.new(pos)
  1995. game:GetService("Debris"):AddItem(refpart, 2)
  1996. end
  1997.  
  1998. do
  1999. if num <= 0 then
  2000. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2001. refpart.Anchored = true
  2002. refpart.CFrame = CFrame.new(pos)
  2003. if hit ~= nil then
  2004. for i = 0,1 do
  2005.  
  2006. makeLightning(LightMod, partt.Position, refpart.Position, 0.3, 4, 20, 1, 10)
  2007. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2008. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
  2009. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
  2010. MagniDamage(refpart, 3, 5, 10, 8, "Snare")
  2011. swait()
  2012. end
  2013.  
  2014.  
  2015. end
  2016. game:GetService("Debris"):AddItem(refpart, 0)
  2017. end
  2018. end
  2019. until num <= 0
  2020. end
  2021. ))
  2022. end
  2023.  
  2024.  
  2025. shoottraildd = function(mouse, partt, SpreadAmount)
  2026.  
  2027. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  2028. local MainPos = partt.Position
  2029. local MainPos2 = mouse + SpreadVectors
  2030. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2031. local speed = 1000
  2032. local num = 1
  2033. coroutine.resume(coroutine.create(function()
  2034.  
  2035. repeat
  2036. swait()
  2037. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  2038. local mag = (MainPos - pos).magnitude
  2039. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.195, 0, -0.195, 0.15)
  2040. MainPos = MainPos + MouseLook.lookVector * speed
  2041. num = num - 1
  2042. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  2043. if hit ~= nil then
  2044. num = 0
  2045. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2046. refpart.Anchored = true
  2047. refpart.CFrame = CFrame.new(pos)
  2048. game:GetService("Debris"):AddItem(refpart, 2)
  2049. end
  2050. do
  2051. if num <= 0 then
  2052. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2053. refpart.Anchored = true
  2054. refpart.CFrame = CFrame.new(pos)
  2055. if hit ~= nil then
  2056. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2057. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2058. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2059. MagniDamage(refpart, 3, 10, 15, 0, "Normal")
  2060. end
  2061. game:GetService("Debris"):AddItem(refpart, 0)
  2062. end
  2063. end
  2064. until num <= 0
  2065. end
  2066. ))
  2067. end
  2068.  
  2069. shoottraildd2 = function(mouse, partt, SpreadAmount)
  2070.  
  2071. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  2072. local MainPos = partt.Position
  2073. local MainPos2 = mouse + SpreadVectors
  2074. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2075. local speed = 1000
  2076. local num = 1
  2077. coroutine.resume(coroutine.create(function()
  2078.  
  2079. repeat
  2080. swait()
  2081. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  2082. local mag = (MainPos - pos).magnitude
  2083. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.5, 0, -0.5, .5)
  2084. MainPos = MainPos + MouseLook.lookVector * speed
  2085. num = num - 1
  2086. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  2087. if hit ~= nil then
  2088. num = 0
  2089. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2090. refpart.Anchored = true
  2091. refpart.CFrame = CFrame.new(pos)
  2092. game:GetService("Debris"):AddItem(refpart, 2)
  2093. end
  2094. do
  2095. if num <= 0 then
  2096. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2097. refpart.Anchored = true
  2098. refpart.CFrame = CFrame.new(pos)
  2099. if hit ~= nil then
  2100. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2101. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2102. BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2103. MagniDamage(refpart, 3, 20, 40, 0, "Snare")
  2104. end
  2105. game:GetService("Debris"):AddItem(refpart, 0)
  2106. end
  2107. end
  2108. until num <= 0
  2109. end
  2110. ))
  2111. end
  2112.  
  2113.  
  2114. function idleanim2()
  2115. for i = 0, 1, 0.1 do
  2116. swait()
  2117. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1) * angles(math.rad(0), math.rad(0), math.rad(10)), .2)
  2118. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0 + 0.7 * math.cos(sine / 25)), math.rad(0), math.rad(-10)), .2)
  2119. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.0) * angles(math.rad(0), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2120. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(0 - 1 * math.cos(sine / 25))), 0.2)
  2121. RH.C0 = clerp(RH.C0, cn(1, -.7 - 0.0 * math.cos(sine / 25), -.3) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(50 + 1.1 * math.cos(sine / 25))), .2)
  2122. LH.C0 = clerp(LH.C0, cn(-1, -.6 - 0.0 * math.cos(sine / 25), -.3) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(-40 + 1.1 * math.cos(sine / 25))), .2)
  2123. GuW.C0 = clerp(GuW.C0, CFrame.new(-1.4,-1.5,0) * angles(math.rad(-0), math.rad(0), math.rad(90)), 0.1)
  2124. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2125. end
  2126. end
  2127.  
  2128. function MinShotAttackAnim1()
  2129.  
  2130. for i = 0, 1, 0.3 do
  2131. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z))
  2132. swait()
  2133.  
  2134. if Torsovelocity > 1 then
  2135. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0), math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2136. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5))), .2)
  2137. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2138. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2139. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4)+ RootPart.RotVelocity.Y / 10)), .3)
  2140. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4))), .3)
  2141. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2142. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2143. elseif Torsovelocity < 1 then
  2144.  
  2145.  
  2146.  
  2147. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2148. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2149. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2150. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2151. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2152. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2153. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2154. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2155. end
  2156. end
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165. end
  2166.  
  2167.  
  2168. function ShotAttackAnim1()
  2169. for i = 0, 1, 0.3 do
  2170.  
  2171. swait()
  2172.  
  2173. if Torsovelocity > 1 then
  2174. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2175. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2)
  2176. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2177. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2178. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2179. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2180. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2181. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2182. elseif Torsovelocity < 1 then
  2183.  
  2184.  
  2185.  
  2186. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2187. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2188. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2189. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2190. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2191. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2192. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2193. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2194. end
  2195. end
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204. end
  2205.  
  2206.  
  2207. function ShotAttackAnim2()
  2208. for i = 0, 2, 0.1 do
  2209. swait()
  2210.  
  2211. if Torsovelocity > 2 then
  2212. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2)
  2213. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2214. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3)
  2215. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2)
  2216. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2217. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2218. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2219. DW.C0 = clerp(DW.C0, CFrame.new(4+.1 * math.cos(sine / 5) , 7.05 - .1 * math.cos(sine / 3), 2.5 + .1 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  2220. elseif Torsovelocity < 1 then
  2221.  
  2222.  
  2223. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  2224. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  2225. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  2226. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  2227. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  2228. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  2229. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  2230.  
  2231. DW.C0 = clerp(DW.C0, CFrame.new(2 + .1 * math.cos(sine / 5) ,7 + -.2 * math.cos(sine / 20), 0 + .1 * math.cos(sine / 5)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  2232. end
  2233. end
  2234. end
  2235.  
  2236. function ShotAttackAnim3()
  2237. for i = 0, 2, 0.1 do
  2238. swait()
  2239.  
  2240. if Torsovelocity > 2 then
  2241. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2242. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2243. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2244. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2245. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2246. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2247. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2248. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2249. elseif Torsovelocity < 1 then
  2250.  
  2251.  
  2252. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2253. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2254. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2255. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2256. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), .2)
  2257. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), .2)
  2258. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2259. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2260. end
  2261. end
  2262.  
  2263.  
  2264.  
  2265. for i = 0, 1, 0.4 do
  2266. swait()
  2267.  
  2268. if Torsovelocity > 2 then
  2269. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2270. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2271. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  2272. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  2273. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2274. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2275. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2276. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2277. elseif Torsovelocity < 1 then
  2278.  
  2279.  
  2280. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2281. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2282. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  2283. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  2284. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  2285. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  2286. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2287. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2288. end
  2289. end
  2290. end
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299. function holding()
  2300.  
  2301.  
  2302.  
  2303.  
  2304. while Rapid == true and attack==true and sentrymode == false do
  2305.  
  2306. attack = true
  2307.  
  2308.  
  2309. MinShotAttackAnim1()
  2310. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2311. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2312. shoottraildd(mouse.Hit.p, gun1, .55)
  2313.  
  2314. MinShotAttackAnim1()
  2315. BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2316. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2317. shoottraildd(mouse.Hit.p, gun2, .55)
  2318. MinShotAttackAnim1()
  2319. BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2320. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2321. shoottraildd(mouse.Hit.p, gun3, .55)
  2322. MinShotAttackAnim1()
  2323. BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2324. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2325. shoottraildd(mouse.Hit.p, gun4, .55)
  2326. end
  2327.  
  2328.  
  2329.  
  2330. attack = false
  2331. end
  2332.  
  2333. mouse.KeyDown:connect(function(k)
  2334. if k == "t" then
  2335. CreateSound("171014742", Torso, 10, 1)
  2336. end
  2337. end)
  2338.  
  2339. mouse.KeyUp:connect(function(k)
  2340. if k == "z" and Rapid == true then
  2341. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2)
  2342. Rapid = false
  2343. Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.08)
  2344. Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.1)
  2345.  
  2346. end
  2347. end)
  2348.  
  2349.  
  2350.  
  2351. mouse.KeyDown:connect(function(k)
  2352. if k == "z" and sentrymode == false and attack == false then
  2353. attack = true
  2354. Rapid = true
  2355. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1)
  2356. MinShotAttackAnim1()
  2357. MinShotAttackAnim1()
  2358. for i = 0,10 do
  2359. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2360. BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2361. BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2362. BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2363. Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, 2.1, 2.1, .1, -.3,-.3,0,0.07)
  2364. MinShotAttackAnim1()
  2365. end
  2366. holding()
  2367. end
  2368. end)
  2369.  
  2370.  
  2371.  
  2372.  
  2373. mouse.KeyDown:connect(function(k)
  2374.  
  2375.  
  2376. if attack == false and k == "x" and sentrymode == false then
  2377.  
  2378.  
  2379.  
  2380.  
  2381. attack = true
  2382. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3)
  2383. for i=1,5 do
  2384.  
  2385. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2386. BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2387. BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2388. BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2389. ShotAttackAnim1()
  2390. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2391. BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2392. BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2393. BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2394. ShotAttackAnim1()
  2395. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2396. BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2397. BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2398. BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2399.  
  2400. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4)
  2401. ShotAttackAnim1()
  2402. end
  2403. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1)
  2404. for i=1,2 do
  2405. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12)
  2406. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09)
  2407. BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06)
  2408. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045)
  2409. end
  2410. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2411.  
  2412.  
  2413. MagniDamage(gun1, 15, 20, 69, 99, "Normal")
  2414. ShotAttackAnim3()
  2415.  
  2416.  
  2417.  
  2418.  
  2419. for i=1,2 do
  2420. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2421. ShotAttackAnim1()
  2422. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2423. ShotAttackAnim1()
  2424. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  2425. ShotAttackAnim1()
  2426. end
  2427.  
  2428. attack = false
  2429.  
  2430. end
  2431.  
  2432.  
  2433.  
  2434. if k == "r" and attack == false then
  2435. attack=true
  2436. while Torsovelocity < 1 do
  2437. attack=true
  2438. idleanim2()
  2439.  
  2440.  
  2441.  
  2442. end
  2443. attack=false
  2444.  
  2445. end
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.  
  2453.  
  2454. if k == "v" and sentrymode == false and attack == false and ultwait==false then
  2455. ultwait=true
  2456. attack = true
  2457. Humanoid.WalkSpeed = 0
  2458. local Sond = Create("Sound")({Volume = 1.5, Pitch = 1.2, SoundId = "http://www.roblox.com/asset/?id=195322948", Parent = Character or workspace})
  2459. wait()
  2460. Sond:play()
  2461.  
  2462. for i = 0, 1, 0.1 do
  2463. swait()
  2464.  
  2465.  
  2466.  
  2467. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2468. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2469. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2470. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2471. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2472. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2473. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2474. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2475.  
  2476. end
  2477.  
  2478.  
  2479. for i = 0, 2, 0.1 do
  2480. swait()
  2481.  
  2482. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
  2483.  
  2484.  
  2485. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2486. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  2487. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2488. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  2489. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .2)
  2490. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  2491. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2492. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2493.  
  2494. end
  2495.  
  2496.  
  2497. for i = 0, 58, 0.1 do
  2498. swait()
  2499. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.08)
  2500. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.1)
  2501. BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 21, 41, 21, -.5, -.5, -.5, 0.1,2)
  2502.  
  2503. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2504. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  2505. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  2506. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1)
  2507. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  2508. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  2509. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2510. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2511.  
  2512. end
  2513. BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 0, 0, 0, 20,20,20, 0.05,1)
  2514. for i = 0, 55, 0.1 do
  2515. swait()
  2516. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.08)
  2517. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
  2518. Effects.Break.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, 6, .1, .1)
  2519. BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 21, 41, 21, .1, .1, .1, 0.05,2)
  2520. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), .01)
  2521. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  2522. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2523. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  2524. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.2 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  2525. LH.C0 = clerp(LH.C0, cn(-.9, -.7 - 0.2 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2526. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2527. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2528.  
  2529. end
  2530. BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 0, 0, 0, 30,30,30, 0.05,1)
  2531. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, .7)
  2532. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2)
  2533. for i = 0, 10, 0.1 do
  2534. swait()
  2535.  
  2536. Effects.Wave.Create (BrickColor.new("Pastel Blue"), Torso.CFrame, .1, .1, .1, .5,10000,.5,0.08)
  2537. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.08)
  2538. Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.1)
  2539. Effects.Break.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, 76, .1, .1)
  2540. BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 40, 40, 40, 70,70,70, 0.05,1)
  2541.  
  2542.  
  2543. MagniKILL(Torso, 80,99,99999999, 0, "Normal")
  2544.  
  2545. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2546. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  2547. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2548. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-0 - 1 * math.cos(sine / 25))), 0.2)
  2549. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  2550. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  2551. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2552. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2553.  
  2554. end
  2555. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, .7)
  2556.  
  2557. for i = 0, 1, 0.1 do
  2558. swait()
  2559.  
  2560.  
  2561.  
  2562. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2563. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2564. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2565. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2566. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2567. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2568. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2569. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2570.  
  2571. end
  2572. Humanoid.WalkSpeed = 16
  2573. Sond:Destroy()
  2574.  
  2575. attack = false
  2576. wait(30)
  2577. ultwait=false
  2578. end
  2579.  
  2580. if k == "e" then
  2581.  
  2582. if sentrymode== false then
  2583. if attack == false then
  2584. GlowParticle.Enabled = true
  2585. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5)
  2586. sentrymode= true
  2587. end
  2588. else
  2589. sentrymode=false
  2590. GlowParticle.Enabled = false
  2591. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5)
  2592. end
  2593. end
  2594.  
  2595. end)
  2596. mouse.Button1Down:connect(function(key)
  2597. if attack == false and sentrymode == false then
  2598. attack = true
  2599. ShotAttackAnim2()
  2600. BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  2601. BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  2602. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6)
  2603. bigLigLaser(mouse.Hit.p, LaPart, 0)
  2604. ShotAttackAnim2()
  2605. attack = false
  2606. end
  2607. end)
  2608.  
  2609.  
  2610.  
  2611.  
  2612. ------------------------------------------------------------------------------------------------
  2613. local HiveMind = {}
  2614.  
  2615. function HiveMind:new(owner)
  2616. self.__index = self
  2617. local o = {mind = {}, mindState = "FOLLOW", victimObject = nil}
  2618. o.owner = owner
  2619. setmetatable(o, self)
  2620. return o
  2621. end
  2622.  
  2623. function HiveMind:add(model, humanoid, torso)
  2624. if model and humanoid and torso then
  2625. table.insert(self.mind, {model = model, humanoid = humanoid,
  2626. torso = torso})
  2627. local hiv = self
  2628. local lastJump = 0
  2629. torso.Touched:connect(function(object)
  2630. local hive = false
  2631. if hiv.owner.Character
  2632. and object:IsDescendantOf(hiv.owner.Character) == false
  2633. then
  2634. for i = 1, #hiv.mind do
  2635. if object:IsDescendantOf(hiv.mind[i].model) then
  2636. hive = true
  2637. break
  2638. end
  2639. end
  2640. if not hive then
  2641. local hum = object.Parent
  2642. and object.Parent:FindFirstChild("Humanoid")
  2643. if hum then
  2644. hum:TakeDamage(1)
  2645. end
  2646. elseif time() - lastJump > 2 then
  2647. lastJump = time(0) + math.random()*1
  2648. humanoid.Jump = true
  2649. end
  2650. end
  2651. end)
  2652. end
  2653. end
  2654.  
  2655. function HiveMind:cleanupHive()
  2656. local i = 1
  2657. while i <= #self.mind do
  2658. if self.mind[i].model:IsDescendantOf(game) == false
  2659. or self.mind[i].humanoid.Health == 0 then
  2660. table.remove(self.mind, i)
  2661. else
  2662. i = i + 1
  2663. end
  2664. end
  2665. end
  2666.  
  2667. function HiveMind:getOrbitNumberFromUnitNumber(i)
  2668. local circleNumber = 0
  2669. while self:getUnitsInOrbit(circleNumber) < i do
  2670. i = i - self:getUnitsInOrbit(circleNumber)
  2671. circleNumber = circleNumber + 1
  2672. end
  2673. return circleNumber, i
  2674. end
  2675.  
  2676. function HiveMind:getOrbitDiameter(orbitNumber)
  2677. return math.pi*(orbitNumber*14)
  2678. end
  2679.  
  2680. function HiveMind:getUnitsInOrbit(orbitNumber)
  2681. return math.floor(self:getOrbitDiameter(orbitNumber)/5)
  2682. end
  2683.  
  2684. function HiveMind:lineup(location)
  2685. for i = 1, #self.mind do
  2686. local row = (i - 1) % 3
  2687. local column = math.floor((i - 1) / 3)
  2688. local xOffset, yOffset
  2689. if row == 0 then
  2690. xOffset = -7
  2691. elseif row == 1 then
  2692. xOffset = 0
  2693. else
  2694. xOffset = 7
  2695. end
  2696. yOffset = column * 7
  2697. local position = location * CFrame.new(xOffset, 0, yOffset)
  2698. self.mind[i].humanoid:MoveTo(position.p, workspace.Base)
  2699. end
  2700. end
  2701.  
  2702. function HiveMind:ownerTorso()
  2703. return self.owner.Character
  2704. and self.owner.Character:FindFirstChild("Torso")
  2705. end
  2706. function HiveMind:update()
  2707. self:cleanupHive()
  2708. if self.owner.Character then
  2709. local ownerTorso = self.owner.Character:FindFirstChild("Torso")
  2710. if ownerTorso then
  2711. if (self.mindState == "FOLLOW") then
  2712. local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9)
  2713. self:lineup(hiveSpawn)
  2714. elseif (self.mindState == "CIRCLE") then
  2715. self:circle(ownerTorso.Position)
  2716. elseif (self.mindState == "ATTACK") then
  2717. self:crowdAttack()
  2718. elseif (self.mindState == "Deffend") then
  2719. self:deffend()
  2720. elseif (self.mindState == "GOTO") then
  2721. self:pushToTarget()
  2722. end
  2723. end
  2724. end
  2725. end
  2726. local me = game:GetService("Players").LocalPlayer
  2727. local hiveMind = HiveMind:new(me)
  2728.  
  2729. ------------------------------------------------------------------------------------------------
  2730.  
  2731. function findNearestTorso(pos,dist2)
  2732. local list = game.Workspace:children()
  2733. local torso = nil
  2734. if dist2 == nil then
  2735. dist2=50
  2736.  
  2737. end
  2738. local dist = dist2
  2739. local temp = nil
  2740. local human = nil
  2741. local temp2 = nil
  2742. for x = 1, #list do
  2743. temp2 = list[x]
  2744. if (temp2.className == "Model") and (temp2 ~= Character) then
  2745. temp = temp2:findFirstChild("HumanoidRootPart")
  2746. human = temp2:findFirstChild("Humanoid")
  2747. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2748. if (temp.Position - pos).magnitude < dist then
  2749. torso = temp
  2750.  
  2751. dist = (temp.Position - pos).magnitude
  2752. else
  2753.  
  2754. end
  2755.  
  2756.  
  2757.  
  2758.  
  2759. end
  2760. end
  2761. end
  2762. return torso
  2763. end
  2764.  
  2765.  
  2766. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772. if sentrymode == true and sonarwait == false then
  2773. sonarwait = true
  2774.  
  2775. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8)
  2776.  
  2777. wait(1)
  2778. sonarwait = false
  2779. end
  2780.  
  2781.  
  2782.  
  2783.  
  2784. wait()
  2785. if sentrymode == true then
  2786.  
  2787. local target = findNearestTorso(Character.HumanoidRootPart.Position,30)
  2788. if target ~= nil then
  2789. ShotAttackAnim2()
  2790. if sentrywait == false then
  2791. sentrywait = true
  2792. attack= true
  2793.  
  2794.  
  2795. BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  2796. BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  2797. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, .8)
  2798. LigLaser(target.Position, LaPart, 0)
  2799. wait()
  2800. attack= false
  2801. sentrywait = false
  2802. end
  2803.  
  2804.  
  2805. end
  2806.  
  2807. end
  2808. end)
  2809.  
  2810.  
  2811. sonarwait = false
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822. FaceIdList = {'117930174'}
  2823. FaceId = FaceIdList[math.random(1,#FaceIdList)]
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829. local YourName = game.Players.LocalPlayer.Name
  2830. Character = Player.Character
  2831.  
  2832.  
  2833. Heartbeat = Instance.new("BindableEvent")
  2834. Heartbeat.Name = "Heartbeat"
  2835. Heartbeat.Parent = script
  2836. frame = 0.03333333333333333
  2837. tf = 0
  2838.  
  2839. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2840. tf = tf + s
  2841. if tf >= frame then
  2842. for i = 1, math.floor(tf / frame) do
  2843. Heartbeat:Fire()
  2844. end
  2845. tf = tf - frame * math.floor(tf / frame)
  2846. end
  2847. end)
  2848. local nscale = Instance.new("NumberValue")
  2849. nscale.Value = 1
  2850. nscale.Parent = nil
  2851. nscale.Changed:connect(function()
  2852. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2853. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2854. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2855. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2856. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2857. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2858. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2859. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2860. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2861. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2862. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2863. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2864. end)
  2865.  
  2866. function makegloo(paren, co, ci, parto, parti, nam)
  2867. local gloo = Instance.new("Glue")
  2868. gloo.Name = nam
  2869. gloo.C0 = co
  2870. gloo.C1 = ci
  2871. gloo.Part0 = parto
  2872. gloo.Part1 = parti
  2873. gloo.Parent = paren
  2874. end
  2875. function makejoint(paren, co, ci, parto, parti, nam)
  2876. local gloo = Instance.new("Motor6D")
  2877. gloo.Name = nam
  2878. gloo.C0 = co
  2879. gloo.C1 = ci
  2880. gloo.Part0 = parto
  2881. gloo.Part1 = parti
  2882. gloo.Parent = paren
  2883. end
  2884. function maketouchy(parent, limb, cframe)
  2885. local pr = Instance.new("Part")
  2886. pr.Name = "touchy"
  2887. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  2888. pr.Transparency = 1
  2889. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  2890. pr.CanCollide = true
  2891. pr.Anchored = false
  2892. pr.Parent = parent
  2893. local w = Instance.new("Weld")
  2894. w.Part0 = pr
  2895. w.Part1 = limb
  2896. w.C0 = cframe
  2897. w.Parent = pr
  2898. end
  2899. --[[ function swait(num)
  2900. if num == 0 or num == nil then
  2901. Heartbeat.Event:wait()
  2902. else
  2903. for i = 1, num do
  2904. Heartbeat.Event:wait()
  2905. end
  2906. end
  2907. end
  2908. --]]
  2909. modz = Instance.new("Model")
  2910. modz.Name = "efx"
  2911. modz.Parent = Character
  2912.  
  2913. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2914. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2915. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2916. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2917. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2918. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2919. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2920. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2921. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2922. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2923. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2924. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2925. local nscale = Instance.new("NumberValue")
  2926. nscale.Value = 1
  2927. nscale.Parent = nil
  2928. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2929. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2930. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2931. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2932. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2933. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2934. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2935. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2936. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2937. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2938. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2939. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953. sWaiting=false
  2954. wait3=false
  2955. shotval = 0
  2956.  
  2957. npcname = ""..Character.Name.."'s Combine"
  2958.  
  2959.  
  2960. Character.ChildAdded:connect(function(object)
  2961. if object.Name == npcname then
  2962. hiveMind:add(object, object:WaitForChild("Humanoid"),
  2963. object:WaitForChild("Torso"))
  2964. end
  2965. end)
  2966. game:GetService("RunService").Stepped:connect(function()
  2967. hiveMind:update()
  2968. end)
  2969.  
  2970. function makenoob(cfrem, scalo, rags)
  2971. nscale.Value = scalo
  2972. local md = Instance.new("Model")
  2973. md.Name = ""..Character.Name.."'s Combine"
  2974. md.Parent = Character
  2975. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1)
  2976. wait(.5)
  2977. local hu = Instance.new("Humanoid")
  2978. hu.RigType = "R6"
  2979. hu.MaxHealth = 150 * scalo
  2980. hu.Health = 150 * scalo
  2981. hu.Parent = md
  2982. hu.DisplayDistanceType="Viewer"
  2983. hu.HealthDisplayDistance=100
  2984. hu.NameDisplayDistance=100
  2985. hu.NameOcclusion="EnemyOcclusion"
  2986. local anm = Instance.new("Animator")
  2987. anm.Parent = hu
  2988. local forthisnpcanim = npcanim:Clone()
  2989. forthisnpcanim.Parent = md
  2990. hu.PlatformStand = true
  2991. local light = function(part)
  2992. part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  2993. end
  2994. local hd = Instance.new("Part")
  2995. hd.Name = "Head"
  2996. hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  2997. hd.TopSurface = "Smooth"
  2998. hd.BottomSurface = "Inlet"
  2999. hd.Locked = true
  3000. hd.BrickColor = BrickColor.new("Pastel brown")
  3001. hd.CanCollide = true
  3002. hd.Anchored = false
  3003. light(hd)
  3004. hd.Parent = md
  3005. local hm = Instance.new("SpecialMesh")
  3006. hm.MeshType = "Head"
  3007. hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  3008. hm.Parent = hd
  3009.  
  3010.  
  3011.  
  3012. shirt = Instance.new("Shirt", md)
  3013. shirt.Name = "Shirt"
  3014. pants = Instance.new("Pants", md)
  3015. pants.Name = "Pants"
  3016. md.Shirt.ShirtTemplate = "rbxassetid://245656735"
  3017. md.Pants.PantsTemplate = "rbxassetid://245656766"
  3018. function loada(anim)
  3019. local loaded = md.Humanoid:LoadAnimation(anim)
  3020. return loaded
  3021. end
  3022. IdleA = New("Animation",md,"Idle",{AnimationId = "rbxassetid://243282565"})
  3023. IdleAnim = loada(IdleA)
  3024.  
  3025. local hf = Instance.new("Decal")
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033. FaceId = FaceIdList[math.random(1,#FaceIdList)]
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039. hf.Texture = "rbxassetid://"..FaceId
  3040.  
  3041. hf.Face = "Front"
  3042. hf.Parent = hd
  3043. local hrpa = Instance.new("Part")
  3044. hrpa.Name = "HumanoidRootPart"
  3045. hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  3046. hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3047. hrpa.Transparency = 1
  3048. hrpa.CanCollide = false
  3049. hrpa.Locked = true
  3050. light(hrpa)
  3051. hrpa.Parent = md
  3052. local tagbomb = Instance.new("BoolValue")
  3053. tagbomb.Name = "tagbomb"
  3054. tagbomb.Value = false
  3055. tagbomb.Parent = hrpa
  3056. local learm = Instance.new("Part")
  3057. learm.Name = "Left Arm"
  3058. learm.BrickColor = BrickColor.new("Pastel brown")
  3059. learm.CanCollide = false
  3060. learm.Locked = true
  3061. learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3062. light(learm)
  3063. learm.Parent = md
  3064. local riarm = Instance.new("Part")
  3065. riarm.Name = "Right Arm"
  3066. riarm.BrickColor = BrickColor.new("Pastel brown")
  3067. riarm.CanCollide = false
  3068. riarm.Locked = true
  3069. light(riarm)
  3070. riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3071. riarm.Parent = md
  3072. local leleg = Instance.new("Part")
  3073. leleg.Name = "Left Leg"
  3074. leleg.BrickColor = BrickColor.new("Navy blue")
  3075. leleg.CanCollide = false
  3076. leleg.Locked = true
  3077. light(leleg)
  3078. leleg.BottomSurface = 0
  3079. leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3080. leleg.Parent = md
  3081. local rileg = Instance.new("Part")
  3082. rileg.Name = "Right Leg"
  3083. rileg.BrickColor = BrickColor.new("Navy blue")
  3084. rileg.CanCollide = false
  3085. rileg.Locked = true
  3086. light(rileg)
  3087. rileg.BottomSurface = 0
  3088. rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3089. rileg.Parent = md
  3090. local tor = Instance.new("Part")
  3091. tor.Name = "Torso"
  3092. tor.BrickColor = BrickColor.new("Pastel Blue")
  3093. tor.Locked = true
  3094. light(tor)
  3095. tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3096. tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  3097. tor.Parent = md
  3098. md.PrimaryPart = hrpa
  3099. md:SetPrimaryPartCFrame(cfrem)
  3100. md:makeJoints()
  3101. makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  3102. makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  3103.  
  3104. if rags == true then
  3105. makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  3106. makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  3107. makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  3108. makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  3109. maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  3110. maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  3111. maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  3112. maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  3113. elseif rags == false then
  3114. makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  3115. makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  3116. makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  3117. makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  3118. hu.PlatformStand = false
  3119.  
  3120. end
  3121.  
  3122.  
  3123. local Solhat = Instance.new("Accessory")
  3124. Solhat.AttachmentPos = Vector3.new(0, .3, 0)
  3125. local SHH = Instance.new("Part",Solhat)
  3126. SHH.Name = "Handle"
  3127. SHH.CanCollide=false
  3128. local SHHMesh = Instance.new("SpecialMesh",SHH)
  3129. SHHMesh.Parent = SHH
  3130. SHHMesh.MeshId = "rbxassetid://31152467"
  3131. SHHMesh.TextureId = "rbxassetid://32002857"
  3132. SHHMesh.Scale = Vector3.new(1, 1, 1)
  3133. SHHMesh.VertexColor = Vector3.new(1, 1, 1)
  3134.  
  3135.  
  3136.  
  3137. nscale.Value = 1
  3138.  
  3139. wait()
  3140. Solhat.Parent = md
  3141. Thegun = Instance.new("Part",riarm)
  3142. Thegun.CanCollide=false
  3143. Thegun.Size = Vector3.new(1,1,1)
  3144. ThegunW = Instance.new("Weld")
  3145. ThegunW.Name = "GuW"
  3146. ThegunW.Part0 = riarm
  3147. ThegunW.C0 = cn(-.5, -2.4, -.4)*angles(0,0,3.2)
  3148. ThegunW.C1 = cn(0, 0, 0)
  3149. ThegunW.Part1 = Thegun
  3150. ThegunW.Parent = riarm
  3151. local ThegunMesh = Instance.new("SpecialMesh",Thegun)
  3152. ThegunMesh.Parent = Thegun
  3153. ThegunMesh.MeshId = "rbxassetid://477158943"
  3154. ThegunMesh.TextureId = "rbxassetid://477158949"
  3155. ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04)
  3156. ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0)
  3157. Thegun2 = Instance.new("Part",md)
  3158. Thegun2.CanCollide=false
  3159. Thegun2.Size = Vector3.new(.1,.1,.1)
  3160. Thegun2.Name = "Shoot"
  3161. ThegunW2 = Instance.new("Weld")
  3162. ThegunW2.Name = "GuW"
  3163. ThegunW2.Part0 = riarm
  3164. ThegunW2.C0 = cn(-0.4,-4.6,-.45)*angles(0,0,0)
  3165. ThegunW2.C1 = cn(0, 0, 0)
  3166. ThegunW2.Part1 = Thegun2
  3167. ThegunW2.Parent = riarm
  3168. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3169. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3170.  
  3171. BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3172. BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3173. wait(0.5)
  3174. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1)
  3175. IdleAnim:Play()
  3176. wait(2.5)
  3177. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1)
  3178. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  3179. if md ~= nil and hu.Health > 0 and sentrymode == false then
  3180. if md ~= nil and hu.Health > 0 and sentrymode == false then
  3181.  
  3182. if killcom==true or sentrymode == true and sWaiting==false then
  3183.  
  3184. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, .5, 1)
  3185.  
  3186.  
  3187.  
  3188. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3189. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3190.  
  3191. BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3192. BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3193.  
  3194.  
  3195.  
  3196. hu.Health = 0
  3197. game:service'Debris':AddItem(md, .0);
  3198. end
  3199.  
  3200.  
  3201.  
  3202.  
  3203.  
  3204. hu.WalkSpeed = 16.5
  3205. local target2 = findNearestTorso(hrpa.Position,60)
  3206. if target2 ~= nil then
  3207. hu:MoveTo(target2.Position, target2)
  3208.  
  3209. end
  3210.  
  3211. local target3 = findNearestTorso(hrpa.Position,45)
  3212.  
  3213. if target3 ~= nil then
  3214. hu.WalkSpeed = 0
  3215. tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir2.s))
  3216. end
  3217.  
  3218. if target3 ~= nil and wait3==false and sentrymode == false then
  3219. wait3=true
  3220.  
  3221. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, .7)
  3222. shoottraildd2(target3.Position, Thegun2, 1)
  3223. local PointLight = Instance.new("PointLight", Thegun2);
  3224. PointLight.Color = Color3.new(1,0,0)
  3225. PointLight.Brightness = 50;
  3226. PointLight.Range = 10
  3227. game:service'Debris':AddItem(PointLight, .02);
  3228. wait(2.2)
  3229. wait3=false
  3230.  
  3231.  
  3232.  
  3233. --Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir.s))
  3234.  
  3235.  
  3236. end
  3237.  
  3238. end
  3239.  
  3240. for i,v in pairs(Character:GetChildren()) do
  3241. if ""..Character.Name.."'s Combine" then
  3242.  
  3243.  
  3244.  
  3245. if hu.Health == 0 and md ~= nil and killcom==false and sWaiting==false then
  3246. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, .6, 1)
  3247.  
  3248.  
  3249. game:service'Debris':AddItem(md, 3);
  3250.  
  3251. end
  3252. end
  3253. return md
  3254.  
  3255. end
  3256. end
  3257. end)
  3258.  
  3259.  
  3260.  
  3261. end
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277. function makecircle(cfrem, scalo)
  3278. local mcir1 = Instance.new("Part")
  3279. mcir1.Anchored = true
  3280. mcir1.CanCollide = false
  3281. mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  3282. mcir1.Transparency = 1
  3283. mcir1.CFrame = cfrem
  3284. mcir1.Parent = modz
  3285. game.Debris:AddItem(mcir1, 8)
  3286. local d1 = Instance.new("Decal")
  3287. d1.Texture = "rbxassetid://0"
  3288. d1.Face = "Front"
  3289. d1.Parent = mcir1
  3290. local d2 = Instance.new("Decal")
  3291. d2.Texture = "rbxassetid://0"
  3292. d2.Face = "Back"
  3293. d2.Parent = mcir1
  3294. local bme = Instance.new("BlockMesh")
  3295. bme.Parent = mcir1
  3296. for _ = 1, 9 do
  3297. swait()
  3298. bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  3299. end
  3300. coroutine.resume(coroutine.create(function()
  3301. swait(15)
  3302. for _ = 1, 12 do
  3303. swait()
  3304. d1.Transparency = d1.Transparency + 0.08
  3305. d2.Transparency = d2.Transparency + 0.08
  3306. end
  3307. mcir1:Destroy()
  3308. end))
  3309. return mcir1
  3310. end
  3311. function spawnnoob(circlecf, noobcf, scalez, ragd)
  3312. local aearae = makecircle(circlecf, scalez)
  3313. local nananb
  3314.  
  3315. nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  3316.  
  3317. return nananb
  3318. end
  3319. mouse.KeyDown:connect(function(k)
  3320. if k == "c" and attack == false and sentrymode == false then
  3321. if killcom==false then
  3322. killcom=true
  3323. else
  3324. killcom=false
  3325. spawnnoob(RootPart.CFrame * cn((math.random(-5,5)), 10, (math.random(-0,5))) * angles(mr(90), 0, 0), cn(0, 0, 0) * angles(mr(-90), 0, 0), 1, false)
  3326.  
  3327. end
  3328.  
  3329.  
  3330. end
  3331. end)
  3332.  
  3333. --[[
  3334. BlockEffect(BrickColor.new("Royal purple"), Firepart1.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  3335. BlockEffect(BrickColor.new("Eggplant"), Firepart1.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
  3336. BlockEffect(BrickColor.new("Royal purple"), Firepart2.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  3337. BlockEffect(BrickColor.new("Eggplant"), Firepart2.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
  3338. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement