reset234567890

Untitled

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