Advertisement
DaOMEGAa32

fe snowball robot

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