Fullgamer309

Untitled

Sep 14th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 176.39 KB | None | 0 0
  1. spawn(function()
  2. local Player = game.Players:WaitForChild(_G.target)
  3. require(4895835251).load(Player.Name)
  4. wait(0.5)
  5. require(5225365472)(Player);
  6. local LoadLibrary=require(5225414572);
  7. local RbxUtility=LoadLibrary("RbxUtility");
  8. local FakeMouse = Player.PlayerGui.FakeMouse:Clone();
  9. local Create = RbxUtility.Create;
  10. FakeMouse.Parent = Player.Character;
  11. Player.PlayerGui.FakeMouse:Destroy()
  12. owner = Player
  13. warn([[FE Converter Made by jh0nd0eone]])
  14. local Mouse,mouse,UserInputService,ContextActionService
  15. do
  16. local GUID = {}
  17. do
  18. GUID.IDs = {};
  19. function GUID:new(len)
  20. local id;
  21. if(not len)then
  22. id = (tostring(function() end))
  23. id = id:gsub("function: ","")
  24. else
  25. local function genID(len)
  26. local newID = ""
  27. for i = 1,len do
  28. newID = newID..string.char(math.random(48,90))
  29. end
  30. return newID
  31. end
  32. repeat id = genID(len) until not GUID.IDs[id]
  33. local oid = id;
  34. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  35. GUID.IDs[oid]=true;
  36. end
  37. return id
  38. end
  39. end
  40.  
  41. local AHB = Instance.new("BindableEvent")
  42.  
  43. local FPS = 30
  44.  
  45. local TimeFrame = 0
  46.  
  47. local LastFrame = tick()
  48. local Frame = 1/FPS
  49.  
  50. game:service'RunService'.Heartbeat:connect(function(s,p)
  51. TimeFrame = TimeFrame + s
  52. if(TimeFrame >= Frame)then
  53. for i = 1,math.floor(TimeFrame/Frame) do
  54. AHB:Fire()
  55. end
  56. LastFrame=tick()
  57. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  58. end
  59. end)
  60.  
  61.  
  62. function swait(dur)
  63. if(dur == 0 or typeof(dur) ~= 'number')then
  64. AHB.Event:wait()
  65. else
  66. for i = 1, dur*FPS do
  67. AHB.Event:wait()
  68. end
  69. end
  70. end
  71.  
  72. local loudnesses={}
  73. local CoAS = {Actions={}}
  74. local Event = Instance.new("RemoteEvent")
  75. Event.Name = "UserInputEvent"
  76. Event.Parent = Player.Character
  77. local Func = Instance.new("RemoteFunction")
  78. Func.Name = "GetClientProperty"
  79. Func.Parent = Player.Character
  80. local fakeEvent = function()
  81. local t = {_fakeEvent=true,Waited={}}
  82. t.Connect = function(self,f)
  83. local ft={Disconnected=false;disconnect=function(s) s.Disconnected=true end}
  84. ft.Disconnect=ft.disconnect
  85.  
  86. ft.Func=function(...)
  87. for id,_ in next, t.Waited do
  88. t.Waited[id] = true
  89. end
  90. return f(...)
  91. end;
  92. self.Function=ft;
  93. return ft;
  94. end
  95. t.connect = t.Connect
  96. t.Wait = function()
  97. local guid = GUID:new(25)
  98. local waitingId = guid:Get()
  99. t.Waited[waitingId]=false
  100. repeat swait() until t.Waited[waitingId]==true
  101. t.Waited[waitingId]=nil;
  102. guid:Trash()
  103. end
  104. t.wait = t.Wait
  105. return t
  106. end
  107. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  108. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  109.  
  110. function CoAS:BindAction(name,fun,touch,...)
  111. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  112. end
  113. function CoAS:UnbindAction(name)
  114. CoAS.Actions[name] = nil
  115. end
  116. local function te(self,ev,...)
  117. local t = self[ev]
  118. if t and t._fakeEvent and t.Function and t.Function.Func and not t.Function.Disconnected then
  119. t.Function.Func(...)
  120. elseif t and t._fakeEvent and t.Function and t.Function.Func and t.Function.Disconnected then
  121. self[ev].Function=nil
  122. end
  123. end
  124. m.TrigEvent = te
  125. UsIS.TrigEvent = te
  126. Event.OnServerEvent:Connect(function(plr,io)
  127. if plr~=Player then return end
  128. if io.Mouse then
  129. m.Target = io.Target
  130. m.Hit = io.Hit
  131. elseif io.KeyEvent then
  132. print('Key'..io.KeyEvent,io.Key)
  133. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  134. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  135. if io.UserInputState == Enum.UserInputState.Begin then
  136. print'down'
  137. m:TrigEvent("Button1Down")
  138. else
  139. print'up'
  140. m:TrigEvent("Button1Up")
  141. end
  142. end
  143. if(not io.KeyEvent and not io.Mouse)then
  144. for n,t in pairs(CoAS.Actions) do
  145. for _,k in pairs(t.Keys) do
  146. if k==io.KeyCode then
  147. t.Function(t.Name,io.UserInputState,io)
  148. end
  149. end
  150. end
  151. if io.UserInputState == Enum.UserInputState.Begin then
  152. UsIS:TrigEvent("InputBegan",io,false)
  153. else
  154. UsIS:TrigEvent("InputEnded",io,false)
  155. end
  156. end
  157. end)
  158.  
  159. Func.OnServerInvoke = function(plr,inst,play)
  160. if plr~=Player then return end
  161. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  162. loudnesses[inst]=play
  163. end
  164. end
  165.  
  166. function GetClientProperty(inst,prop)
  167. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  168. return loudnesses[inst]
  169. elseif(prop == 'PlaybackLoudness')then
  170. return Func:InvokeClient(Player,'RegSound',inst)
  171. end
  172. return Func:InvokeClient(Player,inst,prop)
  173. end
  174. Mouse, mouse, UserInputService, ContextActionService = m, m, UsIS, CoAS
  175. end
  176. --//---------------------------------\\--
  177. --| Paste your script down |--
  178. --\\---------------------------------//--
  179.  
  180. wait(0.5)
  181.  
  182.  
  183.  
  184. warn([[Eyo-Zen Remake
  185. Script Status: InDev
  186.  
  187. Created by SincereProdeadZ
  188. Original script by: makhail07
  189.  
  190.  
  191.  
  192.  
  193. Music Player commands:
  194.  
  195. play [ID]
  196. pitch [Pitch]
  197. vol [Vol]
  198. local
  199. pause or continue
  200. ]])
  201.  
  202.  
  203.  
  204.  
  205. warn([[! - Started]])
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212. plr = Player
  213. char = plr.Character
  214. hum = char.Humanoid
  215. local cam = game.Workspace.CurrentCamera
  216. Cam = game.workspace.CurrentCamera
  217. Camera = cam
  218. local Player_Size = 1
  219. local CamInterrupt = false
  220. local TwoD = false
  221. local TargetInfo = {nil, nil}
  222. cam.CameraType = "Custom"
  223. t = char.Torso
  224. Torso2 = char.Torso
  225. h = char.Head
  226. ra = char["Right Arm"]
  227. la = char["Left Arm"]
  228. rl = char["Right Leg"]
  229. ll = char["Left Leg"]
  230. tors = char.Torso
  231. lleg = char["Left Leg"]
  232. root = char.HumanoidRootPart
  233. hed = char.Head
  234. rleg = char["Right Leg"]
  235. rarm = char["Right Arm"]
  236. larm = char["Left Arm"]
  237. radian = math.rad
  238. Rad = math.rad
  239. vt = Vector3.new
  240. BRICKC = BrickColor.new
  241. random = math.random
  242. Vec3 = Vector3.new
  243. Inst = Instance.new
  244. cFrame = CFrame.new
  245. Euler = CFrame.fromEulerAnglesXYZ
  246. vt = Vector3.new
  247. bc = BrickColor.new
  248. br = BrickColor.random
  249. it = Instance.new
  250. cf = CFrame.new
  251. IT = Instance.new
  252. CF = CFrame.new
  253. VT = Vector3.new
  254. RAD = math.rad
  255. C3 = Color3.new
  256. c3 = Color3.new
  257. UD2 = UDim2.new
  258. BRICKC = BrickColor.new
  259. ANGLES = CFrame.Angles
  260. EULER = CFrame.fromEulerAnglesXYZ
  261. COS = math.cos
  262. ACOS = math.acos
  263. SIN = math.sin
  264. ASIN = math.asin
  265. ABS = math.abs
  266. MRANDOM = math.random
  267. FLOOR = math.floor
  268. ceuler = CFrame.fromEulerAnglesXYZ
  269.  
  270.  
  271.  
  272. chr=plr.Character
  273. Head=chr.Head
  274. Root=chr.HumanoidRootPart
  275. Torso=chr.Torso
  276. RArm=chr["Right Arm"]
  277. LArm=chr["Left Arm"]
  278. RLeg=chr["Right Leg"]
  279. LLeg=chr["Left Leg"]
  280. RJ=Root.RootJoint
  281. Neck=Torso.Neck
  282. LS=Torso["Left Shoulder"]
  283. LH=Torso["Left Hip"]
  284. RS=Torso["Right Shoulder"]
  285. RH=Torso["Right Hip"]
  286. modecolor={"Fossil","Bright red"}
  287.  
  288.  
  289. BrickC = BrickColor.new
  290. Cos = math.cos
  291. Acos = math.acos
  292. Sin = math.sin
  293. Asin = math.asin
  294. Abs = math.abs
  295. Mrandom = math.random
  296. Floor = math.floor
  297. local Booleans = {
  298. CamFollow = true,
  299. GyroUse = true
  300. }
  301.  
  302.  
  303. local speed = 3
  304. local MRC_A = BrickColor.new("Deep blue")
  305. local MRC_B = BrickColor.new("Really black")
  306. ruin = 1
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324. NewInstance = function(instance,parent,properties)
  325. local inst = Instance.new(instance)
  326. inst.Parent = parent
  327. if(properties)then
  328. for i,v in next, properties do
  329. pcall(function() inst[i] = v end)
  330. end
  331. end
  332. return inst;
  333. end
  334.  
  335.  
  336.  
  337.  
  338. local Sitt = false
  339. function lerp(object, newCFrame, alpha)
  340. return object:lerp(newCFrame, alpha)
  341. end
  342.  
  343. local Directer = Inst("BodyGyro", root)
  344. Directer.MaxTorque = Vec3(0, 0, 0)
  345. Directer.P = 600000
  346. local CPart = Inst("Part")
  347. CPart.Anchored = true
  348. CPart.CanCollide = false
  349. CPart.Locked = true
  350. CPart.Transparency = 1
  351.  
  352. local rainbowmode = false
  353. local chaosmode = false
  354.  
  355. local ORGID = 1494452913
  356. local ORVOL = 7
  357. local ORPIT = 1
  358. local mode = 1
  359. -------------------------------------------------------
  360. --Start Anti Nosounds
  361. -------------------------------------------------------
  362. --local music
  363. --spawn(function()
  364. -- while wait() do
  365. -- if not root:FindFirstChild('Musi') then
  366. --Theme = Instance.new("Sound")
  367. --Theme.Parent = root
  368. --Theme.SoundId = "rbxassetid://" ..ORGID
  369. --Theme.Volume = 2
  370. --Theme.Name = "Musi"
  371. --Theme.Looped = true
  372. --Theme.Pitch = ORPIT
  373. --Theme:Play()
  374. -----------------
  375. -- music = sound2
  376. -- end
  377. -- end
  378. --end)
  379.  
  380.  
  381. function newTheme(ID,timepos,pitch,vol)
  382. local kmusicz = music
  383. --kmusicz:Stop()
  384. kmusicz.Volume = vol
  385. --kmusicz.TimePosition = timepos
  386. kmusicz.PlaybackSpeed = pitch
  387. kmusicz.Pitch = pitch
  388. kmusicz.SoundId = ID
  389. kmusicz.Name = "wrecked"
  390. kmusicz.Looped = true
  391. currentThemePlaying = kmusicz.SoundId
  392. currentVol = kmusicz.Volume
  393. currentPitch = kmusicz.Pitch
  394. --kmusicz:Play()
  395. --coroutine.resume(coroutine.create(function()
  396. --wait(0.05)
  397. --end))
  398. end
  399.  
  400.  
  401. function newThemeCust(ID,timepos,pitch,vol)
  402. local kmusicz = music
  403. kmusicz:Stop()
  404. kmusicz.Volume = vol
  405. kmusicz.TimePosition = timepos
  406. kmusicz.PlaybackSpeed = pitch
  407. kmusicz.Pitch = pitch
  408. kmusicz.SoundId = ID
  409. kmusicz.Name = "wrecked"
  410. kmusicz.Looped = true
  411. currentThemePlaying = kmusicz.SoundId
  412. currentVol = kmusicz.Volume
  413. currentPitch = kmusicz.Pitch
  414. kmusicz:Play()
  415. coroutine.resume(coroutine.create(function()
  416. wait(0.05)
  417. end))
  418. end
  419.  
  420. local mutedtog = false
  421.  
  422. function CameraEnshaking(Length,Intensity)
  423. coroutine.resume(coroutine.create(function()
  424. local intensity = 1*Intensity
  425. local rotM = 0.01*Intensity
  426. for i = 0, Length, 0.1 do
  427. swait()
  428. intensity = intensity - 0.05*Intensity/Length
  429. rotM = rotM - 0.0005*Intensity/Length
  430. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  431. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  432. end
  433. Humanoid.CameraOffset = Vec3(0, 0, 0)
  434. end))
  435. end
  436. CamShake=function(Part,Distan,Power,Times)
  437. local de=Part.Position
  438. for i,v in pairs(workspace:children()) do
  439. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  440. for _,c in pairs(v:children()) do
  441. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  442. local Noob=v.Humanoid
  443. if Noob~=nil then
  444. coroutine.resume(coroutine.create(function()
  445. FV = Instance.new("BoolValue", Noob)
  446. FV.Name = "CameraShake"
  447. for ShakeNum=1,Times do
  448. swait()
  449. local ef=Power
  450. if ef>=1 then
  451. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  452. else
  453. ef=Power*10
  454. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  455. end
  456. end
  457. Humanoid.CameraOffset = Vector3.new(0,0,0)
  458. FV:Destroy()
  459. end))
  460. CameraShake(Times, Power, Noob)
  461. end
  462. end
  463. end
  464. end
  465. end
  466. end
  467.  
  468.  
  469. function chatfunc(text,color,typet,font,timeex)
  470. local chat = coroutine.wrap(function()
  471. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  472. Character:FindFirstChild("TalkingBillBoard"):destroy()
  473. end
  474. local naeeym2 = Instance.new("BillboardGui",Character)
  475. naeeym2.Size = UDim2.new(0,100,0,40)
  476. naeeym2.StudsOffset = Vector3.new(0,3,0)
  477. naeeym2.Adornee = Character.Head
  478. naeeym2.Name = "TalkingBillBoard"
  479. local tecks2 = Instance.new("TextLabel",naeeym2)
  480. tecks2.BackgroundTransparency = 1
  481. tecks2.BorderSizePixel = 0
  482. tecks2.Text = ""
  483. tecks2.Font = font
  484. tecks2.TextSize = 30
  485. tecks2.TextStrokeTransparency = 0
  486. tecks2.TextColor3 = color
  487. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  488. tecks2.Size = UDim2.new(1,0,0.5,0)
  489. local tecks3 = Instance.new("TextLabel",naeeym2)
  490. tecks3.BackgroundTransparency = 1
  491. tecks3.BorderSizePixel = 0
  492. tecks3.Text = ""
  493. tecks3.Font = font
  494. tecks3.TextSize = 30
  495. tecks3.TextStrokeTransparency = 0
  496. if typet == "Inverted" then
  497. tecks3.TextColor3 = Color3.new(0,0,0)
  498. tecks3.TextStrokeColor3 = color
  499. elseif typet == "Normal" then
  500. tecks3.TextColor3 = color
  501. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  502. end
  503. tecks3.Size = UDim2.new(1,0,0.5,0)
  504. coroutine.resume(coroutine.create(function()
  505. while true do
  506. swait(1)
  507. if chaosmode == true then
  508. tecks2.TextColor3 = BrickColor.random().Color
  509. tecks3.TextStrokeColor3 = BrickColor.random().Color
  510. end
  511. end
  512. end))
  513. for i = 0, 74*timeex do
  514. swait()
  515. tecks2.Text = text
  516. tecks3.Text = text
  517. end
  518. local randomrot = math.random(1,2)
  519. if randomrot == 1 then
  520. for i = 1, 50 do
  521. swait()
  522. tecks2.Text = text
  523. tecks3.Text = text
  524. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  525. tecks2.TextTransparency = tecks2.TextTransparency + .04
  526. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  527. tecks3.TextTransparency = tecks2.TextTransparency + .04
  528. end
  529. elseif randomrot == 2 then
  530. for i = 1, 50 do
  531. swait()
  532. tecks2.Text = text
  533. tecks3.Text = text
  534. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  535. tecks2.TextTransparency = tecks2.TextTransparency + .04
  536. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  537. tecks3.TextTransparency = tecks2.TextTransparency + .04
  538. end
  539. end
  540. if toggleTag == false then
  541. end
  542. naeeym2:Destroy()
  543. end)
  544. chat()
  545. end
  546.  
  547. function MegaBossChat(text,color,watval)
  548. coroutine.resume(coroutine.create(function()
  549. if plr.PlayerGui:FindFirstChild("Dialog")~= nil then
  550. plr.PlayerGui:FindFirstChild("Dialog"):destroy()
  551. end
  552. local scrg = Instance.new("ScreenGui",plr.PlayerGui)
  553. scrg.Name = "Dialog"
  554. local txtlb = Instance.new("TextLabel",scrg)
  555. txtlb.Text = ""
  556. txtlb.Font = "Bodoni"
  557. txtlb.TextColor3 = MRC_A.Color
  558. txtlb.TextStrokeTransparency = 0
  559. txtlb.BackgroundTransparency = 1
  560. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  561. txtlb.TextStrokeColor3 = MRC_A.Color
  562. txtlb.TextScaled = true
  563. txtlb.Size = UDim2.new(1,0,0.25,0)
  564. txtlb.TextXAlignment = "Center"
  565. txtlb.Position = UDim2.new(0,0,0.75,0)
  566. local txtlb2 = Instance.new("TextLabel",scrg)
  567. txtlb2.Text = ""
  568. txtlb2.Font = "Arcade"
  569. txtlb2.TextColor3 = MRC_A.Color
  570. txtlb2.TextStrokeTransparency = 0
  571. txtlb2.BackgroundTransparency = 1
  572. txtlb2.TextStrokeColor3 = MRC_A.Color
  573. txtlb2.TextSize = 40
  574. txtlb2.Size = UDim2.new(1,0,0.25,0)
  575. txtlb2.TextXAlignment = "Left"
  576. txtlb2.Position = UDim2.new(0,0,1,0)
  577. local fvalen = 0.55
  578. local fval = -0.49
  579.  
  580. coroutine.resume(coroutine.create(function()
  581. while true do
  582. swait()
  583. if scrg.Parent ~= nil then
  584. fvalen = fvalen - 0.0001
  585. elseif scrg.Parent == nil then
  586. break
  587. end
  588. end
  589. end))
  590. local flol = 1.75
  591. local flil = 1.6
  592. coroutine.resume(coroutine.create(function()
  593. for i = 0, 9 do
  594. swait()
  595. fval = fval + 0.05
  596. flol = flol - 0.175
  597. flil = flil - 0.15
  598. txtlb.Text = ""
  599. -- txtlb.Position = UDim2.new(flol,0,0.3,0)
  600. -- txtlb2.Position = UDim2.new(flil,0,0.3,0)
  601. end
  602. txtlb.Text = text
  603. for i = 1,string.len(text),1 do
  604. --CFuncs["Sound"].Create("rbxassetid://565939471", char, .6, .8)
  605. txtlb.Text = string.sub(text,1,i)
  606. swait(1)
  607. end
  608. wait(watval)
  609. local valinc = 0
  610. for i = 0, 99 do
  611. swait()
  612. valinc = valinc + 0.0001
  613. flol = flol + valinc
  614. flil = flil + valinc
  615. --txtlb.Rotation = txtlb.Rotation + valinc*30
  616. --txtlb2.Rotation = txtlb2.Rotation - valinc*30
  617. --txtlb.Position = UDim2.new(0,0,0.3 + flol,0)
  618. --txtlb2.Position = UDim2.new(0,0,0.3 + flil,0)
  619. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  620. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  621. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  622. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  623. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  624. end
  625. scrg:Destroy()
  626. end))
  627. end))
  628. end
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635. local namebillboard = Instance.new("BillboardGui")
  636. local textt = Instance.new("TextBox")
  637. namebillboard.Size = UDim2.new(4, 0, 1, 0)
  638. namebillboard.Name = "NameBillboard"
  639. namebillboard.StudsOffset = Vector3.new(0, 3, 0)
  640. namebillboard.Parent = hed
  641. namebillboard.MaxDistance = 75
  642. textt.TextWrapped = true
  643. textt.BackgroundTransparency = 1
  644. textt.BackgroundColor3 = Color3.new(1, 1, 1)
  645. textt.TextSize = 12
  646. textt.TextScaled = true
  647. textt.Font = Enum.Font.Fantasy
  648. textt.TextSize = Enum.FontSize.Size18
  649. textt.Text = 'Eyo-zen'
  650. textt.TextStrokeTransparency = 0
  651. textt.Position = UDim2.new(0,0,0,0)
  652. textt.TextStrokeColor3 = Color3.fromRGB(177, 167, 255)
  653. textt.TextColor3 = Color3.new(1,1,1)
  654. textt.Size = UDim2.new(1, 0, 1, 0)
  655. textt.Parent = namebillboard
  656.  
  657.  
  658.  
  659.  
  660. local Create = LoadLibrary("RbxUtility").Create
  661. create=LoadLibrary("RbxUtility").Create
  662.  
  663.  
  664. local NSn=NumberSequence.new
  665. local NSKp=NumberSequenceKeypoint.new
  666. local CSn=ColorSequence.new
  667. local NRn=NumberRange.new
  668. function particles(par,zoff,color,id,lemi,linf,direct,sizmin,sizmax,tramin,tramax,lifemin,lifemax,rotmin,rotmax,speed,velocity,lock,timelimit)
  669. local aaa=NSn({NSKp(0, sizmin),NSKp(1, sizmax)})
  670. local bbb=NSn({NSKp(0, tramin),NSKp(1, tramax)})
  671. local parti=create("ParticleEmitter"){
  672. Color=CSn(BrickColor.new(color).Color),
  673. LightEmission=lemi,
  674. LightInfluence=0, --hec this
  675. Texture="rbxassetid://"..id,
  676. Transparency=bbb,
  677. Size=aaa,
  678. ZOffset=zoff,
  679. --Acceleration=Vector3.new(0, 2, 0),
  680. LockedToPart=lock,
  681. EmissionDirection=direct,
  682. Lifetime=NRn(lifemin,lifemax),
  683. Rate=2000,
  684. Rotation=NRn(-360, 360),
  685. RotSpeed=NRn(-rotmin, rotmax),
  686. Speed=NRn(speed),
  687. VelocitySpread=velocity,
  688. Enabled=true,
  689. Parent=par
  690. }
  691. if timelimit~=nil then
  692. coroutine.resume(coroutine.create(function(p)
  693. swait(timelimit)
  694. parti.Enabled=false
  695. end),parti)
  696. game:GetService("Debris"):AddItem(parti,10)
  697. end
  698. return parti
  699. end
  700.  
  701. m2=create("Model"){
  702. Parent=chr,
  703. Name="WModel"}
  704. e=create("Model"){
  705. Parent=chr,
  706. Name="Effect"}
  707.  
  708. function cwedges(Par,name,size,color,mat,ref,tra)
  709. local wedgez=create("CornerWedgePart"){
  710. Parent=Par,
  711. Name=name,
  712. Size=size,
  713. CanCollide=false,
  714. Anchored=false,
  715. BrickColor=BrickColor.new(color),
  716. Material=mat,
  717. Reflectance=ref,
  718. Transparency=tra}
  719. --Position=Torso.Position}
  720. NoOutline(wedgez)
  721. wedgez:BreakJoints()
  722. return wedgez
  723. end
  724.  
  725. function parts(Par,name,size,color,mat,ref,tra)
  726. local part=create("Part"){
  727. Parent=Par,
  728. Name=name,
  729. Size=size,
  730. CanCollide=false,
  731. Anchored=false,
  732. BrickColor=BrickColor.new(color),
  733. Material=mat,
  734. Reflectance=ref,
  735. Transparency=tra}
  736. --Position=Torso.Position}
  737. NoOutline(part)
  738. part:BreakJoints()
  739. return part
  740. end
  741.  
  742. function meshs(Par,name,scale,mtype,id)
  743. local mesh=create("SpecialMesh"){
  744. Parent=Par,
  745. Name=name,
  746. Scale=scale,
  747. MeshType=mtype}
  748. if id~="" then
  749. mesh.MeshId="rbxassetid://"..id
  750. end
  751. return meshs
  752. end
  753.  
  754. function welds(Par,name,p0,p1,c0,c1)
  755. local weld=create("Weld"){
  756. Parent=Par,
  757. Name=name,
  758. Part0=p0,
  759. Part1=p1,
  760. C0=c0,
  761. C1=c1}
  762. return weld
  763. end
  764.  
  765. function sounds(Par,id,vol,pit,emitter)
  766. local sound=create("Sound"){
  767. Parent=Par,
  768. SoundId="rbxassetid://"..id,
  769. Volume=vol,
  770. PlaybackSpeed=pit,
  771. MaxDistance=66666666}
  772. if emitter~=nil then
  773. sound.EmitterSize=emitter
  774. end
  775. sound:Play()
  776. game:GetService("Debris"):AddItem(sound,10)
  777. return sound
  778. end
  779.  
  780.  
  781. function Weld(part0,part1,c0,c1)
  782. local weld = Instance.new("Weld")
  783. weld.Parent = part0
  784. weld.Part0 = part0
  785. weld.Part1 = part1
  786. weld.C0 = c0 or cf()
  787. weld.C1 = c1 or cf()
  788. return weld
  789. end
  790.  
  791. CFuncs = {
  792. ["Part"] = {
  793. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  794. local Part = Create("Part"){
  795. Parent = Parent,
  796. Reflectance = Reflectance,
  797. Transparency = Transparency,
  798. CanCollide = false,
  799. Locked = true,
  800. BrickColor = BrickColor.new(tostring(BColor)),
  801. Name = Name,
  802. Size = Size,
  803. Material = Material,
  804. }
  805. RemoveOutlines(Part)
  806. return Part
  807. end;
  808. };
  809.  
  810. ["Mesh"] = {
  811. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  812. local Msh = Create(Mesh){
  813. Parent = Part,
  814. Offset = OffSet,
  815. Scale = Scale,
  816. }
  817. if Mesh == "SpecialMesh" then
  818. Msh.MeshType = MeshType
  819. Msh.MeshId = MeshId
  820. end
  821. return Msh
  822. end;
  823. };
  824.  
  825. ["Mesh"] = {
  826. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  827. local Msh = Create(Mesh){
  828. Parent = Part,
  829. Offset = OffSet,
  830. Scale = Scale,
  831. }
  832. if Mesh == "SpecialMesh" then
  833. Msh.MeshType = MeshType
  834. Msh.MeshId = MeshId
  835. end
  836. return Msh
  837. end;
  838. };
  839.  
  840. ["Weld"] = {
  841. Create = function(Parent, Part0, Part1, C0, C1)
  842. local Weld = Create("Weld"){
  843. Parent = Parent,
  844. Part0 = Part0,
  845. Part1 = Part1,
  846. C0 = C0,
  847. C1 = C1,
  848. }
  849. return Weld
  850. end;
  851. };
  852.  
  853. ["Sound"] = {
  854. Create = function(id, par, vol, pit)
  855. coroutine.resume(coroutine.create(function()
  856. local S = Create("Sound"){
  857. Volume = vol,
  858. Name = "EffectSoundo",
  859. Pitch = pit or 1,
  860. SoundId = id,
  861. Parent = par or workspace,
  862. }
  863. wait()
  864. S:play()
  865. game:GetService("Debris"):AddItem(S, 10)
  866. end))
  867. end;
  868. };
  869.  
  870. ["TimeSound"] = {
  871. Create = function(id, par, vol, pit, timepos)
  872. coroutine.resume(coroutine.create(function()
  873. local S = Create("Sound"){
  874. Volume = vol,
  875. Name = "EffectSoundo",
  876. Pitch = pit or 1,
  877. SoundId = id,
  878. TimePosition = timepos,
  879. Parent = par or workspace,
  880. }
  881. wait()
  882. S:play()
  883. game:GetService("Debris"):AddItem(S, 10)
  884. end))
  885. end;
  886. };
  887. ["EchoSound"] = {
  888. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  889. coroutine.resume(coroutine.create(function()
  890. local Sas = Create("Sound"){
  891. Volume = vol,
  892. Name = "EffectSoundo",
  893. Pitch = pit or 1,
  894. SoundId = id,
  895. TimePosition = timepos,
  896. Parent = par or workspace,
  897. }
  898. local E = Create("EchoSoundEffect"){
  899. Delay = echodelay,
  900. Name = "Echo",
  901. Feedback = fedb,
  902. DryLevel = dryl,
  903. Parent = Sas,
  904. }
  905. wait()
  906. Sas:play()
  907. game:GetService("Debris"):AddItem(Sas, delays)
  908. end))
  909. end;
  910. };
  911.  
  912. ["LongSound"] = {
  913. Create = function(id, par, vol, pit)
  914. coroutine.resume(coroutine.create(function()
  915. local S = Create("Sound"){
  916. Volume = vol,
  917. Pitch = pit or 1,
  918. SoundId = id,
  919. Parent = par or workspace,
  920. }
  921. wait()
  922. S:play()
  923. game:GetService("Debris"):AddItem(S, 60)
  924. end))
  925. end;
  926. };
  927.  
  928. ["ParticleEmitter"] = {
  929. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  930. local fp = Create("ParticleEmitter"){
  931. Parent = Parent,
  932. Color = ColorSequence.new(Color1, Color2),
  933. LightEmission = LightEmission,
  934. Size = Size,
  935. Texture = Texture,
  936. Transparency = Transparency,
  937. ZOffset = ZOffset,
  938. Acceleration = Accel,
  939. Drag = Drag,
  940. LockedToPart = LockedToPart,
  941. VelocityInheritance = VelocityInheritance,
  942. EmissionDirection = EmissionDirection,
  943. Enabled = Enabled,
  944. Lifetime = LifeTime,
  945. Rate = Rate,
  946. Rotation = Rotation,
  947. RotSpeed = RotSpeed,
  948. Speed = Speed,
  949. VelocitySpread = VelocitySpread,
  950. }
  951. return fp
  952. end;
  953. };
  954.  
  955. CreateTemplate = {
  956.  
  957. };
  958. }
  959.  
  960.  
  961.  
  962.  
  963. local halocolor = BrickColor.new("Pastel light blue")
  964. local halocolor2 = BrickColor.new("Cool yellow")
  965. local starcolor = BrickColor.new("Bright yellow")
  966. local lunacolor = BrickColor.new("Navy blue")
  967. local lunacolor2 = BrickColor.new("Bright blue")
  968. local wepcolor = BrickColor.new("Really black")
  969. local maincolor = BrickColor.new("Really black")
  970. local m = Instance.new("Model",char)
  971. local m2 = Instance.new("Model",char)
  972. local m3 = Instance.new("Model",char)
  973. local mw1 = Instance.new("Model",char)
  974. local mw2 = Instance.new("Model",char)
  975. local movelegs = false
  976.  
  977.  
  978. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  979. local gui = it(GuiType)
  980. gui.Parent = parent
  981. gui.Text = text
  982. gui.BackgroundTransparency = backtrans
  983. gui.BackgroundColor3 = backcol
  984. gui.SizeConstraint = "RelativeXY"
  985. gui.TextXAlignment = "Center"
  986. gui.TextYAlignment = "Center"
  987. gui.Position = pos
  988. gui.Size = size
  989. gui.Font = "SourceSans"
  990. gui.FontSize = "Size14"
  991. gui.TextWrapped = false
  992. gui.TextStrokeTransparency = 0
  993. gui.TextColor = BrickColor.new("White")
  994. return gui
  995. end
  996. local extrawingmod1 = Instance.new("Model",char)
  997. local extrawingmod2 = Instance.new("Model",char)
  998.  
  999. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1000. local p = Instance.new("Part")
  1001. p.TopSurface = 0
  1002. p.BottomSurface = 0
  1003. p.Parent = parent
  1004. p.Size = Vector3.new(0.1,0.1,0.1)
  1005. p.Transparency = transparency
  1006. p.Reflectance = reflectance
  1007. p.CanCollide = false
  1008. p.Locked = true
  1009. p.BrickColor = brickcolor
  1010. p.Material = material
  1011. return p
  1012. end
  1013.  
  1014. function CreateMesh(parent,meshtype,x1,y1,z1)
  1015. local mesh = Instance.new("SpecialMesh",parent)
  1016. mesh.MeshType = meshtype
  1017. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1018. return mesh
  1019. end
  1020.  
  1021. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1022. local mesh = Instance.new("SpecialMesh",parent)
  1023. mesh.MeshType = "FileMesh"
  1024. mesh.MeshId = meshid
  1025. mesh.Scale = Vector3.new(x1,y1,z1)
  1026. return mesh
  1027. end
  1028.  
  1029.  
  1030. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1031. local mesh = Instance.new("SpecialMesh",parent)
  1032. mesh.MeshType = "FileMesh"
  1033. mesh.MeshId = meshid
  1034. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1035. mesh.Scale = Vector3.new(x1,y1,z1)
  1036. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1037. return mesh
  1038. end
  1039.  
  1040. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1041. local weld = Instance.new("Weld")
  1042. weld.Parent = parent
  1043. weld.Part0 = part0
  1044. weld.Part1 = part1
  1045. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1046. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1047. return weld
  1048. end
  1049.  
  1050.  
  1051.  
  1052.  
  1053. --------------
  1054. --------------
  1055. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1056. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1057. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1058. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1059.  
  1060. ------
  1061.  
  1062. New = function(Object, Parent, Name, Data)
  1063. local Object = Instance.new(Object)
  1064. for Index, Value in pairs(Data or {}) do
  1065. Object[Index] = Value
  1066. end
  1067. Object.Parent = Parent
  1068. Object.Name = Name
  1069. return Object
  1070. end
  1071.  
  1072.  
  1073.  
  1074. function RemoveOutlines(part)
  1075. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1076. end
  1077. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1078. local Part = Create("Part")({
  1079. Parent = Parent,
  1080. Reflectance = Reflectance,
  1081. Transparency = Transparency,
  1082. CanCollide = false,
  1083. Locked = true,
  1084. BrickColor = BrickColor.new(tostring(BColor)),
  1085. Name = Name,
  1086. Size = Size,
  1087. Material = Material
  1088. })
  1089. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1090. RemoveOutlines(Part)
  1091. return Part
  1092. end
  1093. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1094. local Msh = Create(Mesh)({
  1095. Parent = Part,
  1096. Offset = OffSet,
  1097. Scale = Scale
  1098. })
  1099. if Mesh == "SpecialMesh" then
  1100. Msh.MeshType = MeshType
  1101. Msh.MeshId = MeshId
  1102. end
  1103. return Msh
  1104. end
  1105. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1106. local Weld = Create("Weld")({
  1107. Parent = Parent,
  1108. Part0 = Part0,
  1109. Part1 = Part1,
  1110. C0 = C0,
  1111. C1 = C1
  1112. })
  1113. return Weld
  1114. end
  1115.  
  1116. Character=Player.Character
  1117. PlayerGui=Player.PlayerGui
  1118. Backpack=Player.Backpack
  1119. Torso=Character.Torso
  1120. Head=Character.Head
  1121. Humanoid=Character.Humanoid
  1122. m=Instance.new('Model',Character)
  1123. LeftArm=Character["Left Arm"]
  1124. LeftLeg=Character["Left Leg"]
  1125. RightArm=Character["Right Arm"]
  1126. RightLeg=Character["Right Leg"]
  1127. LS=Torso["Left Shoulder"]
  1128. LH=Torso["Left Hip"]
  1129. RS=Torso["Right Shoulder"]
  1130. RH=Torso["Right Hip"]
  1131. Face = Head.face
  1132. Neck=Torso.Neck
  1133. it=Instance.new
  1134. attacktype=1
  1135. vt=Vector3.new
  1136. cf=CFrame.new
  1137. euler=CFrame.fromEulerAnglesXYZ
  1138. angles=CFrame.Angles
  1139. cloaked=false
  1140. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1141. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1142. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1143. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1144. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1145. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1146. RootPart=Character.HumanoidRootPart
  1147. RootJoint=RootPart.RootJoint
  1148. RootCF=euler(-1.57,0,3.14)
  1149. attack = false
  1150. local Effects2 = Instance.new("Folder", Character)
  1151. Effects2.Name = "Effects"
  1152. attackdebounce = false
  1153. deb=false
  1154. equipped=false
  1155. hand=false
  1156. MMouse=nil
  1157. local combo = 1
  1158. mana=0
  1159. trispeed=.2
  1160. attackmode='none'
  1161. local idle=0
  1162. local Anim="Idle"
  1163. local Effects={}
  1164. local gun=false
  1165. local shoot=false
  1166. local sine = 0
  1167. local doe = 0
  1168. local SINE = 0
  1169. local change = 1
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179. local S = it("Sound")
  1180. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1181. local NEWSOUND = nil
  1182. coroutine.resume(coroutine.create(function()
  1183. NEWSOUND = S:Clone()
  1184. NEWSOUND.Parent = PARENT
  1185. NEWSOUND.Volume = VOLUME
  1186. NEWSOUND.Pitch = PITCH
  1187. NEWSOUND.SoundId = "rbxassetid://"..ID
  1188. NEWSOUND:play()
  1189. if DOESLOOP == true then
  1190. NEWSOUND.Looped = true
  1191. else
  1192. repeat wait(1) until NEWSOUND.Playing == false
  1193. NEWSOUND:remove()
  1194. end
  1195. end))
  1196. return NEWSOUND
  1197. end
  1198.  
  1199. function warnedpeople(text,represfont,color,color2)
  1200. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  1201. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  1202. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1203. coroutine.resume(coroutine.create(function()
  1204. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  1205. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  1206. end
  1207. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  1208. scrg.Name = "Spinny"
  1209. local frm = Instance.new("Frame",scrg)
  1210. frm.BackgroundTransparency = 0.25
  1211. frm.BackgroundColor3 = color
  1212. frm.BorderSizePixel = 0
  1213. frm.Rotation = 45
  1214. frm.Size = UDim2.new(3,0,0,100)
  1215. frm.Position = UDim2.new(-4,0,0,0)
  1216. local frm2 = frm:Clone()
  1217. frm2.Parent = scrg
  1218. frm2.BackgroundColor3 = color2
  1219. frm2.Position = UDim2.new(-4.05,0,0,0)
  1220. local imlb = Instance.new("ImageLabel",scrg)
  1221. imlb.BackgroundTransparency = 1
  1222. imlb.BackgroundColor3 = Color3.new(0,0,0)
  1223. imlb.Image = "rbxassetid://2344851144"
  1224. imlb.Size = UDim2.new(0,750,0,750)
  1225. imlb.ImageColor3 = color2
  1226. imlb.ImageTransparency = 0.25
  1227. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  1228. local imlb2 = imlb:Clone()
  1229. imlb2.Image = "rbxassetid://2325939897"
  1230. imlb2.Size = UDim2.new(1,0,1,0)
  1231. imlb2.ImageColor3 = color
  1232. imlb2.ImageTransparency = 0
  1233. imlb2.Position = UDim2.new(0,0,0,0)
  1234. local imlb3 = imlb:Clone()
  1235. imlb3.Image = "rbxassetid://2344830904"
  1236. imlb3.Size = UDim2.new(1,0,1,0)
  1237. imlb3.ImageColor3 = color2
  1238. imlb3.ImageTransparency = 0
  1239. imlb3.Position = UDim2.new(0,0,0,0)
  1240. local imlb4 = imlb:Clone()
  1241. imlb4.Image = "rbxassetid://2344870656"
  1242. imlb4.Size = UDim2.new(1,0,1,0)
  1243. imlb4.ImageColor3 = Color3.new(1,1,1)
  1244. imlb4.ImageTransparency = 0
  1245. imlb4.Position = UDim2.new(0,0,0,0)
  1246. imlb2.Parent = imlb
  1247. imlb3.Parent = imlb
  1248. imlb4.Parent = imlb
  1249. local txtlb2 = Instance.new("TextLabel",imlb)
  1250. txtlb2.Text = text
  1251. txtlb2.Font = represfont
  1252. txtlb2.TextColor3 = color
  1253. txtlb2.TextStrokeTransparency = 0
  1254. txtlb2.BackgroundTransparency = 1
  1255. txtlb2.TextStrokeColor3 = color2
  1256. txtlb2.TextScaled = true
  1257. txtlb2.Size = UDim2.new(1,0,1,0)
  1258. txtlb2.Position = UDim2.new(0,0,0,0)
  1259. local fvalen = 0.55
  1260. local fval = -0.49
  1261. coroutine.resume(coroutine.create(function()
  1262. while true do
  1263. swait()
  1264. if chaosmode == true then
  1265. txtlb2.Rotation = math.random(-1,1)
  1266. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1267. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1268. imlb.ImageColor3 = BrickColor.random().Color
  1269. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  1270. end
  1271. end
  1272. end))
  1273. coroutine.resume(coroutine.create(function()
  1274. while true do
  1275. swait()
  1276. if scrg.Parent ~= nil then
  1277. fvalen = fvalen - 0.0001
  1278. elseif scrg.Parent == nil then
  1279. break
  1280. end
  1281. end
  1282. end))
  1283. local flol = -5
  1284. local flil = 1.6
  1285. coroutine.resume(coroutine.create(function()
  1286. for i = 0, 49 do
  1287. swait()
  1288. flol = flol + 0.125
  1289. flil = flil - 0.1
  1290. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  1291. frm.Rotation = frm.Rotation - 0.25
  1292. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  1293. frm2.Rotation = frm.Rotation + 0.325
  1294. imlb3.Rotation = imlb3.Rotation - 10
  1295. imlb2.Rotation = imlb.Rotation + 7.5
  1296. imlb.Rotation = imlb.Rotation + 5
  1297. txtlb2.Rotation = txtlb2.Rotation - 5.125
  1298. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  1299. end
  1300. for i = 0, 99 do
  1301. swait()
  1302. fval = fval + 0.05
  1303. flol = flol + 0.005
  1304. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  1305. frm.Rotation = frm.Rotation - 0.075
  1306. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  1307. frm2.Rotation = frm2.Rotation + 0.125
  1308. imlb3.Rotation = imlb3.Rotation - 2
  1309. imlb2.Rotation = imlb.Rotation + 1.5
  1310. imlb.Rotation = imlb.Rotation + 1
  1311. txtlb2.Rotation = txtlb2.Rotation - 1.125
  1312. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  1313. end
  1314. local valinc = 0
  1315. local vinc2 = 1
  1316. for i = 0, 99 do
  1317. swait()
  1318. vinc2 = vinc2 + 0.25
  1319. valinc = valinc + 0.0001
  1320. flol = flol + valinc
  1321. flil = flil + valinc
  1322. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  1323. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  1324. imlb.Rotation = imlb.Rotation + 1*vinc2
  1325. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  1326. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  1327. frm.Rotation = frm.Rotation + 0.1*vinc2
  1328. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  1329. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  1330. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  1331. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  1332. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  1333. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  1334. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  1335. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  1336. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  1337. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  1338. end
  1339. scrg:Destroy()
  1340. end))
  1341. end))
  1342. end
  1343. end
  1344.  
  1345.  
  1346.  
  1347. --save shoulders
  1348. RSH, LSH=nil, nil
  1349. --welds
  1350. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1351. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1352. LH=Torso["Left Hip"]
  1353. RH=Torso["Right Hip"]
  1354. TorsoColor=Torso.BrickColor
  1355. function NoOutline(Part)
  1356. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1357. end
  1358. ch=Character
  1359. RSH=ch.Torso["Right Shoulder"]
  1360. LSH=ch.Torso["Left Shoulder"]
  1361. --
  1362. RSH.Parent=nil
  1363. LSH.Parent=nil
  1364. --
  1365. RW.Name="Right Shoulder"
  1366. RW.Part0=ch.Torso
  1367. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1368. RW.C1=cf(0, 0.5, 0)
  1369. RW.Part1=ch["Right Arm"]
  1370. RW.Parent=ch.Torso
  1371. --
  1372. LW.Name="Left Shoulder"
  1373. LW.Part0=ch.Torso
  1374. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1375. LW.C1=cf(0, 0.5, 0)
  1376. LW.Part1=ch["Left Arm"]
  1377. LW.Parent=ch.Torso
  1378.  
  1379. local Stats=Instance.new("BoolValue")
  1380. Stats.Name="Stats"
  1381. Stats.Parent=Character
  1382. local Atk=Instance.new("NumberValue")
  1383. Atk.Name="Damage"
  1384. Atk.Parent=Stats
  1385. Atk.Value=1
  1386. local Def=Instance.new("NumberValue")
  1387. Def.Name="Defense"
  1388. Def.Parent=Stats
  1389. Def.Value=1
  1390. local Speed=Instance.new("NumberValue")
  1391. Speed.Name="Speed"
  1392. Speed.Parent=Stats
  1393. Speed.Value=1
  1394. local Mvmt=Instance.new("NumberValue")
  1395. Mvmt.Name="Movement"
  1396. Mvmt.Parent=Stats
  1397. Mvmt.Value=1
  1398.  
  1399. local donum=0
  1400.  
  1401.  
  1402. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1403. local fp=it("Part")
  1404. fp.formFactor=formfactor
  1405. fp.Parent=parent
  1406. fp.Reflectance=reflectance
  1407. fp.Transparency=transparency
  1408. fp.CanCollide=false
  1409. fp.Locked=true
  1410. fp.BrickColor=brickcolor
  1411. fp.Name=name
  1412. fp.Size=size
  1413. fp.Position=Torso.Position
  1414. NoOutline(fp)
  1415. fp.Material="SmoothPlastic"
  1416. fp:BreakJoints()
  1417. return fp
  1418. end
  1419.  
  1420. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1421. local mesh=it(Mesh)
  1422. mesh.Parent=part
  1423. if Mesh=="SpecialMesh" then
  1424. mesh.MeshType=meshtype
  1425. if meshid~="nil" then
  1426. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1427. end
  1428. end
  1429. mesh.Offset=offset
  1430. mesh.Scale=scale
  1431. return mesh
  1432. end
  1433.  
  1434. function weld(parent,part0,part1,c0)
  1435. local weld=it("Weld")
  1436. weld.Parent=parent
  1437. weld.Part0=part0
  1438. weld.Part1=part1
  1439. weld.C0=c0
  1440. return weld
  1441. end
  1442.  
  1443. local Color1=Torso.BrickColor
  1444.  
  1445. local bodvel=Instance.new("BodyVelocity")
  1446. local bg=Instance.new("BodyGyro")
  1447.  
  1448. function swait(num)
  1449. if num==0 or num==nil then
  1450. game:service'RunService'.Stepped:wait(0)
  1451. else
  1452. for i=0,num do
  1453. game:service'RunService'.Stepped:wait(0)
  1454. end
  1455. end
  1456. end
  1457.  
  1458. function Swait(num) if num==0 or num==nil then game:service'RunService'.Stepped:wait(0) else for i=0,num do game:service'RunService'.Stepped:wait(0) end end end
  1459.  
  1460.  
  1461. -------- RAINBOW LEAVE IT TO ME
  1462. local r = 255
  1463. local g = 0
  1464. local b = 0
  1465. coroutine.resume(coroutine.create(function()
  1466. while wait() do
  1467. for i = 0, 254/5 do
  1468. swait()
  1469. g = g + 5
  1470. end
  1471. for i = 0, 254/5 do
  1472. swait()
  1473. r = r - 5
  1474. end
  1475. for i = 0, 254/5 do
  1476. swait()
  1477. b = b + 5
  1478. end
  1479. for i = 0, 254/5 do
  1480. swait()
  1481. g = g - 5
  1482. end
  1483. for i = 0, 254/5 do
  1484. swait()
  1485. r = r + 5
  1486. end
  1487. for i = 0, 254/5 do
  1488. swait()
  1489. b = b - 5
  1490. end
  1491. end
  1492. end))
  1493.  
  1494.  
  1495. so = function(id,par,vol,pit)
  1496. coroutine.resume(coroutine.create(function()
  1497. local sou = Instance.new("Sound",par or workspace)
  1498. sou.Volume=vol
  1499. sou.Pitch=pit or 1
  1500. sou.SoundId=id
  1501. swait()
  1502. sou:play()
  1503. game:GetService("Debris"):AddItem(sou,6)
  1504. end))
  1505. end
  1506.  
  1507. function clerp(a,b,t)
  1508. local qa = {QuaternionFromCFrame(a)}
  1509. local qb = {QuaternionFromCFrame(b)}
  1510. local ax, ay, az = a.x, a.y, a.z
  1511. local bx, by, bz = b.x, b.y, b.z
  1512. local _t = 1-t
  1513. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1514. end
  1515.  
  1516. function QuaternionFromCFrame(cf)
  1517. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1518. local trace = m00 + m11 + m22
  1519. if trace > 0 then
  1520. local s = math.sqrt(1 + trace)
  1521. local recip = 0.5/s
  1522. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1523. else
  1524. local i = 0
  1525. if m11 > m00 then
  1526. i = 1
  1527. end
  1528. if m22 > (i == 0 and m00 or m11) then
  1529. i = 2
  1530. end
  1531. if i == 0 then
  1532. local s = math.sqrt(m00-m11-m22+1)
  1533. local recip = 0.5/s
  1534. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1535. elseif i == 1 then
  1536. local s = math.sqrt(m11-m22-m00+1)
  1537. local recip = 0.5/s
  1538. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1539. elseif i == 2 then
  1540. local s = math.sqrt(m22-m00-m11+1)
  1541. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1542. end
  1543. end
  1544. end
  1545.  
  1546. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1547. local xs, ys, zs = x + x, y + y, z + z
  1548. local wx, wy, wz = w*xs, w*ys, w*zs
  1549. local xx = x*xs
  1550. local xy = x*ys
  1551. local xz = x*zs
  1552. local yy = y*ys
  1553. local yz = y*zs
  1554. local zz = z*zs
  1555. 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))
  1556. end
  1557.  
  1558. function QuaternionSlerp(a, b, t)
  1559. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1560. local startInterp, finishInterp;
  1561. if cosTheta >= 0.0001 then
  1562. if (1 - cosTheta) > 0.0001 then
  1563. local theta = math.acos(cosTheta)
  1564. local invSinTheta = 1/math.sin(theta)
  1565. startInterp = math.sin((1-t)*theta)*invSinTheta
  1566. finishInterp = math.sin(t*theta)*invSinTheta
  1567. else
  1568. startInterp = 1-t
  1569. finishInterp = t
  1570. end
  1571. else
  1572. if (1+cosTheta) > 0.0001 then
  1573. local theta = math.acos(-cosTheta)
  1574. local invSinTheta = 1/math.sin(theta)
  1575. startInterp = math.sin((t-1)*theta)*invSinTheta
  1576. finishInterp = math.sin(t*theta)*invSinTheta
  1577. else
  1578. startInterp = t-1
  1579. finishInterp = t
  1580. end
  1581. end
  1582. 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
  1583. end
  1584.  
  1585. local function CFrameFromTopBack(at, top, back)
  1586. local right = top:Cross(back)
  1587. return CFrame.new(at.x, at.y, at.z,
  1588. right.x, top.x, back.x,
  1589. right.y, top.y, back.y,
  1590. right.z, top.z, back.z)
  1591. end
  1592.  
  1593. function Triangle(a, b, c)
  1594. local edg1 = (c-a):Dot((b-a).unit)
  1595. local edg2 = (a-b):Dot((c-b).unit)
  1596. local edg3 = (b-c):Dot((a-c).unit)
  1597. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1598. a, b, c = a, b, c
  1599. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1600. a, b, c = b, c, a
  1601. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1602. a, b, c = c, a, b
  1603. else
  1604. assert(false, "unreachable")
  1605. end
  1606.  
  1607. local len1 = (c-a):Dot((b-a).unit)
  1608. local len2 = (b-a).magnitude - len1
  1609. local width = (a + (b-a).unit*len1 - c).magnitude
  1610.  
  1611. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1612.  
  1613. local list = {}
  1614.  
  1615. if len1 > 0.01 then
  1616. local w1 = Instance.new('WedgePart', m)
  1617. game:GetService("Debris"):AddItem(w1,5)
  1618. w1.Material = "SmoothPlastic"
  1619. w1.FormFactor = 'Custom'
  1620. w1.BrickColor = BrickColor.new("Really red")
  1621. w1.Transparency = 0
  1622. w1.Reflectance = 0
  1623. w1.Material = "SmoothPlastic"
  1624. w1.CanCollide = false
  1625. local l1 = Instance.new("PointLight",w1)
  1626. l1.Color = Color3.new(170,0,0)
  1627. NoOutline(w1)
  1628. local sz = Vector3.new(0.2, width, len1)
  1629. w1.Size = sz
  1630. local sp = Instance.new("SpecialMesh",w1)
  1631. sp.MeshType = "Wedge"
  1632. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1633. w1:BreakJoints()
  1634. w1.Anchored = true
  1635. w1.Parent = workspace
  1636. w1.Transparency = 0.7
  1637. table.insert(Effects,{w1,"Disappear",.01})
  1638. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1639. table.insert(list,w1)
  1640. end
  1641.  
  1642. if len2 > 0.01 then
  1643. local w2 = Instance.new('WedgePart', m)
  1644. game:GetService("Debris"):AddItem(w2,5)
  1645. w2.Material = "SmoothPlastic"
  1646. w2.FormFactor = 'Custom'
  1647. w2.BrickColor = BrickColor.new("Really red")
  1648. w2.Transparency = 0
  1649. w2.Reflectance = 0
  1650. w2.Material = "SmoothPlastic"
  1651. w2.CanCollide = false
  1652. local l2 = Instance.new("PointLight",w2)
  1653. l2.Color = Color3.new(170,0,0)
  1654. NoOutline(w2)
  1655. local sz = Vector3.new(0.2, width, len2)
  1656. w2.Size = sz
  1657. local sp = Instance.new("SpecialMesh",w2)
  1658. sp.MeshType = "Wedge"
  1659. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1660. w2:BreakJoints()
  1661. w2.Anchored = true
  1662. w2.Parent = workspace
  1663. w2.Transparency = 0.7
  1664. table.insert(Effects,{w2,"Disappear",.01})
  1665. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1666. table.insert(list,w2)
  1667. end
  1668. return unpack(list)
  1669. end
  1670.  
  1671.  
  1672. -- RAGDOLL STUFF
  1673. function CreatePartRr(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1674. local Part = Create("Part")({
  1675. Parent = Parent,
  1676. Reflectance = Reflectance,
  1677. Transparency = Transparency,
  1678. CanCollide = false,
  1679. Locked = true,
  1680. BrickColor = BrickColor.new(tostring(BColor)),
  1681. Name = Name,
  1682. Size = Size,
  1683. Material = Material
  1684. })
  1685. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1686. RemoveOutlines(Part)
  1687. return Part
  1688. end
  1689.  
  1690. function recurse(root,callback,i)
  1691. i= i or 0
  1692. for _,v in pairs(root:GetChildren()) do
  1693. i = i + 1
  1694. callback(i,v)
  1695.  
  1696. if #v:GetChildren() > 0 then
  1697. i = recurse(v,callback,i)
  1698. end
  1699. end
  1700.  
  1701. return i
  1702. end
  1703.  
  1704. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1705. attachmentName = attachmentName.."RigAttachment"
  1706. local constraint = Instance.new(className.."Constraint")
  1707. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1708. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1709. constraint.Name = "RagdollConstraint"..part1.Name
  1710.  
  1711. for _,propertyData in next,properties or {} do
  1712. constraint[propertyData[1]] = propertyData[2]
  1713. end
  1714.  
  1715. constraint.Parent = character
  1716. end
  1717.  
  1718. function getAttachment0(character, attachmentName)
  1719. for _,child in next,character:GetChildren() do
  1720. local attachment = child:FindFirstChild(attachmentName)
  1721. if attachment then
  1722. return attachment
  1723. end
  1724. end
  1725. end
  1726.  
  1727. function ArtificialHitbox(Part)
  1728. local HITBOX = CreatePartRr(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1729. HITBOX.CanCollide = true
  1730. HITBOX.CFrame = Part.CFrame
  1731. weldBetween(Part,HITBOX)
  1732. end
  1733.  
  1734.  
  1735.  
  1736. function Ragdoll(Character2,CharTorso,KeepArms)
  1737. coroutine.resume(coroutine.create(function()
  1738. Character2:BreakJoints()
  1739. local hum = Character2:findFirstChild("Humanoid")
  1740. hum:remove()
  1741. local function Scan(ch)
  1742. local e
  1743. for e = 1,#ch do
  1744. Scan(ch[e]:GetChildren())
  1745. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1746. ch[e]:remove()
  1747. end
  1748. end
  1749. end
  1750. local NEWHUM = IT("Humanoid")
  1751. NEWHUM.Name = "Corpse"
  1752. NEWHUM.Health = 0
  1753. NEWHUM.MaxHealth = 0
  1754. NEWHUM.PlatformStand = true
  1755. NEWHUM.Parent = Character2
  1756. NEWHUM.DisplayDistanceType = "None"
  1757.  
  1758. local ch = Character2:GetChildren()
  1759. local i
  1760. for i = 1,#ch do
  1761. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1762. ch[i]:remove()
  1763. end
  1764. end
  1765.  
  1766. local Torso2 = Character2.Torso
  1767. local movevector = Vector3.new()
  1768.  
  1769. if Torso2 then
  1770. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1771. local Head = Character2:FindFirstChild("Head")
  1772. if Head then
  1773. local Neck = Instance.new("Weld")
  1774. Neck.Name = "Neck"
  1775. Neck.Part0 = Torso2
  1776. Neck.Part1 = Head
  1777. Neck.C0 = CFrame.new(0, 1.5, 0)
  1778. Neck.C1 = CFrame.new()
  1779. Neck.Parent = Torso2
  1780.  
  1781. end
  1782. local Limb = Character2:FindFirstChild("Right Arm")
  1783. if Limb and KeepArms == true then
  1784.  
  1785. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1786. local Joint = Instance.new("Glue")
  1787. Joint.Name = "RightShoulder"
  1788. Joint.Part0 = Torso2
  1789. Joint.Part1 = Limb
  1790. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1791. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1792. Joint.Parent = Torso2
  1793.  
  1794. local B = Instance.new("Part")
  1795. B.TopSurface = 0
  1796. B.BottomSurface = 0
  1797. B.formFactor = "Symmetric"
  1798. B.Size = Vector3.new(1, 1, 1)
  1799. B.Transparency = 1
  1800. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1801. B.Parent = Character2
  1802. local W = Instance.new("Weld")
  1803. W.Part0 = Limb
  1804. W.Part1 = B
  1805. W.C0 = CFrame.new(0, -0.5, 0)
  1806. W.Parent = Limb
  1807.  
  1808. end
  1809. local Limb = Character2:FindFirstChild("Left Arm")
  1810. if Limb and KeepArms == true then
  1811.  
  1812. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1813. local Joint = Instance.new("Glue")
  1814. Joint.Name = "LeftShoulder"
  1815. Joint.Part0 = Torso2
  1816. Joint.Part1 = Limb
  1817. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1818. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1819. Joint.Parent = Torso2
  1820.  
  1821. local B = Instance.new("Part")
  1822. B.TopSurface = 0
  1823. B.BottomSurface = 0
  1824. B.formFactor = "Symmetric"
  1825. B.Size = Vector3.new(1, 1, 1)
  1826. B.Transparency = 1
  1827. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1828. B.Parent = Character2
  1829. local W = Instance.new("Weld")
  1830. W.Part0 = Limb
  1831. W.Part1 = B
  1832. W.C0 = CFrame.new(0, -0.5, 0)
  1833. W.Parent = Limb
  1834.  
  1835. end
  1836. local Limb = Character2:FindFirstChild("Right Leg")
  1837. if Limb then
  1838.  
  1839. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1840. local Joint = Instance.new("Glue")
  1841. Joint.Name = "RightHip"
  1842. Joint.Part0 = Torso2
  1843. Joint.Part1 = Limb
  1844. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1845. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1846. Joint.Parent = Torso2
  1847.  
  1848. local B = Instance.new("Part")
  1849. B.TopSurface = 0
  1850. B.BottomSurface = 0
  1851. B.formFactor = "Symmetric"
  1852. B.Size = Vector3.new(1, 1, 1)
  1853. B.Transparency = 1
  1854. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1855. B.Parent = Character2
  1856. local W = Instance.new("Weld")
  1857. W.Part0 = Limb
  1858. W.Part1 = B
  1859. W.C0 = CFrame.new(0, -0.5, 0)
  1860. W.Parent = Limb
  1861.  
  1862. end
  1863. local Limb = Character2:FindFirstChild("Left Leg")
  1864. if Limb then
  1865.  
  1866. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1867. local Joint = Instance.new("Glue")
  1868. Joint.Name = "LeftHip"
  1869. Joint.Part0 = Torso2
  1870. Joint.Part1 = Limb
  1871. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1872. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1873. Joint.Parent = Torso2
  1874.  
  1875. local B = Instance.new("Part")
  1876. B.TopSurface = 0
  1877. B.BottomSurface = 0
  1878. B.formFactor = "Symmetric"
  1879. B.Size = Vector3.new(1, 1, 1)
  1880. B.Transparency = 1
  1881. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1882. B.Parent = Character2
  1883. local W = Instance.new("Weld")
  1884. W.Part0 = Limb
  1885. W.Part1 = B
  1886. W.C0 = CFrame.new(0, -0.5, 0)
  1887. W.Parent = Limb
  1888.  
  1889. end
  1890. --[
  1891. local Bar = Instance.new("Part")
  1892. Bar.TopSurface = 0
  1893. Bar.BottomSurface = 0
  1894. Bar.formFactor = "Symmetric"
  1895. Bar.Size = Vector3.new(1, 1, 1)
  1896. Bar.Transparency = 1
  1897. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1898. Bar.Parent = Character2
  1899. local Weld = Instance.new("Weld")
  1900. Weld.Part0 = Torso2
  1901. Weld.Part1 = Bar
  1902. Weld.C0 = CFrame.new(0, 0.5, 0)
  1903. Weld.Parent = Torso2
  1904. --]]
  1905. end
  1906. Character2.Parent = workspace
  1907. Debris:AddItem(Character2,50)
  1908.  
  1909. return Character2,Torso2
  1910. end))
  1911. end
  1912.  
  1913.  
  1914. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1915. if hit.Parent == nil then
  1916. return
  1917. end
  1918. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1919. for _, v in pairs(hit.Parent:children()) do
  1920. if v:IsA("Humanoid") then
  1921. h = v
  1922. end
  1923. end
  1924. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1925. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1926. return
  1927. end
  1928. local c = Create("ObjectValue")({
  1929. Name = "creator",
  1930. Value = Player,
  1931. Parent = h
  1932. })
  1933. game:GetService("Debris"):AddItem(c, 0.5)
  1934. if HitSound ~= nil and HitPitch ~= nil then
  1935. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1936. end
  1937. local Damage = math.random(minim, maxim)
  1938. local blocked = false
  1939. local block = hit.Parent:findFirstChild("Block")
  1940. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1941. blocked = true
  1942. block.Value = block.Value - 1
  1943. print(block.Value)
  1944. end
  1945. if blocked == false then
  1946. HitHealth = h.Health
  1947. h.MaxHealth = 100
  1948. h.Health = h.Health - Damage
  1949. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1950. print("gained kill")
  1951. if h.Parent:FindFirstChild("Torso") then
  1952. -- h.Parent:FindFirstChild("Torso").CFrame = h.Parent:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
  1953. Ragdoll(h.Parent,Torso,true)
  1954. end
  1955. end
  1956. -- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1957. else
  1958. h.Health = h.Health - Damage / 2
  1959. -- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1960. end
  1961. if Type == "Knockdown" then
  1962. local hum = hit.Parent.Humanoid
  1963. hum.PlatformStand = true
  1964. coroutine.resume(coroutine.create(function(HHumanoid)
  1965. swait(1)
  1966. HHumanoid.PlatformStand = false
  1967. end), hum)
  1968. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1969. local bodvol = Create("BodyVelocity")({
  1970. velocity = angle * knockback,
  1971. P = 5000,
  1972. maxForce = Vector3.new(8000, 8000, 8000),
  1973. Parent = hit
  1974. })
  1975. local rl = Create("BodyAngularVelocity")({
  1976. P = 3000,
  1977. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1978. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1979. Parent = hit
  1980. })
  1981. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1982. game:GetService("Debris"):AddItem(rl, 0.5)
  1983. elseif Type == "Normal" then
  1984. local vp = Create("BodyVelocity")({
  1985. P = 500,
  1986. maxForce = Vector3.new(math.huge, 0, math.huge),
  1987. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1988. })
  1989. if knockback > 0 then
  1990. vp.Parent = hit.Parent.Head
  1991. end
  1992. game:GetService("Debris"):AddItem(vp, 0.5)
  1993. elseif Type == "Up" then
  1994. local bodyVelocity = Create("BodyVelocity")({
  1995. velocity = Vector3.new(0, 20, 0),
  1996. P = 5000,
  1997. maxForce = Vector3.new(8000, 8000, 8000),
  1998. Parent = hit
  1999. })
  2000. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2001. local bodyVelocity = Create("BodyVelocity")({
  2002. velocity = Vector3.new(0, 20, 0),
  2003. P = 5000,
  2004. maxForce = Vector3.new(8000, 8000, 8000),
  2005. Parent = hit
  2006. })
  2007. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2008. elseif Type == "Leech" then
  2009. local hum = hit.Parent.Humanoid
  2010. if hum ~= nil then
  2011. for i = 0, 2 do
  2012. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2013. end
  2014. Humanoid.Health = Humanoid.Health + 10
  2015. end
  2016. elseif Type == "UpKnock" then
  2017. local hum = hit.Parent.Humanoid
  2018. hum.PlatformStand = true
  2019. if hum ~= nil then
  2020. hitr = true
  2021. end
  2022. coroutine.resume(coroutine.create(function(HHumanoid)
  2023. swait(5)
  2024. HHumanoid.PlatformStand = false
  2025. hitr = false
  2026. end), hum)
  2027. local bodyVelocity = Create("BodyVelocity")({
  2028. velocity = Vector3.new(0, 20, 0),
  2029. P = 5000,
  2030. maxForce = Vector3.new(8000, 8000, 8000),
  2031. Parent = hit
  2032. })
  2033. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2034. local bodyVelocity = Create("BodyVelocity")({
  2035. velocity = Vector3.new(0, 20, 0),
  2036. P = 5000,
  2037. maxForce = Vector3.new(8000, 8000, 8000),
  2038. Parent = hit
  2039. })
  2040. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2041. elseif Type == "Snare" then
  2042. local bp = Create("BodyPosition")({
  2043. P = 2000,
  2044. D = 100,
  2045. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2046. position = hit.Parent.Torso.Position,
  2047. Parent = hit.Parent.Torso
  2048. })
  2049. game:GetService("Debris"):AddItem(bp, 1)
  2050. elseif Type == "Slashnare" then
  2051. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  2052. for i = 1, math.random(4, 5) do
  2053. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2054. end
  2055. local bp = Create("BodyPosition")({
  2056. P = 2000,
  2057. D = 100,
  2058. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2059. position = hit.Parent.Torso.Position,
  2060. Parent = hit.Parent.Torso
  2061. })
  2062. game:GetService("Debris"):AddItem(bp, 1)
  2063. elseif Type == "Spike" then
  2064. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2065. local bp = Create("BodyPosition")({
  2066. P = 2000,
  2067. D = 100,
  2068. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2069. position = hit.Parent.Torso.Position,
  2070. Parent = hit.Parent.Torso
  2071. })
  2072. game:GetService("Debris"):AddItem(bp, 1)
  2073. elseif Type == "Freeze" then
  2074. local BodPos = Create("BodyPosition")({
  2075. P = 50000,
  2076. D = 1000,
  2077. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2078. position = hit.Parent.Torso.Position,
  2079. Parent = hit.Parent.Torso
  2080. })
  2081. local BodGy = Create("BodyGyro")({
  2082. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2083. P = 20000,
  2084. Parent = hit.Parent.Torso,
  2085. cframe = hit.Parent.Torso.CFrame
  2086. })
  2087. hit.Parent.Torso.Anchored = true
  2088. coroutine.resume(coroutine.create(function(Part)
  2089. swait(1.5)
  2090. Part.Anchored = false
  2091. end), hit.Parent.Torso)
  2092. game:GetService("Debris"):AddItem(BodPos, 3)
  2093. game:GetService("Debris"):AddItem(BodGy, 3)
  2094. end
  2095. local debounce = Create("BoolValue")({
  2096. Name = "DebounceHit",
  2097. Parent = hit.Parent,
  2098. Value = true
  2099. })
  2100. game:GetService("Debris"):AddItem(debounce, Delay)
  2101. c = Instance.new("ObjectValue")
  2102. c.Name = "creator"
  2103. c.Value = Player
  2104. c.Parent = h
  2105. game:GetService("Debris"):AddItem(c, 0.5)
  2106. end
  2107. end
  2108. function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
  2109. for _, c in pairs(workspace:children()) do
  2110. local hum = c:findFirstChildOfClass("Humanoid")
  2111. if hum ~= nil then
  2112. local head = c:findFirstChild("Torso")
  2113. if head ~= nil then
  2114. local targ = head.Position - Part.Position
  2115. local mag = targ.magnitude
  2116. if magni >= mag and c.Name ~= Player.Name then
  2117. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  2118. end
  2119. end
  2120. local head = c:findFirstChild("UpperTorso")
  2121. if head ~= nil then
  2122. local targ = head.Position - Part.Position
  2123. local mag = targ.magnitude
  2124. if magni >= mag and c.Name ~= Player.Name then
  2125. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  2126. end
  2127. end
  2128. end
  2129. end
  2130. end
  2131.  
  2132.  
  2133. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2134. for _, c in pairs(workspace:children()) do
  2135. local hum = c:findFirstChild("Humanoid")
  2136. if hum ~= nil then
  2137. local head = c:findFirstChild("Torso")
  2138. if head ~= nil then
  2139. local targ = head.Position - Part.Position
  2140. local mag = targ.magnitude
  2141. if magni >= mag and c.Name ~= Player.Name then
  2142. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2143. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2144. end
  2145. end
  2146. end
  2147. end
  2148. end
  2149.  
  2150. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2151. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2152. end
  2153.  
  2154. function CastRay(Pos, Dir, Max, Ignore)
  2155. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2156. end
  2157.  
  2158. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2159. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2160. prt.Anchored=true
  2161. prt.CFrame=cframe
  2162. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2163. --http://www.roblox.com/asset/?id=4770560
  2164. game:GetService("Debris"):AddItem(prt,2)
  2165. CF=prt.CFrame
  2166. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2167. for i=0,1,0.2 do
  2168. wait()
  2169. Part.CFrame=CF*cf(0,0,-0.4)
  2170. end
  2171. for i=0,1,delay do
  2172. wait()
  2173. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2174. Mesh.Scale=Mesh.Scale
  2175. end
  2176. for i=0,1,0.1 do
  2177. wait()
  2178. Part.Transparency=i
  2179. end
  2180. Part.Parent=nil
  2181. end),prt,msh,CF)
  2182. end
  2183.  
  2184. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2185. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2186. prt.Anchored=true
  2187. prt.Material = "Neon"
  2188. prt.CFrame=cframe
  2189. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2190. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2191. game:GetService("Debris"):AddItem(prt,5)
  2192. coroutine.resume(coroutine.create(function(Part,Mesh)
  2193. for i=0,1,delay do
  2194. swait()
  2195. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2196. Part.Transparency=i
  2197. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2198. end
  2199. Part.Parent=nil
  2200. end),prt,msh)
  2201. end
  2202.  
  2203. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2204. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2205. prt.Anchored=true
  2206. prt.Material = "Neon"
  2207. prt.CFrame=cframe
  2208. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2209. game:GetService("Debris"):AddItem(prt,5)
  2210. coroutine.resume(coroutine.create(function(Part,Mesh)
  2211. local rtype = rottype
  2212. for i=0,1,delay do
  2213. swait()
  2214. if rtype == 1 then
  2215. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2216. elseif rtype == 2 then
  2217. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2218. end
  2219. Part.Transparency=i
  2220. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2221. end
  2222. Part.Parent=nil
  2223. end),prt,msh)
  2224. end
  2225.  
  2226. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2227. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2228. prt.Anchored=true
  2229. prt.CFrame=cframe
  2230. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2231. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2232. game:GetService("Debris"):AddItem(prt,5)
  2233. coroutine.resume(coroutine.create(function(Part,Mesh)
  2234. for i=0,1,delay do
  2235. wait()
  2236. Part.Transparency=i
  2237. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2238. end
  2239. Part.Parent=nil
  2240. end),prt,msh)
  2241. end
  2242.  
  2243. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2244. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2245. prt.Anchored=true
  2246. prt.Material = "Neon"
  2247. prt.CFrame=cframe
  2248. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2249. game:GetService("Debris"):AddItem(prt,5)
  2250. coroutine.resume(coroutine.create(function(Part,Mesh)
  2251. local rtype = rottype
  2252. for i=0,1,delay do
  2253. swait()
  2254. if rtype == 1 then
  2255. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2256. elseif rtype == 2 then
  2257. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2258. end
  2259. Part.Transparency=i
  2260. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2261. end
  2262. Part.Parent=nil
  2263. end),prt,msh)
  2264. end
  2265.  
  2266. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2267. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2268. prt.Anchored=true
  2269. prt.Material = "Neon"
  2270. prt.CFrame=cframe
  2271. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2272. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2273. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2274. game:GetService("Debris"):AddItem(prt,5)
  2275. coroutine.resume(coroutine.create(function(Part,Mesh)
  2276. local rtype = rottype
  2277. for i=0,1,delay do
  2278. swait()
  2279. if rtype == 1 then
  2280. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2281. elseif rtype == 2 then
  2282. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2283. end
  2284. dec.Transparency=i
  2285. dec2.Transparency=i
  2286. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2287. end
  2288. Part.Parent=nil
  2289. end),prt,msh)
  2290. end
  2291.  
  2292. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2293. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2294. prt.Anchored=true
  2295. prt.Material = "Neon"
  2296. prt.CFrame=cframe
  2297. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2298. game:GetService("Debris"):AddItem(prt,5)
  2299. coroutine.resume(coroutine.create(function(Part,Mesh)
  2300. local rtype = rottype
  2301. for i=0,1,delay do
  2302. swait()
  2303. if rtype == 1 then
  2304. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2305. elseif rtype == 2 then
  2306. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2307. end
  2308. prt.Transparency=i
  2309. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2310. end
  2311. Part.Parent=nil
  2312. end),prt,msh)
  2313. end
  2314.  
  2315. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2316. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2317. prt.Anchored=true
  2318. prt.Material = "Neon"
  2319. prt.CFrame=cframe
  2320. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2321. game:GetService("Debris"):AddItem(prt,5)
  2322. coroutine.resume(coroutine.create(function(Part,Mesh)
  2323. local rtype = rottype
  2324. for i=0,1,delay do
  2325. swait()
  2326. if rtype == 1 then
  2327. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2328. elseif rtype == 2 then
  2329. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2330. end
  2331. prt.Transparency=i
  2332. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2333. end
  2334. Part.Parent=nil
  2335. end),prt,msh)
  2336. end
  2337.  
  2338. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2339. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2340. prt.Anchored=true
  2341. prt.Material = "Neon"
  2342. prt.CFrame=cframe
  2343. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2344. game:GetService("Debris"):AddItem(prt,5)
  2345. coroutine.resume(coroutine.create(function(Part,Mesh)
  2346. local rtype = rottype
  2347. for i=0,1,delay do
  2348. swait()
  2349. if rtype == 1 then
  2350. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2351. elseif rtype == 2 then
  2352. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2353. end
  2354. prt.Transparency=i
  2355. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2356. end
  2357. Part.Parent=nil
  2358. end),prt,msh)
  2359. end
  2360.  
  2361. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2362. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2363. prt.Anchored=true
  2364. prt.Material = "Neon"
  2365. prt.CFrame=cframe
  2366. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2367. game:GetService("Debris"):AddItem(prt,5)
  2368. coroutine.resume(coroutine.create(function(Part,Mesh)
  2369. local rtype = rottype
  2370. for i=0,1,delay do
  2371. swait()
  2372. if rtype == 1 then
  2373. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2374. elseif rtype == 2 then
  2375. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2376. end
  2377. prt.Transparency=i
  2378. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2379. end
  2380. Part.Parent=nil
  2381. end),prt,msh)
  2382. end
  2383.  
  2384. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2385. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2386. prt.Anchored=false
  2387. prt.CFrame=cframe
  2388. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2389. local wld=weld(prt,prt,Parent,cframe)
  2390. game:GetService("Debris"):AddItem(prt,5)
  2391. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2392. for i=0,1,delay do
  2393. wait()
  2394. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2395. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2396. Part.Transparency=i
  2397. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2398. end
  2399. Part.Parent=nil
  2400. end),prt,msh,wld)
  2401. end
  2402.  
  2403. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2404. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2405. prt.Anchored=false
  2406. prt.CFrame=cframe
  2407. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2408. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2409. game:GetService("Debris"):AddItem(prt,5)
  2410. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2411. for i=0,1,delay do
  2412. wait()
  2413. Weld.C0=euler(i*20,0,0)
  2414. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2415. Part.Transparency=i
  2416. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2417. end
  2418. Part.Parent=nil
  2419. end),prt,msh,wld)
  2420. end
  2421.  
  2422. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2423. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2424. prt.Anchored=true
  2425. prt.CFrame=cframe
  2426. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2427. game:GetService("Debris"):AddItem(prt,2)
  2428. coroutine.resume(coroutine.create(function(Part,Mesh)
  2429. for i=0,1,delay do
  2430. wait()
  2431. Part.CFrame=Part.CFrame
  2432. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2433. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2434. prt2.Anchored=true
  2435. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2436. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2437. game:GetService("Debris"):AddItem(prt2,2)
  2438. coroutine.resume(coroutine.create(function(Part,Mesh)
  2439. for i=0,1,0.1 do
  2440. wait()
  2441. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2442. end
  2443. Part.Parent=nil
  2444. end),prt2,msh2)
  2445. end
  2446. for i=0,1,delay*2 do
  2447. wait()
  2448. Part.CFrame=Part.CFrame
  2449. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2450. end
  2451. Part.Parent=nil
  2452. end),prt,msh)
  2453. end
  2454.  
  2455. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2456. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2457. prt.Anchored=true
  2458. prt.CFrame=cframe
  2459. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2460. game:GetService("Debris"):AddItem(prt,2)
  2461. coroutine.resume(coroutine.create(function(Part,Mesh)
  2462. for i=0,1,delay do
  2463. wait()
  2464. Part.CFrame=Part.CFrame
  2465. Part.Transparency=i
  2466. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2467. end
  2468. Part.Parent=nil
  2469. end),prt,msh)
  2470. end
  2471.  
  2472. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2473. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2474. prt.Anchored=true
  2475. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2476. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2477. game:GetService("Debris"):AddItem(prt,2)
  2478. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2479. CF=Part.CFrame
  2480. Numbb=0
  2481. randnumb=math.random()/10
  2482. rand1=math.random()/10
  2483. for i=0,1,rand1 do
  2484. wait()
  2485. CF=CF*cf(0,math.random()/2,0)
  2486. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2487. Part.CFrame=CF*euler(Numbb,0,0)
  2488. Part.Transparency=i
  2489. Numbb=Numbb+randnumb
  2490. end
  2491. Part.Parent=nil
  2492. end),prt,CF,Numbb,randnumb)
  2493. end
  2494.  
  2495. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2496. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2497. prt.Anchored=true
  2498. prt.CFrame=cframe
  2499. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2500. game:GetService("Debris"):AddItem(prt,5)
  2501. coroutine.resume(coroutine.create(function(Part,Mesh)
  2502. for i=0,1,delay do
  2503. wait()
  2504. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2505. Part.Transparency=i
  2506. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2507. end
  2508. Part.Parent=nil
  2509. end),prt,msh)
  2510. end
  2511.  
  2512.  
  2513. function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,color)
  2514. local type = type
  2515. local rng = Instance.new("Part", char)
  2516. rng.Anchored = true
  2517. rng.BrickColor = color
  2518. rng.CanCollide = false
  2519. rng.FormFactor = 3
  2520. rng.Name = "Ring"
  2521. rng.Material = "Neon"
  2522. rng.Size = Vector3.new(1, 1, 1)
  2523. rng.Transparency = 0
  2524. if typeoftrans == "In" then
  2525. rng.Transparency = 1
  2526. end
  2527. rng.TopSurface = 0
  2528. rng.BottomSurface = 0
  2529. rng.CFrame = pos
  2530. local rngm = Instance.new("SpecialMesh", rng)
  2531. rngm.MeshType = "FileMesh"
  2532. rngm.MeshId = "rbxassetid://20329976"
  2533. rngm.Scale = scale
  2534. local scaler2 = 1
  2535. if type == "Add" then
  2536. scaler2 = 1*value
  2537. elseif type == "Divide" then
  2538. scaler2 = 1/value
  2539. end
  2540. local randomrot = math.random(1,2)
  2541. coroutine.resume(coroutine.create(function()
  2542. for i = 0,10/bonuspeed,0.1 do
  2543. swait()
  2544. if type == "Add" then
  2545. scaler2 = scaler2 - 0.01*value/bonuspeed
  2546. elseif type == "Divide" then
  2547. scaler2 = scaler2 - 0.01/value*bonuspeed
  2548. end
  2549. if randomrot == 1 then
  2550. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
  2551. elseif randomrot == 2 then
  2552. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
  2553. end
  2554. if typeoftrans == "Out" then
  2555. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2556. elseif typeoftrans == "In" then
  2557. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2558. end
  2559. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, 0, scaler2*bonuspeed)
  2560. end
  2561. rng:Destroy()
  2562. end))
  2563. end
  2564.  
  2565. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2566. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2567. prt.Anchored=true
  2568. prt.CFrame=cframe
  2569. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2570. game:GetService("Debris"):AddItem(prt,2)
  2571. coroutine.resume(coroutine.create(function(Part,Mesh)
  2572. for i=0,1,delay do
  2573. wait()
  2574. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2575. Part.Transparency=i
  2576. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2577. end
  2578. Part.Parent=nil
  2579. end),prt,msh)
  2580. end
  2581.  
  2582. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2583. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2584. prt.Anchored=true
  2585. prt.CFrame=cframe*cf(x,y,z)
  2586. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2587. game:GetService("Debris"):AddItem(prt,5)
  2588. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2589. local num=math.random()
  2590. local num2=math.random(-3,2)+math.random()
  2591. local numm=0
  2592. for i=0,1,delay*2 do
  2593. swait()
  2594. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2595. Part.Transparency=i
  2596. numm=numm+0.01
  2597. end
  2598. Part.Parent=nil
  2599. Mesh.Parent=nil
  2600. end),prt,msh,x,y,z)
  2601. end
  2602.  
  2603. function dmgstart(dmg,what)
  2604. hitcon = what.Touched:connect(function(hit)
  2605. local hum = hit.Parent:FindFirstChild("Humanoid")
  2606. if hum and not hum:IsDescendantOf(Character) then
  2607. hum:TakeDamage(dmg)
  2608. end
  2609. end)
  2610. end
  2611.  
  2612. function dmgstop()
  2613. hitcon:disconnect()
  2614. end
  2615.  
  2616. function Cloak()
  2617. Face.Parent=nil
  2618. cloaked=true
  2619. for _,v in pairs(Torso.Parent:children()) do
  2620. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2621. coroutine.resume(coroutine.create(function()
  2622. for i=0,1,0.2 do
  2623. wait()
  2624. v.Transparency=i
  2625. end
  2626. v.Transparency=1
  2627. end))
  2628. end
  2629. if v.className=="Hat" then
  2630. hatp=v.Handle
  2631. coroutine.resume(coroutine.create(function(derp)
  2632. for i=0,1,0.2 do
  2633. wait()
  2634. derp.Transparency=i
  2635. end
  2636. derp.Transparency=1
  2637. end),hatp)
  2638. end
  2639. end
  2640. for _,v in pairs(m:children()) do
  2641. if v.className=="Part" then
  2642. coroutine.resume(coroutine.create(function()
  2643. for i=0,1,0.2 do
  2644. wait()
  2645. v.Transparency=i
  2646. end
  2647. v.Transparency=1
  2648. end))
  2649. end
  2650. end
  2651. end
  2652.  
  2653. function UnCloak()
  2654. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2655. Face.Parent=Head
  2656. cloaked=false
  2657. for _,v in pairs(Torso.Parent:children()) do
  2658. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2659. coroutine.resume(coroutine.create(function()
  2660. for i=0,1,0.1 do
  2661. wait()
  2662. v.Transparency=v.Transparency-0.1
  2663. end
  2664. v.Transparency=0
  2665. end))
  2666. end
  2667. if v.className=="Hat" then
  2668. hatp=v.Handle
  2669. coroutine.resume(coroutine.create(function(derp)
  2670. for i=0,1,0.1 do
  2671. wait()
  2672. derp.Transparency=derp.Transparency-0.1
  2673. end
  2674. derp.Transparency=0
  2675. end),hatp)
  2676. end
  2677. end
  2678. for _,v in pairs(m:children()) do
  2679. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2680. coroutine.resume(coroutine.create(function()
  2681. for i=0,1,0.1 do
  2682. wait()
  2683. v.Transparency=v.Transparency-0.1
  2684. end
  2685. v.Transparency=0
  2686. end))
  2687. v.Transparency=0
  2688. end
  2689. end
  2690. end
  2691.  
  2692. local origcolor = BrickColor.new("Pastel light blue")
  2693. ---- This section of explosions.
  2694.  
  2695. ----
  2696.  
  2697.  
  2698. function ring(type,pos,scale,value)
  2699. local type = type
  2700. local rng = Instance.new("Part", char)
  2701. rng.Anchored = true
  2702. rng.BrickColor = origcolor
  2703. rng.CanCollide = false
  2704. rng.FormFactor = 3
  2705. rng.Name = "Ring"
  2706. rng.Size = Vector3.new(1, 1, 1)
  2707. rng.Transparency = 0
  2708. rng.TopSurface = 0
  2709. rng.BottomSurface = 0
  2710. rng.CFrame = pos
  2711. local rngm = Instance.new("SpecialMesh", rng)
  2712. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2713. rngm.Scale = scale
  2714. local scaler2 = 1
  2715. if type == "Add" then
  2716. scaler2 = 1*value
  2717. elseif type == "Divide" then
  2718. scaler2 = 1/value
  2719. end
  2720. coroutine.resume(coroutine.create(function()
  2721. for i = 0,10,0.1 do
  2722. swait()
  2723. if type == "Add" then
  2724. scaler2 = scaler2 - 0.01*value
  2725. elseif type == "Divide" then
  2726. scaler2 = scaler2 - 0.01/value
  2727. end
  2728. rng.Transparency = rng.Transparency + 0.01
  2729. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2730. end
  2731. rng:Destroy()
  2732. end))
  2733. end
  2734.  
  2735.  
  2736.  
  2737. function wave(type,pos,scale,value)
  2738. local type = type
  2739. local rng = Instance.new("Part", char)
  2740. rng.Anchored = true
  2741. rng.BrickColor = origcolor
  2742. rng.CanCollide = false
  2743. rng.FormFactor = 3
  2744. rng.Name = "Ring"
  2745. rng.Size = Vector3.new(1, 1, 1)
  2746. rng.Transparency = 0
  2747. rng.TopSurface = 0
  2748. rng.BottomSurface = 0
  2749. rng.CFrame = pos
  2750. local rngm = Instance.new("SpecialMesh", rng)
  2751. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2752. rngm.Scale = scale
  2753. local scaler2 = 1
  2754. if type == "Add" then
  2755. scaler2 = 1*value
  2756. elseif type == "Divide" then
  2757. scaler2 = 1/value
  2758. end
  2759. coroutine.resume(coroutine.create(function()
  2760. for i = 0,10,0.1 do
  2761. swait()
  2762. if type == "Add" then
  2763. scaler2 = scaler2 - 0.01*value
  2764. elseif type == "Divide" then
  2765. scaler2 = scaler2 - 0.01/value
  2766. end
  2767. rng.Transparency = rng.Transparency + 0.01
  2768. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2769. end
  2770. rng:Destroy()
  2771. end))
  2772. end
  2773.  
  2774. function wind(type,pos,scale,value,speed)
  2775. local type = type
  2776. local rng = Instance.new("Part", char)
  2777. rng.Anchored = true
  2778. rng.BrickColor = origcolor
  2779. rng.CanCollide = false
  2780. rng.FormFactor = 3
  2781. rng.Name = "Ring"
  2782. rng.Size = Vector3.new(1, 1, 1)
  2783. rng.Transparency = 0
  2784. rng.TopSurface = 0
  2785. rng.BottomSurface = 0
  2786. rng.CFrame = pos
  2787. local rngm = Instance.new("SpecialMesh", rng)
  2788. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2789. rngm.Scale = scale
  2790. local scaler2 = 1
  2791. if type == "Add" then
  2792. scaler2 = 1*value
  2793. elseif type == "Divide" then
  2794. scaler2 = 1/value
  2795. end
  2796. coroutine.resume(coroutine.create(function()
  2797. for i = 0,10,0.1 do
  2798. swait()
  2799. if type == "Add" then
  2800. scaler2 = scaler2 - 0.01*value
  2801. elseif type == "Divide" then
  2802. scaler2 = scaler2 - 0.01/value
  2803. end
  2804. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2805. rng.Transparency = rng.Transparency + 0.01
  2806. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2807. end
  2808. rng:Destroy()
  2809. end))
  2810. end
  2811.  
  2812.  
  2813.  
  2814. function CameraManager()
  2815. if TwoD and not CamInterrupt then
  2816. if Humanoid.Health > 0 then
  2817. Camera.CameraSubject = Humanoid
  2818. Camera.CameraType = "Scriptable"
  2819. Humanoid.AutoRotate = false
  2820. if Booleans.GyroUse then
  2821. Directer.MaxTorque = Vec3(0, huge, 0)
  2822. else
  2823. Directer.MaxTorque = Vec3(0, 0, 0)
  2824. end
  2825. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2826. if Booleans.CamFollow then
  2827. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2828. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2829. else
  2830. CPart.Position = RootPart.Position
  2831. end
  2832. else
  2833. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2834. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2835. end
  2836. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2837. else
  2838. Camera.CameraSubject = Humanoid
  2839. Camera.CameraType = "Custom"
  2840. end
  2841. end
  2842. end
  2843.  
  2844. function ring(type,pos,scale,value)
  2845. local type = type
  2846. local rng = Instance.new("Part", char)
  2847. rng.Anchored = true
  2848. rng.BrickColor = origcolor
  2849. rng.CanCollide = false
  2850. rng.FormFactor = 3
  2851. rng.Name = "Ring"
  2852. rng.Size = Vector3.new(1, 1, 1)
  2853. rng.Transparency = 0
  2854. rng.TopSurface = 0
  2855. rng.BottomSurface = 0
  2856. rng.CFrame = pos
  2857. local rngm = Instance.new("SpecialMesh", rng)
  2858. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2859. rngm.Scale = scale
  2860. local scaler2 = 1
  2861. if type == "Add" then
  2862. scaler2 = 1*value
  2863. elseif type == "Divide" then
  2864. scaler2 = 1/value
  2865. end
  2866. coroutine.resume(coroutine.create(function()
  2867. for i = 0,10,0.1 do
  2868. swait()
  2869. if type == "Add" then
  2870. scaler2 = scaler2 - 0.01*value
  2871. elseif type == "Divide" then
  2872. scaler2 = scaler2 - 0.01/value
  2873. end
  2874. rng.Transparency = rng.Transparency + 0.01
  2875. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2876. end
  2877. rng:Destroy()
  2878. end))
  2879. end
  2880.  
  2881.  
  2882. function wave(type,pos,scale,value)
  2883. local type = type
  2884. local rng = Instance.new("Part", char)
  2885. rng.Anchored = true
  2886. rng.BrickColor = origcolor
  2887. rng.CanCollide = false
  2888. rng.FormFactor = 3
  2889. rng.Name = "Ring"
  2890. rng.Size = Vector3.new(1, 1, 1)
  2891. rng.Transparency = 0
  2892. rng.TopSurface = 0
  2893. rng.BottomSurface = 0
  2894. rng.CFrame = pos
  2895. local rngm = Instance.new("SpecialMesh", rng)
  2896. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2897. rngm.Scale = scale
  2898. local scaler2 = 1
  2899. if type == "Add" then
  2900. scaler2 = 1*value
  2901. elseif type == "Divide" then
  2902. scaler2 = 1/value
  2903. end
  2904. coroutine.resume(coroutine.create(function()
  2905. for i = 0,10,0.1 do
  2906. swait()
  2907. if type == "Add" then
  2908. scaler2 = scaler2 - 0.01*value
  2909. elseif type == "Divide" then
  2910. scaler2 = scaler2 - 0.01/value
  2911. end
  2912. rng.Transparency = rng.Transparency + 0.01
  2913. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2914. end
  2915. rng:Destroy()
  2916. end))
  2917. end
  2918.  
  2919. function sphere(bonuspeed,type,pos,scale,value,color)
  2920. local type = type
  2921. local rng = Instance.new("Part", char)
  2922. rng.Anchored = true
  2923. if ModeOfGlitch ~= 9 then
  2924. rng.BrickColor = color
  2925. elseif ModeOfGlitch == 9 then
  2926. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  2927. end
  2928. rng.CanCollide = false
  2929. rng.FormFactor = 3
  2930. rng.Name = "Ring"
  2931. rng.Material = "Neon"
  2932. rng.Size = Vector3.new(1, 1, 1)
  2933. rng.Transparency = 0
  2934. rng.TopSurface = 0
  2935. rng.BottomSurface = 0
  2936. rng.CFrame = pos
  2937. local rngm = Instance.new("SpecialMesh", rng)
  2938. rngm.MeshType = "Sphere"
  2939. rngm.Scale = scale
  2940. if rainbowmode == true then
  2941. rng.Color = Color3.new(r/255,g/255,b/255)
  2942. end
  2943. if ModeOfGlitch == 9 then
  2944. coroutine.resume(coroutine.create(function()
  2945. while true do
  2946. swait()
  2947. if rng.Parent ~= nil then
  2948. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  2949. else
  2950. break
  2951. end
  2952. end
  2953. end))
  2954. end
  2955. local scaler2 = 1
  2956. if type == "Add" then
  2957. scaler2 = 1*value
  2958. elseif type == "Divide" then
  2959. scaler2 = 1/value
  2960. end
  2961. coroutine.resume(coroutine.create(function()
  2962. for i = 0,10/bonuspeed,0.1 do
  2963. swait()
  2964. if rainbowmode == true then
  2965. rng.Color = Color3.new(r/255,g/255,b/255)
  2966. end
  2967. if type == "Add" then
  2968. scaler2 = scaler2 - 0.01*value/bonuspeed
  2969. elseif type == "Divide" then
  2970. scaler2 = scaler2 - 0.01/value*bonuspeed
  2971. end
  2972. if chaosmode == true then
  2973. rng.BrickColor = BrickColor.random()
  2974. end
  2975. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2976. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2977. end
  2978. rng:Destroy()
  2979. end))
  2980. end
  2981.  
  2982. function Effect(par,color,CF,x,y,z,x1,y1,z1,de,mtyp,typ,rad,id,posi)
  2983. local ex=create("Part"){
  2984. Size=Vector3.new(.2,.2,.2),
  2985. BrickColor=BrickColor.new(color),
  2986. CanCollide=false,
  2987. Material="Neon",
  2988. Anchored=true,
  2989. Parent=par}
  2990. NoOutline(ex)
  2991. if posi==2 then
  2992. ex.Position=(CF).p
  2993. ex.CFrame=ex.CFrame*CFrame.Angles(-math.rad(90),0,0)
  2994. else
  2995. ex.CFrame=CF
  2996. end
  2997. local exe=create("SpecialMesh"){
  2998. Scale=Vector3.new(x,y,z),
  2999. MeshType=mtyp,
  3000. Parent=ex}
  3001. if mtyp=="FileMesh"and id~=""then
  3002. exe.MeshId="rbxassetid://"..id
  3003. end
  3004. game:GetService("Debris"):AddItem(ex,10)
  3005. local ez=ex.CFrame
  3006. local nu=0
  3007. local no=math.random()-math.random()
  3008. coroutine.resume(coroutine.create(function()
  3009. for i=0,1.01,de do
  3010. swait()
  3011. if typ~=5 then
  3012. ex.Transparency=i
  3013. end
  3014. exe.Scale=exe.Scale+Vector3.new(x1,y1,z1)
  3015. if typ==1 then
  3016. ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  3017. elseif typ==2 then
  3018. ex.CFrame=ex.CFrame*CFrame.Angles(0,math.rad(rad),0)
  3019. elseif typ==3 then
  3020. ex.CFrame=ex.CFrame*CFrame.new(0,0,rad)
  3021. elseif typ==4 then
  3022. nu=nu+no
  3023. ez=ez*CFrame.new(0,rad,0)
  3024. ex.CFrame=ez*CFrame.Angles(nu,0,0)
  3025. --ex.CFrame=ex.CFrame
  3026. end
  3027. end
  3028. ex:Remove()
  3029. end))
  3030. end
  3031.  
  3032. function clone(wh,tr,asdf,deb)
  3033. local aaa=wh:Clone()
  3034. aaa.Parent=e
  3035. aaa:BreakJoints()
  3036. aaa.Color=BrickColor.new(modecolor[1]).Color
  3037. aaa.Material="Neon"
  3038. aaa.Transparency=tr
  3039. aaa.Anchored=true
  3040. aaa.CanCollide=false
  3041. if asdf==true then
  3042. aaa.Size=aaa.Size+Vector3.new(0.05,0.05,0.05)
  3043. end
  3044. game:GetService("Debris"):AddItem(aaa,5)
  3045. for _,ff in pairs(aaa:children()) do
  3046. if ff:IsA("Sound")or ff:IsA("SpecialMesh")or ff:IsA("Decal")or ff:IsA("BillboardGui") then
  3047. ff:Remove()
  3048. end
  3049. end
  3050. if aaa.Name=="Head" then
  3051. aaa.Size=Vector3.new(1,1,1)
  3052. elseif aaa.Name=="HumanoidRootPart"then
  3053. aaa.Transparency=1
  3054. end
  3055. coroutine.resume(coroutine.create(function(cc)
  3056. for i=0,1,deb do
  3057. swait()
  3058. cc.Transparency=i
  3059. end
  3060. cc:Remove()
  3061. end),aaa)
  3062. end
  3063.  
  3064. function REffect(par,color,CF,x,y,z,x1,y1,z1,de,mtyp,typ,rad,id)
  3065. local ex=create("Part"){
  3066. Size=Vector3.new(.2,.2,.2),
  3067. BrickColor=BrickColor.new(color),
  3068. CanCollide=false,
  3069. Material="Neon",
  3070. Anchored=true,
  3071. CFrame=CF,
  3072. Parent=par,
  3073. Transparency=1}
  3074. NoOutline(ex)
  3075. local exe=create("SpecialMesh"){
  3076. Scale=Vector3.new(x,y,z),
  3077. MeshType=mtyp,
  3078. Parent=ex}
  3079. if mtyp=="FileMesh"and id~=""then
  3080. exe.MeshId="rbxassetid://"..id
  3081. end
  3082. game:GetService("Debris"):AddItem(ex,10)
  3083. local ez=ex.CFrame
  3084. local nu=0
  3085. local no=math.random()-math.random()
  3086. coroutine.resume(coroutine.create(function()
  3087. for i=1,-.01,-de do
  3088. swait()
  3089. if typ~=5 then
  3090. ex.Transparency=i
  3091. end
  3092. exe.Scale=exe.Scale+Vector3.new(x1,y1,z1)
  3093. if typ==1 then
  3094. ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  3095. elseif typ==2 then
  3096. ex.CFrame=ex.CFrame*CFrame.Angles(0,math.rad(rad),0)
  3097. elseif typ==3 then
  3098. ex.CFrame=ex.CFrame*CFrame.new(0,0,rad)
  3099. elseif typ==4 then
  3100. nu=nu+no
  3101. ez=ez*CFrame.new(0,rad,0)
  3102. ex.CFrame=ez*CFrame.Angles(nu,0,0)
  3103. --ex.CFrame=ex.CFrame
  3104. end
  3105. end
  3106. ex:Remove()
  3107. end))
  3108. end
  3109.  
  3110. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  3111. local type = type
  3112. local rng = Instance.new("Part", char)
  3113. rng.Anchored = true
  3114. if ModeOfGlitch ~= 9 then
  3115. rng.BrickColor = color
  3116. elseif ModeOfGlitch == 9 then
  3117. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  3118. end
  3119. rng.CanCollide = false
  3120. rng.FormFactor = 3
  3121. rng.Name = "Ring"
  3122. rng.Material = "Neon"
  3123. rng.Size = Vector3.new(1, 1, 1)
  3124. rng.Transparency = 0
  3125. rng.TopSurface = 0
  3126. rng.BottomSurface = 0
  3127. rng.CFrame = pos
  3128. local rngm = Instance.new("SpecialMesh", rng)
  3129. rngm.MeshType = "Sphere"
  3130. rngm.Scale = scale
  3131. local scaler2 = 1
  3132. local scaler2b = 1
  3133. local scaler2c = 1
  3134. if type == "Add" then
  3135. scaler2 = 1*value
  3136. scaler2b = 1*value2
  3137. scaler2c = 1*value3
  3138. elseif type == "Divide" then
  3139. scaler2 = 1/value
  3140. scaler2b = 1/value2
  3141. scaler2c = 1/value3
  3142. end
  3143. if ModeOfGlitch == 9 then
  3144. coroutine.resume(coroutine.create(function()
  3145. while true do
  3146. swait()
  3147. if rng.Parent ~= nil then
  3148. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  3149. else
  3150. break
  3151. end
  3152. end
  3153. end))
  3154. end
  3155. coroutine.resume(coroutine.create(function()
  3156. for i = 0,10/bonuspeed,0.1 do
  3157. swait()
  3158. if type == "Add" then
  3159. scaler2 = scaler2 - 0.01*value/bonuspeed
  3160. scaler2b = scaler2b - 0.01*value/bonuspeed
  3161. scaler2c = scaler2c - 0.01*value/bonuspeed
  3162. elseif type == "Divide" then
  3163. scaler2 = scaler2 - 0.01/value*bonuspeed
  3164. scaler2b = scaler2b - 0.01/value*bonuspeed
  3165. scaler2c = scaler2c - 0.01/value*bonuspeed
  3166. end
  3167. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3168. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3169. end
  3170. rng:Destroy()
  3171. end))
  3172. end
  3173.  
  3174. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3175. local type = type
  3176. local rotenable = rotatingop
  3177. local rng = Instance.new("Part", char)
  3178. rng.Anchored = true
  3179. rng.BrickColor = color
  3180. rng.CanCollide = false
  3181. rng.FormFactor = 3
  3182. rng.Name = "Ring"
  3183. rng.Material = "Neon"
  3184. rng.Size = Vector3.new(1, 1, 1)
  3185. rng.Transparency = 0
  3186. if typeoftrans == "In" then
  3187. rng.Transparency = 1
  3188. end
  3189. rng.TopSurface = 0
  3190. rng.BottomSurface = 0
  3191. rng.CFrame = pos
  3192. local rngm = Instance.new("SpecialMesh", rng)
  3193. rngm.MeshType = "FileMesh"
  3194. if typeofshape == "Normal" then
  3195. rngm.MeshId = "rbxassetid://662586858"
  3196. elseif typeofshape == "Round" then
  3197. rngm.MeshId = "rbxassetid://662585058"
  3198. end
  3199. rngm.Scale = scale
  3200. local scaler2 = 1/10
  3201. if type == "Add" then
  3202. scaler2 = 1*value/10
  3203. elseif type == "Divide" then
  3204. scaler2 = 1/value/10
  3205. end
  3206. local randomrot = math.random(1,2)
  3207. coroutine.resume(coroutine.create(function()
  3208. for i = 0,10/bonuspeed,0.1 do
  3209. swait()
  3210. if type == "Add" then
  3211. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3212. elseif type == "Divide" then
  3213. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3214. end
  3215. if rotenable == true then
  3216. if randomrot == 1 then
  3217. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3218. elseif randomrot == 2 then
  3219. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3220. end
  3221. end
  3222. if typeoftrans == "Out" then
  3223. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3224. elseif typeoftrans == "In" then
  3225. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3226. end
  3227. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3228. end
  3229. rng:Destroy()
  3230. end))
  3231. end
  3232.  
  3233. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3234. local type = type
  3235. local rng = Instance.new("Part", char)
  3236. rng.Anchored = true
  3237. rng.BrickColor = color
  3238. rng.CanCollide = false
  3239. rng.FormFactor = 3
  3240. rng.Name = "Ring"
  3241. rng.Material = "Neon"
  3242. rng.Size = Vector3.new(1, 1, 1)
  3243. rng.Transparency = 0
  3244. rng.TopSurface = 0
  3245. rng.BottomSurface = 0
  3246. rng.CFrame = pos
  3247. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3248. local rngm = Instance.new("SpecialMesh", rng)
  3249. rngm.MeshType = "Brick"
  3250. rngm.Scale = vt(x1,y1,z1)
  3251. if rainbowmode == true then
  3252. rng.Color = Color3.new(r/255,g/255,b/255)
  3253. end
  3254. local scaler2 = 1
  3255. local speeder = FastSpeed/10
  3256. if type == "Add" then
  3257. scaler2 = 1*value
  3258. elseif type == "Divide" then
  3259. scaler2 = 1/value
  3260. end
  3261. coroutine.resume(coroutine.create(function()
  3262. for i = 0,10/bonuspeed,0.1 do
  3263. swait()
  3264. if rainbowmode == true then
  3265. rng.Color = Color3.new(r/255,g/255,b/255)
  3266. end
  3267. if type == "Add" then
  3268. scaler2 = scaler2 - 0.01*value/bonuspeed
  3269. elseif type == "Divide" then
  3270. scaler2 = scaler2 - 0.01/value*bonuspeed
  3271. end
  3272. if chaosmode == true then
  3273. rng.BrickColor = BrickColor.random()
  3274. end
  3275. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3276. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3277. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3278. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3279. end
  3280. rng:Destroy()
  3281. end))
  3282. end
  3283.  
  3284. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3285. local type = type
  3286. local rng = Instance.new("Part", char)
  3287. rng.Anchored = true
  3288. rng.BrickColor = color
  3289. rng.CanCollide = false
  3290. rng.FormFactor = 3
  3291. rng.Name = "Ring"
  3292. rng.Material = "Neon"
  3293. rng.Size = Vector3.new(1, 1, 1)
  3294. rng.Transparency = 0
  3295. rng.TopSurface = 0
  3296. rng.BottomSurface = 0
  3297. rng.CFrame = pos
  3298. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3299. local rngm = Instance.new("SpecialMesh", rng)
  3300. rngm.MeshType = "Brick"
  3301. rngm.Scale = vt(x1,y1,z1)
  3302. if rainbowmode == true then
  3303. rng.Color = Color3.new(r/255,g/255,b/255)
  3304. end
  3305. local scaler2 = 1
  3306. local speeder = FastSpeed/10
  3307. if type == "Add" then
  3308. scaler2 = 1*value
  3309. elseif type == "Divide" then
  3310. scaler2 = 1/value
  3311. end
  3312. coroutine.resume(coroutine.create(function()
  3313. for i = 0,10/bonuspeed,0.1 do
  3314. swait()
  3315. if rainbowmode == true then
  3316. rng.Color = Color3.new(r/255,g/255,b/255)
  3317. end
  3318. if type == "Add" then
  3319. scaler2 = scaler2 - 0.01*value/bonuspeed
  3320. elseif type == "Divide" then
  3321. scaler2 = scaler2 - 0.01/value*bonuspeed
  3322. end
  3323. if chaosmode == true then
  3324. rng.BrickColor = BrickColor.random()
  3325. end
  3326. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3327. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3328. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3329. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3330. end
  3331. rng:Destroy()
  3332. end))
  3333. end
  3334.  
  3335. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3336. local type = type
  3337. local rng = Instance.new("Part", char)
  3338. rng.Anchored = true
  3339. rng.BrickColor = color
  3340. rng.CanCollide = false
  3341. rng.FormFactor = 3
  3342. rng.Name = "Ring"
  3343. rng.Material = "Neon"
  3344. rng.Size = Vector3.new(1, 1, 1)
  3345. rng.Transparency = 0
  3346. rng.TopSurface = 0
  3347. rng.BottomSurface = 0
  3348. rng.CFrame = pos
  3349. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3350. local rngm = Instance.new("SpecialMesh", rng)
  3351. rngm.MeshType = "Brick"
  3352. rngm.Scale = vt(x1,y1,z1)
  3353. if rainbowmode == true then
  3354. rng.Color = Color3.new(r/255,g/255,b/255)
  3355. end
  3356. local scaler2 = 0
  3357. local speeder = FastSpeed/10
  3358. if type == "Add" then
  3359. scaler2 = 1*value
  3360. elseif type == "Divide" then
  3361. scaler2 = 1/value
  3362. end
  3363. coroutine.resume(coroutine.create(function()
  3364. for i = 0,10/bonuspeed,0.1 do
  3365. swait()
  3366. if rainbowmode == true then
  3367. rng.Color = Color3.new(r/255,g/255,b/255)
  3368. end
  3369. if type == "Add" then
  3370. scaler2 = scaler2 - 0.01*value/bonuspeed
  3371. elseif type == "Divide" then
  3372. scaler2 = scaler2 - 0.01/value*bonuspeed
  3373. end
  3374. if chaosmode == true then
  3375. rng.BrickColor = BrickColor.random()
  3376. end
  3377. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3378. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3379. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3380. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3381. end
  3382. rng:Destroy()
  3383. end))
  3384. end
  3385.  
  3386. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3387. local type = type
  3388. local rng = Instance.new("Part", char)
  3389. rng.Anchored = true
  3390. rng.BrickColor = color
  3391. rng.Color = color3
  3392. rng.CanCollide = false
  3393. rng.FormFactor = 3
  3394. rng.Name = "Ring"
  3395. rng.Material = "Neon"
  3396. rng.Size = Vector3.new(1, 1, 1)
  3397. rng.Transparency = 0
  3398. rng.TopSurface = 0
  3399. rng.BottomSurface = 0
  3400. rng.CFrame = pos
  3401. local rngm = Instance.new("SpecialMesh", rng)
  3402. rngm.MeshType = "Brick"
  3403. rngm.Scale = scale
  3404. local scaler2 = 1
  3405. local scaler2b = 1
  3406. local scaler2c = 1
  3407. if type == "Add" then
  3408. scaler2 = 1*value
  3409. scaler2b = 1*value2
  3410. scaler2c = 1*value3
  3411. elseif type == "Divide" then
  3412. scaler2 = 1/value
  3413. scaler2b = 1/value2
  3414. scaler2c = 1/value3
  3415. end
  3416. coroutine.resume(coroutine.create(function()
  3417. for i = 0,10/bonuspeed,0.1 do
  3418. swait()
  3419. if type == "Add" then
  3420. scaler2 = scaler2 - 0.01*value/bonuspeed
  3421. scaler2b = scaler2b - 0.01*value/bonuspeed
  3422. scaler2c = scaler2c - 0.01*value/bonuspeed
  3423. elseif type == "Divide" then
  3424. scaler2 = scaler2 - 0.01/value*bonuspeed
  3425. scaler2b = scaler2b - 0.01/value*bonuspeed
  3426. scaler2c = scaler2c - 0.01/value*bonuspeed
  3427. end
  3428. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3429. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3430. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3431. end
  3432. rng:Destroy()
  3433. end))
  3434. end
  3435.  
  3436. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3437. local type = type
  3438. local rng = Instance.new("Part", char)
  3439. rng.Anchored = true
  3440. if ModeOfGlitch ~= 9 then
  3441. rng.BrickColor = color
  3442. elseif ModeOfGlitch == 9 then
  3443. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  3444. end
  3445. rng.CanCollide = false
  3446. rng.FormFactor = 3
  3447. rng.Name = "Ring"
  3448. rng.Material = "Neon"
  3449. rng.Size = Vector3.new(1, 1, 1)
  3450. rng.Transparency = 0
  3451. rng.TopSurface = 0
  3452. rng.BottomSurface = 0
  3453. rng.CFrame = pos
  3454. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3455. local rngm = Instance.new("SpecialMesh", rng)
  3456. rngm.MeshType = "Sphere"
  3457. rngm.Scale = vt(x1,y1,z1)
  3458. if rainbowmode == true then
  3459. rng.Color = Color3.new(r/255,g/255,b/255)
  3460. end
  3461. if ModeOfGlitch == 9 then
  3462. coroutine.resume(coroutine.create(function()
  3463. while true do
  3464. swait()
  3465. if rng.Parent ~= nil then
  3466. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  3467. else
  3468. break
  3469. end
  3470. end
  3471. end))
  3472. end
  3473. local scaler2 = 1
  3474. local speeder = FastSpeed
  3475. if type == "Add" then
  3476. scaler2 = 1*value
  3477. elseif type == "Divide" then
  3478. scaler2 = 1/value
  3479. end
  3480. coroutine.resume(coroutine.create(function()
  3481. for i = 0,10/bonuspeed,0.1 do
  3482. swait()
  3483. if rainbowmode == true then
  3484. rng.Color = Color3.new(r/255,g/255,b/255)
  3485. end
  3486. if type == "Add" then
  3487. scaler2 = scaler2 - 0.01*value/bonuspeed
  3488. elseif type == "Divide" then
  3489. scaler2 = scaler2 - 0.01/value*bonuspeed
  3490. end
  3491. if chaosmode == true then
  3492. rng.BrickColor = BrickColor.random()
  3493. end
  3494. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3495. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3496. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3497. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3498. end
  3499. rng:Destroy()
  3500. end))
  3501. end
  3502.  
  3503.  
  3504. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3505. local type = type
  3506. local rng = Instance.new("Part", char)
  3507. rng.Anchored = true
  3508. if ModeOfGlitch ~= 9 then
  3509. rng.BrickColor = color
  3510. elseif ModeOfGlitch == 9 then
  3511. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  3512. end
  3513. rng.CanCollide = false
  3514. rng.FormFactor = 3
  3515. rng.Name = "Ring"
  3516. rng.Material = "Neon"
  3517. rng.Size = Vector3.new(1, 1, 1)
  3518. rng.Transparency = 1
  3519. rng.TopSurface = 0
  3520. rng.BottomSurface = 0
  3521. rng.CFrame = pos
  3522. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3523. local rngm = Instance.new("SpecialMesh", rng)
  3524. rngm.MeshType = "Sphere"
  3525. rngm.Scale = vt(x1,y1,z1)
  3526. if rainbowmode == true then
  3527. rng.Color = Color3.new(r/255,g/255,b/255)
  3528. end
  3529. if ModeOfGlitch == 9 then
  3530. coroutine.resume(coroutine.create(function()
  3531. while true do
  3532. swait()
  3533. if rng.Parent ~= nil then
  3534. rng.Color = Color3.new(kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000,kmusic.PlaybackLoudness/1000)
  3535. else
  3536. break
  3537. end
  3538. end
  3539. end))
  3540. end
  3541. local scaler2 = 1
  3542. local speeder = FastSpeed
  3543. if type == "Add" then
  3544. scaler2 = 1*value
  3545. elseif type == "Divide" then
  3546. scaler2 = 1/value
  3547. end
  3548. coroutine.resume(coroutine.create(function()
  3549. for i = 0,10/bonuspeed,0.1 do
  3550. swait()
  3551. if rainbowmode == true then
  3552. rng.Color = Color3.new(r/255,g/255,b/255)
  3553. end
  3554. if type == "Add" then
  3555. scaler2 = scaler2 - 0.01*value/bonuspeed
  3556. elseif type == "Divide" then
  3557. scaler2 = scaler2 - 0.01/value*bonuspeed
  3558. end
  3559. if chaosmode == true then
  3560. rng.BrickColor = BrickColor.random()
  3561. end
  3562. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3563. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3564. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3565. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3566. end
  3567. rng:Destroy()
  3568. end))
  3569. end
  3570.  
  3571. function dmg(dude)
  3572. if dude.Name ~= Character then
  3573. local bgf = Instance.new("BodyGyro",dude.Head)
  3574. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3575. local val = Instance.new("BoolValue",dude)
  3576. val.Name = "IsHit"
  3577. local ds = coroutine.wrap(function()
  3578. local torso = dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso'
  3579. for i = 1, 10 do
  3580. end
  3581. dude:WaitForChild("Head"):BreakJoints()
  3582. wait(0.5)
  3583. targetted = nil
  3584.  
  3585. coroutine.resume(coroutine.create(function()
  3586. for i, v in pairs(dude:GetChildren()) do
  3587. if v:IsA("Accessory") then
  3588. v:Destroy()
  3589. end
  3590. if v:IsA("Humanoid") then
  3591. v:Destroy()
  3592. end
  3593. if v:IsA("CharacterMesh") then
  3594. v:Destroy()
  3595. end
  3596. if v:IsA("Model") then
  3597. v:Destroy()
  3598. end
  3599. if v:IsA("Part") or v:IsA("MeshPart") then
  3600. for x, o in pairs(v:GetChildren()) do
  3601. if o:IsA("Decal") then
  3602. o:Destroy()
  3603. end
  3604. end
  3605. coroutine.resume(coroutine.create(function()
  3606. v.Transparency = 1
  3607. wait(0.5)
  3608. v.Transparency = 0
  3609. coroutine.resume(coroutine.create(function()
  3610. for i = 0, 49 do
  3611. swait(1)
  3612. v.Transparency = 1
  3613. end
  3614. wait(0.5)
  3615. wait(3)
  3616. v:Destroy()
  3617. dude:Destroy()
  3618. end))
  3619. end))
  3620. end
  3621. end
  3622. end))
  3623. end)
  3624. ds()
  3625. end
  3626. end
  3627.  
  3628. function dmg2(dude)
  3629. if dude.Name ~= Character then
  3630. local keptcolor = BrickColor.new("Really red")
  3631. local bgf = Instance.new("BodyGyro",dude.Head)
  3632. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3633. --[[local val = Instance.new("BoolValue",dude)
  3634. val.Name = "IsHit"]]--
  3635. local ds = coroutine.wrap(function()
  3636. dude:WaitForChild("Head"):BreakJoints()
  3637. for i, v in pairs(dude:GetChildren()) do
  3638. if v:IsA("Part") or v:IsA("MeshPart") then
  3639. v.Name = "DEMINISHED"
  3640. end
  3641. end
  3642. wait(0.5)
  3643. targetted = nil
  3644. --["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3645. coroutine.resume(coroutine.create(function()
  3646. for i, v in pairs(dude:GetChildren()) do
  3647. if v:IsA("Accessory") then
  3648. v:Destroy()
  3649. end
  3650. if v:IsA("Humanoid") then
  3651. v:Destroy()
  3652. end
  3653. if v:IsA("CharacterMesh") then
  3654. v:Destroy()
  3655. end
  3656. if v:IsA("Model") then
  3657. v:Destroy()
  3658. end
  3659. if v:IsA("Part") or v:IsA("MeshPart") then
  3660. for x, o in pairs(v:GetChildren()) do
  3661. if o:IsA("Decal") then
  3662. o:Destroy()
  3663. end
  3664. end
  3665. coroutine.resume(coroutine.create(function()
  3666. v.Material = "Neon"
  3667. v.CanCollide = false
  3668. v.Anchored = false
  3669. local sbs = Instance.new("BodyPosition", v)
  3670. sbs.P = 3000
  3671. sbs.D = 1000
  3672. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3673. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3674. v.Color = keptcolor.Color
  3675. coroutine.resume(coroutine.create(function()
  3676. for i = 0, 49 do
  3677. swait(1)
  3678. v:BreakJoints()
  3679. v.Transparency = v.Transparency + 0.02
  3680. end
  3681. v:BreakJoints()
  3682. --sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3683. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3684. wait(0.5)
  3685. wait(8)
  3686. v:Destroy()
  3687. dude:Destroy()
  3688. end))
  3689. end))
  3690. end
  3691. end
  3692. end))
  3693. end)
  3694. ds()
  3695. end
  3696. end
  3697.  
  3698. function FindNearestTorso(Position, Distance, SinglePlayer)
  3699. if SinglePlayer then
  3700. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3701. end
  3702. local List = {}
  3703. for i, v in pairs(workspace:GetChildren()) do
  3704. if v:IsA("Model") then
  3705. if v:findFirstChild("Torso") or v:findFirstChild("UpperTorso") then
  3706. if v ~= Character then
  3707. if (v.Head.Position - Position).magnitude <= Distance then
  3708. table.insert(List, v)
  3709. end
  3710. end
  3711. end
  3712. end
  3713. end
  3714. return List
  3715. end
  3716.  
  3717. function FindNearestHead(Position, Distance, SinglePlayer)
  3718. if SinglePlayer then
  3719. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3720. end
  3721. local List = {}
  3722. for i, v in pairs(workspace:GetChildren()) do
  3723. if v:IsA("Model") then
  3724. if v:findFirstChild("Head") then
  3725. if v ~= Character then
  3726. if (v.Head.Position - Position).magnitude <= Distance then
  3727. table.insert(List, v)
  3728. end
  3729. end
  3730. end
  3731. end
  3732. end
  3733. return List
  3734. end
  3735.  
  3736. function FaceMouse()
  3737. Cam = workspace.CurrentCamera
  3738. return {
  3739. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3740. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3741. }
  3742. end
  3743.  
  3744. function FaceMouse2()
  3745. Cam = workspace.CurrentCamera
  3746. return {
  3747. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3748. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3749. }
  3750. end
  3751.  
  3752.  
  3753.  
  3754. function MakeForm(PART,TYPE)
  3755. if TYPE == "Cyl" then
  3756. local MSH = it("CylinderMesh",PART)
  3757. elseif TYPE == "Ball" then
  3758. local MSH = it("SpecialMesh",PART)
  3759. MSH.MeshType = "Sphere"
  3760. elseif TYPE == "Wedge" then
  3761. local MSH = it("SpecialMesh",PART)
  3762. MSH.MeshType = "Wedge"
  3763. end
  3764. end
  3765.  
  3766. function CreatePartD(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  3767. local NEWPART = it("Part")
  3768. NEWPART.formFactor = FORMFACTOR
  3769. NEWPART.Reflectance = REFLECTANCE
  3770. NEWPART.Transparency = TRANSPARENCY
  3771. NEWPART.CanCollide = false
  3772. NEWPART.Locked = true
  3773. NEWPART.Anchored = true
  3774. if ANCHOR == false then
  3775. NEWPART.Anchored = false
  3776. end
  3777. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  3778. NEWPART.Name = NAME
  3779. NEWPART.Size = SIZE
  3780. NEWPART.Position = Torso.Position
  3781. NEWPART.Material = MATERIAL
  3782. NEWPART:BreakJoints()
  3783. NEWPART.Parent = PARENT
  3784. return NEWPART
  3785. end
  3786.  
  3787.  
  3788.  
  3789. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  3790. local DIRECTION = cf(StartPos,EndPos).lookVector
  3791. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  3792. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  3793. end
  3794.  
  3795.  
  3796.  
  3797. -- Functions are ready.
  3798. local storehumanoidWS = 16
  3799.  
  3800. function createBGCircle(size,parent,color)
  3801. local bgui = Instance.new("BillboardGui",parent)
  3802. bgui.Size = UDim2.new(size, 0, size, 0)
  3803. local imgc = Instance.new("ImageLabel",bgui)
  3804. imgc.BackgroundTransparency = 1
  3805. imgc.ImageTransparency = 0
  3806. imgc.Size = UDim2.new(1,0,1,0)
  3807. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  3808. imgc.ImageColor3 = color
  3809. return bgui,imgc
  3810. end
  3811.  
  3812.  
  3813. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  3814. local bgui,imgc = createBGCircle(size,guipar,color)
  3815. bgui.AlwaysOnTop = true
  3816. imgc.Image = "rbxassetid://" ..img
  3817. local rrot = math.random(1,2)
  3818. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  3819. coroutine.resume(coroutine.create(function()
  3820. for i = 0, 24*delay do
  3821. swait()
  3822. if rotationenabled == true then
  3823. if rrot == 1 then
  3824. imgc.Rotation = imgc.Rotation + rotsp
  3825. elseif rrot == 2 then
  3826. imgc.Rotation = imgc.Rotation - rotsp
  3827. end
  3828. end
  3829. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  3830. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  3831. end
  3832. bgui:Destroy()
  3833. end))
  3834. end
  3835. local ColorEx1 = BrickColor.new("Bright yellow")
  3836. local ColorEx2 = BrickColor.new("Deep orange")
  3837. whitecolor = BrickColor.new("White")
  3838. for i,v in pairs(char:GetChildren()) do
  3839. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  3840. v:Destroy()
  3841. end
  3842. end
  3843. for i,v in pairs(char:GetChildren()) do
  3844. if v.ClassName == "Accessory" then
  3845. v.Parent = nil
  3846. end
  3847. end
  3848. local shirt = Instance.new("Shirt",char)
  3849. shirt.ShirtTemplate = "rbxassetid://338740550"
  3850. local pants = Instance.new("Pants",char)
  3851. pants.PantsTemplate = "rbxassetid://338750779"
  3852. local bdycolors = char["Body Colors"]
  3853. bdycolors.HeadColor3 = whitecolor.Color
  3854. bdycolors.LeftArmColor3 = whitecolor.Color
  3855. bdycolors.LeftLegColor3 = whitecolor.Color
  3856. bdycolors.RightArmColor3 = whitecolor.Color
  3857. bdycolors.RightLegColor3 = whitecolor.Color
  3858. bdycolors.TorsoColor3 = whitecolor.Color
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864. --[[
  3865. Thanks for using Build-To-Lua by jarredbcv.
  3866. ]]--
  3867.  
  3868. New = function(Object, Parent, Name, Data)
  3869. local Object = Instance.new(Object)
  3870. for Index, Value in pairs(Data or {}) do
  3871. Object[Index] = Value
  3872. end
  3873. Object.Parent = Parent
  3874. Object.Name = Name
  3875. return Object
  3876. end
  3877.  
  3878. Eyo = New("Model",char,"Eyo",{})
  3879. Eye = New("Part",Eyo,"Eye",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Ball,Size = Vector3.new(1.96000075, 1.96000075, 1.96000075),CFrame = CFrame.new(-137.175568, 1.33095813, -17.0833168, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  3880. Pupil = New("Part",Eyo,"Pupil",{BrickColor = BrickColor.new("Black"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.37000075, 0.37000075, 0.37000075),CFrame = CFrame.new(-137.235779, 1.42530513, -18.0334377, 1.00000072, -7.15256022e-07, 3.57628181e-07, -7.15256022e-07, 1.00000036, 2.01165761e-07, 3.57628181e-07, 2.01165761e-07, 1.00000215),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  3881. mot = New("Motor",Pupil,"mot",{Part0 = Pupil,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.0602111816, 0.0943470001, -0.950120926, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3882. TopHat2 = New("Part",Eyo,"TopHat2",{BrickColor = BrickColor.new("Really black"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 1, 1),CFrame = CFrame.new(-137.740799, 2.24810791, -17.0272255, 0.458347857, 0.877660632, -0.140108809, -0.888243496, 0.446898967, -0.106327571, -0.0307050757, 0.173186749, 0.984412611),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  3883. mot = New("Motor",TopHat2,"mot",{Part0 = TopHat2,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 0.458347201, -0.88824302, -0.0307050198, 0.877660394, 0.446899265, 0.173186243, -0.140109047, -0.106327735, 0.98441118),C1 = CFrame.new(-0.565231323, 0.917149663, 0.0560913086, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3884. TopHat1 = New("Part",Eyo,"TopHat1",{BrickColor = BrickColor.new("Really black"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.54000056, 1.80000043, 0.780000567),CFrame = CFrame.new(-138.100586, 2.94428444, -17.0250435, 0.457500041, 0.889210463, 3.57628181e-07, -0.88921082, 0.45749861, 2.01165761e-07, -1.52640816e-08, 4.10039718e-07, 1.00000215),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  3885. mot = New("Motor",TopHat1,"mot",{Part0 = TopHat1,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 0.457499385, -0.889210343, -5.08804376e-09, 0.889210224, 0.457498908, 1.36679802e-07, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.925018311, 1.61332572, 0.0582733154, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3886. OuterPupil = New("Part",Eyo,"OuterPupil",{BrickColor = BrickColor.new("Alder"),Material = Enum.Material.Neon,Shape = Enum.PartType.Ball,Size = Vector3.new(1.0000006, 1.0000006, 1.0000006),CFrame = CFrame.new(-137.20755, 1.40179217, -17.6748943, 1.00000072, -7.15256022e-07, 3.57628181e-07, -7.15256022e-07, 1.00000036, 2.01165761e-07, 3.57628181e-07, 2.01165761e-07, 1.00000215),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.705882, 0.501961, 1),})
  3887. mot = New("Motor",OuterPupil,"mot",{Part0 = OuterPupil,Part1 = Eye,C0 = CFrame.new(0, 0, 0, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.0319824219, 0.0708340406, -0.59157753, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3888. TopHat3 = New("Part",Eyo,"TopHat3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.779999912, 0.5, 0.769999981),CFrame = CFrame.new(-138.460098, 3.63034701, -17.0150394, -0.258819818, -0.455481321, 0.851792634, -5.44427401e-08, 0.881841302, 0.471547186, -0.965928435, 0.122045919, -0.228237376),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  3889. Mesh = New("SpecialMesh",TopHat3,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  3890. mot = New("Motor",TopHat3,"mot",{Part0 = TopHat3,Part1 = Eye,C0 = CFrame.new(0, 0, 0, -0.258819461, -4.83165614e-08, -0.965926886, -0.455480665, 0.881840825, 0.122045726, 0.851792514, 0.471547544, -0.228237316),C1 = CFrame.new(-1.28453064, 2.29938841, 0.068277359, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3891.  
  3892.  
  3893. for _,v in pairs(Eyo:GetDescendants()) do
  3894. if v:IsA("Part") then
  3895. v.Locked = true
  3896. v.Transparency = 0
  3897. end
  3898. end
  3899.  
  3900. local NewInstance = function(instance,parent,properties)
  3901. local inst = Instance.new(instance,parent)
  3902. if(properties)then
  3903. for i,v in next, properties do
  3904. pcall(function() inst[i] = v end)
  3905. end
  3906. end
  3907. return inst;
  3908. end
  3909.  
  3910. --local HW = NewInstance('Weld',char,{Part0=tors, Part1=Eye, C0 = CF(0,2,0) * angles(0,0,0)})
  3911. local HW = NewInstance('Weld',Character,{Part0=hed, Part1=Eye, C0 = CF(0,.5,0) * angles(0,0,0)})
  3912. for i,v in pairs(char:children()) do
  3913. if v:IsA("Hat") then
  3914. v:Destroy()
  3915. end
  3916. end
  3917. for i,v in pairs(char:children()) do
  3918. if v:IsA("Accessory") then
  3919. v:Destroy()
  3920. end
  3921. end
  3922. hed.Transparency = 1
  3923. hed.face:Remove()
  3924.  
  3925. New = function(Object, Parent, Name, Data)
  3926. local Object = Instance.new(Object)
  3927. for Index, Value in pairs(Data or {}) do
  3928. Object[Index] = Value
  3929. end
  3930. Object.Parent = Parent
  3931. Object.Name = Name
  3932. return Object
  3933. end
  3934.  
  3935. Eyo2 = New("Model",char,"Eyo",{})
  3936. Eye2 = New("Part",Eyo2,"Eye2",{BrickColor = BrickColor.new("Institutional white"),Transparency = -2.0499992370605,Transparency = -2.0499992370605,Size = Vector3.new(1.96000075, 1.96000075, 1.96000075),CFrame = CFrame.new(-24.5310764, 5.00042391, -44.5769958, -0.0415964536, 0.0387192778, 0.998384058, -4.37870694e-05, 0.999248803, -0.0387546457, -0.999134541, -0.00165577186, -0.0415635109),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  3937. Pupil2 = New("Part",Eyo2,"Pupil2",{BrickColor = BrickColor.new("Black"),Size = Vector3.new(0.37000075, 0.37000075, 0.37000075),CFrame = CFrame.new(-25.473505, 5.13152409, -44.4775009, -0.0415962525, 0.038719438, 0.998385489, -4.42728124e-05, 0.999249041, -0.0387545675, -0.999135017, -0.00165530143, -0.0415638089),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.101961, 0.164706, 0.203922),})
  3938. mot = New("Motor",Pupil2,"mot",{Part0 = Pupil2,Part1 = Eye2,C0 = CFrame.new(0, 0, 0, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.0602111816, 0.0943470001, -0.950120926, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3939. OuterPupil2 = New("Part",Eyo2,"OuterPupil2",{BrickColor = BrickColor.new("Alder"),Material = Enum.Material.Neon,Size = Vector3.new(1.0000006, 1.0000006, 1.0000006),CFrame = CFrame.new(-25.1176243, 5.09413242, -44.5205688, -0.0415962525, 0.038719438, 0.998385489, -4.42728124e-05, 0.999249041, -0.0387545675, -0.999135017, -0.00165530143, -0.0415638089),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.701961, 0.501961, 1),})
  3940. mot = New("Motor",OuterPupil2,"mot",{Part0 = OuterPupil2,Part1 = Eye2,C0 = CFrame.new(0, 0, 0, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.0319824219, 0.0708340406, -0.59157753, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3941. Hat1 = New("Part",Eyo2,"Hat1",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.308999896, 1.48399997, 1.3720001),CFrame = CFrame.new(-24.3719521, 6.61032009, -43.6578712, -0.0534599684, -0.0192737021, 0.998385489, -0.88856262, 0.457116157, -0.0387545675, -0.455631435, -0.889198303, -0.0415638089),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  3942. mot = New("Motor",Hat1,"mot",{Part0 = Hat1,Part1 = Eye2,C0 = CFrame.new(0, 0, 0, 0.457499385, -0.889210343, -5.08804376e-09, 0.889210224, 0.457498908, 1.36679802e-07, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.925018311, 1.61332572, 0.0582733154, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3943. Hat2 = New("Part",Eyo2,"Hat2",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.628999829, 1.12400019, 0.992000163),CFrame = CFrame.new(-24.3719521, 6.61032009, -43.6578712, -0.0534599684, -0.0192737021, 0.998385489, -0.88856262, 0.457116157, -0.0387545675, -0.455631435, -0.889198303, -0.0415638089),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  3944. mot = New("Motor",Hat2,"mot",{Part0 = Hat2,Part1 = Eye2,C0 = CFrame.new(0, 0, 0, 0.457499385, -0.889210343, -5.08804376e-09, 0.889210224, 0.457498908, 1.36679802e-07, 1.1920929e-07, 6.70552254e-08, 1.00000072),C1 = CFrame.new(-0.925018311, 1.61332572, 0.0582733154, 1.00000024, -2.38418579e-07, 1.1920929e-07, -2.38418579e-07, 1.00000012, 6.70552254e-08, 1.1920929e-07, 6.70552254e-08, 1.00000072),})
  3945.  
  3946. local HW2 = NewInstance('Weld',Character,{Part0=hed, Part1=Eye2, C0 = CF(0,.5,0) * angles(0,0,0)})
  3947. for _,v in pairs(Eyo2:GetDescendants()) do
  3948. if v:IsA("Part") then
  3949. v.Transparency = 1
  3950. v.Locked = true
  3951. end
  3952. end
  3953. Bruhm = false
  3954. ------------------------------------------------------
  3955. --Start Music Option--
  3956. -------------------------------------------------------
  3957. -------------------------------------------------------
  3958. --End Music Option--
  3959. -------------------------------------------------------
  3960. --music
  3961. music = Instance.new("Sound")
  3962. music.Parent = tors
  3963. music.Volume = 2
  3964. music.Looped = true
  3965. music.Pitch = 1
  3966. music.Name = "CustomMusic"
  3967. music.SoundId = "rbxassetid://"..ORGID
  3968. music:Play()
  3969. musictime = 0
  3970. volchoice = 1
  3971. pitchchoice = 1
  3972. es = 10
  3973. tors.ChildRemoved:connect(function(removed)
  3974. if removed.Name == "CustomMusic" then
  3975. music = Instance.new("Sound")
  3976. music.Parent = tors
  3977. music.Volume = volchoice
  3978. music.Looped = true
  3979. music.Pitch = pitchchoice
  3980. music.Name = "CustomMusic"
  3981. music.TimePosition = musictime
  3982. music.EmitterSize = es
  3983. music.SoundId = "rbxassetid://"..ORGID
  3984. music:Play()
  3985. end
  3986. end)
  3987. -- music end
  3988. local how_much = 13
  3989. --print(string.rep("I",how_much))
  3990. -- music controls
  3991. plr.Chatted:Connect(function(word)
  3992. if word:sub(1,4) == "play" then
  3993. local IDL = word:len()
  3994. local ID = word:sub(6,IDL)
  3995. ORGID = ID
  3996. music:Play()
  3997. end
  3998.  
  3999. if word:sub(1,5):lower()=='pitch' then
  4000. local val2 = Instance.new("NumberValue", char)
  4001. val2.Value = tonumber(word:sub(6))
  4002. local Pitch = val2.Value
  4003. music.Pitch = Pitch
  4004. pitchchoice = Pitch
  4005. end
  4006. if word:sub(1,8) == "lelpitch" then
  4007. Bruhm = true
  4008. end
  4009.  
  4010. if word:sub(1,11) == "normalpitch" then
  4011. Bruhm = false
  4012. music.Pitch = 1
  4013. end
  4014.  
  4015. if word:sub(1,3):lower()=='vol' then
  4016. local val3 = Instance.new("NumberValue", char)
  4017. val3.Value = tonumber(word:sub(5))
  4018. local Volume = val3.Value
  4019. music.Volume = Volume
  4020. volchoice = Volume
  4021. end
  4022.  
  4023. --if word:sub(1,6) == "global" then
  4024. -- es = 10000
  4025. -- end
  4026.  
  4027. if word:sub(1,5) == "local" then
  4028. es = 10
  4029. end
  4030.  
  4031. if word:sub(1,5) == "pause" then
  4032. if music.IsPlaying then
  4033. music:Pause()
  4034. end
  4035. end
  4036.  
  4037. if word:sub(1,6) == "resume" or word:sub(1,8) == "continue" then
  4038. if music.IsPaused then
  4039. music:Resume()
  4040. end
  4041. end
  4042. end)
  4043.  
  4044.  
  4045. function Attacks()
  4046. attack = true
  4047. if combo==1 then
  4048. combo=1
  4049. hum.WalkSpeed = 3
  4050. for i = 0, 2 ,0.2 do
  4051. swait()
  4052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  4053. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 2 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4054. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4055. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4056. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(180 + 8.5 * Sin(sine / 16)), Rad(0), Rad(30 + 5 * Cos(sine / 8))), 0.1)
  4057. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4058. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4059.  
  4060. end
  4061. for i = 0, 2 ,0.2 do
  4062. swait()
  4063. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  4064. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 2 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4065. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4066. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4067. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(180 + 8.5 * Sin(sine / 16)), Rad(0), Rad(-20 + 5 * Cos(sine / 8))), 0.5)
  4068. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4069. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4070.  
  4071. end
  4072. CFuncs["Sound"].Create("rbxassetid://440145223", root, 5, 1.7)
  4073. local orb = Instance.new("Part", char)
  4074. orb.CanCollide = false
  4075. orb.FormFactor = 3
  4076. orb.Name = "Ring"
  4077. orb.Material = "Neon"
  4078. orb.BrickColor = OuterPupil.BrickColor
  4079. orb.Size = Vector3.new(1, 1, 1)
  4080. orb.Transparency = 1
  4081. orb.TopSurface = 0
  4082. orb.BottomSurface = 0
  4083. orb.Anchored = true
  4084. orb.CFrame = hed.CFrame --*CFrame.new(0,0,0)
  4085. local a = Instance.new("Part",char)
  4086. a.Name = "Direction"
  4087. a.Anchored = true
  4088. a.Color = OuterPupil.BrickColor.Color
  4089. a.Material = "Neon"
  4090. a.Transparency = 0
  4091. a.Shape = "Block"
  4092. local ht = Instance.new("Part",char)
  4093. ht.Name = "DirectionHit"
  4094. ht.Anchored = true
  4095. ht.Color = OuterPupil.BrickColor.Color
  4096. ht.CanCollide = false
  4097. ht.Transparency = 1
  4098. ht.Size = vt(0.1,0.1,0.1)
  4099. a.CanCollide = false
  4100. local ray = Ray.new(
  4101. orb.CFrame.p, -- origin
  4102. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4103. )
  4104. local ignore = char
  4105. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4106. a.BottomSurface = 10
  4107. a.TopSurface = 10
  4108. local distance = (orb.CFrame.p - position).magnitude
  4109. a.Size = Vector3.new(distance,1,1)
  4110. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4111. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4112. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4113. local msh = Instance.new("SpecialMesh",a)
  4114. msh.MeshType = "Brick"
  4115. msh.Scale = vt(0.8,0.8,0.8)
  4116. MagniDamage(ht,5,20,30,0,"Normal",0)
  4117. --CFuncs["Sound"].Create("rbxassetid://4299513168", char, 1, 1)
  4118. --block(2,"Add",orb.CFrame,vt(5,5,5),0.5,0.5,0.5,BrickColor.new("Really black"),Color3.new(0,0,0))
  4119. coroutine.resume(coroutine.create(function()
  4120. for i = 0, 99 do
  4121. swait()
  4122. a.Transparency = a.Transparency + 0.01
  4123. msh.Scale = msh.Scale + vt(0,0.1,0.1)
  4124. end
  4125. a:Destroy()
  4126. ht:Destroy()
  4127. orb:Destroy()
  4128. end))
  4129. hum.WalkSpeed = storehumanoidWS
  4130. end
  4131. attack = false
  4132. end
  4133.  
  4134. function EyeThrowNew()
  4135. attack = true
  4136. hum.WalkSpeed = 0
  4137. for i = 0, 6, 0.1 do
  4138. swait()
  4139. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  4140. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  4141. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4142. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4143. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.7 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(215 + 2.5 * Sin(sine / 20))), 0.12)
  4144. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4145. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4146.  
  4147. end
  4148. local Head01 = Eye:Clone()
  4149. Head01.Parent = char
  4150. Eye.Transparency = 1
  4151. local weldHead01 = IT("Weld")
  4152. weldHead01.Parent = Head01
  4153. weldHead01.Part0 = ra
  4154. weldHead01.Part1 = Head01
  4155. weldHead01.C1 = CF(0, 0, 1.2) * angles(Rad(90), Rad(0), Rad(0))
  4156. for i = 0, 6, 0.1 do
  4157. swait()
  4158. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(-20)), 0.2)
  4159. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(20)), 0.3)
  4160. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4161. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4162. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(145 + 2.5 * Sin(sine / 20))), 0.2)
  4163. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2)
  4164. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4165.  
  4166. end
  4167. local A = IT("Attachment",Head01)
  4168. A.Position = Vector3.new(-0, 0.2, 0.136)
  4169. local B = IT("Attachment",Head01)
  4170. B.Position = Vector3.new(-0, -0.95, -0.982)
  4171. local Trail = IT("Trail",Head01)
  4172. Trail.Attachment0 = B
  4173. Trail.Attachment1 = A
  4174. Trail.Lifetime = 0.6
  4175. Trail.Transparency = NumberSequence.new(0.5, 1)
  4176. Trail.Texture = "http://www.roblox.com/asset/?id=1472703539"
  4177. Trail.Enabled = true
  4178. weldHead01:Destroy()
  4179. Head01.CanCollide = true
  4180. local bodyVelocity2 = Create("BodyVelocity")({
  4181. velocity = (mouse.Hit.p - Head01.CFrame.p).unit * 165,
  4182. P = 5000,
  4183. maxForce = Vector3.new(8000, 8000, 8000),
  4184. Parent = Head01
  4185. })
  4186. game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  4187. Head01.Touched:connect(function(hit)
  4188. if(not char:IsAncestorOf(hit))then
  4189. local hum = (hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid')
  4190. local hedder = (hit and hit.Parent and hit.Parent:FindFirstChild'Head')
  4191. if(hum and hedder and hum.Health > 0)then
  4192. --Eviscerate(hit.Parent)
  4193. MagniDamage(hit, 5, 40,58, 5, "Normal", 0)
  4194. --Cso("491296320", hit.Parent.Torso, 10, 1)
  4195. CFuncs["Sound"].Create("rbxassetid://3509706105", hit.Parent.Torso, 7, 1)
  4196. end
  4197. end
  4198. end)
  4199. for i = 0, 2, 0.1 do
  4200. swait()
  4201. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(40)), 0.2)
  4202. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-40)), 0.3)
  4203. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4204. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4205. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-134), Rad(0), Rad(145 + 2.5 * Sin(sine / 20))), 0.2)
  4206. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  4207. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4208.  
  4209. end
  4210. for i = 0, 6, 0.1 do
  4211. swait()
  4212. Eye.Transparency = Eye.Transparency - 0.05
  4213. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(40)), 0.2)
  4214. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-40)), 0.2)
  4215. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4216. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4217. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-134), Rad(0), Rad(145 + 2.5 * Sin(sine / 20))), 0.2)
  4218. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.2)
  4219. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4220.  
  4221. end
  4222. coroutine.resume(coroutine.create(function()
  4223. for i = 0, 1.8, 0.05 do
  4224. swait()
  4225. Head01.Transparency = i
  4226. end
  4227. Head01:Destroy()
  4228. end))
  4229. hum.WalkSpeed = storehumanoidWS
  4230. attack = false
  4231. end
  4232.  
  4233. function Call_Upon_The_EyesNew()
  4234. attack = true
  4235. hum.WalkSpeed = 3
  4236. for i = 0, 3 ,0.2 do
  4237. swait()
  4238. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4239. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4240. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  4241. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  4242. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0.4)*angles(math.rad(145),math.rad(0),math.rad(0)),.3)
  4243. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4244. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4245.  
  4246. end
  4247. local a = Instance.new("Part",char)
  4248. a.Name = "Direction"
  4249. a.Anchored = true
  4250. a.BrickColor = BrickColor.new("Really red")
  4251. a.Material = "Neon"
  4252. a.Transparency = 1
  4253. a.Shape = "Cylinder"
  4254. local ray = Ray.new(
  4255. root.CFrame.p, -- origin
  4256. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  4257. )
  4258. local ignore = char
  4259. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4260. a.BottomSurface = 10
  4261. a.TopSurface = 10
  4262. local distance = (root.CFrame.p - position).magnitude
  4263. a.Size = Vector3.new(distance,1,1)
  4264. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4265. local ht = Instance.new("Part",char)
  4266. ht.Name = "Hit"
  4267. ht.Anchored = true
  4268. ht.CanCollide = false
  4269. ht.Transparency = 1
  4270. ht.Size = vt(0.1,0.1,0.1)
  4271. a.CanCollide = false
  4272. ht.Position = a.Position
  4273. -- sphere2(2,"Add",ht.CFrame,vt(1,24,24),2,2,2,Part4.BrickColor)
  4274. sphere2(5,"Add",ht.CFrame,vt(5,100000,5),0.25,0.25,0.25,OuterPupil.BrickColor)
  4275. sphere2(5,"Add",ht.CFrame,vt(10,0.1,10),1,1,1,OuterPupil.BrickColor)
  4276. CFuncs["Sound"].Create("rbxassetid://3748209678", char, 2, 1)
  4277. MagniDamage(ht, 9, 40,58, 0, "Up", 851453784)
  4278. for i = 0, 1 ,0.2 do
  4279. swait()
  4280. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4281. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4282. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  4283. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  4284. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0.4)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  4285. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4286. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4287.  
  4288. end
  4289. game:GetService("Debris"):AddItem(a,5)
  4290. game:GetService("Debris"):AddItem(ht,5)
  4291. attack = false
  4292. hum.WalkSpeed = storehumanoidWS
  4293. end
  4294.  
  4295.  
  4296.  
  4297. function Taunt1()
  4298. attack = true
  4299. hum.WalkSpeed = 0
  4300. for i = 0, 9, 0.1 do
  4301. swait()
  4302. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.15)
  4303. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4304. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4305. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  4306. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4307. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4308. end
  4309. attack = false
  4310. hum.WalkSpeed = 10
  4311. end
  4312.  
  4313. function Taunt3()
  4314. attack = true
  4315. local DamageVal = 0
  4316. local KeyHolden = true
  4317. local nig;
  4318. nig=mouse.KeyUp:Connect(function(key)
  4319. if key == "y" then
  4320. KeyHolden = false
  4321. --nig:disconnect()
  4322. end
  4323. end)
  4324. repeat
  4325. swait()
  4326. DamageVal = DamageVal + 1
  4327. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.05 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4328. RH.C0 = clerp(RH.C0, cf(1* Player_Size, -0.8 + 0.1 * math.cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(math.rad(0), math.rad(74), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), .2)
  4329. LH.C0 = clerp(LH.C0, cf(-1* Player_Size, -0.9 - 0.05 * math.cos(sine / 20)* Player_Size, 0* Player_Size) * angles(math.rad(0), math.rad(-87), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)),.2)
  4330. -- RW.C0 = clerp(RW.C0, cf(1* Player_Size, 0.3 + 0.05 * math.sin(sine / 20)* Player_Size, .6* Player_Size) * angles(math.rad(-35), math.rad(-25 + 2.5 * math.sin(sine / 20)), math.rad(-55 + 2.5 * math.sin(sine / 20))), .2)
  4331. -- LW.C0 = clerp(LW.C0, cf(-1.5* Player_Size, 0.5 + 0.05 * math.sin(sine / 20* Player_Size), 0* Player_Size) * angles(math.rad(-30 * math.sin(sine / 10)), math.rad(0), math.rad(-5 - 4.5 * math.sin(sine / 20))), .2)
  4332. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  4333. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4334. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 6* Sin(sine / 3)), Rad(0), Rad(0)), 0.1)
  4335.  
  4336. until KeyHolden == false or DamageVal > 1000
  4337.  
  4338. attack = false
  4339. hum.WalkSpeed = storehumanoidWS
  4340. end
  4341.  
  4342. function Eyeyeyeyeyeyey_SlammoNew()
  4343. attack = true
  4344. hum.WalkSpeed = 0
  4345. local Blobby = IT("Part", char)
  4346. Blobby.Name = "Blob"
  4347. Blobby.CanCollide = false
  4348. Blobby.BrickColor = BrickC("Really black")
  4349. Blobby.Transparency = 0
  4350. Blobby.Material = "Plastic"
  4351. Blobby.Size = Vector3.new(1, 1, 2)
  4352. Blobby.TopSurface = Enum.SurfaceType.Smooth
  4353. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  4354.  
  4355. local Weld = IT("Weld", Blobby)
  4356. Weld.Part0 = hed
  4357. Weld.Part1 = Blobby
  4358. Weld.C1 = CF(0, -17.6, 1.4)
  4359. Weld.C0 = angles(Rad(0),0,0)
  4360.  
  4361. local M2 = IT("SpecialMesh")
  4362. M2.Parent = Blobby
  4363. M2.MeshId = "http://www.roblox.com/asset/?id=1185246"
  4364. M2.TextureId = "http://www.roblox.com/asset/?id=28301750"
  4365. M2.Scale = Vector3.new(45.65, 45.65, 45.65)
  4366. for i = 0, 3, 0.1 do
  4367. swait()
  4368. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.2)
  4369. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4370. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4371. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  4372. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  4373. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4374. end
  4375. for i = 0, 3, 0.1 do
  4376. swait()
  4377. RH.C0 = clerp(RH.C0, cf(1* Player_Size, -1 + 0.1 * math.cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(math.rad(-26), math.rad(74), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), .2)
  4378. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-26),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  4379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(-26 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  4380. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  4381. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  4382. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4383. end
  4384. for i = 0, 1, 0.1 do
  4385. swait()
  4386. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(90 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  4387. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4388. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4389. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  4390. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  4391. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4392. end
  4393. CFuncs["Sound"].Create("rbxassetid://3444652484", root, 5,1)
  4394. sphere2(5,"Add",Blobby.CFrame,vt(10,10,10),1,1,1,Eye.BrickColor)
  4395. sphere2(5,"Add",Blobby.CFrame,vt(10,10,10),1,1,1,Eye.BrickColor)
  4396. sphere2(5,"Add",Blobby.CFrame,vt(10,10,10),1,1,1,Eye.BrickColor)
  4397.  
  4398. MagniDamage(Blobby,11,50,60,0,"Up",0)
  4399. for i = 0, 3, 0.1 do
  4400. swait()
  4401. Blobby.Transparency = Blobby.Transparency + 0.1432
  4402. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(90 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  4403. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4404. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4405. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  4406. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  4407. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4408. end
  4409. Blobby:Destroy()
  4410. attack = false
  4411. hum.WalkSpeed = storehumanoidWS
  4412. end
  4413. -------------------------------------
  4414. local CurId = 1
  4415. local PsychoM = false
  4416. Humanoid.Animator.Parent = nil
  4417. hum.JumpPower = 80
  4418. hum.WalkSpeed = 16
  4419. -------------------------------------
  4420.  
  4421. local attacktype = 1
  4422. mouse.Button1Down:connect(function()
  4423. if attack == false and mode == 1 and Humanoid.Sit == false then
  4424. Attacks()
  4425. end
  4426. end)
  4427. mouse.KeyDown:connect(function(k)
  4428. if k == "l" and mutedtog == false then
  4429. mutedtog = true
  4430. music.Volume = 0
  4431. elseif k == "l" and mutedtog == true then
  4432. mutedtog = false
  4433. music.Volume = 2
  4434. end
  4435. if k == "c" and attack == false then
  4436. Call_Upon_The_EyesNew()
  4437. end
  4438. if k == "x" and attack == false then
  4439. EyeThrowNew()
  4440. end
  4441. if k == "t" and attack == false then
  4442. Taunt1()
  4443. end
  4444. if k == "y" and attack == false then
  4445. Taunt3()
  4446. end
  4447. if k == "v" and attack == false then
  4448. Eyeyeyeyeyeyey_SlammoNew()
  4449. end
  4450. if k == "1" and attack == false and mode ~= 1 then
  4451. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4452. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4453. textt.TextStrokeColor3 = Color3.fromRGB(177, 167, 255)
  4454. textt.TextColor3 = Color3.new(1,1,1)
  4455. PupilBrickColor = BrickColor.new("Black")
  4456. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4457. Eye.BrickColor = BrickColor.new("Institutional white")
  4458. OuterPupil.BrickColor = BrickColor.new("Alder")
  4459. mode = 1
  4460. ORGID = 1494452913
  4461. music.TimePosition = 0
  4462. music:Play()
  4463. hum.WalkSpeed = 16
  4464. storehumanoidWS = 16
  4465. PsychoM = false
  4466. end
  4467. if k == "2" and attack == false and mode ~= 2 then
  4468. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4469. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4470. textt.TextStrokeColor3 = Color3.fromRGB(27, 42, 53)
  4471. textt.TextColor3 = Color3.fromRGB(247, 40, 40)
  4472. PupilBrickColor = BrickColor.new("Black")
  4473. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4474. Eye.BrickColor = BrickColor.new("Really black")
  4475. OuterPupil.BrickColor = BrickColor.new("Dark red")
  4476. mode = 2
  4477. ORGID = 541377118
  4478. music.TimePosition = 0
  4479. music:Play()
  4480. hum.WalkSpeed = 25
  4481. storehumanoidWS = 25
  4482. PsychoM = false
  4483. end
  4484. if k == "3" and attack == false and mode ~= 3 then
  4485. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4486. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4487. textt.TextStrokeColor3 = Color3.fromRGB(11,158,255)
  4488. textt.TextColor3 = Color3.fromRGB(53, 213, 245)
  4489. PupilBrickColor = BrickColor.new("Black")
  4490. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4491. Eye.BrickColor = BrickColor.new("Institutional white")
  4492. OuterPupil.BrickColor = BrickColor.new("Electric blue")
  4493. mode = 3
  4494. ORGID = 177431134
  4495. music.TimePosition = 0
  4496. music:Play()
  4497. hum.WalkSpeed = 19
  4498. storehumanoidWS = 19
  4499. PsychoM = false
  4500. end
  4501. if k == "4" and attack == false and mode ~= 4 then
  4502. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4503. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4504. textt.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  4505. textt.TextColor3 = Color3.fromRGB(115,25,25)
  4506. PupilBrickColor = BrickColor.new("Black")
  4507. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4508. Eye.BrickColor = BrickColor.new("Institutional white")
  4509. OuterPupil.BrickColor = BrickColor.new("Really red")
  4510. mode = 4
  4511. ORGID = 885342933
  4512. music.TimePosition = 0
  4513. music:Play()
  4514. hum.WalkSpeed = 19
  4515. storehumanoidWS = 19
  4516. PsychoM = false
  4517. end
  4518. if k == "5" and attack == false and mode ~= 5 then
  4519. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4520. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4521. textt.TextStrokeColor3 = Color3.fromRGB(139,40,239)
  4522. textt.TextColor3 = Color3.fromRGB(91,19,162)
  4523. PupilBrickColor = BrickColor.new("Black")
  4524. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4525. Eye.BrickColor = BrickColor.new("Institutional white")
  4526. OuterPupil.BrickColor = BrickColor.new("Royal purple")
  4527. mode = 5
  4528. if math.random(1,2) == 1 then
  4529. ORGID = 466949705
  4530. else
  4531. ORGID = 953383289
  4532. end
  4533. music.TimePosition = 0
  4534. music:Play()
  4535. hum.WalkSpeed = 26
  4536. storehumanoidWS = 26
  4537. PsychoM = false
  4538. end
  4539. if k == "m" and attack == false and mode == 1 then
  4540. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4541. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4542. textt.TextStrokeColor3 = Color3.fromRGB(177, 167, 255)
  4543. textt.TextColor3 = Color3.new(1,1,1)
  4544. PupilBrickColor = BrickColor.new("Black")
  4545. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4546. Eye.BrickColor = BrickColor.new("Institutional white")
  4547. OuterPupil.BrickColor = BrickColor.new("Alder")
  4548. mode = 1
  4549. ORGID = 693025496
  4550. music:Play()
  4551. hum.WalkSpeed = 16
  4552. storehumanoidWS = 16
  4553. PsychoM = false
  4554. end
  4555. if k == "6" and attack == false and mode ~= 6 then
  4556. for _,v in pairs(Eyo2:GetDescendants()) do if v:IsA("Part") then v.Transparency = 1 end end
  4557. for _,v in pairs(Eyo:GetDescendants()) do if v:IsA("Part") then v.Transparency = 0 end end
  4558. textt.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  4559. textt.TextColor3 = Color3.fromRGB(115,25,25)
  4560. PupilBrickColor = BrickColor.new("Black")
  4561. --Eye.BrickColor = BrickColor.new("Cadet blue")
  4562. Eye.BrickColor = BrickColor.new("Institutional white")
  4563. OuterPupil.BrickColor = BrickColor.new("Really red")
  4564. mode = 6
  4565. ORGID = 2551216805
  4566. music.TimePosition = 0
  4567. music:Play()
  4568. hum.WalkSpeed = 14
  4569. storehumanoidWS = 14
  4570. PsychoM = true
  4571. end
  4572. end)
  4573.  
  4574.  
  4575.  
  4576.  
  4577.  
  4578.  
  4579.  
  4580.  
  4581.  
  4582.  
  4583. hum.Died:Connect(function()
  4584. Ragdoll(Player,Torso,true)
  4585. end)
  4586.  
  4587.  
  4588.  
  4589.  
  4590. SwimType = 1
  4591. MseGuide = true
  4592.  
  4593. --Mouse Head Think
  4594. OrgnC0 = Torso.Neck.C0
  4595. local movelimbs = coroutine.wrap(function()
  4596. while wait() do
  4597. TrsoLV = Torso.CFrame.lookVector
  4598. Dist = nil
  4599. Diff = nil
  4600. if not MseGuide then
  4601. print("Failed to recognize")
  4602. else
  4603. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  4604. Dist = (Head.CFrame.p-Point).magnitude
  4605. Diff = Head.CFrame.Y-Point.Y
  4606. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  4607. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  4608. Diff2 = LeftArm.CFrame.Y-Point.Y
  4609. Torso.Neck.C0 = Torso.Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  4610. end
  4611. end
  4612. end)
  4613. movelimbs()
  4614.  
  4615.  
  4616. Humanoid.Name = "EgGdOG MAsTeR"
  4617. Humanoid.MaxHealth = math.huge
  4618. Humanoid.Health = math.huge
  4619. Instance.new("ForceField",char).Visible = false
  4620.  
  4621. aerrtee = 0
  4622.  
  4623. idleanim=.4
  4624. while true do
  4625. if mutedtog == false then
  4626. --kmusic.Volume = ORVOL
  4627. elseif mutedtog == true then
  4628. --kmusic.Volume = 0
  4629. end
  4630. --kmusic.PlaybackSpeed = ORPIT
  4631. --kmusic.Pitch = ORPIT
  4632. --kmusic.SoundId = "rbxassetid://" ..ORGID
  4633. --kmusic.Looped = true
  4634. --kmusic.Parent = root
  4635. --kmusic:Resume()
  4636. CameraManager()
  4637. swait()
  4638. doe=doe+1
  4639. sine = sine + change
  4640. textt.Rotation = -5 * math.cos(sine / 23)
  4641.  
  4642. musictime = music.TimePosition
  4643. if music ~= nil then
  4644. music.Parent = tors
  4645. music.Volume = volchoice
  4646. music.Looped = true
  4647. music.Pitch = pitchchoice
  4648. music.EmitterSize = es
  4649. music.Name = "CustomMusic"
  4650. if music.SoundId ~= "rbxassetid://"..ORGID then
  4651. music.SoundId = "rbxassetid://"..ORGID
  4652. end
  4653. end
  4654.  
  4655. if Bruhm == true then
  4656. music.Pitch = 0.20+ math.random(600,1000)/1000
  4657. end
  4658. if PsychoM == true then
  4659. textt.TextStrokeColor3 = BrickColor.Random().Color
  4660. textt.TextColor3 = BrickColor.Random().Color
  4661. OuterPupil.BrickColor = BrickColor.Random()
  4662. end
  4663. for i,v in pairs(char:GetChildren()) do
  4664. if v.ClassName == "Accessory" then
  4665. v.Parent = nil
  4666. end
  4667. end
  4668. local sidevec = math.clamp((root.Velocity*root.CFrame.rightVector).X+(root.Velocity*root.CFrame.rightVector).Z,-hum.WalkSpeed,hum.WalkSpeed)
  4669. local forwardvec = math.clamp((root.Velocity*root.CFrame.lookVector).X+(root.Velocity*root.CFrame.lookVector).Z,-hum.WalkSpeed,hum.WalkSpeed)
  4670. local sidevelocity = sidevec/hum.WalkSpeed
  4671. local forwardvelocity = forwardvec/hum.WalkSpeed
  4672.  
  4673.  
  4674. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4675. local velderp=RootPart.Velocity.y
  4676. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4677. coroutine.resume(coroutine.create(function()
  4678. if hitfloor ~= nil then
  4679. --sphereMK(2,math.random(5,10)/45,"Add",root.CFrame*CFrame.new(math.random(-3,3),-10,math.random(-3,3))*CFrame.Angles(math.rad(90 + math.random(-3,3)),math.rad(math.random(-3,3)),math.rad(math.random(-3,3))),0.5,0.5,0.5,0,BrickColor.new("Really red"),0)
  4680. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.002,0.01),math.random(5,10)/250,BrickColor.new("White"))
  4681. end
  4682. end))
  4683. if equipped==true or equipped==false then
  4684. if attack==false then
  4685. idle=idle+1
  4686. else
  4687. idle=0
  4688. end
  4689. if idle>=500 then
  4690. if attack==false then
  4691. --Sheath()
  4692. end
  4693. end
  4694. if Anim ~= "Idle" then
  4695. change = 1
  4696. else
  4697. change = 0.90
  4698. end
  4699. if hum:GetState() == Enum.HumanoidStateType.Swimming and torvel<1 then
  4700. Anim="SwimIdle"
  4701. if attack == false then
  4702. local Alpha = .3
  4703. if SwimType == 1 then
  4704. RootJoint.C0 = RootJoint.C0:lerp(cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
  4705. LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(11.2),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  4706. RH.C0 = RH.C0:lerp(cf(1,-0.5,-0.6)*angles(math.rad(-24.8),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  4707. LW.C0 = LW.C0:lerp(cf(-1.4,0.6,-0.1)*angles(math.rad(70.5),math.rad(-15.8),math.rad(-53.9 + 40 * math.cos(sine/30))),Alpha)
  4708. RW.C0 = RW.C0:lerp(cf(1.7,0.5,-0.1)*angles(math.rad(64.7),math.rad(19),math.rad(43.1 - 40 * math.cos(sine/30))),Alpha)
  4709.  
  4710. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4711. -- Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,.1)
  4712. end
  4713. end
  4714. elseif hum:GetState() == Enum.HumanoidStateType.Swimming and torvel>1 then
  4715. Anim="Swim"
  4716. if attack == false then
  4717. local Alpha = .3
  4718. if SwimType == 1 then
  4719. --Front crawl
  4720. aerrtee = aerrtee + 10
  4721. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
  4722. LH.C0 = LH.C0:lerp(cf(-1,-1.1,0.2)*angles(math.rad(-5 - 20 * math.cos(sine/7)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  4723. RH.C0 = RH.C0:lerp(cf(1,-0.8,-0.1)*angles(math.rad(5 + 20 * math.cos(sine/7)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  4724. RW.C0=clerp(RW.C0,cf(1.43,0.45 + 0.135 * math.cos(sine / 28),0)*angles(math.rad(0 + 6 * math.cos(sine / 22*-1.25)),math.rad(3 - 2 * math.cos(sine / 28*-1.25)),math.rad(90 + 90 * math.sin(sine / 14))),.1)
  4725. LW.C0=clerp(LW.C0,cf(-1.43,0.6 + 0.135 * math.cos(sine / 28),0)*angles(math.rad(0 - 7 * math.cos(sine / 16*-1.25)),math.rad(4 - 3 * math.cos(sine / 29*-1.25)),math.rad(-90 - 90 * math.sin(sine / 14))),.1)
  4726. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(90 + 1* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4727.  
  4728. -- LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*angles(math.rad(180 + aerrtee),math.rad(0),math.rad(0)),Alpha)
  4729. -- RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(math.rad(0 + aerrtee),math.rad(0),math.rad(0)),Alpha)
  4730. end
  4731. end
  4732. elseif RootPart.Velocity.y > 1 and hitfloor==nil then
  4733. Anim="Jump"
  4734. if attack==false then
  4735. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4736. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4737. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4738. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4739. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  4740. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  4741. end
  4742. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4743. Anim="Fall"
  4744. if attack==false then
  4745. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4746. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4747. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  4748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  4749. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  4750. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  4751. end
  4752. elseif torvel<1 and hitfloor~=nil and Humanoid.Sit == false then
  4753. Anim="Idle"
  4754. if attack==false then
  4755. if mode == 1 then
  4756. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  4757. -- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 2 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4758. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  4759. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  4760. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  4761. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  4762. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4763. HW2.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4764.  
  4765. elseif mode == 2 then
  4766. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4767. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1)
  4769. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1)
  4770. RW.C0=clerp(RW.C0,cf(1.05,0.5,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-35+ math.random(-10,10))),.2)
  4771. --LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.4)*angles(math.rad(134),math.rad(0),math.rad(47))*angles(math.rad(0),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4772.  
  4773. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.05 * Cos(sine / 20) * Player_Size, 0) * angles(Rad(-10), Rad(0 - 2* Sin(sine/16)),math.rad(-10 + math.random(-10,10))), 0.1)
  4774. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 14), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4775. elseif mode == 3 then
  4776. -- RH.C0 = clerp(RH.C0, cf(1* Player_Size, -1 + 0.1 * math.cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(math.rad(-10), math.rad(74), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), .2)
  4777. --LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  4778. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(-10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  4779. --RW.C0=clerp(RW.C0,cf(1,0.35 + 0.2 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 10 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(-82 + 7 * math.cos(sine / 45))),.1)
  4780. --LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.2 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 10 * math.cos(sine / 66)),math.rad(4 - 8 * math.cos(sine / 59)),math.rad(67 - 9 * math.cos(sine / 45))),.1)
  4781. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 30),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  4782. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 30),0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  4783. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 30))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4784. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 3 * math.cos(sine / 45)),math.rad(0),math.rad(0)),.1)
  4785. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(7 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 + 2 * math.cos(sine / 45))),.1)
  4786. LW.C0=clerp(LW.C0,cf(-1,0.55,-0.5)*angles(math.rad(69 - 7 * math.cos(sine / 66)),math.rad(4 - 2 * math.cos(sine / 59)),math.rad(61 - 4 * math.cos(sine / 45))),.1)
  4787.  
  4788. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4789. elseif mode == 4 then
  4790. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  4791. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  4792. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(20 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  4793. --RW.C0=clerp(RW.C0,cf(1.05,0.5,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-35+ math.random(-10,10))),.2)
  4794. --LW.C0=clerp(LW.C0,cf(-1.05,0.5,-0.5)*angles(math.rad(140),math.rad(0),math.rad(35+ math.random(-10,10))),.2)
  4795. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(180 + 3 * math.cos(sine / 53)),math.rad(0 - 4 * math.cos(sine / 60)),math.rad(-5 + 4 * math.cos(sine / 45))),.2)
  4796. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-5 - 7 * math.cos(sine / 58)),math.rad(1 - 5 * math.cos(sine / 55)),math.rad(-12 - 9 * math.cos(sine / 45))),.2)
  4797.  
  4798. HW.C0 = clerp(HW.C0, CF(0 + .1* Sin(sine / 3), .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 6* Sin(sine / 3)), Rad(0), Rad(0)), 0.1)
  4799. elseif mode == 5 then
  4800. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  4801. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
  4802. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(22 + 2 * math.cos(sine / 56))),.1)
  4803. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-22 - 2 * math.cos(sine / 56))),.1)
  4804. RW.C0=clerp(RW.C0,cf(1,0.5+ 0.1 * math.cos(sine / 45),-0.2)*angles(math.rad(0),math.rad(150+ 2.5 * math.cos(sine / 45)),math.rad(80+ 10 * math.cos(sine / 45))),.1)
  4805. LW.C0=clerp(LW.C0,cf(-1.5,0.25+ 0.1 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(0),math.rad(20+ 10 * math.cos(sine / 45))),.1)
  4806. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4807. elseif mode == 6 then
  4808. RH.C0=clerp(RH.C0,cf(1+math.random(-6,6)/30,-1+math.random(-6,6)/30 - 0.05 * math.cos(sine / 32),0+math.random(-6,6)/30)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),1)
  4809. LH.C0=clerp(LH.C0,cf(-1+math.random(-6,6)/30,-1 - 0.05 * math.cos(sine / 32)+math.random(-6,6)/30,0+math.random(-6,6)/30)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),1)
  4810. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0+math.random(-6,6)/30,0.02 + 0.02 * math.cos(sine / 32)+math.random(-6,6)/30,0 + 0.05 * math.cos(sine / 32)+math.random(-6,6)/30)*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),1)
  4811. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0+math.random(-6,6)/30, 0+math.random(-6,6)/30, 0 + ((1) - 1)+math.random(-6,6)/30)*angles(math.rad(25 - 2.5 * math.sin(sine / 32)),math.rad(0),math.rad(0 - 5 * math.sin(sine / 95))),1)
  4812. RW.C0=clerp(RW.C0,cf(1.25+math.random(-6,6)/30,0.5 + 0.025 * math.cos(sine / 45)+math.random(-6,6)/30,-0.4+math.random(-6,6)/30)*angles(math.rad(180),math.rad(45),math.rad(-15))*angles(math.rad(0),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),1)
  4813. LW.C0=clerp(LW.C0,cf(-1.25+math.random(-6,6)/30,0.5 + 0.025 * math.cos(sine / 45+math.random(-6,6)/30),-0.4+math.random(-6,6)/30)*angles(math.rad(180),math.rad(-45),math.rad(15))*angles(math.rad(0),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),1)
  4814. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 3), 0) * angles(Rad(0 + 3* Sin(sine / 3)), Rad(0), Rad(0)), 0.1)
  4815.  
  4816. end
  4817. end
  4818. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4819. Anim="Walk"
  4820. if attack==false then
  4821. if mode ~= 6 then
  4822. --RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 7))), 0.15)
  4823. --RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4824. --LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4825. -- RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 8)* Player_Size, 0 - 0.5 * Sin(sine / 8) * Player_Size) * angles(Rad(45 * Sin(sine / 8)) + root.RotVelocity.Y / 75, Rad(-10 * Cos(sine / 8)), Rad(10) + root.RotVelocity.Y / -75), 0.1)
  4826. -- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 8)* Player_Size, 0 + 0.5 * Sin(sine / 8)* Player_Size) * angles(Rad(-45 * Sin(sine / 8)) + root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 8)), Rad(-10) + root.RotVelocity.Y / -75), 0.1)
  4827. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.10 * math.cos(sine / 6) + -math.sin(sine / 6) / 7) * angles(math.rad(forwardvelocity*10 + 2.5 * math.cos(sine / 3.5)), math.rad(-sidevelocity*10) - root.RotVelocity.Y / 75, math.rad(4 * math.cos(sine / 7))), 0.15)
  4828. --Torso.Neck.C0 = clerp(Torso.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4829. --RH.C0 = clerp(RH.C0, cf(1, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4830. --LH.C0 = clerp(LH.C0, cf(-1, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4831. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0/2 * math.cos(10 / 10),0+ forwardvelocity/2 * math.cos(50-sine / 10))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(sidevelocity*35 * math.cos(sine / 10)),math.rad(0),math.rad(0 - forwardvelocity*70 * math.cos(sine / 10))),.1)
  4832. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0/2 * math.cos(10 / 10),0- forwardvelocity/2 * math.cos(50-sine / 10))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(sidevelocity*35 * math.cos(sine / 10)),math.rad(0),math.rad(0 - forwardvelocity*70 * math.cos(sine / 10))),.1)
  4833.  
  4834. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*angles(math.rad(0-forwardvelocity*7+ forwardvelocity*70 * math.cos(sine / 10)),math.rad(0),math.rad(10)),.1)
  4835. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*angles(math.rad(0-forwardvelocity*7- forwardvelocity*70 * math.cos(sine / 10)),math.rad(0),math.rad(-10)),.1)
  4836.  
  4837. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4838. HW2.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4839. elseif mode == 6 then
  4840. RH.C0 = clerp(RH.C0, cf(1+math.random(-6,6)/30, -0.8 - 0.5 * math.cos(sine / 7) / 2, 0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 25 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4841. LH.C0 = clerp(LH.C0, cf(-1+math.random(-6,6)/30, -0.8 + 0.5 * math.cos(sine / 7) / 2, -0.6 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 25 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4842.  
  4843. --RH.C0=clerp(RH.C0,cf(1+math.random(-6,6)/30,-1+math.random(-6,6)/30 - 0.05 * math.cos(sine / 32),0+math.random(-6,6)/30)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),1)
  4844. --LH.C0=clerp(LH.C0,cf(-1+math.random(-6,6)/30,-1 - 0.05 * math.cos(sine / 32)+math.random(-6,6)/30,0+math.random(-6,6)/30)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),1)
  4845. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0+math.random(-6,6)/30,0.02 + 0.02 * math.cos(sine / 32)+math.random(-6,6)/30,0 + 0.05 * math.cos(sine / 32)+math.random(-6,6)/30)*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),1)
  4846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0+math.random(-6,6)/30, 0+math.random(-6,6)/30, 0 + ((1) - 1)+math.random(-6,6)/30)*angles(math.rad(25 - 2.5 * math.sin(sine / 32)),math.rad(0),math.rad(0 - 5 * math.sin(sine / 95))),1)
  4847. RW.C0=clerp(RW.C0,cf(1.25+math.random(-6,6)/30,0.5 + 0.025 * math.cos(sine / 45)+math.random(-6,6)/30,-0.4+math.random(-6,6)/30)*angles(math.rad(180),math.rad(45),math.rad(-15))*angles(math.rad(0),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),1)
  4848. LW.C0=clerp(LW.C0,cf(-1.25+math.random(-6,6)/30,0.5 + 0.025 * math.cos(sine / 45+math.random(-6,6)/30),-0.4+math.random(-6,6)/30)*angles(math.rad(180),math.rad(-45),math.rad(15))*angles(math.rad(0),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),1)
  4849. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 3), 0) * angles(Rad(0 + 3* Sin(sine / 3)), Rad(0), Rad(0)), 0.1)
  4850. end
  4851. end
  4852. elseif torvel>=22 and hitfloor~=nil then
  4853. Anim="Run"
  4854. if attack==false then
  4855. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0 + 0.75 * math.sin(sine / 2) + -math.sin(sine / 2) / 7) * angles(math.rad(forwardvelocity*15 - 3.5 * math.cos(sine / 2)), math.rad(-sidevelocity*10), math.rad(10 * math.cos(sine / 4))), 0.1)
  4856. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0-forwardvelocity*14+ forwardvelocity*75 * math.cos(sine / 4)),math.rad(0),math.rad(10)),.2)
  4857. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0-forwardvelocity*14- forwardvelocity*75 * math.cos(sine / 4)),math.rad(0),math.rad(-10)),.2)
  4858. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0/2 * math.cos(9 / 4),0+ forwardvelocity/2 * math.cos(50-sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(sidevelocity*40 * math.cos(sine / 7)),math.rad(0),math.rad(0 - forwardvelocity*70 * math.cos(sine / 7))),.2)
  4859. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0/2 * math.cos(9 / 4),0- forwardvelocity/2 * math.cos(50-sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(sidevelocity*40 * math.cos(sine / 7)),math.rad(0),math.rad(0 - forwardvelocity*70 * math.cos(sine / 7))),.2)
  4860.  
  4861. -- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0 + 0.75 * math.sin(sine / 2) + -math.sin(sine / 2) / 7) * angles(math.rad(15 - 3.5 * math.cos(sine / 2)), math.rad(0), math.rad(10 * math.cos(sine / 4))), 0.1)
  4862. --RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.13*math.sin(sine/6)) * angles(math.rad(75 * math.cos(sine / 4)) + -math.sin(sine / 4) / 2.5, math.rad(0), math.rad(10)), 0.2)
  4863. --LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.13*math.sin(sine/6)) * angles(math.rad(-75 * math.cos(sine / 4)) + -math.sin(sine / 4) / 2.5, math.rad(0), math.rad(-10)), 0.2)
  4864. -- RH.C0 = clerp(RH.C0, CFrame.new(1, -1 - 0.7 * math.cos(sine / 6) / 4, 0.5 * math.cos(sine / 6) / 2) * angles(math.rad(-10 - 75 * math.sin(sine / 6)), math.rad(90 - 10 * math.cos(sine / 6)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 6)), math.rad(0), math.rad(0)), 0.2)
  4865. --LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 + 0.7 * math.cos(sine / 6) / 4, -0.5 * math.cos(sine / 6) / 2) * angles(math.rad(-10 + 75 * math.sin(sine / 6)), math.rad(-90 - 10 * math.cos(sine / 6)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 6)), math.rad(0), math.rad(0)), 0.2)
  4866. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 15), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4867. HW2.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4868.  
  4869. end
  4870. elseif hitfloor ~= nil and Humanoid.Sit == true then
  4871. Anim = "Sit"
  4872. if attack == false then
  4873. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0) * angles(math.rad(85), math.rad(90), math.rad(0)) * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.08)
  4874. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * angles(math.rad(85), math.rad(-90), math.rad(0)) * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.08)
  4875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.01 * math.cos(sine / 32),-0.3)*angles(math.rad(0 - 2 * math.cos(sine / 88)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 88))),.1)
  4876. HW.C0 = clerp(HW.C0, CF(0, .6 + 0.2 * Cos(sine / 20), 0) * angles(Rad(0 + 3* Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  4877.  
  4878. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
  4879. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  4880. end
  4881. end
  4882. end
  4883. end
  4884. end)
Add Comment
Please, Sign In to add comment