bryanesfeo

Untitled

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