SyntaxIsHere

Untitled

Nov 11th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 102.14 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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6. --[[Baby Nefl created by Brannon1964802]]--
  7. --[[Based off Nefl from Strife, sorta.]]--
  8.  
  9. Player=game:GetService("Players").LocalPlayer
  10. Character=Player.Character
  11. PlayerGui=Player.PlayerGui
  12. Backpack=Player.Backpack
  13. Torso=Character.Torso
  14. Head=Character.Head
  15. Humanoid=Character.Humanoid
  16. m=Instance.new('Model',Character)
  17. LeftArm=Character["Left Arm"]
  18. LeftLeg=Character["Left Leg"]
  19. RightArm=Character["Right Arm"]
  20. RightLeg=Character["Right Leg"]
  21. LS=Torso["Left Shoulder"]
  22. LH=Torso["Left Hip"]
  23. RS=Torso["Right Shoulder"]
  24. RH=Torso["Right Hip"]
  25. Face = Head.face
  26. Neck=Torso.Neck
  27. it=Instance.new
  28. attacktype=1
  29. vt=Vector3.new
  30. cf=CFrame.new
  31. euler=CFrame.fromEulerAnglesXYZ
  32. angles=CFrame.Angles
  33. cloaked=false
  34. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  37. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  38. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  40. RootPart=Character.HumanoidRootPart
  41. RootJoint=RootPart.RootJoint
  42. RootCF=euler(-1.57,0,3.14)
  43. attack = false
  44. attackdebounce = false
  45. deb=false
  46. equipped=true
  47. hand=false
  48. MMouse=nil
  49. combo=0
  50. mana=0
  51. trispeed=.2
  52. attackmode='none'
  53. local idle=0
  54. local Anim="Idle"
  55. local Effects={}
  56. local gun=false
  57. local shoot=false
  58. player=nil
  59. mana=0
  60. sphere=true
  61. aura=false
  62. blinking=true
  63. rest=false
  64.  
  65. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  66. if jump == "Jump" then
  67. Humanoid.Jump = false
  68. end
  69. end)
  70.  
  71. Humanoid.MaxHealth = 50000
  72. wait(0.1)
  73. Humanoid.Health = 50000
  74.  
  75. print("Giant Snowman loaded.")
  76. print("This script was made by Brannon1964802")
  77.  
  78. RootPart.Transparency = 1
  79.  
  80. Humanoid.CameraOffset = Vector3.new(0, 12.5, 0)
  81.  
  82. Humanoid:findFirstChild("Animator"):Destroy()
  83.  
  84. Torso.Transparency = 1
  85. Head.Transparency = 1
  86. LeftLeg.Transparency = 1
  87. RightLeg.Transparency = 1
  88. LeftArm.Transparency = 1
  89. RightArm.Transparency = 1
  90.  
  91. mouse=Player:GetMouse()
  92. --save shoulders
  93. RSH, LSH=nil, nil
  94. --welds
  95. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  96. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  97. LH=Torso["Left Hip"]
  98. RH=Torso["Right Hip"]
  99. TorsoColor=Torso.BrickColor
  100. function NoOutline(Part)
  101. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  102. end
  103. player=Player
  104. ch=Character
  105. RSH=ch.Torso["Right Shoulder"]
  106. LSH=ch.Torso["Left Shoulder"]
  107. --
  108. RSH.Parent=nil
  109. LSH.Parent=nil
  110. --
  111. RW.Name="Right Shoulder"
  112. RW.Part0=ch.Torso
  113. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  114. RW.C1=cf(0, 0.5, 0)
  115. RW.Part1=ch["Right Arm"]
  116. RW.Parent=ch.Torso
  117. --
  118. LW.Name="Left Shoulder"
  119. LW.Part0=ch.Torso
  120. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  121. LW.C1=cf(0, 0.5, 0)
  122. LW.Part1=ch["Left Arm"]
  123. LW.Parent=ch.Torso
  124.  
  125. Player=game:GetService('Players').LocalPlayer
  126. Character=Player.Character
  127. Mouse=Player:GetMouse()
  128. m=Instance.new('Model',Character)
  129.  
  130. music = Instance.new("Sound", Character)
  131. music.SoundId = "http://www.roblox.com/asset/?id=340106355"
  132. music.Volume = 0
  133. music.Looped = true
  134. wait(0.1)
  135. music:Play()
  136.  
  137. music2 = Instance.new("Sound", Character)
  138. music2.SoundId = "http://www.roblox.com/asset/?id=340106807"
  139. music2.Volume = 0.5
  140. music2.Looped = true
  141.  
  142. rawr = Instance.new("Sound", Character)
  143. rawr.SoundId = "http://www.roblox.com/asset/?id=297472596"
  144. rawr.Volume = 0.5
  145. rawr.Looped = false
  146.  
  147. Beast = Instance.new("Model",Character)
  148. Beast.Name = "The Beast from The Depths"
  149.  
  150. torsop=Instance.new("Part",Character)
  151. torsop.FormFactor="Custom"
  152. torsop.Size=Vector3.new(.2,.2,.2)
  153. torsop.Transparency=0
  154. torsop.CanCollide=false
  155. torsop.BrickColor = BrickColor.new("Pastel light blue")
  156. torsop.Material="Sand"
  157. torsop.TopSurface="Smooth"
  158. torsop.BottomSurface="Smooth"
  159. torsop.RightSurface="Smooth"
  160. torsop.LeftSurface="Smooth"
  161. torsopw=Instance.new("Weld",Character)
  162. torsopw.Part0=Character.Torso
  163. torsopw.Part1=torsop
  164. torsopw.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-90),math.rad(0))
  165.  
  166. torso = Instance.new("SpecialMesh",torsop)
  167. torso.MeshType = "Sphere"
  168. torso.Scale = Vector3.new(45,45,45)
  169.  
  170. ghostp=Instance.new("Part",Character)
  171. ghostp.FormFactor="Custom"
  172. ghostp.Size=Vector3.new(0.2,0.2,0.2)
  173. ghostp.Transparency=1
  174. ghostp.CanCollide=false
  175. ghostp.BrickColor = BrickColor.new("Institutional white")
  176. ghostp.Material="Neon"
  177. ghostp.TopSurface="Smooth"
  178. ghostp.BottomSurface="Smooth"
  179. ghostp.RightSurface="Smooth"
  180. ghostp.LeftSurface="Smooth"
  181. ghostw=Instance.new("Weld",Character)
  182. ghostw.Part0=Character.Torso
  183. ghostw.Part1=ghostp
  184. ghostw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  185.  
  186. ghostmesh = Instance.new("FileMesh",ghostp)
  187. ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432"
  188. ghostmesh.Scale = Vector3.new(5,5,5)
  189.  
  190. ghostp2=Instance.new("Part",Character)
  191. ghostp2.FormFactor="Custom"
  192. ghostp2.Size=Vector3.new(0.2,0.2,0.2)
  193. ghostp2.Transparency=1
  194. ghostp2.CanCollide=false
  195. ghostp2.BrickColor = BrickColor.new("Institutional white")
  196. ghostp2.Material="Neon"
  197. ghostp2.TopSurface="Smooth"
  198. ghostp2.BottomSurface="Smooth"
  199. ghostp2.RightSurface="Smooth"
  200. ghostp2.LeftSurface="Smooth"
  201. ghostw2=Instance.new("Weld",Character)
  202. ghostw2.Part0=Character.Torso
  203. ghostw2.Part1=ghostp2
  204. ghostw2.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  205.  
  206. ghostmesh2 = Instance.new("FileMesh",ghostp2)
  207. ghostmesh2.MeshId = "http://www.roblox.com/asset/?id=168892432"
  208. ghostmesh2.Scale = Vector3.new(10,10,10)
  209.  
  210. ghostp3=Instance.new("Part",Character)
  211. ghostp3.FormFactor="Custom"
  212. ghostp3.Size=Vector3.new(0.2,0.2,0.2)
  213. ghostp3.Transparency=1
  214. ghostp3.CanCollide=false
  215. ghostp3.BrickColor = BrickColor.new("Institutional white")
  216. ghostp3.Material="Neon"
  217. ghostp3.TopSurface="Smooth"
  218. ghostp3.BottomSurface="Smooth"
  219. ghostp3.RightSurface="Smooth"
  220. ghostp2.LeftSurface="Smooth"
  221. ghostw3=Instance.new("Weld",Character)
  222. ghostw3.Part0=Character.Torso
  223. ghostw3.Part1=ghostp3
  224. ghostw3.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  225.  
  226. ghostmesh3 = Instance.new("FileMesh",ghostp3)
  227. ghostmesh3.MeshId = "http://www.roblox.com/asset/?id=168892432"
  228. ghostmesh3.Scale = Vector3.new(15,15,15)
  229.  
  230. ghostp4=Instance.new("Part",Character)
  231. ghostp4.FormFactor="Custom"
  232. ghostp4.Size=Vector3.new(0.2,0.2,0.2)
  233. ghostp4.Transparency=1
  234. ghostp4.CanCollide=false
  235. ghostp4.BrickColor = BrickColor.new("Institutional white")
  236. ghostp4.Material="Neon"
  237. ghostp4.TopSurface="Smooth"
  238. ghostp4.BottomSurface="Smooth"
  239. ghostp4.RightSurface="Smooth"
  240. ghostp4.LeftSurface="Smooth"
  241. ghostw4=Instance.new("Weld",Character)
  242. ghostw4.Part0=Character.Torso
  243. ghostw4.Part1=ghostp4
  244. ghostw4.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  245.  
  246. ghostmesh4 = Instance.new("FileMesh",ghostp4)
  247. ghostmesh4.MeshId = "http://www.roblox.com/asset/?id=168892432"
  248. ghostmesh4.Scale = Vector3.new(20,20,20)
  249.  
  250. ghostp5=Instance.new("Part",Character)
  251. ghostp5.FormFactor="Custom"
  252. ghostp5.Size=Vector3.new(0.2,0.2,0.2)
  253. ghostp5.Transparency=1
  254. ghostp5.CanCollide=false
  255. ghostp5.BrickColor = BrickColor.new("Institutional white")
  256. ghostp5.Material="Neon"
  257. ghostp5.TopSurface="Smooth"
  258. ghostp5.BottomSurface="Smooth"
  259. ghostp5.RightSurface="Smooth"
  260. ghostp5.LeftSurface="Smooth"
  261. ghost5w=Instance.new("Weld",Character)
  262. ghost5w.Part0=Character.Torso
  263. ghost5w.Part1=ghostp5
  264. ghost5w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  265.  
  266. ghostmesh = Instance.new("FileMesh",ghostp5)
  267. ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432"
  268. ghostmesh.Scale = Vector3.new(2.5,2.5,2.5)
  269.  
  270. ghostp6=Instance.new("Part",Character)
  271. ghostp6.FormFactor="Custom"
  272. ghostp6.Size=Vector3.new(0.2,0.2,0.2)
  273. ghostp6.Transparency=1
  274. ghostp6.CanCollide=false
  275. ghostp6.BrickColor = BrickColor.new("Institutional white")
  276. ghostp6.Material="Neon"
  277. ghostp6.TopSurface="Smooth"
  278. ghostp6.BottomSurface="Smooth"
  279. ghostp6.RightSurface="Smooth"
  280. ghostp6.LeftSurface="Smooth"
  281. ghost6w=Instance.new("Weld",Character)
  282. ghost6w.Part0=Character.Torso
  283. ghost6w.Part1=ghostp6
  284. ghost6w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  285.  
  286. ghostmesh = Instance.new("FileMesh",ghostp6)
  287. ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432"
  288. ghostmesh.Scale = Vector3.new(7.5,7.5,7.5)
  289.  
  290. ghostp7=Instance.new("Part",Character)
  291. ghostp7.FormFactor="Custom"
  292. ghostp7.Size=Vector3.new(0.2,0.2,0.2)
  293. ghostp7.Transparency=1
  294. ghostp7.CanCollide=false
  295. ghostp7.BrickColor = BrickColor.new("Institutional white")
  296. ghostp7.Material="Neon"
  297. ghostp7.TopSurface="Smooth"
  298. ghostp7.BottomSurface="Smooth"
  299. ghostp7.RightSurface="Smooth"
  300. ghostp7.LeftSurface="Smooth"
  301. ghost7w=Instance.new("Weld",Character)
  302. ghost7w.Part0=Character.Torso
  303. ghost7w.Part1=ghostp7
  304. ghost7w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  305.  
  306. ghostmesh = Instance.new("FileMesh",ghostp7)
  307. ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432"
  308. ghostmesh.Scale = Vector3.new(12.5,12.5,12.5)
  309.  
  310. ghostp8=Instance.new("Part",Character)
  311. ghostp8.FormFactor="Custom"
  312. ghostp8.Size=Vector3.new(0.2,0.2,0.2)
  313. ghostp8.Transparency=1
  314. ghostp8.CanCollide=false
  315. ghostp8.BrickColor = BrickColor.new("Institutional white")
  316. ghostp8.Material="Neon"
  317. ghostp8.TopSurface="Smooth"
  318. ghostp8.BottomSurface="Smooth"
  319. ghostp8.RightSurface="Smooth"
  320. ghostp8.LeftSurface="Smooth"
  321. ghost8w=Instance.new("Weld",Character)
  322. ghost8w.Part0=Character.Torso
  323. ghost8w.Part1=ghostp8
  324. ghost8w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  325.  
  326. ghostmesh = Instance.new("FileMesh",ghostp8)
  327. ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432"
  328. ghostmesh.Scale = Vector3.new(17.5,17.5,17.5)
  329.  
  330. eyeoutline=Instance.new("Part",Character)
  331. eyeoutline.FormFactor="Custom"
  332. eyeoutline.Size=Vector3.new(.2,.2,.2)
  333. eyeoutline.Transparency=0
  334. eyeoutline.CanCollide=false
  335. eyeoutline.BrickColor = BrickColor.new("Really black")
  336. eyeoutline.Material="SmoothPlastic"
  337. eyeoutline.TopSurface="Smooth"
  338. eyeoutline.BottomSurface="Smooth"
  339. eyeoutline.RightSurface="Smooth"
  340. eyeoutline.LeftSurface="Smooth"
  341. eyeoutlinew=Instance.new("Weld",Character)
  342. eyeoutlinew.Part0=Character.Torso
  343. eyeoutlinew.Part1=eyeoutline
  344. eyeoutlinew.C0=CFrame.new(-1.5,0,-4.1)*CFrame.Angles(0,math.rad(20),math.rad(0))
  345.  
  346. eyemesh = Instance.new("SpecialMesh",eyeoutline)
  347. eyemesh.MeshType = "Sphere"
  348. eyemesh.Scale = Vector3.new(8.5,8.5,2)
  349.  
  350. eyep=Instance.new("Part",Character)
  351. eyep.FormFactor="Custom"
  352. eyep.Size=Vector3.new(.2,.2,.2)
  353. eyep.Transparency=0
  354. eyep.CanCollide=false
  355. eyep.BrickColor = BrickColor.new("Cyan")
  356. eyep.Material="Neon"
  357. eyep.TopSurface="Smooth"
  358. eyep.BottomSurface="Smooth"
  359. eyep.RightSurface="Smooth"
  360. eyep.LeftSurface="Smooth"
  361. eyepw=Instance.new("Weld",Character)
  362. eyepw.Part0=eyeoutline
  363. eyepw.Part1=eyep
  364. eyepw.C0=CFrame.new(0,0,-0.1)*CFrame.Angles(0,math.rad(0),math.rad(0))
  365.  
  366. eyepmesh = Instance.new("SpecialMesh",eyep)
  367. eyepmesh.MeshType = "Sphere"
  368. eyepmesh.Scale = Vector3.new(7.5,7.5,2)
  369.  
  370. eyeoutline2=Instance.new("Part",Character)
  371. eyeoutline2.FormFactor="Custom"
  372. eyeoutline2.Size=Vector3.new(.2,.2,.2)
  373. eyeoutline2.Transparency=0
  374. eyeoutline2.CanCollide=false
  375. eyeoutline2.BrickColor = BrickColor.new("Really black")
  376. eyeoutline2.Material="SmoothPlastic"
  377. eyeoutline2.TopSurface="Smooth"
  378. eyeoutline2.BottomSurface="Smooth"
  379. eyeoutline2.RightSurface="Smooth"
  380. eyeoutline2.LeftSurface="Smooth"
  381. eyeoutline2w=Instance.new("Weld",Character)
  382. eyeoutline2w.Part0=Character.Torso
  383. eyeoutline2w.Part1=eyeoutline2
  384. eyeoutline2w.C0=CFrame.new(1.5,0,-4.1)*CFrame.Angles(0,math.rad(-20),math.rad(0))
  385.  
  386. eyemesh = Instance.new("SpecialMesh",eyeoutline2)
  387. eyemesh.MeshType = "Sphere"
  388. eyemesh.Scale = Vector3.new(8.5,8.5,2)
  389.  
  390. eyep2=Instance.new("Part",Character)
  391. eyep2.FormFactor="Custom"
  392. eyep2.Size=Vector3.new(.2,.2,.2)
  393. eyep2.Transparency=0
  394. eyep2.CanCollide=false
  395. eyep2.BrickColor = BrickColor.new("Cyan")
  396. eyep2.Material="Neon"
  397. eyep2.TopSurface="Smooth"
  398. eyep2.BottomSurface="Smooth"
  399. eyep2.RightSurface="Smooth"
  400. eyep2.LeftSurface="Smooth"
  401. eyep2w=Instance.new("Weld",Character)
  402. eyep2w.Part0=eyeoutline2
  403. eyep2w.Part1=eyep2
  404. eyep2w.C0=CFrame.new(0,0,-0.1)*CFrame.Angles(0,math.rad(0),math.rad(0))
  405.  
  406. eyep2mesh = Instance.new("SpecialMesh",eyep2)
  407. eyep2mesh.MeshType = "Sphere"
  408. eyep2mesh.Scale = Vector3.new(7.5,7.5,2)
  409.  
  410. local spotlight = Instance.new("SpotLight", eyep)
  411. spotlight.Shadows = true
  412. spotlight.Color = Color3.new(0, 0.666667, 1)
  413. spotlight.Range = 24
  414. spotlight.Angle = 60
  415. spotlight.Brightness = 100
  416.  
  417. local spotlight2 = Instance.new("SpotLight", eyep2)
  418. spotlight2.Shadows = true
  419. spotlight2.Color = Color3.new(0, 0.666667, 1)
  420. spotlight2.Range = 24
  421. spotlight2.Angle = 60
  422. spotlight2.Brightness = 100
  423.  
  424. local particleemitter = Instance.new("ParticleEmitter", Torso)
  425. particleemitter.VelocitySpread = 180
  426. particleemitter.Lifetime = NumberRange.new(1)
  427. particleemitter.Speed = NumberRange.new(10)
  428. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  429. particleemitter.RotSpeed = NumberRange.new(-180, 180)
  430. particleemitter.Rotation = NumberRange.new(-360, 360)
  431. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  432. particleemitter.LightEmission = 1
  433. particleemitter.Texture = "http://www.roblox.com/asset/?id=320043786"
  434. particleemitter.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  435.  
  436. emitterp=Instance.new("Part",Character)
  437. emitterp.FormFactor="Custom"
  438. emitterp.Size=Vector3.new(5,.2,5)
  439. emitterp.Transparency=1
  440. emitterp.CanCollide=false
  441. emitterp.BrickColor = BrickColor.new("Cyan")
  442. emitterp.Material="Neon"
  443. emitterp.TopSurface="Smooth"
  444. emitterp.BottomSurface="Smooth"
  445. emitterp.RightSurface="Smooth"
  446. emitterp.LeftSurface="Smooth"
  447. emitterpw=Instance.new("Weld",Character)
  448. emitterpw.Part0=Character.Torso
  449. emitterpw.Part1=emitterp
  450. emitterpw.C0=CFrame.new(0,-4,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  451.  
  452. local emitter = Instance.new("ParticleEmitter", emitterp)
  453. emitter.EmissionDirection = "Bottom"
  454. emitter.VelocitySpread = 30
  455. emitter.Lifetime = NumberRange.new(1)
  456. emitter.Speed = NumberRange.new(10)
  457. emitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2, 0), NumberSequenceKeypoint.new(1, 2, 0)})
  458. emitter.RotSpeed = NumberRange.new(-180, 180)
  459. emitter.Rate = 1000
  460. emitter.Rotation = NumberRange.new(-360, 360)
  461. emitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  462. emitter.LightEmission = 1
  463. emitter.Texture = "http://www.roblox.com/asset/?id=31727915"
  464. emitter.Color = ColorSequence.new(Color3.new(0.596078, 0.847059, 1), Color3.new(0.596078, 0.847059, 1))
  465.  
  466. local eyeeffect = Instance.new("ParticleEmitter", eyep)
  467. eyeeffect.Lifetime = NumberRange.new(1)
  468. eyeeffect.Speed = NumberRange.new(0)
  469. eyeeffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 4), NumberSequenceKeypoint.new(1, 4)})
  470. eyeeffect.RotSpeed = NumberRange.new(1080)
  471. eyeeffect.Rate = 25
  472. eyeeffect.Rotation = NumberRange.new(-360, 360)
  473. eyeeffect.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.11, 0), NumberSequenceKeypoint.new(0.99, 1), NumberSequenceKeypoint.new(1, 1)})
  474. eyeeffect.LightEmission = 0.5
  475. eyeeffect.Texture = "http://www.roblox.com/asset/?id=242292288"
  476. eyeeffect.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  477. eyeeffect.LockedToPart = true
  478. eyeeffect.Enabled = false
  479.  
  480. local eyeeffect2 = Instance.new("ParticleEmitter", eyep2)
  481. eyeeffect2.Lifetime = NumberRange.new(1)
  482. eyeeffect2.Speed = NumberRange.new(0)
  483. eyeeffect2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 4), NumberSequenceKeypoint.new(1, 4)})
  484. eyeeffect2.RotSpeed = NumberRange.new(1080)
  485. eyeeffect2.Rate = 25
  486. eyeeffect2.Rotation = NumberRange.new(-360, 360)
  487. eyeeffect2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.11, 0), NumberSequenceKeypoint.new(0.99, 1), NumberSequenceKeypoint.new(1, 1)})
  488. eyeeffect2.LightEmission = 0.5
  489. eyeeffect2.Texture = "http://www.roblox.com/asset/?id=242292288"
  490. eyeeffect2.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  491. eyeeffect2.LockedToPart = true
  492. eyeeffect2.Enabled = false
  493.  
  494. coroutine.resume(coroutine.create(function(Part,Weld)
  495. while Part.Parent~=nil do
  496. wait(5)
  497. for i=0,1,0.2 do
  498. wait()
  499. spotlight.Angle = 60-60*i
  500. eyepmesh.Scale = Vector3.new(7.5,7.5-7.4*i,2)
  501. end
  502. for i=0,1,0.2 do
  503. wait()
  504. spotlight.Angle = 0+60*i
  505. eyepmesh.Scale = Vector3.new(7.5,0.1+7.4*i,2)
  506. end
  507. spotlight.Angle = 60
  508. end
  509. end),eyep,eyepw)
  510.  
  511. coroutine.resume(coroutine.create(function(Part,Weld)
  512. while Part.Parent~=nil do
  513. wait(5)
  514. for i=0,1,0.2 do
  515. wait()
  516. spotlight2.Angle = 60-60*i
  517. eyep2mesh.Scale = Vector3.new(7.5,7.5-7.4*i,2)
  518. end
  519. for i=0,1,0.2 do
  520. wait()
  521. spotlight2.Angle = 0+60*i
  522. eyep2mesh.Scale = Vector3.new(7.5,0.1+7.4*i,2)
  523. end
  524. spotlight2.Angle = 60
  525. end
  526. end),eyep2,eyep2w)
  527. --------------------------------------------------------------
  528. Arm = Instance.new("Model",Character)
  529. Arm.Name = "Arm 1"
  530.  
  531. arm1p=Instance.new("Part",Character)
  532. arm1p.FormFactor="Custom"
  533. arm1p.Size=Vector3.new(.2,.2,.2)
  534. arm1p.Transparency=0
  535. arm1p.CanCollide=false
  536. arm1p.BrickColor = BrickColor.new("Pastel light blue")
  537. arm1p.Material="Sand"
  538. arm1p.TopSurface="Smooth"
  539. arm1p.BottomSurface="Smooth"
  540. arm1p.RightSurface="Smooth"
  541. arm1p.LeftSurface="Smooth"
  542. arm1pw=Instance.new("Weld",Character)
  543. arm1pw.Part0=Character["Right Arm"]
  544. arm1pw.Part1=arm1p
  545. arm1pw.C0=CFrame.new(0,-5,0)*CFrame.Angles(0,math.rad(0),math.rad(90))
  546.  
  547. arm1pmesh = Instance.new("SpecialMesh",arm1p)
  548. arm1pmesh.MeshType = "Sphere"
  549. arm1pmesh.Scale = Vector3.new(40,20,40)
  550.  
  551. local particleemitter2 = Instance.new("ParticleEmitter", arm1p)
  552. particleemitter2.VelocitySpread = 180
  553. particleemitter2.Lifetime = NumberRange.new(1)
  554. particleemitter2.Speed = NumberRange.new(10)
  555. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  556. particleemitter2.RotSpeed = NumberRange.new(-180, 180)
  557. particleemitter2.Rotation = NumberRange.new(-360, 360)
  558. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  559. particleemitter2.LightEmission = 1
  560. particleemitter2.Texture = "http://www.roblox.com/asset/?id=320043786"
  561. particleemitter2.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  562. particleemitter2.Enabled = false
  563.  
  564. arm1p2=Instance.new("Part",Character)
  565. arm1p2.FormFactor="Custom"
  566. arm1p2.Size=Vector3.new(.2,.2,.2)
  567. arm1p2.Transparency=0
  568. arm1p2.CanCollide=false
  569. arm1p2.BrickColor = BrickColor.new("Pastel light blue")
  570. arm1p2.Material="Sand"
  571. arm1p2.TopSurface="Smooth"
  572. arm1p2.BottomSurface="Smooth"
  573. arm1p2.RightSurface="Smooth"
  574. arm1p2.LeftSurface="Smooth"
  575. arm1p2w=Instance.new("Weld",Character)
  576. arm1p2w.Part0=arm1p
  577. arm1p2w.Part1=arm1p2
  578. arm1p2w.C0=CFrame.new(0,3,0)*CFrame.Angles(0,math.rad(90),math.rad(-90))
  579.  
  580. arm1p2mesh = Instance.new("SpecialMesh",arm1p2)
  581. arm1p2mesh.MeshType = "Cylinder"
  582. arm1p2mesh.Scale = Vector3.new(30,20,30)
  583.  
  584. local particleemitter3 = Instance.new("ParticleEmitter", arm1p2)
  585. particleemitter3.VelocitySpread = 180
  586. particleemitter3.Lifetime = NumberRange.new(1)
  587. particleemitter3.Speed = NumberRange.new(10)
  588. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  589. particleemitter3.RotSpeed = NumberRange.new(-180, 180)
  590. particleemitter3.Rotation = NumberRange.new(-360, 360)
  591. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  592. particleemitter3.LightEmission = 1
  593. particleemitter3.Texture = "http://www.roblox.com/asset/?id=320043786"
  594. particleemitter3.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  595. particleemitter3.Enabled = false
  596.  
  597. arm1p3=Instance.new("Part",Character)
  598. arm1p3.FormFactor="Custom"
  599. arm1p3.Size=Vector3.new(.2,.2,.2)
  600. arm1p3.Transparency=0
  601. arm1p3.CanCollide=false
  602. arm1p3.BrickColor = BrickColor.new("Pastel light blue")
  603. arm1p3.Material="Sand"
  604. arm1p3.TopSurface="Smooth"
  605. arm1p3.BottomSurface="Smooth"
  606. arm1p3.RightSurface="Smooth"
  607. arm1p3.LeftSurface="Smooth"
  608. arm1p3w=Instance.new("Weld",Character)
  609. arm1p3w.Part0=arm1p2
  610. arm1p3w.Part1=arm1p3
  611. arm1p3w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  612.  
  613. arm1p3mesh = Instance.new("SpecialMesh",arm1p3)
  614. arm1p3mesh.MeshType = "Sphere"
  615. arm1p3mesh.Scale = Vector3.new(22.5,22.5,22.5)
  616.  
  617. local particleemitter4 = Instance.new("ParticleEmitter", arm1p3)
  618. particleemitter4.VelocitySpread = 180
  619. particleemitter4.Lifetime = NumberRange.new(1)
  620. particleemitter4.Speed = NumberRange.new(10)
  621. particleemitter4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  622. particleemitter4.RotSpeed = NumberRange.new(-180, 180)
  623. particleemitter4.Rotation = NumberRange.new(-360, 360)
  624. particleemitter4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  625. particleemitter4.LightEmission = 1
  626. particleemitter4.Texture = "http://www.roblox.com/asset/?id=320043786"
  627. particleemitter4.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  628. particleemitter4.Enabled = false
  629.  
  630. arm1p4=Instance.new("Part",Character)
  631. arm1p4.FormFactor="Custom"
  632. arm1p4.Size=Vector3.new(.2,.2,.2)
  633. arm1p4.Transparency=0
  634. arm1p4.CanCollide=false
  635. arm1p4.BrickColor = BrickColor.new("Pastel light blue")
  636. arm1p4.Material="Sand"
  637. arm1p4.TopSurface="Smooth"
  638. arm1p4.BottomSurface="Smooth"
  639. arm1p4.RightSurface="Smooth"
  640. arm1p4.LeftSurface="Smooth"
  641. arm1p4w=Instance.new("Weld",Character)
  642. arm1p4w.Part0=arm1p3
  643. arm1p4w.Part1=arm1p4
  644. arm1p4w.C0=CFrame.new(-3,3,0)*CFrame.Angles(0,math.rad(0),math.rad(-45))
  645.  
  646. arm1p4mesh = Instance.new("SpecialMesh",arm1p4)
  647. arm1p4mesh.MeshType = "Cylinder"
  648. arm1p4mesh.Scale = Vector3.new(30,20,30)
  649.  
  650. local particleemitter5 = Instance.new("ParticleEmitter", arm1p4)
  651. particleemitter5.VelocitySpread = 180
  652. particleemitter5.Lifetime = NumberRange.new(1)
  653. particleemitter5.Speed = NumberRange.new(10)
  654. particleemitter5.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  655. particleemitter5.RotSpeed = NumberRange.new(-180, 180)
  656. particleemitter5.Rotation = NumberRange.new(-360, 360)
  657. particleemitter5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  658. particleemitter5.LightEmission = 1
  659. particleemitter5.Texture = "http://www.roblox.com/asset/?id=320043786"
  660. particleemitter5.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  661. particleemitter5.Enabled = false
  662.  
  663. arm1p5=Instance.new("Part",Character)
  664. arm1p5.FormFactor="Custom"
  665. arm1p5.Size=Vector3.new(.2,.2,.2)
  666. arm1p5.Transparency=0
  667. arm1p5.CanCollide=false
  668. arm1p5.BrickColor = BrickColor.new("Pastel light blue")
  669. arm1p5.Material="Sand"
  670. arm1p5.TopSurface="Smooth"
  671. arm1p5.BottomSurface="Smooth"
  672. arm1p5.RightSurface="Smooth"
  673. arm1p5.LeftSurface="Smooth"
  674. arm1p5w=Instance.new("Weld",Character)
  675. arm1p5w.Part0=arm1p4
  676. arm1p5w.Part1=arm1p5
  677. arm1p5w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  678.  
  679. arm1p5mesh = Instance.new("SpecialMesh",arm1p5)
  680. arm1p5mesh.MeshType = "Sphere"
  681. arm1p5mesh.Scale = Vector3.new(30,30,30)
  682.  
  683. local particleemitter6 = Instance.new("ParticleEmitter", arm1p5)
  684. particleemitter6.VelocitySpread = 180
  685. particleemitter6.Lifetime = NumberRange.new(1)
  686. particleemitter6.Speed = NumberRange.new(10)
  687. particleemitter6.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  688. particleemitter6.RotSpeed = NumberRange.new(-180, 180)
  689. particleemitter6.Rotation = NumberRange.new(-360, 360)
  690. particleemitter6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  691. particleemitter6.LightEmission = 1
  692. particleemitter6.Texture = "http://www.roblox.com/asset/?id=320043786"
  693. particleemitter6.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  694. particleemitter6.Enabled = false
  695.  
  696. arm1p6=Instance.new("Part",Character)
  697. arm1p6.FormFactor="Custom"
  698. arm1p6.Size=Vector3.new(.2,.2,.2)
  699. arm1p6.Transparency=0
  700. arm1p6.CanCollide=false
  701. arm1p6.BrickColor = BrickColor.new("Pastel light blue")
  702. arm1p6.Material="Sand"
  703. arm1p6.TopSurface="Smooth"
  704. arm1p6.BottomSurface="Smooth"
  705. arm1p6.RightSurface="Smooth"
  706. arm1p6.LeftSurface="Smooth"
  707. arm1p6w=Instance.new("Weld",Character)
  708. arm1p6w.Part0=arm1p5
  709. arm1p6w.Part1=arm1p6
  710. arm1p6w.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  711.  
  712. arm1p6mesh = Instance.new("FileMesh",arm1p6)
  713. arm1p6mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  714. arm1p6mesh.Scale = Vector3.new(3.15,3.15,3.15)
  715.  
  716. arm1p7=Instance.new("Part",Character)
  717. arm1p7.FormFactor="Custom"
  718. arm1p7.Size=Vector3.new(.2,.2,.2)
  719. arm1p7.Transparency=0
  720. arm1p7.CanCollide=false
  721. arm1p7.BrickColor = BrickColor.new("Pastel light blue")
  722. arm1p7.Material="Sand"
  723. arm1p7.TopSurface="Smooth"
  724. arm1p7.BottomSurface="Smooth"
  725. arm1p7.RightSurface="Smooth"
  726. arm1p7.LeftSurface="Smooth"
  727. arm1p7w=Instance.new("Weld",Character)
  728. arm1p7w.Part0=arm1p
  729. arm1p7w.Part1=arm1p7
  730. arm1p7w.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  731.  
  732. arm1p7mesh = Instance.new("FileMesh",arm1p7)
  733. arm1p7mesh.MeshId = "http://www.roblox.com/asset/?id=9756362"
  734. arm1p7mesh.Scale = Vector3.new(5,10,5)
  735.  
  736. arm1hitbox=Instance.new("Part",Character)
  737. arm1hitbox.FormFactor="Custom"
  738. arm1hitbox.Size=Vector3.new(5,5,5)
  739. arm1hitbox.Transparency=1
  740. arm1hitbox.CanCollide=false
  741. arm1hitbox.BrickColor = BrickColor.new("Pastel light blue")
  742. arm1hitbox.Material="Sand"
  743. arm1hitbox.TopSurface="Smooth"
  744. arm1hitbox.BottomSurface="Smooth"
  745. arm1hitbox.RightSurface="Smooth"
  746. arm1hitbox.LeftSurface="Smooth"
  747. arm1hitboxw=Instance.new("Weld",Character)
  748. arm1hitboxw.Part0=arm1p6
  749. arm1hitboxw.Part1=arm1hitbox
  750. arm1hitboxw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  751. --------------------------------------------------------------
  752. Arm2 = Instance.new("Model",Character)
  753. Arm2.Name = "Arm 2"
  754.  
  755. arm2p=Instance.new("Part",Character)
  756. arm2p.FormFactor="Custom"
  757. arm2p.Size=Vector3.new(.2,.2,.2)
  758. arm2p.Transparency=0
  759. arm2p.CanCollide=false
  760. arm2p.BrickColor = BrickColor.new("Pastel light blue")
  761. arm2p.Material="Sand"
  762. arm2p.TopSurface="Smooth"
  763. arm2p.BottomSurface="Smooth"
  764. arm2p.RightSurface="Smooth"
  765. arm2p.LeftSurface="Smooth"
  766. arm2pw=Instance.new("Weld",Character)
  767. arm2pw.Part0=Character["Left Arm"]
  768. arm2pw.Part1=arm2p
  769. arm2pw.C0=CFrame.new(0,-5,0)*CFrame.Angles(0,math.rad(0),math.rad(-90))
  770.  
  771. arm2pmesh = Instance.new("SpecialMesh",arm2p)
  772. arm2pmesh.MeshType = "Sphere"
  773. arm2pmesh.Scale = Vector3.new(40,20,40)
  774.  
  775. local particleemitter7 = Instance.new("ParticleEmitter", arm2p)
  776. particleemitter7.VelocitySpread = 180
  777. particleemitter7.Lifetime = NumberRange.new(1)
  778. particleemitter7.Speed = NumberRange.new(10)
  779. particleemitter7.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  780. particleemitter7.RotSpeed = NumberRange.new(-180, 180)
  781. particleemitter7.Rotation = NumberRange.new(-360, 360)
  782. particleemitter7.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  783. particleemitter7.LightEmission = 1
  784. particleemitter7.Texture = "http://www.roblox.com/asset/?id=320043786"
  785. particleemitter7.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  786. particleemitter7.Enabled = false
  787.  
  788. arm2p2=Instance.new("Part",Character)
  789. arm2p2.FormFactor="Custom"
  790. arm2p2.Size=Vector3.new(.2,.2,.2)
  791. arm2p2.Transparency=0
  792. arm2p2.CanCollide=false
  793. arm2p2.BrickColor = BrickColor.new("Pastel light blue")
  794. arm2p2.Material="Sand"
  795. arm2p2.TopSurface="Smooth"
  796. arm2p2.BottomSurface="Smooth"
  797. arm2p2.RightSurface="Smooth"
  798. arm2p2.LeftSurface="Smooth"
  799. arm2p2w=Instance.new("Weld",Character)
  800. arm2p2w.Part0=arm2p
  801. arm2p2w.Part1=arm2p2
  802. arm2p2w.C0=CFrame.new(0,3,0)*CFrame.Angles(0,math.rad(90),math.rad(-90))
  803.  
  804. arm2p2mesh = Instance.new("SpecialMesh",arm2p2)
  805. arm2p2mesh.MeshType = "Cylinder"
  806. arm2p2mesh.Scale = Vector3.new(30,20,30)
  807.  
  808. local particleemitter8 = Instance.new("ParticleEmitter", arm2p2)
  809. particleemitter8.VelocitySpread = 180
  810. particleemitter8.Lifetime = NumberRange.new(1)
  811. particleemitter8.Speed = NumberRange.new(10)
  812. particleemitter8.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  813. particleemitter8.RotSpeed = NumberRange.new(-180, 180)
  814. particleemitter8.Rotation = NumberRange.new(-360, 360)
  815. particleemitter8.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  816. particleemitter8.LightEmission = 1
  817. particleemitter8.Texture = "http://www.roblox.com/asset/?id=320043786"
  818. particleemitter8.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  819. particleemitter8.Enabled = false
  820.  
  821. arm2p3=Instance.new("Part",Character)
  822. arm2p3.FormFactor="Custom"
  823. arm2p3.Size=Vector3.new(.2,.2,.2)
  824. arm2p3.Transparency=0
  825. arm2p3.CanCollide=false
  826. arm2p3.BrickColor = BrickColor.new("Pastel light blue")
  827. arm2p3.Material="Sand"
  828. arm2p3.TopSurface="Smooth"
  829. arm2p3.BottomSurface="Smooth"
  830. arm2p3.RightSurface="Smooth"
  831. arm2p3.LeftSurface="Smooth"
  832. arm2p3w=Instance.new("Weld",Character)
  833. arm2p3w.Part0=arm2p2
  834. arm2p3w.Part1=arm2p3
  835. arm2p3w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  836.  
  837. arm2p3mesh = Instance.new("SpecialMesh",arm2p3)
  838. arm2p3mesh.MeshType = "Sphere"
  839. arm2p3mesh.Scale = Vector3.new(22.5,22.5,22.5)
  840.  
  841. local particleemitter9 = Instance.new("ParticleEmitter", arm2p3)
  842. particleemitter9.VelocitySpread = 180
  843. particleemitter9.Lifetime = NumberRange.new(1)
  844. particleemitter9.Speed = NumberRange.new(10)
  845. particleemitter9.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  846. particleemitter9.RotSpeed = NumberRange.new(-180, 180)
  847. particleemitter9.Rotation = NumberRange.new(-360, 360)
  848. particleemitter9.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  849. particleemitter9.LightEmission = 1
  850. particleemitter9.Texture = "http://www.roblox.com/asset/?id=320043786"
  851. particleemitter9.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  852. particleemitter9.Enabled = false
  853.  
  854. arm2p4=Instance.new("Part",Character)
  855. arm2p4.FormFactor="Custom"
  856. arm2p4.Size=Vector3.new(.2,.2,.2)
  857. arm2p4.Transparency=0
  858. arm2p4.CanCollide=false
  859. arm2p4.BrickColor = BrickColor.new("Pastel light blue")
  860. arm2p4.Material="Sand"
  861. arm2p4.TopSurface="Smooth"
  862. arm2p4.BottomSurface="Smooth"
  863. arm2p4.RightSurface="Smooth"
  864. arm2p4.LeftSurface="Smooth"
  865. arm2p4w=Instance.new("Weld",Character)
  866. arm2p4w.Part0=arm2p3
  867. arm2p4w.Part1=arm2p4
  868. arm2p4w.C0=CFrame.new(-3,3,0)*CFrame.Angles(0,math.rad(0),math.rad(-45))
  869.  
  870. arm2p4mesh = Instance.new("SpecialMesh",arm2p4)
  871. arm2p4mesh.MeshType = "Cylinder"
  872. arm2p4mesh.Scale = Vector3.new(30,20,30)
  873.  
  874. local particleemitter10 = Instance.new("ParticleEmitter", arm2p4)
  875. particleemitter10.VelocitySpread = 180
  876. particleemitter10.Lifetime = NumberRange.new(1)
  877. particleemitter10.Speed = NumberRange.new(10)
  878. particleemitter10.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  879. particleemitter10.RotSpeed = NumberRange.new(-180, 180)
  880. particleemitter10.Rotation = NumberRange.new(-360, 360)
  881. particleemitter10.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  882. particleemitter10.LightEmission = 1
  883. particleemitter10.Texture = "http://www.roblox.com/asset/?id=320043786"
  884. particleemitter10.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  885. particleemitter10.Enabled = false
  886.  
  887. arm2p5=Instance.new("Part",Character)
  888. arm2p5.FormFactor="Custom"
  889. arm2p5.Size=Vector3.new(.2,.2,.2)
  890. arm2p5.Transparency=0
  891. arm2p5.CanCollide=false
  892. arm2p5.BrickColor = BrickColor.new("Pastel light blue")
  893. arm2p5.Material="Sand"
  894. arm2p5.TopSurface="Smooth"
  895. arm2p5.BottomSurface="Smooth"
  896. arm2p5.RightSurface="Smooth"
  897. arm2p5.LeftSurface="Smooth"
  898. arm2p5w=Instance.new("Weld",Character)
  899. arm2p5w.Part0=arm2p4
  900. arm2p5w.Part1=arm2p5
  901. arm2p5w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  902.  
  903. arm2p5mesh = Instance.new("SpecialMesh",arm2p5)
  904. arm2p5mesh.MeshType = "Sphere"
  905. arm2p5mesh.Scale = Vector3.new(30,30,30)
  906.  
  907. local particleemitter11 = Instance.new("ParticleEmitter", arm2p5)
  908. particleemitter11.VelocitySpread = 180
  909. particleemitter11.Lifetime = NumberRange.new(1)
  910. particleemitter11.Speed = NumberRange.new(10)
  911. particleemitter11.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)})
  912. particleemitter11.RotSpeed = NumberRange.new(-180, 180)
  913. particleemitter11.Rotation = NumberRange.new(-360, 360)
  914. particleemitter11.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  915. particleemitter11.LightEmission = 1
  916. particleemitter11.Texture = "http://www.roblox.com/asset/?id=320043786"
  917. particleemitter11.Color = ColorSequence.new(Color3.new(0, 0.666667, 1), Color3.new(0, 0.666667, 1))
  918. particleemitter11.Enabled = false
  919.  
  920. arm2p6=Instance.new("Part",Character)
  921. arm2p6.FormFactor="Custom"
  922. arm2p6.Size=Vector3.new(.2,.2,.2)
  923. arm2p6.Transparency=0
  924. arm2p6.CanCollide=false
  925. arm2p6.BrickColor = BrickColor.new("Pastel light blue")
  926. arm2p6.Material="Sand"
  927. arm2p6.TopSurface="Smooth"
  928. arm2p6.BottomSurface="Smooth"
  929. arm2p6.RightSurface="Smooth"
  930. arm2p6.LeftSurface="Smooth"
  931. arm2p6w=Instance.new("Weld",Character)
  932. arm2p6w.Part0=arm2p5
  933. arm2p6w.Part1=arm2p6
  934. arm2p6w.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),math.rad(90))
  935.  
  936. arm2p6mesh = Instance.new("FileMesh",arm2p6)
  937. arm2p6mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  938. arm2p6mesh.Scale = Vector3.new(3.15,3.15,3.15)
  939.  
  940. arm2p7=Instance.new("Part",Character)
  941. arm2p7.FormFactor="Custom"
  942. arm2p7.Size=Vector3.new(.2,.2,.2)
  943. arm2p7.Transparency=0
  944. arm2p7.CanCollide=false
  945. arm2p7.BrickColor = BrickColor.new("Pastel light blue")
  946. arm2p7.Material="Sand"
  947. arm2p7.TopSurface="Smooth"
  948. arm2p7.BottomSurface="Smooth"
  949. arm2p7.RightSurface="Smooth"
  950. arm2p7.LeftSurface="Smooth"
  951. arm2p7w=Instance.new("Weld",Character)
  952. arm2p7w.Part0=arm2p
  953. arm2p7w.Part1=arm2p7
  954. arm2p7w.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0))
  955.  
  956. arm2p7mesh = Instance.new("FileMesh",arm2p7)
  957. arm2p7mesh.MeshId = "http://www.roblox.com/asset/?id=9756362"
  958. arm2p7mesh.Scale = Vector3.new(5,10,5)
  959.  
  960. arm2hitbox=Instance.new("Part",Character)
  961. arm2hitbox.FormFactor="Custom"
  962. arm2hitbox.Size=Vector3.new(5,5,5)
  963. arm2hitbox.Transparency=1
  964. arm2hitbox.CanCollide=false
  965. arm2hitbox.BrickColor = BrickColor.new("Pastel light blue")
  966. arm2hitbox.Material="Sand"
  967. arm2hitbox.TopSurface="Smooth"
  968. arm2hitbox.BottomSurface="Smooth"
  969. arm2hitbox.RightSurface="Smooth"
  970. arm2hitbox.LeftSurface="Smooth"
  971. arm2hitboxw=Instance.new("Weld",Character)
  972. arm2hitboxw.Part0=arm2p6
  973. arm2hitboxw.Part1=arm2hitbox
  974. arm2hitboxw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  975. --------------------------------------------------------------
  976.  
  977. local function weldBetween(a, b)
  978. local weldd = Instance.new("ManualWeld")
  979. weldd.Part0 = a
  980. weldd.Part1 = b
  981. weldd.C0 = CFrame.new()
  982. weldd.C1 = b.CFrame:inverse() * a.CFrame
  983. weldd.Parent = a
  984. return weldd
  985. end
  986.  
  987. function swait(num)
  988. if num==0 or num==nil then
  989. game:service'RunService'.Stepped:wait(0)
  990. else
  991. for i=0,num do
  992. game:service'RunService'.Stepped:wait(0)
  993. end
  994. end
  995. end
  996.  
  997. function nooutline(part)
  998. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  999. end
  1000.  
  1001. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1002. local fp=it("Part")
  1003. fp.formFactor=formfactor
  1004. fp.Parent=parent
  1005. fp.Reflectance=reflectance
  1006. fp.Transparency=transparency
  1007. fp.CanCollide=false
  1008. fp.Locked=true
  1009. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1010. fp.Name=name
  1011. fp.Size=size
  1012. fp.Position=Character.Torso.Position
  1013. nooutline(fp)
  1014. fp.Material=material
  1015. fp:BreakJoints()
  1016. return fp
  1017. end
  1018.  
  1019. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1020. local mesh=it(Mesh)
  1021. mesh.Parent=part
  1022. if Mesh=="SpecialMesh" then
  1023. mesh.MeshType=meshtype
  1024. mesh.MeshId=meshid
  1025. end
  1026. mesh.Offset=offset
  1027. mesh.Scale=scale
  1028. return mesh
  1029. end
  1030.  
  1031. function weld(parent,part0,part1,c0,c1)
  1032. local weld=it("Weld")
  1033. weld.Parent=parent
  1034. weld.Part0=part0
  1035. weld.Part1=part1
  1036. weld.C0=c0
  1037. weld.C1=c1
  1038. return weld
  1039. end
  1040.  
  1041.  
  1042. local function CFrameFromTopBack(at, top, back)
  1043. local right = top:Cross(back)
  1044. return CFrame.new(at.x, at.y, at.z,
  1045. right.x, top.x, back.x,
  1046. right.y, top.y, back.y,
  1047. right.z, top.z, back.z)
  1048. end
  1049.  
  1050. function Triangle(a, b, c)
  1051. local edg1 = (c-a):Dot((b-a).unit)
  1052. local edg2 = (a-b):Dot((c-b).unit)
  1053. local edg3 = (b-c):Dot((a-c).unit)
  1054. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1055. a, b, c = a, b, c
  1056. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1057. a, b, c = b, c, a
  1058. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1059. a, b, c = c, a, b
  1060. else
  1061. assert(false, "unreachable")
  1062. end
  1063.  
  1064. local len1 = (c-a):Dot((b-a).unit)
  1065. local len2 = (b-a).magnitude - len1
  1066. local width = (a + (b-a).unit*len1 - c).magnitude
  1067.  
  1068. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1069.  
  1070. local list = {}
  1071.  
  1072. local TrailColor = ("Dark grey")
  1073.  
  1074. if len1 > 0.01 then
  1075. local w1 = Instance.new('WedgePart', m)
  1076. game:GetService("Debris"):AddItem(w1,5)
  1077. w1.Material = "SmoothPlastic"
  1078. w1.FormFactor = 'Custom'
  1079. w1.BrickColor = BrickColor.new(TrailColor)
  1080. w1.Transparency = 0
  1081. w1.Reflectance = 0
  1082. w1.Material = "SmoothPlastic"
  1083. w1.CanCollide = false
  1084. NoOutline(w1)
  1085. local sz = Vector3.new(0.2, width, len1)
  1086. w1.Size = sz
  1087. local sp = Instance.new("SpecialMesh",w1)
  1088. sp.MeshType = "Wedge"
  1089. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1090. w1:BreakJoints()
  1091. w1.Anchored = true
  1092. w1.Parent = workspace
  1093. w1.Transparency = 0.7
  1094. table.insert(Effects,{w1,"Disappear",.01})
  1095. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1096. table.insert(list,w1)
  1097. end
  1098.  
  1099. if len2 > 0.01 then
  1100. local w2 = Instance.new('WedgePart', m)
  1101. game:GetService("Debris"):AddItem(w2,5)
  1102. w2.Material = "SmoothPlastic"
  1103. w2.FormFactor = 'Custom'
  1104. w2.BrickColor = BrickColor.new(TrailColor)
  1105. w2.Transparency = 0
  1106. w2.Reflectance = 0
  1107. w2.Material = "SmoothPlastic"
  1108. w2.CanCollide = false
  1109. NoOutline(w2)
  1110. local sz = Vector3.new(0.2, width, len2)
  1111. w2.Size = sz
  1112. local sp = Instance.new("SpecialMesh",w2)
  1113. sp.MeshType = "Wedge"
  1114. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1115. w2:BreakJoints()
  1116. w2.Anchored = true
  1117. w2.Parent = workspace
  1118. w2.Transparency = 0.7
  1119. table.insert(Effects,{w2,"Disappear",.01})
  1120. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1121. table.insert(list,w2)
  1122. end
  1123. return unpack(list)
  1124. end
  1125.  
  1126.  
  1127. so = function(id,par,vol,pit)
  1128. coroutine.resume(coroutine.create(function()
  1129. local sou = Instance.new("Sound",par or workspace)
  1130. sou.Volume=vol
  1131. sou.Pitch=pit or 1
  1132. sou.SoundId=id
  1133. swait()
  1134. sou:play()
  1135. game:GetService("Debris"):AddItem(sou,6)
  1136. end))
  1137. end
  1138.  
  1139. function clerp(a,b,t)
  1140. local qa = {QuaternionFromCFrame(a)}
  1141. local qb = {QuaternionFromCFrame(b)}
  1142. local ax, ay, az = a.x, a.y, a.z
  1143. local bx, by, bz = b.x, b.y, b.z
  1144. local _t = 1-t
  1145. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1146. end
  1147.  
  1148. function QuaternionFromCFrame(cf)
  1149. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1150. local trace = m00 + m11 + m22
  1151. if trace > 0 then
  1152. local s = math.sqrt(1 + trace)
  1153. local recip = 0.5/s
  1154. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1155. else
  1156. local i = 0
  1157. if m11 > m00 then
  1158. i = 1
  1159. end
  1160. if m22 > (i == 0 and m00 or m11) then
  1161. i = 2
  1162. end
  1163. if i == 0 then
  1164. local s = math.sqrt(m00-m11-m22+1)
  1165. local recip = 0.5/s
  1166. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1167. elseif i == 1 then
  1168. local s = math.sqrt(m11-m22-m00+1)
  1169. local recip = 0.5/s
  1170. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1171. elseif i == 2 then
  1172. local s = math.sqrt(m22-m00-m11+1)
  1173. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1174. end
  1175. end
  1176. end
  1177.  
  1178. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1179. local xs, ys, zs = x + x, y + y, z + z
  1180. local wx, wy, wz = w*xs, w*ys, w*zs
  1181. local xx = x*xs
  1182. local xy = x*ys
  1183. local xz = x*zs
  1184. local yy = y*ys
  1185. local yz = y*zs
  1186. local zz = z*zs
  1187. 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))
  1188. end
  1189.  
  1190. function QuaternionSlerp(a, b, t)
  1191. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1192. local startInterp, finishInterp;
  1193. if cosTheta >= 0.0001 then
  1194. if (1 - cosTheta) > 0.0001 then
  1195. local theta = math.acos(cosTheta)
  1196. local invSinTheta = 1/math.sin(theta)
  1197. startInterp = math.sin((1-t)*theta)*invSinTheta
  1198. finishInterp = math.sin(t*theta)*invSinTheta
  1199. else
  1200. startInterp = 1-t
  1201. finishInterp = t
  1202. end
  1203. else
  1204. if (1+cosTheta) > 0.0001 then
  1205. local theta = math.acos(-cosTheta)
  1206. local invSinTheta = 1/math.sin(theta)
  1207. startInterp = math.sin((t-1)*theta)*invSinTheta
  1208. finishInterp = math.sin(t*theta)*invSinTheta
  1209. else
  1210. startInterp = t-1
  1211. finishInterp = t
  1212. end
  1213. end
  1214. 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
  1215. end
  1216.  
  1217. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1218.  
  1219.  
  1220. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1221. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1222. end
  1223.  
  1224. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1225. if hit.Parent==nil then
  1226. return
  1227. end
  1228. h=hit.Parent:FindFirstChild("Humanoid")
  1229. for _,v in pairs(hit.Parent:children()) do
  1230. if v:IsA("Humanoid") then
  1231. h=v
  1232. end
  1233. end
  1234. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1235. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1236. end
  1237. if hit.Parent.className=="Hat" then
  1238. hit=hit.Parent.Parent:findFirstChild("Head")
  1239. end
  1240. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1241. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1242. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1243. return
  1244. end]]
  1245. -- hs(hit,1.2)
  1246. c=Instance.new("ObjectValue")
  1247. c.Name="creator"
  1248. c.Value=game:service("Players").LocalPlayer
  1249. c.Parent=h
  1250. game:GetService("Debris"):AddItem(c,.5)
  1251. Damage=math.random(minim,maxim)
  1252. -- h:TakeDamage(Damage)
  1253. blocked=false
  1254. block=hit.Parent:findFirstChild("Block")
  1255. if block~=nil then
  1256. print(block.className)
  1257. if block.className=="NumberValue" then
  1258. if block.Value>0 then
  1259. blocked=true
  1260. if decreaseblock==nil then
  1261. block.Value=block.Value-1
  1262. end
  1263. end
  1264. end
  1265. if block.className=="IntValue" then
  1266. if block.Value>0 then
  1267. blocked=true
  1268. if decreaseblock~=nil then
  1269. block.Value=block.Value-1
  1270. end
  1271. end
  1272. end
  1273. end
  1274. if blocked==false then
  1275. -- h:TakeDamage(Damage)
  1276. h.Health=h.Health-Damage
  1277. showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  1278. else
  1279. h.Health=h.Health-(Damage/2)
  1280. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1281. end
  1282. if Type=="Knockdown" then
  1283. hum=hit.Parent.Humanoid
  1284. hum.PlatformStand=true
  1285. coroutine.resume(coroutine.create(function(HHumanoid)
  1286. swait(1)
  1287. HHumanoid.PlatformStand=false
  1288. end),hum)
  1289. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1290. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1291. local bodvol=Instance.new("BodyVelocity")
  1292. bodvol.velocity=angle*knockback
  1293. bodvol.P=5000
  1294. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1295. bodvol.Parent=hit
  1296. rl=Instance.new("BodyAngularVelocity")
  1297. rl.P=3000
  1298. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1299. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1300. rl.Parent=hit
  1301. game:GetService("Debris"):AddItem(bodvol,.5)
  1302. game:GetService("Debris"):AddItem(rl,.5)
  1303. elseif Type=="Normal" then
  1304. so("http://www.roblox.com/asset/?id=220834019",hit,1,math.random(80,120)/100)
  1305. vp=Instance.new("BodyVelocity")
  1306. vp.P=500
  1307. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1308. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1309. if KnockbackType==1 then
  1310. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1311. elseif KnockbackType==2 then
  1312. vp.velocity=Property.CFrame.lookVector*knockback
  1313. end
  1314. if knockback>0 then
  1315. vp.Parent=hit.Parent.Torso
  1316. end
  1317. game:GetService("Debris"):AddItem(vp,.5)
  1318. elseif Type=="Up" then
  1319. local bodyVelocity=Instance.new("BodyVelocity")
  1320. bodyVelocity.velocity=vt(0,60,0)
  1321. bodyVelocity.P=5000
  1322. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1323. bodyVelocity.Parent=hit
  1324. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1325. rl=Instance.new("BodyAngularVelocity")
  1326. rl.P=3000
  1327. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1328. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1329. rl.Parent=hit
  1330. game:GetService("Debris"):AddItem(rl,.5)
  1331. elseif Type=="Snare" then
  1332. bp=Instance.new("BodyPosition")
  1333. bp.P=2000
  1334. bp.D=100
  1335. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1336. bp.position=hit.Parent.Torso.Position
  1337. bp.Parent=hit.Parent.Torso
  1338. game:GetService("Debris"):AddItem(bp,1)
  1339. elseif Type=="Target" then
  1340. if Targetting==false then
  1341. ZTarget=hit.Parent.Torso
  1342. coroutine.resume(coroutine.create(function(Part)
  1343. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1344. swait(5)
  1345. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1346. end),ZTarget)
  1347. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1348. targetgui=Instance.new("BillboardGui")
  1349. targetgui.Parent=ZTarget
  1350. targetgui.Size=UDim2.new(10,100,10,100)
  1351. targ=Instance.new("ImageLabel")
  1352. targ.Parent=targetgui
  1353. targ.BackgroundTransparency=1
  1354. targ.Image="rbxassetid://4834067"
  1355. targ.Size=UDim2.new(1,0,1,0)
  1356. cam.CameraType="Scriptable"
  1357. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1358. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1359. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1360. Targetting=true
  1361. RocketTarget=ZTarget
  1362. for i=1,Property do
  1363. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1364. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1365. swait()
  1366. end
  1367. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1368. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1369. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1370. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1371. end
  1372. Targetting=false
  1373. RocketTarget=nil
  1374. targetgui.Parent=nil
  1375. cam.CameraType="Custom"
  1376. end
  1377. end
  1378. debounce=Instance.new("BoolValue")
  1379. debounce.Name="DebounceHit"
  1380. debounce.Parent=hit.Parent
  1381. debounce.Value=true
  1382. game:GetService("Debris"):AddItem(debounce,Delay)
  1383. c=Instance.new("ObjectValue")
  1384. c.Name="creator"
  1385. c.Value=Player
  1386. c.Parent=h
  1387. game:GetService("Debris"):AddItem(c,.5)
  1388. CRIT=false
  1389. hitDeb=true
  1390. AttackPos=6
  1391. end
  1392. end
  1393.  
  1394. showDamage=function(Char,Dealt,du,Color)
  1395. m=Instance.new("Model")
  1396. m.Name=tostring(Dealt)
  1397. h=Instance.new("Humanoid")
  1398. h.Health=0
  1399. h.MaxHealth=0
  1400. h.Parent=m
  1401. c=Instance.new("Part")
  1402. c.Transparency=0
  1403. c.BrickColor=BrickColor.new("Bright red")
  1404. c.Name="Head"
  1405. c.TopSurface=0
  1406. c.BottomSurface=0
  1407. c.formFactor="Plate"
  1408. c.Size=Vector3.new(1,.4,1)
  1409. ms=Instance.new("CylinderMesh")
  1410. ms.Scale=Vector3.new(.8,.8,.8)
  1411. if CRIT==true then
  1412. ms.Scale=Vector3.new(1,1.25,1)
  1413. end
  1414. ms.Parent=c
  1415. c.Reflectance=0
  1416. Instance.new("BodyGyro").Parent=c
  1417. c.Parent=m
  1418. if Char:findFirstChild("Head")~=nil then
  1419. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1420. elseif Char.Parent:findFirstChild("Head")~=nil then
  1421. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1422. end
  1423. f=Instance.new("BodyPosition")
  1424. f.P=2000
  1425. f.D=100
  1426. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1427. f.position=c.Position+Vector3.new(0,3,0)
  1428. f.Parent=c
  1429. game:GetService("Debris"):AddItem(m,.5+du)
  1430. c.CanCollide=false
  1431. m.Parent=workspace
  1432. c.CanCollide=false
  1433. end
  1434.  
  1435. function Shockwave2(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1436. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1437. prt.Anchored = true
  1438. prt.CFrame = cframe
  1439. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1440. coroutine.resume(coroutine.create(function()
  1441. for i = 0, 1, delay do
  1442. swait()
  1443. prt.Transparency = i
  1444. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1445. end
  1446. prt.Parent = nil
  1447. end))
  1448. end
  1449.  
  1450. function attackone()
  1451. attack=true
  1452. for i=0,1,0.04 do
  1453. swait()
  1454. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,8)*angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  1455. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1456. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.2)
  1457. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2)
  1458. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1459. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1460. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1461. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,4)*angles(math.rad(60),math.rad(90),math.rad(-90)),0.2)
  1462. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1463. arm1p4w.C0=clerp(arm1p4w.C0,cf(1.5,3,0)*angles(math.rad(0),math.rad(0),math.rad(-120)),0.2)
  1464. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1465. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1466. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
  1467. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1468. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1469. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2)
  1470. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1471. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1472. end
  1473. so("http://www.roblox.com/asset/?id=203691467",arm1hitbox,1,1)
  1474. con1=arm1hitbox.Touched:connect(function(hit) Damagefunc(hit,60,80,math.random(60,80),"Normal",RootPart,.2,1) end)
  1475. for i=0,1,0.2 do
  1476. swait()
  1477. Shockwave(BrickColor.new("Institutional white"),cf(arm1hitbox.Position),1,1,1,1,1,1,0.075)
  1478. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,8)*angles(math.rad(5),math.rad(0),math.rad(30)),.2)
  1479. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1480. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.3)
  1481. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-130)), 0.2)
  1482. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1483. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1484. arm1pw.C0=clerp(arm1pw.C0,cf(-2.5,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  1485. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,-4)*angles(math.rad(-60),math.rad(90),math.rad(-90)),0.3)
  1486. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1487. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1488. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1489. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1490. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
  1491. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1492. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1493. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2)
  1494. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1495. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1496. end
  1497. for i=0,1,0.04 do
  1498. swait()
  1499. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,8)*angles(math.rad(5),math.rad(0),math.rad(30)),.2)
  1500. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1501. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.3)
  1502. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-130)), 0.2)
  1503. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1504. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1505. arm1pw.C0=clerp(arm1pw.C0,cf(-2.5,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  1506. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,-4)*angles(math.rad(-60),math.rad(90),math.rad(-90)),0.3)
  1507. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1508. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1509. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1510. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1511. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
  1512. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1513. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1514. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2)
  1515. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1516. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1517. end
  1518. con1:disconnect()
  1519. attack=false
  1520. end
  1521.  
  1522. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1523. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1524. end
  1525.  
  1526. function attacktwo()
  1527. attack=true
  1528. for i=0,1,0.04 do
  1529. swait()
  1530. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  1531. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1532. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.2)
  1533. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2)
  1534. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1535. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1536. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1537. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1538. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1539. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2)
  1540. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1541. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1542. arm2pw.C0=clerp(arm2pw.C0,cf(0,-2.5,0)*angles(math.rad(0),math.rad(120),math.rad(-90)),0.2)
  1543. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1544. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1545. arm2p4w.C0=clerp(arm2p4w.C0,cf(-1,3,0)*angles(math.rad(0),math.rad(0),math.rad(-75)),0.2)
  1546. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1547. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1548. end
  1549. so("http://www.roblox.com/asset/?id=203691467",arm1hitbox,1,0.8)
  1550. con1=arm2hitbox.Touched:connect(function(hit) Damagefunc(hit,60,80,math.random(60,80),"Normal",RootPart,.2,1) end)
  1551. for i=0,1,0.2 do
  1552. swait()
  1553. Shockwave(BrickColor.new("Institutional white"),cf(arm2hitbox.Position),1,1,1,1,1,1,0.075)
  1554. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(20),math.rad(0),math.rad(-45)),.2)
  1555. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1556. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.2)
  1557. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2)
  1558. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1559. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1560. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1561. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1562. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1563. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2)
  1564. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1565. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1566. arm2pw.C0=clerp(arm2pw.C0,cf(1.5,-3.5,-5)*angles(math.rad(-30),math.rad(0),math.rad(-90)),0.3)
  1567. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.3)
  1568. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1569. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  1570. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1571. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  1572. end
  1573. Humanoid.WalkSpeed = 0
  1574. local hit,pos=rayCast(arm2hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1575. if hit~=nil then
  1576. swait()
  1577. print("touched")
  1578. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1579. ref.Anchored=true
  1580. ref.CFrame=cf(pos)
  1581. game:GetService("Debris"):AddItem(ref,3)
  1582. so("http://www.roblox.com/asset/?id=199145477",arm2hitbox,1,math.random(60,140)/100)
  1583. Shockwave2(BrickColor.new("Pastel light blue"),cf(pos),0.1,0.1,0.1,1,1,1,0.05)
  1584. end
  1585. for i=0,1,0.04 do
  1586. swait()
  1587. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(20),math.rad(0),math.rad(-45)),.2)
  1588. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1589. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.2)
  1590. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2)
  1591. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1592. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1593. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  1594. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2)
  1595. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1596. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2)
  1597. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1598. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  1599. arm2pw.C0=clerp(arm2pw.C0,cf(1.5,-3.5,-5)*angles(math.rad(-20),math.rad(0),math.rad(-90)),0.3)
  1600. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.3)
  1601. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1602. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  1603. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1604. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  1605. end
  1606. Humanoid.WalkSpeed = 64
  1607. con1:disconnect()
  1608. attack=false
  1609. end
  1610.  
  1611. lasereye=1
  1612.  
  1613. mouse.Button1Down:connect(function()
  1614. if attack==false and attacktype==1 and sphere==false then
  1615. attackone()
  1616. attacktype=2
  1617. elseif attack==false and attacktype==2 and sphere==false then
  1618. attacktwo()
  1619. attacktype=1
  1620. end
  1621. if attack==false and used==false and sphere==true and rest==false and lasereye==1 then
  1622. lasereye=2
  1623. LaserBlaster()
  1624. elseif attack==false and used==false and sphere==true and rest==false and lasereye==2 then
  1625. lasereye=1
  1626. LaserBlaster2()
  1627. end
  1628. end)
  1629.  
  1630. function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1631. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1632. prt.Anchored = true
  1633. prt.CFrame = cframe
  1634. prt.Material = "Neon"
  1635. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1636. game:GetService("Debris"):AddItem(prt, 2)
  1637. coroutine.resume(coroutine.create(function(Part, Mesh)
  1638. for i = 0, 1, delay do
  1639. swait()
  1640. Part.CFrame = Part.CFrame
  1641. Part.Transparency = i
  1642. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1643. end
  1644. Part.Parent = nil
  1645. end), prt, msh)
  1646. end
  1647.  
  1648. function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1649. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1650. prt.Anchored = true
  1651. prt.CFrame = cframe
  1652. prt.Material = "Neon"
  1653. local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  1654. game:GetService("Debris"):AddItem(prt, 2)
  1655. coroutine.resume(coroutine.create(function(Part, Mesh)
  1656. for i = 0, 1, delay do
  1657. swait()
  1658. Part.CFrame = Part.CFrame
  1659. Part.Transparency = i
  1660. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1661. end
  1662. Part.Parent = nil
  1663. end), prt, msh)
  1664. end
  1665.  
  1666. MMouse=mouse
  1667. LaserTarget=RootPart
  1668. used=false
  1669.  
  1670. function LaserBlaster()
  1671. used=true
  1672. so("http://www.roblox.com/asset/?id=167122623",eyep,1,math.random(60,80)/100)
  1673. local MouseLook=cf((eyep.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1674. local hit,pos = rayCast(eyep.Position,MouseLook.lookVector,999,LaserTarget.Parent)
  1675. local mag=(eyep.Position-pos).magnitude
  1676. Laser(BrickColor.new("Cyan"),CFrame.new((eyep.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,0.5,0,0.5,0.1)
  1677. if hit~=nil then
  1678. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1679. ref.Anchored=true
  1680. ref.CFrame=cf(pos)
  1681. game:GetService("Debris"):AddItem(ref,1)
  1682. so("http://www.roblox.com/asset/?id=340722848",ref,1,math.random(80,120)/100)
  1683. Shockwave(BrickColor.new("Cyan"),cf(pos),1,1,1,1,1,1,0.075)
  1684. Damagefunc(hit,20,40,0,"Normal",RootPart,0)
  1685. end
  1686. for i=0,1,0.2 do
  1687. swait()
  1688. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,2,12)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1689. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1690. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1691. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1692. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1693. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1694. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1695. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1696. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1697. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1698. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1699. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1700. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1701. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1702. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1703. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1704. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1705. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1706. end
  1707. wait(0.25)
  1708. used=false
  1709. end
  1710.  
  1711. function LaserBlaster2()
  1712. used=true
  1713. so("http://www.roblox.com/asset/?id=167122623",eyep2,1,math.random(60,80)/100)
  1714. local MouseLook=cf((eyep2.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1715. local hit,pos = rayCast(eyep2.Position,MouseLook.lookVector,999,LaserTarget.Parent)
  1716. local mag=(eyep2.Position-pos).magnitude
  1717. Laser(BrickColor.new("Cyan"),CFrame.new((eyep2.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,0.5,0,0.5,0.1)
  1718. if hit~=nil then
  1719. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1720. ref.Anchored=true
  1721. ref.CFrame=cf(pos)
  1722. game:GetService("Debris"):AddItem(ref,1)
  1723. so("http://www.roblox.com/asset/?id=340722848",ref,1,math.random(80,120)/100)
  1724. Shockwave(BrickColor.new("Cyan"),cf(pos),1,1,1,1,1,1,0.075)
  1725. Damagefunc(hit,20,40,0,"Normal",RootPart,0)
  1726. end
  1727. for i=0,1,0.2 do
  1728. swait()
  1729. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,2,12)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1730. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1731. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1732. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1733. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1734. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1735. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1736. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1737. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1738. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1739. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1740. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1741. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1742. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1743. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1744. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1745. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1746. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1747. end
  1748. wait(0.25)
  1749. used=false
  1750. end
  1751.  
  1752. used2=false
  1753.  
  1754. function GiantLaserBlaster()
  1755. used2=true
  1756. so("http://www.roblox.com/asset/?id=137463716",eyep,1,math.random(60,80)/100)
  1757. eyeeffect.Enabled = true
  1758. wait(1.6)
  1759. eyeeffect.Enabled = false
  1760. so("http://www.roblox.com/asset/?id=253453677",eyep,1,math.random(75,125)/100)
  1761. so("http://www.roblox.com/asset/?id=253453677",eyep,1,math.random(75,125)/100)
  1762. so("http://www.roblox.com/asset/?id=253453677",eyep,1,math.random(75,125)/100)
  1763. so("http://www.roblox.com/asset/?id=253453677",eyep,1,math.random(75,125)/100)
  1764. local MouseLook=cf((eyep.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1765. local hit,pos = rayCast(eyep.Position,MouseLook.lookVector,999,LaserTarget.Parent)
  1766. local mag=(eyep.Position-pos).magnitude
  1767. Laser(BrickColor.new("Cyan"),CFrame.new((eyep.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,2.5,0,2.5,0.05)
  1768. if hit~=nil then
  1769. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1770. ref.Anchored=true
  1771. ref.CFrame=cf(pos)
  1772. game:GetService("Debris"):AddItem(ref,1)
  1773. so("http://www.roblox.com/asset/?id=340722848",ref,1,math.random(80,120)/100)
  1774. Shockwave(BrickColor.new("Cyan"),cf(pos),2.5,2.5,2.5,2.5,2.5,2.5,0.025)
  1775. Damagefunc(hit,40,80,0,"Normal",RootPart,0)
  1776. end
  1777. for i=0,1,0.1 do
  1778. swait()
  1779. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,8,12)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1780. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1781. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1782. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1783. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1785. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1786. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1787. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1788. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1789. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1790. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1791. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1792. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1793. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1794. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1795. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1796. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1797. end
  1798. wait(3)
  1799. used2=false
  1800. end
  1801.  
  1802. function GiantLaserBlaster2()
  1803. used2=true
  1804. so("http://www.roblox.com/asset/?id=137463716",eyep2,1,math.random(60,80)/100)
  1805. eyeeffect2.Enabled = true
  1806. wait(1.6)
  1807. eyeeffect2.Enabled = false
  1808. so("http://www.roblox.com/asset/?id=253453677",eyep2,1,math.random(75,125)/100)
  1809. so("http://www.roblox.com/asset/?id=253453677",eyep2,1,math.random(75,125)/100)
  1810. so("http://www.roblox.com/asset/?id=253453677",eyep2,1,math.random(75,125)/100)
  1811. so("http://www.roblox.com/asset/?id=253453677",eyep2,1,math.random(75,125)/100)
  1812. local MouseLook=cf((eyep2.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1813. local hit,pos = rayCast(eyep2.Position,MouseLook.lookVector,999,LaserTarget.Parent)
  1814. local mag=(eyep2.Position-pos).magnitude
  1815. Laser(BrickColor.new("Cyan"),CFrame.new((eyep2.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,2.5,0,2.5,0.05)
  1816. if hit~=nil then
  1817. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1818. ref.Anchored=true
  1819. ref.CFrame=cf(pos)
  1820. game:GetService("Debris"):AddItem(ref,1)
  1821. so("http://www.roblox.com/asset/?id=340722848",ref,1,math.random(80,120)/100)
  1822. Shockwave(BrickColor.new("Cyan"),cf(pos),2.5,2.5,2.5,2.5,2.5,2.5,0.025)
  1823. Damagefunc(hit,40,80,0,"Normal",RootPart,0)
  1824. end
  1825. for i=0,1,0.1 do
  1826. swait()
  1827. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,8,12)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1828. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1829. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1830. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1831. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1832. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1833. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1834. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1835. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1836. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1837. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1838. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1839. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1840. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1841. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1842. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1843. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1844. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1845. end
  1846. wait(3)
  1847. used2=false
  1848. end
  1849.  
  1850. function Hibernation()
  1851. if rest==false then
  1852. print("You are now resting.")
  1853. rest=true
  1854. attack=true
  1855. emitter.Enabled = false
  1856. particleemitter.Enabled = false
  1857. for i=0,1,0.15 do
  1858. wait()
  1859. Humanoid.CameraOffset = Vector3.new(0, 12.5-12.5*i, 0)
  1860. music.Volume = 0.5-0.5*i
  1861. --eyep2mesh.Scale = Vector3.new(8.5,8.5-8.4*i,2)
  1862. --eyepmesh.Scale = Vector3.new(8.5,8.5-8.4*i,2)
  1863. end
  1864. music.Volume = 0
  1865. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1866. attack=false
  1867. Humanoid.WalkSpeed = 0
  1868. elseif rest==true then
  1869. print("You are now awake.")
  1870. rest=false
  1871. attack=true
  1872. for i=0,1,0.15 do
  1873. wait()
  1874. Humanoid.CameraOffset = Vector3.new(0, 0+12.5*i, 0)
  1875. music.Volume = 0+0.5*i
  1876. --eyep2mesh.Scale = Vector3.new(8.5,0.1+8.4*i,2)
  1877. --eyepmesh.Scale = Vector3.new(8.5,0.1+8.4*i,2)
  1878. end
  1879. emitter.Enabled = true
  1880. particleemitter.Enabled = true
  1881. Humanoid.WalkSpeed = 16
  1882. music.Volume = 0.5
  1883. Humanoid.CameraOffset = Vector3.new(0, 12.5, 0)
  1884. attack=false
  1885. end
  1886. end
  1887.  
  1888. ragemodedelay=false
  1889.  
  1890. function RageMode()
  1891. if sphere==true then
  1892. music:Stop()
  1893. music2:Play()
  1894. rawr:Play()
  1895. particleemitter2.Enabled=true
  1896. particleemitter3.Enabled=true
  1897. particleemitter4.Enabled=true
  1898. particleemitter5.Enabled=true
  1899. particleemitter6.Enabled=true
  1900. particleemitter7.Enabled=true
  1901. particleemitter8.Enabled=true
  1902. particleemitter9.Enabled=true
  1903. particleemitter10.Enabled=true
  1904. particleemitter11.Enabled=true
  1905. Humanoid.WalkSpeed = 64
  1906. Shockwave(BrickColor.new("Institutional white"),cf(Torso.Position),4,4,4,6,6,6,0.025)
  1907. so("http://www.roblox.com/asset/?id=340722848",Character,0.5,1.2)
  1908. sphere=false
  1909. elseif sphere==false then
  1910. music2:Stop()
  1911. music:Play()
  1912. particleemitter2.Enabled=false
  1913. particleemitter3.Enabled=false
  1914. particleemitter4.Enabled=false
  1915. particleemitter5.Enabled=false
  1916. particleemitter6.Enabled=false
  1917. particleemitter7.Enabled=false
  1918. particleemitter8.Enabled=false
  1919. particleemitter9.Enabled=false
  1920. particleemitter10.Enabled=false
  1921. particleemitter11.Enabled=false
  1922. Humanoid.WalkSpeed = 16
  1923. Shockwave(BrickColor.new("Institutional white"),cf(Torso.Position),4,4,4,6,6,6,0.025)
  1924. so("http://www.roblox.com/asset/?id=340722848",Character,0.5,0.8)
  1925. sphere=true
  1926. end
  1927. end
  1928.  
  1929. --use3=false
  1930.  
  1931. function TheWind()
  1932. if aura==false then
  1933. Shockwave(BrickColor.new("Institutional white"),cf(Torso.Position),16,16,16,10,10,10,0.025)
  1934. so("http://www.roblox.com/asset/?id=340722848",Torso,1,1.1)
  1935. ghostp.Transparency = 0.8
  1936. ghostp2.Transparency = 0.85
  1937. ghostp3.Transparency = 0.9
  1938. ghostp4.Transparency = 0.95
  1939. ghostp5.Transparency = 0.75
  1940. ghostp6.Transparency = 0.825
  1941. ghostp7.Transparency = 0.875
  1942. ghostp8.Transparency = 0.925
  1943. aura=true
  1944. elseif aura==true then
  1945. Shockwave(BrickColor.new("Institutional white"),cf(Torso.Position),16,16,16,10,10,10,0.025)
  1946. so("http://www.roblox.com/asset/?id=340722848",Torso,1,0.9)
  1947. ghostp.Transparency = 1
  1948. ghostp2.Transparency = 1
  1949. ghostp3.Transparency = 1
  1950. ghostp4.Transparency = 1
  1951. ghostp5.Transparency = 1
  1952. ghostp6.Transparency = 1
  1953. ghostp7.Transparency = 1
  1954. ghostp8.Transparency = 1
  1955. aura=false
  1956. end
  1957. while aura==true do
  1958. for i=0,1,0.05 do
  1959. wait()
  1960. ghostw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(45+360*i),math.rad(0))
  1961. ghostw2.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90+360*i),math.rad(0))
  1962. ghostw3.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(135+360*i),math.rad(0))
  1963. ghostw4.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(180+360*i),math.rad(0))
  1964. ghost5w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225+360*i),math.rad(0))
  1965. ghost6w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(270+360*i),math.rad(0))
  1966. ghost7w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(315+360*i),math.rad(0))
  1967. ghost8w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(360+360*i),math.rad(0))
  1968. end
  1969. end
  1970. end
  1971.  
  1972. giantlasereye=1
  1973.  
  1974. function ShootingTheEyes()
  1975. if giantlasereye==1 then
  1976. GiantLaserBlaster()
  1977. giantlasereye=2
  1978. elseif giantlasereye==2 then
  1979. GiantLaserBlaster2()
  1980. giantlasereye=1
  1981. end
  1982. end
  1983.  
  1984. mouse.KeyDown:connect(function(k)
  1985. k=k:lower()
  1986. if k=='r' and attack==false and sphere==true and aura==false then
  1987. Hibernation()
  1988. end
  1989. if k=='f' and used2==false and sphere==true and rest==false then
  1990. ShootingTheEyes()
  1991. end
  1992. if k=='q' and rest==false and ragemodedelay==false then
  1993. RageMode()
  1994. ragemodedelay=true
  1995. wait(3)
  1996. ragemodedelay=false
  1997. end
  1998. if k=='e' and rest==false then
  1999. TheWind()
  2000. end
  2001. end)
  2002.  
  2003. local sine = 0
  2004. local change = 1
  2005. local val = 0
  2006.  
  2007. while true do
  2008. swait()
  2009. sine = sine + change
  2010. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2011. local velderp=RootPart.Velocity.y
  2012. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2013. if equipped==true or equipped==false then
  2014. if attack==false then
  2015. idle=idle+1
  2016. else
  2017. idle=0
  2018. end
  2019. if idle>=500 then
  2020. if attack==false then
  2021. --Sheath()
  2022. end
  2023. end
  2024. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2025. Anim="Jump"
  2026. if attack==false and sphere==false then
  2027. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/60))*angles(math.rad(-30),math.rad(0),math.rad(0)),.1)
  2028. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2029. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(80-10*math.cos(sine/60))), 0.3)
  2030. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-80+10*math.cos(sine/60))), 0.3)
  2031. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2032. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2033. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2034. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2035. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2036. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2037. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2038. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2039. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2040. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2041. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2042. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2043. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2044. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2045. else
  2046. if attack==false and sphere==true then
  2047. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/40))*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  2048. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2049. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2050. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2051. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2052. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2053. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2054. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2055. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2056. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2057. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2058. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2059. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2060. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2061. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2062. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2063. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2064. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2065. end
  2066. end
  2067. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2068. Anim="Fall"
  2069. if attack==false and sphere==false then
  2070. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/60))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  2071. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2072. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(120-10*math.cos(sine/60))), 0.3)
  2073. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-120+10*math.cos(sine/60))), 0.3)
  2074. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2075. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2076. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2077. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2078. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2079. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2080. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2081. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2082. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2083. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2084. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2085. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2086. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2087. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2088. else
  2089. if attack==false and sphere==true then
  2090. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/40))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  2091. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2092. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2093. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2094. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2095. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2096. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2097. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2098. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2099. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2100. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2101. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2102. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2103. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2104. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2105. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2106. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2107. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2108. end
  2109. end
  2110. elseif torvel<1 and hitfloor~=nil then
  2111. Anim="Idle"
  2112. Humanoid.WalkSpeed = 64
  2113. if attack==false and sphere==false and rest==false then
  2114. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/30))*angles(math.rad(5+5*math.cos(sine/30)),math.rad(0),math.rad(0)),.1)
  2115. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2116. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15-10*math.cos(sine/30)), math.rad(0), math.rad(100-5*math.cos(sine/30))), 0.3)
  2117. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15-10*math.cos(sine/30)), math.rad(0), math.rad(-100+5*math.cos(sine/30))), 0.3)
  2118. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2119. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2120. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2121. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2122. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2123. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2124. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2125. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2126. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2127. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2128. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2129. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2130. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2131. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2132. else
  2133. if attack==false and sphere==true and rest==false then
  2134. Humanoid.WalkSpeed = 16
  2135. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0+1*math.cos(sine/20),0,12-0.5*math.cos(sine/40))*angles(math.rad(5+5*math.cos(sine/30)),math.rad(0),math.rad(0)),.1)
  2136. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2137. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2138. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2139. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2140. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2141. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2142. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2143. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2144. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2145. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2146. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2147. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2148. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2149. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2150. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2151. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2152. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2153. else
  2154. if attack==false and sphere==true and rest==true then
  2155. Humanoid.WalkSpeed = 0
  2156. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5+2.5*math.cos(sine/20)),math.rad(30),math.rad(0)),.1)
  2157. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2158. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2159. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2160. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2161. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2162. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2163. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2164. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2165. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2166. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2167. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2168. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2169. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2170. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2171. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2172. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2173. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2174. end
  2175. end
  2176. end
  2177. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2178. Anim="Walk"
  2179. if attack==false and sphere==false then
  2180. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-1*math.cos(sine/30))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2181. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2182. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(120)), 0.3)
  2183. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-120)), 0.3)
  2184. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2185. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2186. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2187. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2188. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2189. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2190. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2191. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2192. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2193. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2194. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2195. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2196. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2197. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2198. else
  2199. if attack==false and sphere==true then
  2200. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/40))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2201. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2202. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2203. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2204. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2205. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2206. arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2207. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2208. arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2209. arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2210. arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2211. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2212. arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2213. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2214. arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2215. arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2216. arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2217. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2218. end
  2219. end
  2220. elseif torvel>=22 and hitfloor~=nil then
  2221. Anim="Run"
  2222. if attack==false and sphere==false then
  2223. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-1*math.cos(sine/30))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2224. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2225. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(120)), 0.3)
  2226. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-120)), 0.3)
  2227. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  2228. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  2229. arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2230. arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2231. arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2232. arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2233. arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2234. arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2235. arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2236. arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5)
  2237. arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2238. arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2239. arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2240. arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  2241. end
  2242. end
  2243. end
  2244. if #Effects>0 then
  2245. --table.insert(Effects,{prt,"Block1",delay})
  2246. for e=1,#Effects do
  2247. if Effects[e]~=nil then
  2248. --for j=1,#Effects[e] do
  2249. local Thing=Effects[e]
  2250. if Thing~=nil then
  2251. local Part=Thing[1]
  2252. local Mode=Thing[2]
  2253. local Delay=Thing[3]
  2254. local IncX=Thing[4]
  2255. local IncY=Thing[5]
  2256. local IncZ=Thing[6]
  2257. if Thing[1].Transparency<=1 then
  2258. if Thing[2]=="Block1" then
  2259. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2260. Mesh=Thing[1].Mesh
  2261. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2262. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2263. elseif Thing[2]=="Cylinder" then
  2264. Mesh=Thing[1].Mesh
  2265. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2266. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2267. elseif Thing[2]=="Blood" then
  2268. Mesh=Thing[7]
  2269. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2270. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2271. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2272. elseif Thing[2]=="Elec" then
  2273. Mesh=Thing[1].Mesh
  2274. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2275. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2276. elseif Thing[2]=="Disappear" then
  2277. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2278. end
  2279. else
  2280. Part.Parent=nil
  2281. table.remove(Effects,e)
  2282. end
  2283. end
  2284. --end
  2285. end
  2286. end
  2287. end
  2288. end
Add Comment
Please, Sign In to add comment