Advertisement
Freightus2

Erradum Leak Void Script Builder

May 6th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.95 KB | None | 0 0
  1. Wow, 750 hits! Not much away from 700, but I'm still so proud! I hope to reach 1,000 soon!
  2. Anyways, I think you all deserve another good script!
  3. Here, have fun with the Erradum script!
  4. wait(1)
  5. local client = game:service'RunService':IsClient() and not game:service'RunService':IsServer()
  6. if(client)then
  7. script.FakeMouse:destroy()
  8. end
  9. if(game:service'RunService':IsServer())then
  10. local Player = game:service'Players':GetPlayerFromCharacter(script.Parent)
  11. local FakeMouse = script.FakeMouse:Clone();
  12. FakeMouse.Parent = Player.Character;
  13. FakeMouse.Disabled=false
  14. script.FakeMouse:Destroy()
  15.  
  16. do
  17. local GUID = {}
  18. do
  19. GUID.IDs = {};
  20. function GUID:new(len)
  21. local id;
  22. if(not len)then
  23. id = (tostring(function() end))
  24. id = id:gsub("function: ","")
  25. else
  26. local function genID(len)
  27. local newID = ""
  28. for i = 1,len do
  29. newID = newID..string.char(math.random(48,90))
  30. end
  31. return newID
  32. end
  33. repeat id = genID(len) until not GUID.IDs[id]
  34. local oid = id;
  35. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  36. GUID.IDs[oid]=true;
  37. end
  38. return id
  39. end
  40. end
  41.  
  42. local AHB = Instance.new("BindableEvent")
  43.  
  44. local FPS = 30
  45.  
  46. local TimeFrame = 0
  47.  
  48. local LastFrame = tick()
  49. local Frame = 1/FPS
  50.  
  51. game:service'RunService'.Heartbeat:connect(function(s,p)
  52. TimeFrame = TimeFrame + s
  53. if(TimeFrame >= Frame)then
  54. for i = 1,math.floor(TimeFrame/Frame) do
  55. AHB:Fire()
  56. end
  57. LastFrame=tick()
  58. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  59. end
  60. end)
  61.  
  62.  
  63. function swait(dur)
  64. if(dur == 0 or typeof(dur) ~= 'number')then
  65. AHB.Event:wait()
  66. else
  67. for i = 1, dur*FPS do
  68. AHB.Event:wait()
  69. end
  70. end
  71. end
  72.  
  73. local oPlayer = Player
  74. local Player = oPlayer
  75.  
  76. local loudnesses={}
  77. script.Parent = Player.Character
  78. local CoAS = {Actions={}}
  79. local Event = Instance.new("RemoteEvent")
  80. Event.Name = "UserInputEvent"
  81. Event.Parent = Player.Character
  82. local Func = Instance.new("RemoteFunction")
  83. Func.Name = "GetClientProperty"
  84. Func.Parent = Player.Character
  85. local fakeEvent = function()
  86. local t = {_fakeEvent=true,Waited={},Connected={}}
  87. t.Connect = function(self,f)
  88. local ft={}
  89. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  90. ft.Disconnect=ft.disconnect
  91.  
  92. ft.Func=function(...)
  93. for id,_ in next, t.Waited do
  94. t.Waited[id] = true
  95. end
  96. return f(...)
  97. end;
  98.  
  99. table.insert(self.Connected,ft)
  100. return ft;
  101. end
  102. t.connect = t.Connect
  103. t.Wait = function()
  104. local guid = GUID:new(25)
  105. local waitingId = guid:Get()
  106. t.Waited[waitingId]=false
  107. repeat swait() until t.Waited[waitingId]==true
  108. t.Waited[waitingId]=nil;
  109. guid:Trash()
  110. end
  111. t.wait = t.Wait
  112. return t
  113. end
  114. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  115. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  116. local Run = {RenderStepped=fakeEvent()}
  117.  
  118. function CoAS:BindAction(name,fun,touch,...)
  119. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  120. end
  121. function CoAS:UnbindAction(name)
  122. CoAS.Actions[name] = nil
  123. end
  124. local function te(self,ev,...)
  125. local t = self[ev]
  126. if t and t._fakeEvent and t.Connected then
  127. for i,v in next, t.Connected do
  128. if(v.Func and not v.Disconnected)then
  129. v.Func(...)
  130. else
  131. t.Connected[i]=nil
  132. end
  133. end
  134. end
  135. end
  136. m.TrigEvent = te
  137. UsIS.TrigEvent = te
  138. Run.TrigEvent = te
  139. Event.OnServerEvent:Connect(function(plr,io)
  140. if plr~=Player then return end
  141. --[[table.foreach(io,print)
  142. print'---']]
  143. if io.Mouse then
  144. m.Target = io.Target
  145. m.Hit = io.Hit
  146. elseif io.KeyEvent then
  147. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  148. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  149. if io.UserInputState == Enum.UserInputState.Begin then
  150. m:TrigEvent("Button1Down")
  151. else
  152. m:TrigEvent("Button1Up")
  153. end
  154. end
  155. if(not io.KeyEvent and not io.Mouse)then
  156.  
  157. for n,t in pairs(CoAS.Actions) do
  158. for _,k in pairs(t.Keys) do
  159. if k==io.KeyCode then
  160. t.Function(t.Name,io.UserInputState,io)
  161. end
  162. end
  163. end
  164. if io.UserInputState == Enum.UserInputState.Begin then
  165. UsIS:TrigEvent("InputBegan",io,false)
  166. else
  167. UsIS:TrigEvent("InputEnded",io,false)
  168. end
  169. end
  170. end)
  171.  
  172. Func.OnServerInvoke = function(plr,inst,play)
  173. if plr~=Player then return end
  174. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  175. loudnesses[inst]=play
  176. end
  177. end
  178.  
  179. function GetClientProperty(inst,prop)
  180. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  181. return loudnesses[inst]
  182. elseif(prop == 'PlaybackLoudness')then
  183. return Func:InvokeClient(Player,'RegSound',inst)
  184. end
  185. return Func:InvokeClient(Player,inst,prop)
  186. end
  187. local oldGame = game;
  188. function GetFakePlayer()
  189. local oldPlayer = Player;
  190. local fakePlayer = newproxy(true)
  191. getmetatable(fakePlayer).__index = function(s,i)
  192. if(i == 'GetMouse')then
  193. return function() return m; end
  194. elseif(i == 'real')then
  195. return oldPlayer
  196. end
  197. return Player[i]
  198. end
  199. getmetatable(fakePlayer).__newindex = function(s,i,v)
  200. Player[i]=v
  201. end
  202. getmetatable(fakePlayer).__call=function(self,...)
  203. if(self == fakePlayer)then self = Player end
  204. local wh = {...}
  205. local name = table.remove(wh,1)
  206. for i,v in next, wh do
  207. wh[i]=v
  208. end
  209. if(name == 'GetMouse')then
  210. return m;
  211. end
  212. return self(name,unpack(wh))
  213. end
  214. getmetatable(fakePlayer).__namecall=function(self,...)
  215. if(self == fakePlayer)then self = Player end
  216. local tuple={...}
  217. local name = table.remove(tuple,#tuple)
  218.  
  219. if(name == 'GetMouse')then
  220. return m;
  221. else
  222. return self[name](self,unpack(tuple))
  223. end
  224. end
  225.  
  226. return fakePlayer
  227. end
  228. local oll = LoadLibrary;
  229. function LoadLibrary(libtard)
  230. local libtarddestroyed=oll(libtard)
  231. if(libtard=='RbxUtility')then
  232. local library={Create=function(obj)
  233. local inst = Instance.new(obj)
  234. return function(props)
  235. for prop,valu in next, props do
  236. inst[prop]=valu
  237. end
  238. return inst
  239. end
  240. end}
  241. setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
  242.  
  243. return library
  244. else
  245. return libtarddestroyed
  246. end
  247. end
  248. fakePlayer = GetFakePlayer()
  249. local function GetService(s,i)
  250. local service = s:GetService(i)
  251. if(i == 'Players')then
  252. local oldService = service;
  253. local fakeService = newproxy(true)
  254. getmetatable(fakeService).__index = function(s,i)
  255. if(s == fakeService)then s=oldService end
  256. if(i == 'LocalPlayer' or i == 'localPlayer')then
  257. return fakePlayer
  258. elseif(i == 'oPlayer')then
  259. return oPlayer
  260. else
  261. return s[i]
  262. end
  263. end
  264. getmetatable(fakeService).__newindex = function(s,i,v)
  265. if(s == fakeService)then s=oldService end
  266. s[i]=v
  267. end
  268. getmetatable(fakeService).__call=function(self,...)
  269. if(self == fakeService)then self = oldService end
  270. local wh = {...}
  271. local name = table.remove(wh,1)
  272. for i,v in next, wh do
  273. wh[i]=v
  274. end
  275. return self(name,unpack(wh))
  276. end
  277. getmetatable(fakeService).__namecall=function(self,...)
  278. if(self == fakeService)then self = oldService end
  279. local tuple={...}
  280. local name = table.remove(tuple,#tuple)
  281.  
  282. return self[name](self,unpack(tuple))
  283. end
  284. getmetatable(fakeService).__metatable = 'gay'
  285. return fakeService
  286. elseif(i == 'RunService')then
  287. local oldService = service;
  288. local fakeService = newproxy(true)
  289. getmetatable(fakeService).__index = function(s,i)
  290. if(s == fakeService)then s=oldService end
  291. return Run[i] or s[i]
  292. end
  293. getmetatable(fakeService).__newindex = function(s,i,v)
  294. if(s == fakeService)then s=oldService end
  295. s[i]=v
  296. end
  297. getmetatable(fakeService).__call=function(self,...)
  298. if(self == fakeService)then self = oldService end
  299. local wh = {...}
  300. local name = table.remove(wh,1)
  301. for i,v in next, wh do
  302. wh[i]=v
  303. end
  304. return self(name,unpack(wh))
  305. end
  306. getmetatable(fakeService).__namecall=function(self,...)
  307. if(self == fakeService)then self = oldService end
  308. local tuple={...}
  309. local name = table.remove(tuple,#tuple)
  310.  
  311. return self[name](self,unpack(tuple))
  312. end
  313. getmetatable(fakeService).__metatable = 'gay'
  314. return fakeService
  315. elseif(i == 'UserInputService')then
  316. return UsIS
  317. elseif(i == 'ContextActionService')then
  318. return CoAS;
  319. else
  320. return service
  321. end
  322. end
  323.  
  324. local new = Instance.new;
  325. Instance = {}
  326. Instance.new = function(inst,obje)
  327. local lp = GetService(oldGame,'Players').localPlayer
  328. local instance = new(inst)
  329. if(inst=='ObjectValue')then
  330. local fake = newproxy(true)
  331. getmetatable(fake).__index=function(self,index)
  332. if(self==fake)then self=instance end
  333. return self[index]
  334. end
  335. getmetatable(fake).__newindex=function(self,index,value)
  336. if(self==fake)then self=instance end
  337. if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
  338. self[index]=oPlayer
  339. else
  340. self[index]=value
  341. end
  342. end
  343. getmetatable(fake).__call=function(self,...)
  344. if(self == fake)then self = instance end
  345. local wh = {...}
  346. local name = table.remove(wh,1)
  347. for i,v in next, wh do
  348. if(v == fake)then v = instance end
  349. wh[i]=v
  350. end
  351. return self(name,unpack(wh))
  352. end
  353. getmetatable(fake). __namecall=function(self,...)
  354. if(self == fake)then self = instance end
  355. local tuple={...}
  356. local name = table.remove(tuple,#tuple)
  357. return self[name](self,unpack(tuple))
  358. end
  359. return fake
  360. else
  361. instance.Parent = obje
  362. return instance;
  363. end
  364.  
  365. end
  366. local serviceFunctions={
  367. service=true,
  368. GetService=true,
  369. }
  370. local fakeGame = newproxy(true)
  371. getmetatable(fakeGame).__index = function(s,i)
  372. if(s == fakeGame)then s=oldGame end
  373. local serv = GetService(oldGame,i)
  374. if serviceFunctions[i] then
  375. return GetService
  376. elseif(serv)then
  377. return serv
  378. else
  379. return s[i]
  380. end
  381. end
  382. getmetatable(fakeGame).__newindex = function(s,i,v)
  383. if(s == fakeGame)then s=oldGame end
  384. s[i]=v
  385. end
  386. getmetatable(fakeGame).__call=function(self,...)
  387. if(self == fakeGame)then self = oldGame end
  388. local wh = {...}
  389. local name = table.remove(wh,1)
  390. for i,v in next, wh do
  391. if(v == fakeGame)then v = oldGame end
  392. wh[i]=v
  393. end
  394. if serviceFunctions[name] then
  395. return GetService(self,unpack(wh))
  396. else
  397. return self(name,unpack(wh))
  398. end
  399. end
  400. getmetatable(fakeGame). __namecall=function(self,...)
  401. if(self == fakeGame)then self = oldGame end
  402. local tuple={...}
  403. local name = table.remove(tuple,#tuple)
  404.  
  405. local funcToCall=self[name]
  406.  
  407. if serviceFunctions[name] then
  408. return GetService(self,unpack(tuple))
  409. else
  410. return self[name](self,unpack(tuple))
  411. end
  412. end
  413. getmetatable(fakeGame).__metatable = 'gay'
  414.  
  415. coroutine.wrap(function()
  416. while true do
  417. Run:TrigEvent('RenderStepped')
  418. swait()
  419. end
  420. end)()
  421. game=fakeGame
  422. UserInputService,ContextActionService = UsIS,CoAS
  423. end
  424. else
  425. function GetClientProperty(a,b)
  426. return a[b]
  427. end
  428. end
  429.  
  430. warn([[Ruin Erratum Loaded.
  431. As the war continues, More warriors are ascended from the heavens as needed.
  432.  
  433.  
  434. ..but this one...
  435.  
  436. It seems to have risen from the depts of hell.
  437.  
  438. Created by Tc.
  439. ]])
  440.  
  441.  
  442. ------------- ORIGINAL WIELDER: Jokes on you tc's the weilder fucker B)
  443. print([[Icons:
  444. ! = New
  445. ? = Spoilers
  446. * = Exclusivity
  447. C = Changes
  448.  
  449. ]])
  450. warn([[V 1 Update Log:
  451. ! - Started]])
  452.  
  453.  
  454. plr = game:service'Players'.LocalPlayer
  455. mouse = plr:GetMouse()
  456. char = plr.Character
  457. hum = char.Humanoid
  458. local cam = game.Workspace.CurrentCamera
  459. Camera = cam
  460. local CamInterrupt = false
  461. local TwoD = false
  462. local TargetInfo = {nil, nil}
  463. cam.CameraType = "Custom"
  464. t = char.Torso
  465. h = char.Head
  466. ra = char["Right Arm"]
  467. la = char["Left Arm"]
  468. rl = char["Right Leg"]
  469. ll = char["Left Leg"]
  470. tors = char.Torso
  471. lleg = char["Left Leg"]
  472. root = char.HumanoidRootPart
  473. hed = char.Head
  474. rleg = char["Right Leg"]
  475. rarm = char["Right Arm"]
  476. larm = char["Left Arm"]
  477. radian = math.rad
  478. random = math.random
  479. Vec3 = Vector3.new
  480. Inst = Instance.new
  481. cFrame = CFrame.new
  482. Euler = CFrame.fromEulerAnglesXYZ
  483. vt = Vector3.new
  484. bc = BrickColor.new
  485. br = BrickColor.random
  486. it = Instance.new
  487. cf = CFrame.new
  488. local storehumanoidWS = 16
  489. local MAINRUINCOLOR = Color3.new(1,1,1)
  490.  
  491. local Booleans = {
  492. CamFollow = true,
  493. GyroUse = true
  494. }
  495.  
  496. function lerp(object, newCFrame, alpha)
  497. return object:lerp(newCFrame, alpha)
  498. end
  499.  
  500. local Directer = Inst("BodyGyro", root)
  501. Directer.MaxTorque = Vec3(0, 0, 0)
  502. Directer.P = 600000
  503. local CPart = Inst("Part")
  504. CPart.Anchored = true
  505. CPart.CanCollide = false
  506. CPart.Locked = true
  507. CPart.Transparency = 1
  508.  
  509. local rainbowmode = false
  510. local chaosmode = false
  511.  
  512. local ORGID = 1891202697
  513. local ORVOL = 1.15
  514. local ORPIT = 1.01
  515. local kan = Instance.new("Sound",char)
  516. kan.Volume = 1.15
  517. kan.TimePosition = 0
  518. kan.PlaybackSpeed = 1.01
  519. kan.Pitch = 1.01
  520. kan.SoundId = "rbxassetid://1891202697"
  521. kan.Name = "anni"
  522. kan.Looped = true
  523. kan:Play()
  524.  
  525.  
  526. local currentThemePlaying = kan.SoundId
  527. local currentPitch = kan.Pitch
  528. local currentVol = kan.Volume
  529. function newTheme(ID,timepos,pitch,vol)
  530. local kanz = kan
  531. --kanz:Stop()
  532. kanz.Volume = vol
  533. --kanz.TimePosition = timepos
  534. kanz.PlaybackSpeed = pitch
  535. kanz.Pitch = pitch
  536. kanz.SoundId = ID
  537. kanz.Name = "wrecked"
  538. kanz.Looped = true
  539. currentThemePlaying = kanz.SoundId
  540. currentVol = kanz.Volume
  541. currentPitch = kanz.Pitch
  542. --kanz:Play()
  543. --coroutine.resume(coroutine.create(function()
  544. --wait(0.05)
  545. --end))
  546. end
  547.  
  548.  
  549. function newThemeCust(ID,timepos,pitch,vol)
  550. local kanz = kan
  551. kanz:Stop()
  552. kanz.Volume = vol
  553. kanz.TimePosition = timepos
  554. kanz.PlaybackSpeed = pitch
  555. kanz.Pitch = pitch
  556. kanz.SoundId = ID
  557. kanz.Name = "wrecked"
  558. kanz.Looped = true
  559. currentThemePlaying = kanz.SoundId
  560. currentVol = kanz.Volume
  561. currentPitch = kanz.Pitch
  562. kanz:Play()
  563. coroutine.resume(coroutine.create(function()
  564. wait(0.05)
  565. end))
  566. end
  567.  
  568. local mutedtog = false
  569.  
  570. function CameraEnshaking(Length,Intensity)
  571. coroutine.resume(coroutine.create(function()
  572. local intensity = 1*Intensity
  573. local rotM = 0.01*Intensity
  574. for i = 0, Length, 0.1 do
  575. swait()
  576. intensity = intensity - 0.05*Intensity/Length
  577. rotM = rotM - 0.0005*Intensity/Length
  578. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  579. 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)
  580. end
  581. Humanoid.CameraOffset = Vec3(0, 0, 0)
  582. end))
  583. end
  584. CamShake=function(Part,Distan,Power,Times)
  585. local de=Part.Position
  586. for i,v in pairs(workspace:children()) do
  587. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  588. for _,c in pairs(v:children()) do
  589. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  590. local Noob=v.Humanoid
  591. if Noob~=nil then
  592. coroutine.resume(coroutine.create(function()
  593. FV = Instance.new("BoolValue", Noob)
  594. FV.Name = "CameraShake"
  595. for ShakeNum=1,Times do
  596. swait()
  597. local ef=Power
  598. if ef>=1 then
  599. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  600. else
  601. ef=Power*10
  602. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  603. end
  604. end
  605. Humanoid.CameraOffset = Vector3.new(0,0,0)
  606. FV:Destroy()
  607. end))
  608. CameraShake(Times, Power, Noob)
  609. end
  610. end
  611. end
  612. end
  613. end
  614. end
  615.  
  616.  
  617. function chatfunc(text,color,typet,font,timeex)
  618. local chat = coroutine.wrap(function()
  619. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  620. Character:FindFirstChild("TalkingBillBoard"):destroy()
  621. end
  622. local naeeym2 = Instance.new("BillboardGui",Character)
  623. naeeym2.Size = UDim2.new(0,100,0,40)
  624. naeeym2.StudsOffset = Vector3.new(0,3,0)
  625. naeeym2.Adornee = Character.Head
  626. naeeym2.Name = "TalkingBillBoard"
  627. local tecks2 = Instance.new("TextLabel",naeeym2)
  628. tecks2.BackgroundTransparency = 1
  629. tecks2.BorderSizePixel = 0
  630. tecks2.Text = ""
  631. tecks2.Font = font
  632. tecks2.TextSize = 30
  633. tecks2.TextStrokeTransparency = 0
  634. tecks2.TextColor3 = color
  635. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  636. tecks2.Size = UDim2.new(1,0,0.5,0)
  637. local tecks3 = Instance.new("TextLabel",naeeym2)
  638. tecks3.BackgroundTransparency = 1
  639. tecks3.BorderSizePixel = 0
  640. tecks3.Text = ""
  641. tecks3.Font = font
  642. tecks3.TextSize = 30
  643. tecks3.TextStrokeTransparency = 0
  644. if typet == "Inverted" then
  645. tecks3.TextColor3 = Color3.new(0,0,0)
  646. tecks3.TextStrokeColor3 = color
  647. elseif typet == "Normal" then
  648. tecks3.TextColor3 = color
  649. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  650. end
  651. tecks3.Size = UDim2.new(1,0,0.5,0)
  652. coroutine.resume(coroutine.create(function()
  653. while true do
  654. swait(1)
  655. if chaosmode == true then
  656. tecks2.TextColor3 = BrickColor.random().Color
  657. tecks3.TextStrokeColor3 = BrickColor.random().Color
  658. end
  659. end
  660. end))
  661. for i = 0, 74*timeex do
  662. swait()
  663. tecks2.Text = text
  664. tecks3.Text = text
  665. end
  666. local randomrot = math.random(1,2)
  667. if randomrot == 1 then
  668. for i = 1, 50 do
  669. swait()
  670. tecks2.Text = text
  671. tecks3.Text = text
  672. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  673. tecks2.TextTransparency = tecks2.TextTransparency + .04
  674. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  675. tecks3.TextTransparency = tecks2.TextTransparency + .04
  676. end
  677. elseif randomrot == 2 then
  678. for i = 1, 50 do
  679. swait()
  680. tecks2.Text = text
  681. tecks3.Text = text
  682. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  683. tecks2.TextTransparency = tecks2.TextTransparency + .04
  684. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  685. tecks3.TextTransparency = tecks2.TextTransparency + .04
  686. end
  687. end
  688. if toggleTag == false then
  689. end
  690. naeeym2:Destroy()
  691. end)
  692. chat()
  693. end
  694.  
  695. function bosschatfunc(text,color,watval)
  696. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  697. coroutine.resume(coroutine.create(function()
  698. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  699. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  700. end
  701. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  702. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  703. scrg.Name = "Dialog"
  704. local txtlb = Instance.new("TextLabel",scrg)
  705. txtlb.Text = ""
  706. txtlb.Font = "Bodoni"
  707. txtlb.TextColor3 = Color3.new(0,0,0)
  708. txtlb.TextStrokeTransparency = 0
  709. txtlb.BackgroundTransparency = 0.75
  710. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  711. txtlb.TextStrokeColor3 = color
  712. txtlb.TextScaled = true
  713. txtlb.Size = UDim2.new(1,0,0.25,0)
  714. txtlb.TextXAlignment = "Left"
  715. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  716. local txtlb2 = Instance.new("TextLabel",scrg)
  717. txtlb2.Text = "???:"
  718. txtlb2.Font = "Arcade"
  719. txtlb2.TextColor3 = Color3.new(0,0,0)
  720. txtlb2.TextStrokeTransparency = 0
  721. txtlb2.BackgroundTransparency = 1
  722. txtlb2.TextStrokeColor3 = color
  723. txtlb2.TextSize = 40
  724. txtlb2.Size = UDim2.new(1,0,0.25,0)
  725. txtlb2.TextXAlignment = "Left"
  726. txtlb2.Position = UDim2.new(0,0,1,0)
  727. local fvalen = 0.55
  728. local fval = -0.49
  729. coroutine.resume(coroutine.create(function()
  730. while true do
  731. swait()
  732. if chaosmode == true then
  733. txtlb.Rotation = math.random(-1,1)
  734. txtlb2.Rotation = math.random(-1,1)
  735. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  736. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  737. txtlb.TextStrokeColor3 = BrickColor.random().Color
  738. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  739. end
  740. end
  741. end))
  742. coroutine.resume(coroutine.create(function()
  743. while true do
  744. swait()
  745. if scrg.Parent ~= nil then
  746. fvalen = fvalen - 0.0001
  747. elseif scrg.Parent == nil then
  748. break
  749. end
  750. end
  751. end))
  752. local flol = 1.75
  753. local flil = 1.6
  754. coroutine.resume(coroutine.create(function()
  755. for i = 0, 9 do
  756. swait()
  757. fval = fval + 0.05
  758. flol = flol - 0.1
  759. flil = flil - 0.1
  760. txtlb.Text = ""
  761. txtlb.Position = UDim2.new(0,0,flol,0)
  762. txtlb2.Position = UDim2.new(0,0,flil,0)
  763. end
  764. txtlb.Text = text
  765. wait(watval)
  766. local valinc = 0
  767. for i = 0, 99 do
  768. swait()
  769. valinc = valinc + 0.0001
  770. flol = flol + valinc
  771. flil = flil + valinc
  772. txtlb.Rotation = txtlb.Rotation + valinc*20
  773. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  774. txtlb.Position = UDim2.new(0,0,flol,0)
  775. txtlb2.Position = UDim2.new(0,0,flil,0)
  776. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  777. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  778. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  779. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  780. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  781. end
  782. scrg:Destroy()
  783. end))
  784. end))
  785. end
  786. end
  787.  
  788.  
  789. local Create = LoadLibrary("RbxUtility").Create
  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. New = function(Object, Parent, Name, Data)
  963. local Object = Instance.new(Object)
  964. for Index, Value in pairs(Data or {}) do
  965. Object[Index] = Value
  966. end
  967. Object.Parent = Parent
  968. Object.Name = Name
  969. return Object
  970. end
  971. local halocolor = BrickColor.new("Pastel light blue")
  972. local halocolor2 = BrickColor.new("Cool yellow")
  973. local starcolor = BrickColor.new("Bright yellow")
  974. local lunacolor = BrickColor.new("Navy blue")
  975. local lunacolor2 = BrickColor.new("Bright blue")
  976. local wepcolor = BrickColor.new("Really black")
  977. local maincolor = BrickColor.new("Really black")
  978. local m = Instance.new("Model",char)
  979. local m2 = Instance.new("Model",char)
  980. local m3 = Instance.new("Model",char)
  981. local mw1 = Instance.new("Model",char)
  982. local mw2 = Instance.new("Model",char)
  983.  
  984.  
  985. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  986. local gui = it(GuiType)
  987. gui.Parent = parent
  988. gui.Text = text
  989. gui.BackgroundTransparency = backtrans
  990. gui.BackgroundColor3 = backcol
  991. gui.SizeConstraint = "RelativeXY"
  992. gui.TextXAlignment = "Center"
  993. gui.TextYAlignment = "Center"
  994. gui.Position = pos
  995. gui.Size = size
  996. gui.Font = "SourceSans"
  997. gui.FontSize = "Size14"
  998. gui.TextWrapped = false
  999. gui.TextStrokeTransparency = 0
  1000. gui.TextColor = BrickColor.new("White")
  1001. return gui
  1002. end
  1003. --------------------------- GUI STUFF
  1004. local basgui = it("GuiMain")
  1005. basgui.Parent = plr.PlayerGui
  1006. basgui.Name = "VISgui"
  1007. local fullscreenz = it("Frame")
  1008. fullscreenz.Parent = basgui
  1009. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  1010. fullscreenz.BackgroundTransparency = 1
  1011. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  1012. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  1013. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  1014. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  1015. imgl2.BackgroundTransparency = 1
  1016. imgl2.BorderSizePixel = 0
  1017. imgl2.ImageTransparency = 0.5
  1018. imgl2.ImageColor3 = BrickColor.new("White").Color
  1019. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  1020. imgl2.Size = UDim2.new(0,1000,0,1000)
  1021. imgl2.Image = "rbxassetid://251346607"
  1022. local techc = imgl2:Clone()
  1023. techc.Parent = fullscreenz
  1024. techc.ImageTransparency = 0
  1025. techc.Size = UDim2.new(0,900,0,900)
  1026. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  1027. techc.ImageColor3 = Color3.fromRGB(202, 203, 209)
  1028. techc.Image = "rbxassetid://251346607"
  1029. local circl = imgl2:Clone()
  1030. circl.Parent = fullscreenz
  1031. circl.ImageTransparency = 0
  1032. circl.Size = UDim2.new(0,550,0,550)
  1033. circl.Position = UDim2.new(0.75,25,0.55,25)
  1034. circl.ImageColor3 = Color3.new(0,0,0)
  1035. circl.Image = "rbxassetid://251346607"
  1036. local circl2 = imgl2:Clone()
  1037. circl2.Parent = fullscreenz
  1038. circl2.ImageTransparency = 0
  1039. circl2.Size = UDim2.new(0,700,0,700)
  1040. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  1041. circl2.ImageColor3 = BrickColor.new("White").Color
  1042. circl2.Image = "rbxassetid://251346607"
  1043. local imgl2b = imgl2:Clone()
  1044. imgl2b.Parent = fullscreenz
  1045. imgl2b.ImageTransparency = 0
  1046. imgl2b.Size = UDim2.new(0,800,0,800)
  1047. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  1048. imgl2b.ImageColor3 = Color3.new(0,0,0)
  1049. local ned = Instance.new("TextLabel",fullscreenz)
  1050. ned.ZIndex = 2
  1051. ned.Font = "Arcade"
  1052. ned.BackgroundTransparency = 0
  1053. ned.BorderSizePixel = 5
  1054. ned.Size = UDim2.new(0.3,0,0.1,0)
  1055. ned.Position = UDim2.new(0.7,0,0.8,0)
  1056. ned.BorderColor3 = Color3.new(0,0,0)
  1057. ned.BackgroundColor3 = Color3.new(1,1,1)
  1058. ned.TextColor3 = BrickColor.new("Really black").Color
  1059. ned.TextStrokeColor3 = BrickColor.new("White").Color
  1060. ned.TextScaled = true
  1061. ned.TextStrokeTransparency = 0
  1062. ned.Text = "QUOTIDIAN"
  1063. ned.TextSize = 24
  1064. ned.Rotation = 1
  1065. ned.TextXAlignment = "Center"
  1066. ned.TextYAlignment = "Center"
  1067.  
  1068. local extrawingmod1 = Instance.new("Model",char)
  1069. local extrawingmod2 = Instance.new("Model",char)
  1070.  
  1071. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1072. local p = Instance.new("Part")
  1073. p.TopSurface = 0
  1074. p.BottomSurface = 0
  1075. p.Parent = parent
  1076. p.Size = Vector3.new(0.1,0.1,0.1)
  1077. p.Transparency = transparency
  1078. p.Reflectance = reflectance
  1079. p.CanCollide = false
  1080. p.Locked = true
  1081. p.BrickColor = brickcolor
  1082. p.Material = material
  1083. return p
  1084. end
  1085.  
  1086. function CreateMesh(parent,meshtype,x1,y1,z1)
  1087. local mesh = Instance.new("SpecialMesh",parent)
  1088. mesh.MeshType = meshtype
  1089. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1090. return mesh
  1091. end
  1092.  
  1093. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1094. local mesh = Instance.new("SpecialMesh",parent)
  1095. mesh.MeshType = "FileMesh"
  1096. mesh.MeshId = meshid
  1097. mesh.Scale = Vector3.new(x1,y1,z1)
  1098. return mesh
  1099. end
  1100.  
  1101.  
  1102. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1103. local mesh = Instance.new("SpecialMesh",parent)
  1104. mesh.MeshType = "FileMesh"
  1105. mesh.MeshId = meshid
  1106. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1107. mesh.Scale = Vector3.new(x1,y1,z1)
  1108. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1109. return mesh
  1110. end
  1111.  
  1112. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1113. local weld = Instance.new("Weld")
  1114. weld.Parent = parent
  1115. weld.Part0 = part0
  1116. weld.Part1 = part1
  1117. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1118. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1119. return weld
  1120. end
  1121.  
  1122.  
  1123. --------------
  1124. --------------
  1125. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1126. 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))
  1127. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1128. 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))
  1129.  
  1130. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1131. CreateMesh(handlex,"Brick",0,0,0)
  1132. CreateWeld(handlex,Part451,handlex,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1133. local handlexweld = CreateWeld(handlex,rarm,handlex,0,0.5,-1.05,math.rad(-30),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1134. ------
  1135.  
  1136.  
  1137. function RemoveOutlines(part)
  1138. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1139. end
  1140. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1141. local Part = Create("Part")({
  1142. Parent = Parent,
  1143. Reflectance = Reflectance,
  1144. Transparency = Transparency,
  1145. CanCollide = false,
  1146. Locked = true,
  1147. BrickColor = BrickColor.new(tostring(BColor)),
  1148. Name = Name,
  1149. Size = Size,
  1150. Material = Material
  1151. })
  1152. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1153. RemoveOutlines(Part)
  1154. return Part
  1155. end
  1156. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1157. local Msh = Create(Mesh)({
  1158. Parent = Part,
  1159. Offset = OffSet,
  1160. Scale = Scale
  1161. })
  1162. if Mesh == "SpecialMesh" then
  1163. Msh.MeshType = MeshType
  1164. Msh.MeshId = MeshId
  1165. end
  1166. return Msh
  1167. end
  1168. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1169. local Weld = Create("Weld")({
  1170. Parent = Parent,
  1171. Part0 = Part0,
  1172. Part1 = Part1,
  1173. C0 = C0,
  1174. C1 = C1
  1175. })
  1176. return Weld
  1177. end
  1178.  
  1179. Player = game:service'Players'.LocalPlayer
  1180. mouse = Player:GetMouse()
  1181. Character=Player.Character
  1182. PlayerGui=Player.PlayerGui
  1183. Backpack=Player.Backpack
  1184. Torso=Character.Torso
  1185. Head=Character.Head
  1186. Humanoid=Character.Humanoid
  1187. m=Instance.new('Model',Character)
  1188. LeftArm=Character["Left Arm"]
  1189. LeftLeg=Character["Left Leg"]
  1190. RightArm=Character["Right Arm"]
  1191. RightLeg=Character["Right Leg"]
  1192. LS=Torso["Left Shoulder"]
  1193. LH=Torso["Left Hip"]
  1194. RS=Torso["Right Shoulder"]
  1195. RH=Torso["Right Hip"]
  1196. Face = Head.face
  1197. Neck=Torso.Neck
  1198. it=Instance.new
  1199. attacktype=1
  1200. vt=Vector3.new
  1201. cf=CFrame.new
  1202. euler=CFrame.fromEulerAnglesXYZ
  1203. angles=CFrame.Angles
  1204. cloaked=false
  1205. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1206. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1207. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1208. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1209. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1210. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1211. RootPart=Character.HumanoidRootPart
  1212. RootJoint=RootPart.RootJoint
  1213. RootCF=euler(-1.57,0,3.14)
  1214. attack = false
  1215. attackdebounce = false
  1216. deb=false
  1217. equipped=true
  1218. hand=false
  1219. MMouse=nil
  1220. combo=0
  1221. mana=0
  1222. trispeed=.2
  1223. attackmode='none'
  1224. local idle=0
  1225. local Anim="Idle"
  1226. local Effects={}
  1227. local gun=false
  1228. local shoot=false
  1229. local sine = 0
  1230. local change = 1
  1231.  
  1232.  
  1233. function warnedpeople(text,represfont,color,color2)
  1234. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  1235. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  1236. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1237. coroutine.resume(coroutine.create(function()
  1238. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  1239. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  1240. end
  1241. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  1242. scrg.Name = "Spinny"
  1243. local frm = Instance.new("Frame",scrg)
  1244. frm.BackgroundTransparency = 0.25
  1245. frm.BackgroundColor3 = color
  1246. frm.BorderSizePixel = 0
  1247. frm.Rotation = 45
  1248. frm.Size = UDim2.new(3,0,0,100)
  1249. frm.Position = UDim2.new(-4,0,0,0)
  1250. local frm2 = frm:Clone()
  1251. frm2.Parent = scrg
  1252. frm2.BackgroundColor3 = color2
  1253. frm2.Position = UDim2.new(-4.05,0,0,0)
  1254. local imlb = Instance.new("ImageLabel",scrg)
  1255. imlb.BackgroundTransparency = 1
  1256. imlb.BackgroundColor3 = Color3.new(0,0,0)
  1257. imlb.Image = "rbxassetid://2344851144"
  1258. imlb.Size = UDim2.new(0,750,0,750)
  1259. imlb.ImageColor3 = color2
  1260. imlb.ImageTransparency = 0.25
  1261. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  1262. local imlb2 = imlb:Clone()
  1263. imlb2.Image = "rbxassetid://2325939897"
  1264. imlb2.Size = UDim2.new(1,0,1,0)
  1265. imlb2.ImageColor3 = color
  1266. imlb2.ImageTransparency = 0
  1267. imlb2.Position = UDim2.new(0,0,0,0)
  1268. local imlb3 = imlb:Clone()
  1269. imlb3.Image = "rbxassetid://2344830904"
  1270. imlb3.Size = UDim2.new(1,0,1,0)
  1271. imlb3.ImageColor3 = color2
  1272. imlb3.ImageTransparency = 0
  1273. imlb3.Position = UDim2.new(0,0,0,0)
  1274. local imlb4 = imlb:Clone()
  1275. imlb4.Image = "rbxassetid://2344870656"
  1276. imlb4.Size = UDim2.new(1,0,1,0)
  1277. imlb4.ImageColor3 = Color3.new(1,1,1)
  1278. imlb4.ImageTransparency = 0
  1279. imlb4.Position = UDim2.new(0,0,0,0)
  1280. imlb2.Parent = imlb
  1281. imlb3.Parent = imlb
  1282. imlb4.Parent = imlb
  1283. local txtlb2 = Instance.new("TextLabel",imlb)
  1284. txtlb2.Text = text
  1285. txtlb2.Font = represfont
  1286. txtlb2.TextColor3 = color
  1287. txtlb2.TextStrokeTransparency = 0
  1288. txtlb2.BackgroundTransparency = 1
  1289. txtlb2.TextStrokeColor3 = color2
  1290. txtlb2.TextScaled = true
  1291. txtlb2.Size = UDim2.new(1,0,1,0)
  1292. txtlb2.Position = UDim2.new(0,0,0,0)
  1293. local fvalen = 0.55
  1294. local fval = -0.49
  1295. coroutine.resume(coroutine.create(function()
  1296. while true do
  1297. swait()
  1298. if chaosmode == true then
  1299. txtlb2.Rotation = math.random(-1,1)
  1300. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1301. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1302. imlb.ImageColor3 = BrickColor.random().Color
  1303. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  1304. end
  1305. end
  1306. end))
  1307. coroutine.resume(coroutine.create(function()
  1308. while true do
  1309. swait()
  1310. if scrg.Parent ~= nil then
  1311. fvalen = fvalen - 0.0001
  1312. elseif scrg.Parent == nil then
  1313. break
  1314. end
  1315. end
  1316. end))
  1317. local flol = -5
  1318. local flil = 1.6
  1319. coroutine.resume(coroutine.create(function()
  1320. for i = 0, 49 do
  1321. swait()
  1322. flol = flol + 0.125
  1323. flil = flil - 0.1
  1324. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  1325. frm.Rotation = frm.Rotation - 0.25
  1326. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  1327. frm2.Rotation = frm.Rotation + 0.325
  1328. imlb3.Rotation = imlb3.Rotation - 10
  1329. imlb2.Rotation = imlb.Rotation + 7.5
  1330. imlb.Rotation = imlb.Rotation + 5
  1331. txtlb2.Rotation = txtlb2.Rotation - 5.125
  1332. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  1333. end
  1334. for i = 0, 99 do
  1335. swait()
  1336. fval = fval + 0.05
  1337. flol = flol + 0.005
  1338. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  1339. frm.Rotation = frm.Rotation - 0.075
  1340. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  1341. frm2.Rotation = frm2.Rotation + 0.125
  1342. imlb3.Rotation = imlb3.Rotation - 2
  1343. imlb2.Rotation = imlb.Rotation + 1.5
  1344. imlb.Rotation = imlb.Rotation + 1
  1345. txtlb2.Rotation = txtlb2.Rotation - 1.125
  1346. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  1347. end
  1348. local valinc = 0
  1349. local vinc2 = 1
  1350. for i = 0, 99 do
  1351. swait()
  1352. vinc2 = vinc2 + 0.25
  1353. valinc = valinc + 0.0001
  1354. flol = flol + valinc
  1355. flil = flil + valinc
  1356. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  1357. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  1358. imlb.Rotation = imlb.Rotation + 1*vinc2
  1359. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  1360. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  1361. frm.Rotation = frm.Rotation + 0.1*vinc2
  1362. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  1363. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  1364. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  1365. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  1366. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  1367. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  1368. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  1369. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  1370. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  1371. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  1372. end
  1373. scrg:Destroy()
  1374. end))
  1375. end))
  1376. end
  1377. end
  1378.  
  1379.  
  1380.  
  1381. --save shoulders
  1382. RSH, LSH=nil, nil
  1383. --welds
  1384. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1385. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1386. LH=Torso["Left Hip"]
  1387. RH=Torso["Right Hip"]
  1388. TorsoColor=Torso.BrickColor
  1389. function NoOutline(Part)
  1390. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1391. end
  1392. ch=Character
  1393. RSH=ch.Torso["Right Shoulder"]
  1394. LSH=ch.Torso["Left Shoulder"]
  1395. --
  1396. RSH.Parent=nil
  1397. LSH.Parent=nil
  1398. --
  1399. RW.Name="Right Shoulder"
  1400. RW.Part0=ch.Torso
  1401. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1402. RW.C1=cf(0, 0.5, 0)
  1403. RW.Part1=ch["Right Arm"]
  1404. RW.Parent=ch.Torso
  1405. --
  1406. LW.Name="Left Shoulder"
  1407. LW.Part0=ch.Torso
  1408. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1409. LW.C1=cf(0, 0.5, 0)
  1410. LW.Part1=ch["Left Arm"]
  1411. LW.Parent=ch.Torso
  1412.  
  1413. local Stats=Instance.new("BoolValue")
  1414. Stats.Name="Stats"
  1415. Stats.Parent=Character
  1416. local Atk=Instance.new("NumberValue")
  1417. Atk.Name="Damage"
  1418. Atk.Parent=Stats
  1419. Atk.Value=1
  1420. local Def=Instance.new("NumberValue")
  1421. Def.Name="Defense"
  1422. Def.Parent=Stats
  1423. Def.Value=1
  1424. local Speed=Instance.new("NumberValue")
  1425. Speed.Name="Speed"
  1426. Speed.Parent=Stats
  1427. Speed.Value=1
  1428. local Mvmt=Instance.new("NumberValue")
  1429. Mvmt.Name="Movement"
  1430. Mvmt.Parent=Stats
  1431. Mvmt.Value=1
  1432.  
  1433. local donum=0
  1434.  
  1435.  
  1436. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1437. local fp=it("Part")
  1438. fp.formFactor=formfactor
  1439. fp.Parent=parent
  1440. fp.Reflectance=reflectance
  1441. fp.Transparency=transparency
  1442. fp.CanCollide=false
  1443. fp.Locked=true
  1444. fp.BrickColor=brickcolor
  1445. fp.Name=name
  1446. fp.Size=size
  1447. fp.Position=Torso.Position
  1448. NoOutline(fp)
  1449. fp.Material="SmoothPlastic"
  1450. fp:BreakJoints()
  1451. return fp
  1452. end
  1453.  
  1454. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1455. local mesh=it(Mesh)
  1456. mesh.Parent=part
  1457. if Mesh=="SpecialMesh" then
  1458. mesh.MeshType=meshtype
  1459. if meshid~="nil" then
  1460. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1461. end
  1462. end
  1463. mesh.Offset=offset
  1464. mesh.Scale=scale
  1465. return mesh
  1466. end
  1467.  
  1468. function weld(parent,part0,part1,c0)
  1469. local weld=it("Weld")
  1470. weld.Parent=parent
  1471. weld.Part0=part0
  1472. weld.Part1=part1
  1473. weld.C0=c0
  1474. return weld
  1475. end
  1476.  
  1477. local Color1=Torso.BrickColor
  1478.  
  1479. local bodvel=Instance.new("BodyVelocity")
  1480. local bg=Instance.new("BodyGyro")
  1481.  
  1482. --------- SazEreno's Artificial HB --------------
  1483. ArtificialHB = Instance.new("BindableEvent", script)
  1484. ArtificialHB.Name = "ArtificialHB"
  1485.  
  1486. script:WaitForChild("ArtificialHB")
  1487. Frame_Speed = 1 / 60
  1488. frame = Frame_Speed
  1489. tf = 0
  1490. allowframeloss = false
  1491. tossremainder = false
  1492. lastframe = tick()
  1493. script.ArtificialHB:Fire()
  1494.  
  1495. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1496. tf = tf + s
  1497. if tf >= frame then
  1498. if allowframeloss then
  1499. script.ArtificialHB:Fire()
  1500. lastframe = tick()
  1501. else
  1502. for i = 1, math.floor(tf / frame) do
  1503. script.ArtificialHB:Fire()
  1504. end
  1505. lastframe = tick()
  1506. end
  1507. if tossremainder then
  1508. tf = 0
  1509. else
  1510. tf = tf - frame * math.floor(tf / frame)
  1511. end
  1512. end
  1513. end)
  1514.  
  1515. ------------------
  1516. function swait(num)
  1517. if num == 0 or num == nil then
  1518. ArtificialHB.Event:wait()
  1519. else
  1520. for i = 1, num do
  1521. ArtificialHB.Event:wait()
  1522. end
  1523. end
  1524. end
  1525. -------- RAINBOW LEAVE IT TO ME
  1526. Gaunt = script.a
  1527. Gaunt.Parent = char
  1528. Gaunt.Weld.Anchored = false
  1529. Wld = Instance.new("Weld",char)
  1530. Wld.Part1 = ra
  1531. Wld.Part0 = Gaunt.Weld
  1532.  
  1533. for _,v in pairs(Gaunt:GetChildren())do
  1534. if v.Color == Color3.fromRGB(17, 17, 17) then
  1535. v.Name = "Col1"
  1536. end
  1537. if v.Color == Color3.fromRGB(242, 243, 243) then
  1538. v.Name = "Col3"
  1539. end
  1540. if v.Color == Color3.fromRGB(202, 203, 209) then
  1541. v.Name = "Col2"
  1542. end
  1543. end
  1544.  
  1545. local Mode = 1
  1546.  
  1547. function RecolorRuin(Col1,Col2,Col3,Font,Name,SoundID,Vol,Pitch,Mod,WSpeed)
  1548. attack = true
  1549. Mode = Mod
  1550. hum.WalkSpeed = 0
  1551.  
  1552. MAINRUINCOLOR = Col1
  1553. for i = 0, 100 do
  1554. swait()
  1555. local Alpha = .3
  1556. kan.PlaybackSpeed = kan.PlaybackSpeed - 0.01
  1557. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(40),math.rad(0))*RootCF,Alpha)
  1558. LH.C0 = LH.C0:lerp(cf(-1,-1,0.1)*angles(math.rad(0),math.rad(15),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  1559. RH.C0 = RH.C0:lerp(cf(0.9,-1,0.3)*angles(math.rad(0),math.rad(-30),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  1560. LW.C0 = LW.C0:lerp(cf(-1.4,0.4,0.4)*angles(math.rad(-10.6),math.rad(19.7),math.rad(3.6)),Alpha)
  1561. RW.C0 = RW.C0:lerp(cf(1.5,0.6,-0.2)*angles(math.rad(165),math.rad(0),math.rad(-10)),Alpha)
  1562. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.2,0,-0.2)*angles(math.rad(9.5),math.rad(-24.3),math.rad(9))*necko,Alpha)
  1563. PixelBlockX(10,0.4,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),.2,.2,.2,0.001,Col1,1)
  1564. PixelBlockX(10,0.4,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),.2,.2,.2,0.001,Col1,1)
  1565. PixelBlockX(10,0.4,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),.2,.2,.2,0.001,Col1,1)
  1566. PixelBlockX(10,0.4,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),.2,.2,.2,0.001,Col1,1)
  1567. PixelBlockX(12,0,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(sine/2),math.rad(sine/3),math.rad(sine/4)),.4,.4,.4,0.001,Col1,0)
  1568. end
  1569.  
  1570. CFuncs["Sound"].Create("rbxassetid://1469476132", char, 2.5,1.05)
  1571. CFuncs["Sound"].Create("rbxassetid://1835352924", char, 2.5,1)
  1572.  
  1573. for _,v in pairs(Gaunt:GetChildren())do
  1574. if v.Name == "Col1" then
  1575. v.Color = Col1
  1576. end
  1577. if v.Name == "Col2" then
  1578. v.Color = Col2
  1579. end
  1580. if v.Name == "Col3" then
  1581. v.Color = Col3
  1582. end
  1583. end
  1584.  
  1585. circl.ImageColor3 = Col1
  1586. circl2.ImageColor3 = Col1
  1587. ned.TextColor3 = Col1
  1588. ned.TextStrokeColor3 = Col3
  1589. imgl2.ImageColor3 = Col3
  1590. imgl2b.ImageColor3 = Col3
  1591. techc.ImageColor3 = Col2
  1592. ned.Text = Name
  1593. ned.Font = Font
  1594. ned.BorderColor3 = Col1
  1595. ned.BackgroundColor3 = Col2
  1596.  
  1597. PixelBlockX(12,0,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(sine/2),math.rad(sine/3),math.rad(sine/4)),.4,.4,.4,0.5,Col1,0)
  1598. kan.PlaybackSpeed = Pitch
  1599. kan.SoundId = "rbxassetid://" ..SoundID
  1600. kan.Volume = 1.25
  1601. kan:Play()
  1602.  
  1603. for i = 0, 10 do
  1604. swait()
  1605. local Alpha = .8
  1606. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.9,-0.2)*angles(math.rad(-10),math.rad(40),math.rad(0))*RootCF,Alpha)
  1607. LH.C0 = LH.C0:lerp(cf(-1.1,-0.8,-0.8)*angles(math.rad(-58.3),math.rad(0.6),math.rad(16.7))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  1608. RH.C0 = RH.C0:lerp(cf(1.2,0.1,-0.3)*angles(math.rad(11.3),math.rad(-29.4),math.rad(7.4))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  1609. LW.C0 = LW.C0:lerp(cf(-1.4,0.4,0.4)*angles(math.rad(-10.6),math.rad(19.7),math.rad(3.6)),Alpha)
  1610. RW.C0 = RW.C0:lerp(cf(1.5,0.2,-0.5)*angles(math.rad(-165.4),math.rad(-5),math.rad(-3.7)),Alpha)
  1611. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(-0.1,0.1,0.4)*angles(math.rad(-18.1),math.rad(-25.7),math.rad(-2.9))*necko,Alpha)
  1612. end
  1613.  
  1614.  
  1615. hum.WalkSpeed = WSpeed
  1616. storehumanoidWS = WSpeed
  1617.  
  1618.  
  1619.  
  1620. attack = false
  1621.  
  1622.  
  1623. end
  1624.  
  1625.  
  1626.  
  1627. local r = 255
  1628. local g = 0
  1629. local b = 0
  1630. coroutine.resume(coroutine.create(function()
  1631. while wait() do
  1632. for i = 0, 254/5 do
  1633. swait()
  1634. g = g + 5
  1635. end
  1636. for i = 0, 254/5 do
  1637. swait()
  1638. r = r - 5
  1639. end
  1640. for i = 0, 254/5 do
  1641. swait()
  1642. b = b + 5
  1643. end
  1644. for i = 0, 254/5 do
  1645. swait()
  1646. g = g - 5
  1647. end
  1648. for i = 0, 254/5 do
  1649. swait()
  1650. r = r + 5
  1651. end
  1652. for i = 0, 254/5 do
  1653. swait()
  1654. b = b - 5
  1655. end
  1656. end
  1657. end))
  1658.  
  1659.  
  1660. so = function(id,par,vol,pit)
  1661. coroutine.resume(coroutine.create(function()
  1662. local sou = Instance.new("Sound",par or workspace)
  1663. sou.Volume=vol
  1664. sou.Pitch=pit or 1
  1665. sou.SoundId=id
  1666. swait()
  1667. sou:play()
  1668. game:GetService("Debris"):AddItem(sou,6)
  1669. end))
  1670. end
  1671.  
  1672. function clerp(a,b,t)
  1673. local qa = {QuaternionFromCFrame(a)}
  1674. local qb = {QuaternionFromCFrame(b)}
  1675. local ax, ay, az = a.x, a.y, a.z
  1676. local bx, by, bz = b.x, b.y, b.z
  1677. local _t = 1-t
  1678. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1679. end
  1680.  
  1681. function QuaternionFromCFrame(cf)
  1682. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1683. local trace = m00 + m11 + m22
  1684. if trace > 0 then
  1685. local s = math.sqrt(1 + trace)
  1686. local recip = 0.5/s
  1687. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1688. else
  1689. local i = 0
  1690. if m11 > m00 then
  1691. i = 1
  1692. end
  1693. if m22 > (i == 0 and m00 or m11) then
  1694. i = 2
  1695. end
  1696. if i == 0 then
  1697. local s = math.sqrt(m00-m11-m22+1)
  1698. local recip = 0.5/s
  1699. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1700. elseif i == 1 then
  1701. local s = math.sqrt(m11-m22-m00+1)
  1702. local recip = 0.5/s
  1703. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1704. elseif i == 2 then
  1705. local s = math.sqrt(m22-m00-m11+1)
  1706. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1707. end
  1708. end
  1709. end
  1710.  
  1711. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1712. local xs, ys, zs = x + x, y + y, z + z
  1713. local wx, wy, wz = w*xs, w*ys, w*zs
  1714. local xx = x*xs
  1715. local xy = x*ys
  1716. local xz = x*zs
  1717. local yy = y*ys
  1718. local yz = y*zs
  1719. local zz = z*zs
  1720. 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))
  1721. end
  1722.  
  1723. function QuaternionSlerp(a, b, t)
  1724. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1725. local startInterp, finishInterp;
  1726. if cosTheta >= 0.0001 then
  1727. if (1 - cosTheta) > 0.0001 then
  1728. local theta = math.acos(cosTheta)
  1729. local invSinTheta = 1/math.sin(theta)
  1730. startInterp = math.sin((1-t)*theta)*invSinTheta
  1731. finishInterp = math.sin(t*theta)*invSinTheta
  1732. else
  1733. startInterp = 1-t
  1734. finishInterp = t
  1735. end
  1736. else
  1737. if (1+cosTheta) > 0.0001 then
  1738. local theta = math.acos(-cosTheta)
  1739. local invSinTheta = 1/math.sin(theta)
  1740. startInterp = math.sin((t-1)*theta)*invSinTheta
  1741. finishInterp = math.sin(t*theta)*invSinTheta
  1742. else
  1743. startInterp = t-1
  1744. finishInterp = t
  1745. end
  1746. end
  1747. 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
  1748. end
  1749.  
  1750. local function CFrameFromTopBack(at, top, back)
  1751. local right = top:Cross(back)
  1752. return CFrame.new(at.x, at.y, at.z,
  1753. right.x, top.x, back.x,
  1754. right.y, top.y, back.y,
  1755. right.z, top.z, back.z)
  1756. end
  1757.  
  1758. function Triangle(a, b, c)
  1759. local edg1 = (c-a):Dot((b-a).unit)
  1760. local edg2 = (a-b):Dot((c-b).unit)
  1761. local edg3 = (b-c):Dot((a-c).unit)
  1762. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1763. a, b, c = a, b, c
  1764. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1765. a, b, c = b, c, a
  1766. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1767. a, b, c = c, a, b
  1768. else
  1769. assert(false, "unreachable")
  1770. end
  1771.  
  1772. local len1 = (c-a):Dot((b-a).unit)
  1773. local len2 = (b-a).magnitude - len1
  1774. local width = (a + (b-a).unit*len1 - c).magnitude
  1775.  
  1776. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1777.  
  1778. local list = {}
  1779.  
  1780. if len1 > 0.01 then
  1781. local w1 = Instance.new('WedgePart', m)
  1782. game:GetService("Debris"):AddItem(w1,5)
  1783. w1.Material = "SmoothPlastic"
  1784. w1.FormFactor = 'Custom'
  1785. w1.BrickColor = BrickColor.new("Really red")
  1786. w1.Transparency = 0
  1787. w1.Reflectance = 0
  1788. w1.Material = "SmoothPlastic"
  1789. w1.CanCollide = false
  1790. local l1 = Instance.new("PointLight",w1)
  1791. l1.Color = Color3.new(170,0,0)
  1792. NoOutline(w1)
  1793. local sz = Vector3.new(0.2, width, len1)
  1794. w1.Size = sz
  1795. local sp = Instance.new("SpecialMesh",w1)
  1796. sp.MeshType = "Wedge"
  1797. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1798. w1:BreakJoints()
  1799. w1.Anchored = true
  1800. w1.Parent = workspace
  1801. w1.Transparency = 0.7
  1802. table.insert(Effects,{w1,"Disappear",.01})
  1803. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1804. table.insert(list,w1)
  1805. end
  1806.  
  1807. if len2 > 0.01 then
  1808. local w2 = Instance.new('WedgePart', m)
  1809. game:GetService("Debris"):AddItem(w2,5)
  1810. w2.Material = "SmoothPlastic"
  1811. w2.FormFactor = 'Custom'
  1812. w2.BrickColor = BrickColor.new("Really red")
  1813. w2.Transparency = 0
  1814. w2.Reflectance = 0
  1815. w2.Material = "SmoothPlastic"
  1816. w2.CanCollide = false
  1817. local l2 = Instance.new("PointLight",w2)
  1818. l2.Color = Color3.new(170,0,0)
  1819. NoOutline(w2)
  1820. local sz = Vector3.new(0.2, width, len2)
  1821. w2.Size = sz
  1822. local sp = Instance.new("SpecialMesh",w2)
  1823. sp.MeshType = "Wedge"
  1824. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1825. w2:BreakJoints()
  1826. w2.Anchored = true
  1827. w2.Parent = workspace
  1828. w2.Transparency = 0.7
  1829. table.insert(Effects,{w2,"Disappear",.01})
  1830. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1831. table.insert(list,w2)
  1832. end
  1833. return unpack(list)
  1834. end
  1835.  
  1836.  
  1837. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1838. if hit.Parent == nil then
  1839. return
  1840. end
  1841. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1842. for _, v in pairs(hit.Parent:children()) do
  1843. if v:IsA("Humanoid") then
  1844. h = v
  1845. end
  1846. end
  1847. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1848. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1849. return
  1850. end
  1851. local c = Create("ObjectValue")({
  1852. Name = "creator",
  1853. Value = game:GetService("Players").LocalPlayer,
  1854. Parent = h
  1855. })
  1856. game:GetService("Debris"):AddItem(c, 0.5)
  1857. if HitSound ~= nil and HitPitch ~= nil then
  1858. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1859. end
  1860. local Damage = math.random(minim, maxim)
  1861. local blocked = false
  1862. local block = hit.Parent:findFirstChild("Block")
  1863. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1864. blocked = true
  1865. block.Value = block.Value - 1
  1866. print(block.Value)
  1867. end
  1868. if blocked == false then
  1869. HitHealth = h.Health
  1870. h.MaxHealth = 100
  1871. h.Health = h.Health - Damage
  1872. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1873. print("gained kill")
  1874. dmg(h.Parent)
  1875. end
  1876. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1877. else
  1878. h.Health = h.Health - Damage / 2
  1879. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1880. end
  1881. if Type == "Knockdown" then
  1882. local hum = hit.Parent.Humanoid
  1883. hum.PlatformStand = true
  1884. coroutine.resume(coroutine.create(function(HHumanoid)
  1885. swait(1)
  1886. HHumanoid.PlatformStand = false
  1887. end), hum)
  1888. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1889. local bodvol = Create("BodyVelocity")({
  1890. velocity = angle * knockback,
  1891. P = 5000,
  1892. maxForce = Vector3.new(8000, 8000, 8000),
  1893. Parent = hit
  1894. })
  1895. local rl = Create("BodyAngularVelocity")({
  1896. P = 3000,
  1897. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1898. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1899. Parent = hit
  1900. })
  1901. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1902. game:GetService("Debris"):AddItem(rl, 0.5)
  1903. elseif Type == "Normal" then
  1904. local vp = Create("BodyVelocity")({
  1905. P = 500,
  1906. maxForce = Vector3.new(math.huge, 0, math.huge),
  1907. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1908. })
  1909. if knockback > 0 then
  1910. vp.Parent = hit.Parent.Head
  1911. end
  1912. game:GetService("Debris"):AddItem(vp, 0.5)
  1913. elseif Type == "Up" then
  1914. local bodyVelocity = Create("BodyVelocity")({
  1915. velocity = Vector3.new(0, 20, 0),
  1916. P = 5000,
  1917. maxForce = Vector3.new(8000, 8000, 8000),
  1918. Parent = hit
  1919. })
  1920. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1921. local bodyVelocity = Create("BodyVelocity")({
  1922. velocity = Vector3.new(0, 20, 0),
  1923. P = 5000,
  1924. maxForce = Vector3.new(8000, 8000, 8000),
  1925. Parent = hit
  1926. })
  1927. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1928. elseif Type == "Leech" then
  1929. local hum = hit.Parent.Humanoid
  1930. if hum ~= nil then
  1931. for i = 0, 2 do
  1932. 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)
  1933. end
  1934. Humanoid.Health = Humanoid.Health + 10
  1935. end
  1936. elseif Type == "UpKnock" then
  1937. local hum = hit.Parent.Humanoid
  1938. hum.PlatformStand = true
  1939. if hum ~= nil then
  1940. hitr = true
  1941. end
  1942. coroutine.resume(coroutine.create(function(HHumanoid)
  1943. swait(5)
  1944. HHumanoid.PlatformStand = false
  1945. hitr = false
  1946. end), hum)
  1947. local bodyVelocity = Create("BodyVelocity")({
  1948. velocity = Vector3.new(0, 20, 0),
  1949. P = 5000,
  1950. maxForce = Vector3.new(8000, 8000, 8000),
  1951. Parent = hit
  1952. })
  1953. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1954. local bodyVelocity = Create("BodyVelocity")({
  1955. velocity = Vector3.new(0, 20, 0),
  1956. P = 5000,
  1957. maxForce = Vector3.new(8000, 8000, 8000),
  1958. Parent = hit
  1959. })
  1960. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1961. elseif Type == "Snare" then
  1962. local bp = Create("BodyPosition")({
  1963. P = 2000,
  1964. D = 100,
  1965. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1966. position = hit.Parent.Torso.Position,
  1967. Parent = hit.Parent.Torso
  1968. })
  1969. game:GetService("Debris"):AddItem(bp, 1)
  1970. elseif Type == "Slashnare" then
  1971. 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)
  1972. for i = 1, math.random(4, 5) do
  1973. 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)
  1974. end
  1975. local bp = Create("BodyPosition")({
  1976. P = 2000,
  1977. D = 100,
  1978. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1979. position = hit.Parent.Torso.Position,
  1980. Parent = hit.Parent.Torso
  1981. })
  1982. game:GetService("Debris"):AddItem(bp, 1)
  1983. elseif Type == "Spike" then
  1984. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1985. local bp = Create("BodyPosition")({
  1986. P = 2000,
  1987. D = 100,
  1988. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1989. position = hit.Parent.Torso.Position,
  1990. Parent = hit.Parent.Torso
  1991. })
  1992. game:GetService("Debris"):AddItem(bp, 1)
  1993. elseif Type == "Freeze" then
  1994. local BodPos = Create("BodyPosition")({
  1995. P = 50000,
  1996. D = 1000,
  1997. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1998. position = hit.Parent.Torso.Position,
  1999. Parent = hit.Parent.Torso
  2000. })
  2001. local BodGy = Create("BodyGyro")({
  2002. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2003. P = 20000,
  2004. Parent = hit.Parent.Torso,
  2005. cframe = hit.Parent.Torso.CFrame
  2006. })
  2007. hit.Parent.Torso.Anchored = true
  2008. coroutine.resume(coroutine.create(function(Part)
  2009. swait(1.5)
  2010. Part.Anchored = false
  2011. end), hit.Parent.Torso)
  2012. game:GetService("Debris"):AddItem(BodPos, 3)
  2013. game:GetService("Debris"):AddItem(BodGy, 3)
  2014. end
  2015. local debounce = Create("BoolValue")({
  2016. Name = "DebounceHit",
  2017. Parent = hit.Parent,
  2018. Value = true
  2019. })
  2020. game:GetService("Debris"):AddItem(debounce, Delay)
  2021. c = Instance.new("ObjectValue")
  2022. c.Name = "creator"
  2023. c.Value = Player
  2024. c.Parent = h
  2025. game:GetService("Debris"):AddItem(c, 0.5)
  2026. end
  2027. end
  2028. function ShowDamage(Pos, Text, Time, Color)
  2029. local Rate = 0.03333333333333333
  2030. local Pos = Pos or Vector3.new(0, 0, 0)
  2031. local Text = Text or ""
  2032. local Time = Time or 2
  2033. local Color = Color or Color3.new(1, 0, 1)
  2034. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2035. EffectPart.Anchored = true
  2036. local BillboardGui = Create("BillboardGui")({
  2037. Size = UDim2.new(3, 0, 3, 0),
  2038. Adornee = EffectPart,
  2039. Parent = EffectPart
  2040. })
  2041. local TextLabel = Create("TextLabel")({
  2042. BackgroundTransparency = 1,
  2043. Size = UDim2.new(1, 0, 1, 0),
  2044. Text = Text,
  2045. TextColor3 = Color,
  2046. TextScaled = true,
  2047. Font = Enum.Font.ArialBold,
  2048. Parent = BillboardGui
  2049. })
  2050. game.Debris:AddItem(EffectPart, Time + 0.1)
  2051. EffectPart.Parent = game:GetService("Workspace")
  2052. delay(0, function()
  2053. local Frames = Time / Rate
  2054. for Frame = 1, Frames do
  2055. wait(Rate)
  2056. local Percent = Frame / Frames
  2057. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2058. TextLabel.TextTransparency = Percent
  2059. end
  2060. if EffectPart and EffectPart.Parent then
  2061. EffectPart:Destroy()
  2062. end
  2063. end)
  2064. end
  2065. function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
  2066. for _, c in pairs(workspace:children()) do
  2067. local hum = c:findFirstChildOfClass("Humanoid")
  2068. if hum ~= nil then
  2069. local head = c:findFirstChild("Torso")
  2070. if head ~= nil then
  2071. local targ = head.Position - Part.Position
  2072. local mag = targ.magnitude
  2073. if magni >= mag and c.Name ~= Player.Name then
  2074. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  2075. end
  2076. end
  2077. local head = c:findFirstChild("UpperTorso")
  2078. if head ~= nil then
  2079. local targ = head.Position - Part.Position
  2080. local mag = targ.magnitude
  2081. if magni >= mag and c.Name ~= Player.Name then
  2082. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  2083. end
  2084. end
  2085. end
  2086. end
  2087. end
  2088.  
  2089.  
  2090. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2091. for _, c in pairs(workspace:children()) do
  2092. local hum = c:findFirstChild("Humanoid")
  2093. if hum ~= nil then
  2094. local head = c:findFirstChild("Torso")
  2095. if head ~= nil then
  2096. local targ = head.Position - Part.Position
  2097. local mag = targ.magnitude
  2098. if magni >= mag and c.Name ~= Player.Name then
  2099. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2100. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2101. end
  2102. end
  2103. end
  2104. end
  2105. end
  2106.  
  2107. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2108. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2109. end
  2110.  
  2111. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2112. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2113. prt.Anchored=true
  2114. prt.CFrame=cframe
  2115. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2116. --http://www.roblox.com/asset/?id=4770560
  2117. game:GetService("Debris"):AddItem(prt,2)
  2118. CF=prt.CFrame
  2119. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2120. for i=0,1,0.2 do
  2121. wait()
  2122. Part.CFrame=CF*cf(0,0,-0.4)
  2123. end
  2124. for i=0,1,delay do
  2125. wait()
  2126. --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)
  2127. Mesh.Scale=Mesh.Scale
  2128. end
  2129. for i=0,1,0.1 do
  2130. wait()
  2131. Part.Transparency=i
  2132. end
  2133. Part.Parent=nil
  2134. end),prt,msh,CF)
  2135. end
  2136.  
  2137. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2138. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2139. prt.Anchored=true
  2140. prt.Material = "Neon"
  2141. prt.CFrame=cframe
  2142. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2143. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2144. game:GetService("Debris"):AddItem(prt,5)
  2145. coroutine.resume(coroutine.create(function(Part,Mesh)
  2146. for i=0,1,delay do
  2147. swait()
  2148. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2149. Part.Transparency=i
  2150. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2151. end
  2152. Part.Parent=nil
  2153. end),prt,msh)
  2154. end
  2155.  
  2156. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2157. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2158. prt.Anchored=true
  2159. prt.Material = "Neon"
  2160. prt.CFrame=cframe
  2161. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2162. game:GetService("Debris"):AddItem(prt,5)
  2163. coroutine.resume(coroutine.create(function(Part,Mesh)
  2164. local rtype = rottype
  2165. for i=0,1,delay do
  2166. swait()
  2167. if rtype == 1 then
  2168. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2169. elseif rtype == 2 then
  2170. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2171. end
  2172. Part.Transparency=i
  2173. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2174. end
  2175. Part.Parent=nil
  2176. end),prt,msh)
  2177. end
  2178.  
  2179. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2180. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2181. prt.Anchored=true
  2182. prt.CFrame=cframe
  2183. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2184. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2185. game:GetService("Debris"):AddItem(prt,5)
  2186. coroutine.resume(coroutine.create(function(Part,Mesh)
  2187. for i=0,1,delay do
  2188. wait()
  2189. Part.Transparency=i
  2190. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2191. end
  2192. Part.Parent=nil
  2193. end),prt,msh)
  2194. end
  2195.  
  2196. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2197. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2198. prt.Anchored=true
  2199. prt.Material = "Neon"
  2200. prt.CFrame=cframe
  2201. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2202. game:GetService("Debris"):AddItem(prt,5)
  2203. coroutine.resume(coroutine.create(function(Part,Mesh)
  2204. local rtype = rottype
  2205. for i=0,1,delay do
  2206. swait()
  2207. if rtype == 1 then
  2208. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2209. elseif rtype == 2 then
  2210. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2211. end
  2212. Part.Transparency=i
  2213. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2214. end
  2215. Part.Parent=nil
  2216. end),prt,msh)
  2217. end
  2218.  
  2219. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2220. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2221. prt.Anchored=true
  2222. prt.Material = "Neon"
  2223. prt.CFrame=cframe
  2224. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2225. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2226. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2227. game:GetService("Debris"):AddItem(prt,5)
  2228. coroutine.resume(coroutine.create(function(Part,Mesh)
  2229. local rtype = rottype
  2230. for i=0,1,delay do
  2231. swait()
  2232. if rtype == 1 then
  2233. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2234. elseif rtype == 2 then
  2235. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2236. end
  2237. dec.Transparency=i
  2238. dec2.Transparency=i
  2239. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2240. end
  2241. Part.Parent=nil
  2242. end),prt,msh)
  2243. end
  2244.  
  2245. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2246. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2247. prt.Anchored=true
  2248. prt.Material = "Neon"
  2249. prt.CFrame=cframe
  2250. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2251. game:GetService("Debris"):AddItem(prt,5)
  2252. coroutine.resume(coroutine.create(function(Part,Mesh)
  2253. local rtype = rottype
  2254. for i=0,1,delay do
  2255. swait()
  2256. if rtype == 1 then
  2257. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2258. elseif rtype == 2 then
  2259. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2260. end
  2261. prt.Transparency=i
  2262. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2263. end
  2264. Part.Parent=nil
  2265. end),prt,msh)
  2266. end
  2267.  
  2268. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2269. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2270. prt.Anchored=true
  2271. prt.Material = "Neon"
  2272. prt.CFrame=cframe
  2273. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  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.1,0)
  2281. elseif rtype == 2 then
  2282. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2283. end
  2284. prt.Transparency=i
  2285. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2286. end
  2287. Part.Parent=nil
  2288. end),prt,msh)
  2289. end
  2290.  
  2291. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2292. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2293. prt.Anchored=true
  2294. prt.Material = "Neon"
  2295. prt.CFrame=cframe
  2296. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2297. game:GetService("Debris"):AddItem(prt,5)
  2298. coroutine.resume(coroutine.create(function(Part,Mesh)
  2299. local rtype = rottype
  2300. for i=0,1,delay do
  2301. swait()
  2302. if rtype == 1 then
  2303. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2304. elseif rtype == 2 then
  2305. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2306. end
  2307. prt.Transparency=i
  2308. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2309. end
  2310. Part.Parent=nil
  2311. end),prt,msh)
  2312. end
  2313.  
  2314. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2315. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2316. prt.Anchored=true
  2317. prt.Material = "Neon"
  2318. prt.CFrame=cframe
  2319. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2320. game:GetService("Debris"):AddItem(prt,5)
  2321. coroutine.resume(coroutine.create(function(Part,Mesh)
  2322. local rtype = rottype
  2323. for i=0,1,delay do
  2324. swait()
  2325. if rtype == 1 then
  2326. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2327. elseif rtype == 2 then
  2328. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2329. end
  2330. prt.Transparency=i
  2331. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2332. end
  2333. Part.Parent=nil
  2334. end),prt,msh)
  2335. end
  2336.  
  2337. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2338. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2339. prt.Anchored=false
  2340. prt.CFrame=cframe
  2341. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2342. local wld=weld(prt,prt,Parent,cframe)
  2343. game:GetService("Debris"):AddItem(prt,5)
  2344. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2345. for i=0,1,delay do
  2346. wait()
  2347. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2348. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2349. Part.Transparency=i
  2350. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2351. end
  2352. Part.Parent=nil
  2353. end),prt,msh,wld)
  2354. end
  2355.  
  2356. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2357. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2358. prt.Anchored=false
  2359. prt.CFrame=cframe
  2360. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2361. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2362. game:GetService("Debris"):AddItem(prt,5)
  2363. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2364. for i=0,1,delay do
  2365. wait()
  2366. Weld.C0=euler(i*20,0,0)
  2367. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2368. Part.Transparency=i
  2369. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2370. end
  2371. Part.Parent=nil
  2372. end),prt,msh,wld)
  2373. end
  2374.  
  2375. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2376. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2377. prt.Anchored=true
  2378. prt.CFrame=cframe
  2379. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2380. game:GetService("Debris"):AddItem(prt,2)
  2381. coroutine.resume(coroutine.create(function(Part,Mesh)
  2382. for i=0,1,delay do
  2383. wait()
  2384. Part.CFrame=Part.CFrame
  2385. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2386. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2387. prt2.Anchored=true
  2388. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2389. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2390. game:GetService("Debris"):AddItem(prt2,2)
  2391. coroutine.resume(coroutine.create(function(Part,Mesh)
  2392. for i=0,1,0.1 do
  2393. wait()
  2394. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2395. end
  2396. Part.Parent=nil
  2397. end),prt2,msh2)
  2398. end
  2399. for i=0,1,delay*2 do
  2400. wait()
  2401. Part.CFrame=Part.CFrame
  2402. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2403. end
  2404. Part.Parent=nil
  2405. end),prt,msh)
  2406. end
  2407.  
  2408. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2409. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2410. prt.Anchored=true
  2411. prt.CFrame=cframe
  2412. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2413. game:GetService("Debris"):AddItem(prt,2)
  2414. coroutine.resume(coroutine.create(function(Part,Mesh)
  2415. for i=0,1,delay do
  2416. wait()
  2417. Part.CFrame=Part.CFrame
  2418. Part.Transparency=i
  2419. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2420. end
  2421. Part.Parent=nil
  2422. end),prt,msh)
  2423. end
  2424.  
  2425. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2426. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2427. prt.Anchored=true
  2428. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2429. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2430. game:GetService("Debris"):AddItem(prt,2)
  2431. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2432. CF=Part.CFrame
  2433. Numbb=0
  2434. randnumb=math.random()/10
  2435. rand1=math.random()/10
  2436. for i=0,1,rand1 do
  2437. wait()
  2438. CF=CF*cf(0,math.random()/2,0)
  2439. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2440. Part.CFrame=CF*euler(Numbb,0,0)
  2441. Part.Transparency=i
  2442. Numbb=Numbb+randnumb
  2443. end
  2444. Part.Parent=nil
  2445. end),prt,CF,Numbb,randnumb)
  2446. end
  2447.  
  2448. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2449. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2450. prt.Anchored=true
  2451. prt.CFrame=cframe
  2452. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2453. game:GetService("Debris"):AddItem(prt,5)
  2454. coroutine.resume(coroutine.create(function(Part,Mesh)
  2455. for i=0,1,delay do
  2456. wait()
  2457. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2458. Part.Transparency=i
  2459. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2460. end
  2461. Part.Parent=nil
  2462. end),prt,msh)
  2463. end
  2464.  
  2465. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2466. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2467. prt.Anchored=true
  2468. prt.CFrame=cframe
  2469. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2470. game:GetService("Debris"):AddItem(prt,2)
  2471. coroutine.resume(coroutine.create(function(Part,Mesh)
  2472. for i=0,1,delay do
  2473. wait()
  2474. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2475. Part.Transparency=i
  2476. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2477. end
  2478. Part.Parent=nil
  2479. end),prt,msh)
  2480. end
  2481.  
  2482. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2483. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2484. prt.Anchored=true
  2485. prt.CFrame=cframe*cf(x,y,z)
  2486. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2487. game:GetService("Debris"):AddItem(prt,5)
  2488. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2489. local num=math.random()
  2490. local num2=math.random(-3,2)+math.random()
  2491. local numm=0
  2492. for i=0,1,delay*2 do
  2493. swait()
  2494. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2495. Part.Transparency=i
  2496. numm=numm+0.01
  2497. end
  2498. Part.Parent=nil
  2499. Mesh.Parent=nil
  2500. end),prt,msh,x,y,z)
  2501. end
  2502.  
  2503. function dmgstart(dmg,what)
  2504. hitcon = what.Touched:connect(function(hit)
  2505. local hum = hit.Parent:FindFirstChild("Humanoid")
  2506. if hum and not hum:IsDescendantOf(Character) then
  2507. hum:TakeDamage(dmg)
  2508. end
  2509. end)
  2510. end
  2511.  
  2512. function dmgstop()
  2513. hitcon:disconnect()
  2514. end
  2515.  
  2516. function Cloak()
  2517. Face.Parent=nil
  2518. cloaked=true
  2519. for _,v in pairs(Torso.Parent:children()) do
  2520. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2521. coroutine.resume(coroutine.create(function()
  2522. for i=0,1,0.2 do
  2523. wait()
  2524. v.Transparency=i
  2525. end
  2526. v.Transparency=1
  2527. end))
  2528. end
  2529. if v.className=="Hat" then
  2530. hatp=v.Handle
  2531. coroutine.resume(coroutine.create(function(derp)
  2532. for i=0,1,0.2 do
  2533. wait()
  2534. derp.Transparency=i
  2535. end
  2536. derp.Transparency=1
  2537. end),hatp)
  2538. end
  2539. end
  2540. for _,v in pairs(m:children()) do
  2541. if v.className=="Part" then
  2542. coroutine.resume(coroutine.create(function()
  2543. for i=0,1,0.2 do
  2544. wait()
  2545. v.Transparency=i
  2546. end
  2547. v.Transparency=1
  2548. end))
  2549. end
  2550. end
  2551. end
  2552.  
  2553. function UnCloak()
  2554. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2555. Face.Parent=Head
  2556. cloaked=false
  2557. for _,v in pairs(Torso.Parent:children()) do
  2558. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2559. coroutine.resume(coroutine.create(function()
  2560. for i=0,1,0.1 do
  2561. wait()
  2562. v.Transparency=v.Transparency-0.1
  2563. end
  2564. v.Transparency=0
  2565. end))
  2566. end
  2567. if v.className=="Hat" then
  2568. hatp=v.Handle
  2569. coroutine.resume(coroutine.create(function(derp)
  2570. for i=0,1,0.1 do
  2571. wait()
  2572. derp.Transparency=derp.Transparency-0.1
  2573. end
  2574. derp.Transparency=0
  2575. end),hatp)
  2576. end
  2577. end
  2578. for _,v in pairs(m:children()) do
  2579. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2580. coroutine.resume(coroutine.create(function()
  2581. for i=0,1,0.1 do
  2582. wait()
  2583. v.Transparency=v.Transparency-0.1
  2584. end
  2585. v.Transparency=0
  2586. end))
  2587. v.Transparency=0
  2588. end
  2589. end
  2590. end
  2591.  
  2592. local origcolor = BrickColor.new("Pastel light blue")
  2593. ---- This section of explosions.
  2594.  
  2595. ----
  2596.  
  2597.  
  2598. function ring(type,pos,scale,value)
  2599. local type = type
  2600. local rng = Instance.new("Part", char)
  2601. rng.Anchored = true
  2602. rng.BrickColor = origcolor
  2603. rng.CanCollide = false
  2604. rng.FormFactor = 3
  2605. rng.Name = "Ring"
  2606. rng.Size = Vector3.new(1, 1, 1)
  2607. rng.Transparency = 0
  2608. rng.TopSurface = 0
  2609. rng.BottomSurface = 0
  2610. rng.CFrame = pos
  2611. local rngm = Instance.new("SpecialMesh", rng)
  2612. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2613. rngm.Scale = scale
  2614. local scaler2 = 1
  2615. if type == "Add" then
  2616. scaler2 = 1*value
  2617. elseif type == "Divide" then
  2618. scaler2 = 1/value
  2619. end
  2620. coroutine.resume(coroutine.create(function()
  2621. for i = 0,10,0.1 do
  2622. swait()
  2623. if type == "Add" then
  2624. scaler2 = scaler2 - 0.01*value
  2625. elseif type == "Divide" then
  2626. scaler2 = scaler2 - 0.01/value
  2627. end
  2628. rng.Transparency = rng.Transparency + 0.01
  2629. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2630. end
  2631. rng:Destroy()
  2632. end))
  2633. end
  2634.  
  2635.  
  2636. function wave(type,pos,scale,value)
  2637. local type = type
  2638. local rng = Instance.new("Part", char)
  2639. rng.Anchored = true
  2640. rng.BrickColor = origcolor
  2641. rng.CanCollide = false
  2642. rng.FormFactor = 3
  2643. rng.Name = "Ring"
  2644. rng.Size = Vector3.new(1, 1, 1)
  2645. rng.Transparency = 0
  2646. rng.TopSurface = 0
  2647. rng.BottomSurface = 0
  2648. rng.CFrame = pos
  2649. local rngm = Instance.new("SpecialMesh", rng)
  2650. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2651. rngm.Scale = scale
  2652. local scaler2 = 1
  2653. if type == "Add" then
  2654. scaler2 = 1*value
  2655. elseif type == "Divide" then
  2656. scaler2 = 1/value
  2657. end
  2658. coroutine.resume(coroutine.create(function()
  2659. for i = 0,10,0.1 do
  2660. swait()
  2661. if type == "Add" then
  2662. scaler2 = scaler2 - 0.01*value
  2663. elseif type == "Divide" then
  2664. scaler2 = scaler2 - 0.01/value
  2665. end
  2666. rng.Transparency = rng.Transparency + 0.01
  2667. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2668. end
  2669. rng:Destroy()
  2670. end))
  2671. end
  2672.  
  2673. function wind(type,pos,scale,value,speed)
  2674. local type = type
  2675. local rng = Instance.new("Part", char)
  2676. rng.Anchored = true
  2677. rng.BrickColor = origcolor
  2678. rng.CanCollide = false
  2679. rng.FormFactor = 3
  2680. rng.Name = "Ring"
  2681. rng.Size = Vector3.new(1, 1, 1)
  2682. rng.Transparency = 0
  2683. rng.TopSurface = 0
  2684. rng.BottomSurface = 0
  2685. rng.CFrame = pos
  2686. local rngm = Instance.new("SpecialMesh", rng)
  2687. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2688. rngm.Scale = scale
  2689. local scaler2 = 1
  2690. if type == "Add" then
  2691. scaler2 = 1*value
  2692. elseif type == "Divide" then
  2693. scaler2 = 1/value
  2694. end
  2695. coroutine.resume(coroutine.create(function()
  2696. for i = 0,10,0.1 do
  2697. swait()
  2698. if type == "Add" then
  2699. scaler2 = scaler2 - 0.01*value
  2700. elseif type == "Divide" then
  2701. scaler2 = scaler2 - 0.01/value
  2702. end
  2703. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2704. rng.Transparency = rng.Transparency + 0.01
  2705. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2706. end
  2707. rng:Destroy()
  2708. end))
  2709. end
  2710.  
  2711. function groundwind(type,pos,scale,value,speed)
  2712. local type = type
  2713. local rng = Instance.new("Part", char)
  2714. rng.Anchored = true
  2715. rng.BrickColor = origcolor
  2716. rng.CanCollide = false
  2717. rng.FormFactor = 3
  2718. rng.Name = "Ring"
  2719. rng.Size = Vector3.new(1, 1, 1)
  2720. rng.Transparency = 0
  2721. rng.TopSurface = 0
  2722. rng.BottomSurface = 0
  2723. rng.CFrame = pos
  2724. local rngm = Instance.new("SpecialMesh", rng)
  2725. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2726. rngm.Scale = scale
  2727. local scaler2 = 1
  2728. if type == "Add" then
  2729. scaler2 = 1*value
  2730. elseif type == "Divide" then
  2731. scaler2 = 1/value
  2732. end
  2733. coroutine.resume(coroutine.create(function()
  2734. for i = 0,10,0.1 do
  2735. swait()
  2736. if type == "Add" then
  2737. scaler2 = scaler2 - 0.01*value
  2738. elseif type == "Divide" then
  2739. scaler2 = scaler2 - 0.01/value
  2740. end
  2741. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2742. rng.Transparency = rng.Transparency + 0.01
  2743. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2744. end
  2745. rng:Destroy()
  2746. end))
  2747. end
  2748.  
  2749. function CameraManager()
  2750. if TwoD and not CamInterrupt then
  2751. if Humanoid.Health > 0 then
  2752. Camera.CameraSubject = Humanoid
  2753. Camera.CameraType = "Scriptable"
  2754. Humanoid.AutoRotate = false
  2755. if Booleans.GyroUse then
  2756. Directer.MaxTorque = Vec3(0, huge, 0)
  2757. else
  2758. Directer.MaxTorque = Vec3(0, 0, 0)
  2759. end
  2760. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2761. if Booleans.CamFollow then
  2762. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2763. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2764. else
  2765. CPart.Position = RootPart.Position
  2766. end
  2767. else
  2768. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2769. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2770. end
  2771. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2772. else
  2773. Camera.CameraSubject = Humanoid
  2774. Camera.CameraType = "Custom"
  2775. end
  2776. end
  2777. end
  2778.  
  2779. function ring(type,pos,scale,value)
  2780. local type = type
  2781. local rng = Instance.new("Part", char)
  2782. rng.Anchored = true
  2783. rng.BrickColor = origcolor
  2784. rng.CanCollide = false
  2785. rng.FormFactor = 3
  2786. rng.Name = "Ring"
  2787. rng.Size = Vector3.new(1, 1, 1)
  2788. rng.Transparency = 0
  2789. rng.TopSurface = 0
  2790. rng.BottomSurface = 0
  2791. rng.CFrame = pos
  2792. local rngm = Instance.new("SpecialMesh", rng)
  2793. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2794. rngm.Scale = scale
  2795. local scaler2 = 1
  2796. if type == "Add" then
  2797. scaler2 = 1*value
  2798. elseif type == "Divide" then
  2799. scaler2 = 1/value
  2800. end
  2801. coroutine.resume(coroutine.create(function()
  2802. for i = 0,10,0.1 do
  2803. swait()
  2804. if type == "Add" then
  2805. scaler2 = scaler2 - 0.01*value
  2806. elseif type == "Divide" then
  2807. scaler2 = scaler2 - 0.01/value
  2808. end
  2809. rng.Transparency = rng.Transparency + 0.01
  2810. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2811. end
  2812. rng:Destroy()
  2813. end))
  2814. end
  2815.  
  2816.  
  2817. function wave(type,pos,scale,value)
  2818. local type = type
  2819. local rng = Instance.new("Part", char)
  2820. rng.Anchored = true
  2821. rng.BrickColor = origcolor
  2822. rng.CanCollide = false
  2823. rng.FormFactor = 3
  2824. rng.Name = "Ring"
  2825. rng.Size = Vector3.new(1, 1, 1)
  2826. rng.Transparency = 0
  2827. rng.TopSurface = 0
  2828. rng.BottomSurface = 0
  2829. rng.CFrame = pos
  2830. local rngm = Instance.new("SpecialMesh", rng)
  2831. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2832. rngm.Scale = scale
  2833. local scaler2 = 1
  2834. if type == "Add" then
  2835. scaler2 = 1*value
  2836. elseif type == "Divide" then
  2837. scaler2 = 1/value
  2838. end
  2839. coroutine.resume(coroutine.create(function()
  2840. for i = 0,10,0.1 do
  2841. swait()
  2842. if type == "Add" then
  2843. scaler2 = scaler2 - 0.01*value
  2844. elseif type == "Divide" then
  2845. scaler2 = scaler2 - 0.01/value
  2846. end
  2847. rng.Transparency = rng.Transparency + 0.01
  2848. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2849. end
  2850. rng:Destroy()
  2851. end))
  2852. end
  2853.  
  2854. function sphere(bonuspeed,type,pos,scale,value,color)
  2855. local type = type
  2856. local rng = Instance.new("Part", char)
  2857. rng.Anchored = true
  2858. if ModeOfGlitch ~= 9 then
  2859. rng.BrickColor = color
  2860. elseif ModeOfGlitch == 9 then
  2861. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  2862. end
  2863. rng.CanCollide = false
  2864. rng.FormFactor = 3
  2865. rng.Name = "Ring"
  2866. rng.Material = "Neon"
  2867. rng.Size = Vector3.new(1, 1, 1)
  2868. rng.Transparency = 0
  2869. rng.TopSurface = 0
  2870. rng.BottomSurface = 0
  2871. rng.CFrame = pos
  2872. local rngm = Instance.new("SpecialMesh", rng)
  2873. rngm.MeshType = "Sphere"
  2874. rngm.Scale = scale
  2875. if rainbowmode == true then
  2876. rng.Color = Color3.new(r/255,g/255,b/255)
  2877. end
  2878. if ModeOfGlitch == 9 then
  2879. coroutine.resume(coroutine.create(function()
  2880. while true do
  2881. swait()
  2882. if rng.Parent ~= nil then
  2883. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  2884. else
  2885. break
  2886. end
  2887. end
  2888. end))
  2889. end
  2890. local scaler2 = 1
  2891. if type == "Add" then
  2892. scaler2 = 1*value
  2893. elseif type == "Divide" then
  2894. scaler2 = 1/value
  2895. end
  2896. coroutine.resume(coroutine.create(function()
  2897. for i = 0,10/bonuspeed,0.1 do
  2898. swait()
  2899. if rainbowmode == true then
  2900. rng.Color = Color3.new(r/255,g/255,b/255)
  2901. end
  2902. if type == "Add" then
  2903. scaler2 = scaler2 - 0.01*value/bonuspeed
  2904. elseif type == "Divide" then
  2905. scaler2 = scaler2 - 0.01/value*bonuspeed
  2906. end
  2907. if chaosmode == true then
  2908. rng.BrickColor = BrickColor.random()
  2909. end
  2910. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2911. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2912. end
  2913. rng:Destroy()
  2914. end))
  2915. end
  2916.  
  2917. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2918. local type = type
  2919. local rng = Instance.new("Part", char)
  2920. rng.Anchored = true
  2921. if ModeOfGlitch ~= 9 then
  2922. rng.BrickColor = color
  2923. elseif ModeOfGlitch == 9 then
  2924. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  2925. end
  2926. rng.CanCollide = false
  2927. rng.FormFactor = 3
  2928. rng.Name = "Ring"
  2929. rng.Material = "Neon"
  2930. rng.Size = Vector3.new(1, 1, 1)
  2931. rng.Transparency = 0
  2932. rng.TopSurface = 0
  2933. rng.BottomSurface = 0
  2934. rng.CFrame = pos
  2935. local rngm = Instance.new("SpecialMesh", rng)
  2936. rngm.MeshType = "Sphere"
  2937. rngm.Scale = scale
  2938. local scaler2 = 1
  2939. local scaler2b = 1
  2940. local scaler2c = 1
  2941. if type == "Add" then
  2942. scaler2 = 1*value
  2943. scaler2b = 1*value2
  2944. scaler2c = 1*value3
  2945. elseif type == "Divide" then
  2946. scaler2 = 1/value
  2947. scaler2b = 1/value2
  2948. scaler2c = 1/value3
  2949. end
  2950. if ModeOfGlitch == 9 then
  2951. coroutine.resume(coroutine.create(function()
  2952. while true do
  2953. swait()
  2954. if rng.Parent ~= nil then
  2955. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  2956. else
  2957. break
  2958. end
  2959. end
  2960. end))
  2961. end
  2962. coroutine.resume(coroutine.create(function()
  2963. for i = 0,10/bonuspeed,0.1 do
  2964. swait()
  2965. if type == "Add" then
  2966. scaler2 = scaler2 - 0.01*value/bonuspeed
  2967. scaler2b = scaler2b - 0.01*value/bonuspeed
  2968. scaler2c = scaler2c - 0.01*value/bonuspeed
  2969. elseif type == "Divide" then
  2970. scaler2 = scaler2 - 0.01/value*bonuspeed
  2971. scaler2b = scaler2b - 0.01/value*bonuspeed
  2972. scaler2c = scaler2c - 0.01/value*bonuspeed
  2973. end
  2974. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2975. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2976. end
  2977. rng:Destroy()
  2978. end))
  2979. end
  2980.  
  2981. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2982. local type = type
  2983. local rotenable = rotatingop
  2984. local rng = Instance.new("Part", char)
  2985. rng.Anchored = true
  2986. rng.BrickColor = color
  2987. rng.CanCollide = false
  2988. rng.FormFactor = 3
  2989. rng.Name = "Ring"
  2990. rng.Material = "Neon"
  2991. rng.Size = Vector3.new(1, 1, 1)
  2992. rng.Transparency = 0
  2993. if typeoftrans == "In" then
  2994. rng.Transparency = 1
  2995. end
  2996. rng.TopSurface = 0
  2997. rng.BottomSurface = 0
  2998. rng.CFrame = pos
  2999. local rngm = Instance.new("SpecialMesh", rng)
  3000. rngm.MeshType = "FileMesh"
  3001. if typeofshape == "Normal" then
  3002. rngm.MeshId = "rbxassetid://662586858"
  3003. elseif typeofshape == "Round" then
  3004. rngm.MeshId = "rbxassetid://662585058"
  3005. end
  3006. rngm.Scale = scale
  3007. local scaler2 = 1/10
  3008. if type == "Add" then
  3009. scaler2 = 1*value/10
  3010. elseif type == "Divide" then
  3011. scaler2 = 1/value/10
  3012. end
  3013. local randomrot = math.random(1,2)
  3014. coroutine.resume(coroutine.create(function()
  3015. for i = 0,10/bonuspeed,0.1 do
  3016. swait()
  3017. if type == "Add" then
  3018. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3019. elseif type == "Divide" then
  3020. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3021. end
  3022. if rotenable == true then
  3023. if randomrot == 1 then
  3024. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3025. elseif randomrot == 2 then
  3026. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3027. end
  3028. end
  3029. if typeoftrans == "Out" then
  3030. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3031. elseif typeoftrans == "In" then
  3032. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3033. end
  3034. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3035. end
  3036. rng:Destroy()
  3037. end))
  3038. end
  3039.  
  3040. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3041. local type = type
  3042. local rng = Instance.new("Part", char)
  3043. rng.Anchored = true
  3044. rng.BrickColor = color
  3045. rng.CanCollide = false
  3046. rng.FormFactor = 3
  3047. rng.Name = "Ring"
  3048. rng.Material = "Neon"
  3049. rng.Size = Vector3.new(1, 1, 1)
  3050. rng.Transparency = 0
  3051. rng.TopSurface = 0
  3052. rng.BottomSurface = 0
  3053. rng.CFrame = pos
  3054. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3055. local rngm = Instance.new("SpecialMesh", rng)
  3056. rngm.MeshType = "Brick"
  3057. rngm.Scale = vt(x1,y1,z1)
  3058. if rainbowmode == true then
  3059. rng.Color = Color3.new(r/255,g/255,b/255)
  3060. end
  3061. local scaler2 = 1
  3062. local speeder = FastSpeed/10
  3063. if type == "Add" then
  3064. scaler2 = 1*value
  3065. elseif type == "Divide" then
  3066. scaler2 = 1/value
  3067. end
  3068. coroutine.resume(coroutine.create(function()
  3069. for i = 0,10/bonuspeed,0.1 do
  3070. swait()
  3071. if rainbowmode == true then
  3072. rng.Color = Color3.new(r/255,g/255,b/255)
  3073. end
  3074. if type == "Add" then
  3075. scaler2 = scaler2 - 0.01*value/bonuspeed
  3076. elseif type == "Divide" then
  3077. scaler2 = scaler2 - 0.01/value*bonuspeed
  3078. end
  3079. if chaosmode == true then
  3080. rng.BrickColor = BrickColor.random()
  3081. end
  3082. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3083. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3084. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3085. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3086. end
  3087. rng:Destroy()
  3088. end))
  3089. end
  3090.  
  3091. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3092. local type = type
  3093. local rng = Instance.new("Part", char)
  3094. rng.Anchored = true
  3095. rng.Color = color
  3096. rng.CanCollide = false
  3097. rng.FormFactor = 3
  3098. rng.Name = "Ring"
  3099. rng.Material = "Neon"
  3100. rng.Size = Vector3.new(1, 1, 1)
  3101. rng.Transparency = 0
  3102. rng.TopSurface = 0
  3103. rng.BottomSurface = 0
  3104. rng.CFrame = pos
  3105. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3106. local rngm = Instance.new("SpecialMesh", rng)
  3107. rngm.MeshType = "Brick"
  3108. rngm.Scale = vt(x1,y1,z1)
  3109. if rainbowmode == true then
  3110. rng.Color = Color3.new(r/255,g/255,b/255)
  3111. end
  3112. local scaler2 = 1
  3113. local speeder = FastSpeed/10
  3114. if type == "Add" then
  3115. scaler2 = 1*value
  3116. elseif type == "Divide" then
  3117. scaler2 = 1/value
  3118. end
  3119. coroutine.resume(coroutine.create(function()
  3120. for i = 0,10/bonuspeed,0.1 do
  3121. swait()
  3122. if rainbowmode == true then
  3123. rng.Color = Color3.new(r/255,g/255,b/255)
  3124. end
  3125. if type == "Add" then
  3126. scaler2 = scaler2 - 0.01*value/bonuspeed
  3127. elseif type == "Divide" then
  3128. scaler2 = scaler2 - 0.01/value*bonuspeed
  3129. end
  3130. if chaosmode == true then
  3131. rng.Color = BrickColor.random().Color
  3132. end
  3133. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3134. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3135. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3136. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3137. end
  3138. rng:Destroy()
  3139. end))
  3140. end
  3141.  
  3142. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3143. local type = type
  3144. local rng = Instance.new("Part", char)
  3145. rng.Anchored = true
  3146. rng.BrickColor = color
  3147. rng.CanCollide = false
  3148. rng.FormFactor = 3
  3149. rng.Name = "Ring"
  3150. rng.Material = "Neon"
  3151. rng.Size = Vector3.new(1, 1, 1)
  3152. rng.Transparency = 0
  3153. rng.TopSurface = 0
  3154. rng.BottomSurface = 0
  3155. rng.CFrame = pos
  3156. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3157. local rngm = Instance.new("SpecialMesh", rng)
  3158. rngm.MeshType = "Brick"
  3159. rngm.Scale = vt(x1,y1,z1)
  3160. if rainbowmode == true then
  3161. rng.Color = Color3.new(r/255,g/255,b/255)
  3162. end
  3163. local scaler2 = 0
  3164. local speeder = FastSpeed/10
  3165. if type == "Add" then
  3166. scaler2 = 1*value
  3167. elseif type == "Divide" then
  3168. scaler2 = 1/value
  3169. end
  3170. coroutine.resume(coroutine.create(function()
  3171. for i = 0,10/bonuspeed,0.1 do
  3172. swait()
  3173. if rainbowmode == true then
  3174. rng.Color = Color3.new(r/255,g/255,b/255)
  3175. end
  3176. if type == "Add" then
  3177. scaler2 = scaler2 - 0.01*value/bonuspeed
  3178. elseif type == "Divide" then
  3179. scaler2 = scaler2 - 0.01/value*bonuspeed
  3180. end
  3181. if chaosmode == true then
  3182. rng.BrickColor = BrickColor.random()
  3183. end
  3184. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3185. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3186. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3187. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3188. end
  3189. rng:Destroy()
  3190. end))
  3191. end
  3192.  
  3193. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3194. local type = type
  3195. local rng = Instance.new("Part", char)
  3196. rng.Anchored = true
  3197. rng.BrickColor = color
  3198. rng.Color = color3
  3199. rng.CanCollide = false
  3200. rng.FormFactor = 3
  3201. rng.Name = "Ring"
  3202. rng.Material = "Neon"
  3203. rng.Size = Vector3.new(1, 1, 1)
  3204. rng.Transparency = 0
  3205. rng.TopSurface = 0
  3206. rng.BottomSurface = 0
  3207. rng.CFrame = pos
  3208. local rngm = Instance.new("SpecialMesh", rng)
  3209. rngm.MeshType = "Brick"
  3210. rngm.Scale = scale
  3211. local scaler2 = 1
  3212. local scaler2b = 1
  3213. local scaler2c = 1
  3214. if type == "Add" then
  3215. scaler2 = 1*value
  3216. scaler2b = 1*value2
  3217. scaler2c = 1*value3
  3218. elseif type == "Divide" then
  3219. scaler2 = 1/value
  3220. scaler2b = 1/value2
  3221. scaler2c = 1/value3
  3222. end
  3223. coroutine.resume(coroutine.create(function()
  3224. for i = 0,10/bonuspeed,0.1 do
  3225. swait()
  3226. if type == "Add" then
  3227. scaler2 = scaler2 - 0.01*value/bonuspeed
  3228. scaler2b = scaler2b - 0.01*value/bonuspeed
  3229. scaler2c = scaler2c - 0.01*value/bonuspeed
  3230. elseif type == "Divide" then
  3231. scaler2 = scaler2 - 0.01/value*bonuspeed
  3232. scaler2b = scaler2b - 0.01/value*bonuspeed
  3233. scaler2c = scaler2c - 0.01/value*bonuspeed
  3234. end
  3235. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3236. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3237. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3238. end
  3239. rng:Destroy()
  3240. end))
  3241. end
  3242.  
  3243. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3244. local type = type
  3245. local rng = Instance.new("Part", char)
  3246. rng.Anchored = true
  3247. if ModeOfGlitch ~= 9 then
  3248. rng.BrickColor = color
  3249. elseif ModeOfGlitch == 9 then
  3250. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  3251. end
  3252. rng.CanCollide = false
  3253. rng.FormFactor = 3
  3254. rng.Name = "Ring"
  3255. rng.Material = "Neon"
  3256. rng.Size = Vector3.new(1, 1, 1)
  3257. rng.Transparency = 0
  3258. rng.TopSurface = 0
  3259. rng.BottomSurface = 0
  3260. rng.CFrame = pos
  3261. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3262. local rngm = Instance.new("SpecialMesh", rng)
  3263. rngm.MeshType = "Sphere"
  3264. rngm.Scale = vt(x1,y1,z1)
  3265. if rainbowmode == true then
  3266. rng.Color = Color3.new(r/255,g/255,b/255)
  3267. end
  3268. if ModeOfGlitch == 9 then
  3269. coroutine.resume(coroutine.create(function()
  3270. while true do
  3271. swait()
  3272. if rng.Parent ~= nil then
  3273. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  3274. else
  3275. break
  3276. end
  3277. end
  3278. end))
  3279. end
  3280. local scaler2 = 1
  3281. local speeder = FastSpeed
  3282. if type == "Add" then
  3283. scaler2 = 1*value
  3284. elseif type == "Divide" then
  3285. scaler2 = 1/value
  3286. end
  3287. coroutine.resume(coroutine.create(function()
  3288. for i = 0,10/bonuspeed,0.1 do
  3289. swait()
  3290. if rainbowmode == true then
  3291. rng.Color = Color3.new(r/255,g/255,b/255)
  3292. end
  3293. if type == "Add" then
  3294. scaler2 = scaler2 - 0.01*value/bonuspeed
  3295. elseif type == "Divide" then
  3296. scaler2 = scaler2 - 0.01/value*bonuspeed
  3297. end
  3298. if chaosmode == true then
  3299. rng.BrickColor = BrickColor.random()
  3300. end
  3301. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3302. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3303. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3304. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3305. end
  3306. rng:Destroy()
  3307. end))
  3308. end
  3309.  
  3310.  
  3311. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3312. local type = type
  3313. local rng = Instance.new("Part", char)
  3314. rng.Anchored = true
  3315. if ModeOfGlitch ~= 9 then
  3316. rng.BrickColor = color
  3317. elseif ModeOfGlitch == 9 then
  3318. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  3319. end
  3320. rng.CanCollide = false
  3321. rng.FormFactor = 3
  3322. rng.Name = "Ring"
  3323. rng.Material = "Neon"
  3324. rng.Size = Vector3.new(1, 1, 1)
  3325. rng.Transparency = 1
  3326. rng.TopSurface = 0
  3327. rng.BottomSurface = 0
  3328. rng.CFrame = pos
  3329. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3330. local rngm = Instance.new("SpecialMesh", rng)
  3331. rngm.MeshType = "Sphere"
  3332. rngm.Scale = vt(x1,y1,z1)
  3333. if rainbowmode == true then
  3334. rng.Color = Color3.new(r/255,g/255,b/255)
  3335. end
  3336. if ModeOfGlitch == 9 then
  3337. coroutine.resume(coroutine.create(function()
  3338. while true do
  3339. swait()
  3340. if rng.Parent ~= nil then
  3341. rng.Color = Color3.new(GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000,GetClientProperty(kan,"PlaybackLoudness")/1000)
  3342. else
  3343. break
  3344. end
  3345. end
  3346. end))
  3347. end
  3348. local scaler2 = 1
  3349. local speeder = FastSpeed
  3350. if type == "Add" then
  3351. scaler2 = 1*value
  3352. elseif type == "Divide" then
  3353. scaler2 = 1/value
  3354. end
  3355. coroutine.resume(coroutine.create(function()
  3356. for i = 0,10/bonuspeed,0.1 do
  3357. swait()
  3358. if rainbowmode == true then
  3359. rng.Color = Color3.new(r/255,g/255,b/255)
  3360. end
  3361. if type == "Add" then
  3362. scaler2 = scaler2 - 0.01*value/bonuspeed
  3363. elseif type == "Divide" then
  3364. scaler2 = scaler2 - 0.01/value*bonuspeed
  3365. end
  3366. if chaosmode == true then
  3367. rng.BrickColor = BrickColor.random()
  3368. end
  3369. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3370. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3371. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3372. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3373. end
  3374. rng:Destroy()
  3375. end))
  3376. end
  3377.  
  3378. function dmg(dude)
  3379. if dude.Name ~= Character then
  3380. local keptcolor = BrickColor.new("Really red")
  3381. local bgf = Instance.new("BodyGyro",dude.Head)
  3382. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3383. --[[local val = Instance.new("BoolValue",dude)
  3384. val.Name = "IsHit"]]--
  3385. local ds = coroutine.wrap(function()
  3386. dude:WaitForChild("Head"):BreakJoints()
  3387. for i, v in pairs(dude:GetChildren()) do
  3388. if v:IsA("Part") or v:IsA("MeshPart") then
  3389. v.Name = "DEMINISHED"
  3390. end
  3391. end
  3392. wait(0.5)
  3393. targetted = nil
  3394. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3395. coroutine.resume(coroutine.create(function()
  3396. for i, v in pairs(dude:GetChildren()) do
  3397. if v:IsA("Accessory") then
  3398. v:Destroy()
  3399. end
  3400. if v:IsA("Humanoid") then
  3401. v:Destroy()
  3402. end
  3403. if v:IsA("CharacterMesh") then
  3404. v:Destroy()
  3405. end
  3406. if v:IsA("Model") then
  3407. v:Destroy()
  3408. end
  3409. if v:IsA("Part") or v:IsA("MeshPart") then
  3410. for x, o in pairs(v:GetChildren()) do
  3411. if o:IsA("Decal") then
  3412. o:Destroy()
  3413. end
  3414. end
  3415. coroutine.resume(coroutine.create(function()
  3416. v.Material = "Neon"
  3417. v.CanCollide = false
  3418. v.Anchored = false
  3419. local bld = Instance.new("ParticleEmitter",v)
  3420. bld.LightEmission = 0.75
  3421. bld.Texture = "rbxassetid://363275192" ---284205403
  3422. bld.Color = ColorSequence.new(keptcolor.Color)
  3423. bld.Rate = 500
  3424. bld.Lifetime = NumberRange.new(1)
  3425. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3426. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3427. bld.Speed = NumberRange.new(2,5)
  3428. bld.VelocitySpread = 50000
  3429. bld.Rotation = NumberRange.new(-500,500)
  3430. bld.RotSpeed = NumberRange.new(-500,500)
  3431. local sbs = Instance.new("BodyPosition", v)
  3432. sbs.P = 3000
  3433. sbs.D = 1000
  3434. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3435. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3436. v.Color = keptcolor.Color
  3437. coroutine.resume(coroutine.create(function()
  3438. for i = 0, 49 do
  3439. swait(1)
  3440. v:BreakJoints()
  3441. v.Transparency = v.Transparency + 0.02
  3442. end
  3443. v:BreakJoints()
  3444. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3445. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3446. bld.Speed = NumberRange.new(10,25)
  3447. bld.Drag = 5
  3448. bld.Acceleration = vt(0,2,0)
  3449. wait(0.5)
  3450. bld.Enabled = false
  3451. wait(8)
  3452. v:Destroy()
  3453. dude:Destroy()
  3454. end))
  3455. end))
  3456. end
  3457. end
  3458. end))
  3459. end)
  3460. ds()
  3461. end
  3462. end
  3463.  
  3464.  
  3465. function FindNearestHead(Position, Distance, SinglePlayer)
  3466. if SinglePlayer then
  3467. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3468. end
  3469. local List = {}
  3470. for i, v in pairs(workspace:GetChildren()) do
  3471. if v:IsA("Model") then
  3472. if v:findFirstChild("Head") then
  3473. if v ~= Character then
  3474. if (v.Head.Position - Position).magnitude <= Distance then
  3475. table.insert(List, v)
  3476. end
  3477. end
  3478. end
  3479. end
  3480. end
  3481. return List
  3482. end
  3483.  
  3484. function FaceMouse()
  3485. Cam = workspace.CurrentCamera
  3486. return {
  3487. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3488. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3489. }
  3490. end
  3491.  
  3492. function FaceMouse2()
  3493. Cam = workspace.CurrentCamera
  3494. return {
  3495. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3496. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3497. }
  3498. end
  3499.  
  3500. local ModeOfGlitch = 1
  3501.  
  3502. -- Functions are ready.
  3503.  
  3504.  
  3505. function createBGCircle(size,parent,color)
  3506. local bgui = Instance.new("BillboardGui",parent)
  3507. bgui.Size = UDim2.new(size, 0, size, 0)
  3508. local imgc = Instance.new("ImageLabel",bgui)
  3509. imgc.BackgroundTransparency = 1
  3510. imgc.ImageTransparency = 0
  3511. imgc.Size = UDim2.new(1,0,1,0)
  3512. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  3513. imgc.ImageColor3 = color
  3514. return bgui,imgc
  3515. end
  3516.  
  3517. function attackone()
  3518. attack = true
  3519. hum.WalkSpeed = 3
  3520. for i = 0, 15 do
  3521. swait()
  3522. local Alpha = .3
  3523. RootJoint.C0 = RootJoint.C0:lerp(cf(0.3,-0.1,-0.4)*angles(math.rad(-31.9),math.rad(-24.1),math.rad(-16.5))*RootCF,Alpha)
  3524. LH.C0 = LH.C0:lerp(cf(-1,-0.6,-0.7)*angles(math.rad(30),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3525. RH.C0 = RH.C0:lerp(cf(1,-0.9,-0.4)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3526. LW.C0 = LW.C0:lerp(cf(-0.8,0.4,-0.6)*angles(math.rad(120),math.rad(0),math.rad(45)),Alpha)
  3527. RW.C0 = RW.C0:lerp(cf(1.3,0.5,0.8)*angles(math.rad(102.5),math.rad(27),math.rad(149.3)),Alpha)
  3528. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(-0.1,0.1,-0.5)*angles(math.rad(27.8),math.rad(28.8),math.rad(2.2))*necko,Alpha)
  3529. end
  3530. CFuncs["Sound"].Create("rbxassetid://203691492", handlex, 1.5,1)
  3531. for i= 0,10 do
  3532. swait()
  3533. local Alpha = .5
  3534. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(55),math.rad(0))*RootCF,Alpha)
  3535. LH.C0 = LH.C0:lerp(cf(-1.1,-0.3,-0.3)*angles(math.rad(-15.5),math.rad(14.5),math.rad(4))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3536. RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3537. LW.C0 = LW.C0:lerp(cf(-1.5,0.6,0)*angles(math.rad(-39.7),math.rad(3.4),math.rad(-19.4)),Alpha)
  3538. RW.C0 = RW.C0:lerp(cf(1.4,0.4,-0.6)*angles(math.rad(109.8),math.rad(-2.6),math.rad(-9.7)),Alpha)
  3539. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(-45),math.rad(0))*necko,Alpha)
  3540. end
  3541. attack = false
  3542. hum.WalkSpeed = storehumanoidWS
  3543. end
  3544.  
  3545. function attacktwo()
  3546. attack = true
  3547. hum.WalkSpeed = 3
  3548. for i = 0, 20 do
  3549. swait()
  3550. local Alpha = .3
  3551. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.2,-0.1)*angles(math.rad(-15),math.rad(0),math.rad(0))*RootCF,Alpha)
  3552. LH.C0 = LH.C0:lerp(cf(-1,-0.9,0.3)*angles(math.rad(-90),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3553. RH.C0 = RH.C0:lerp(cf(1,-0.8,-0.1)*angles(math.rad(30),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3554. LW.C0 = LW.C0:lerp(cf(-0.8,0.4,-0.6)*angles(math.rad(120),math.rad(0),math.rad(45)),Alpha)
  3555. RW.C0 = RW.C0:lerp(cf(1.4,0.5,0.4)*angles(math.rad(-115),math.rad(0),math.rad(20)),Alpha)
  3556. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  3557. end
  3558. CFuncs["Sound"].Create("rbxassetid://596439421", handlex, 1.5,1)
  3559. for i = 0, 10 do
  3560. swait()
  3561. local Alpha = .7
  3562. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,-0.4)*angles(math.rad(10),math.rad(0),math.rad(0))*RootCF,Alpha)
  3563. LH.C0 = LH.C0:lerp(cf(-1,-1.3,-0.3)*angles(math.rad(115),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3564. RH.C0 = RH.C0:lerp(cf(1,-0.9,0.1)*angles(math.rad(-15),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3565. LW.C0 = LW.C0:lerp(cf(-1,0.5,0.7)*angles(math.rad(-95),math.rad(0),math.rad(-30)),Alpha)
  3566. RW.C0 = RW.C0:lerp(cf(1.1,0.4,-0.6)*angles(math.rad(114.6),math.rad(-5.7),math.rad(-53.2)),Alpha)
  3567. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  3568. end
  3569. attack = false
  3570. hum.WalkSpeed = storehumanoidWS
  3571. end
  3572.  
  3573.  
  3574. function attackthree()
  3575. hum.WalkSpeed = 3
  3576. attack = true
  3577.  
  3578. for i = 0, 20 do
  3579. swait()
  3580. local Alpha = .3
  3581. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.9,-0.1)*angles(math.rad(-15),math.rad(0),math.rad(0))*RootCF,Alpha)
  3582. LH.C0 = LH.C0:lerp(cf(-1,-0.2,-0.8)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3583. RH.C0 = RH.C0:lerp(cf(1,-0.4,-0.8)*angles(math.rad(-30),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3584. LW.C0 = LW.C0:lerp(cf(-1.4,0.4,0.1)*angles(math.rad(20),math.rad(0),math.rad(-10)),Alpha)
  3585. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0.4)*angles(math.rad(-135),math.rad(0),math.rad(0)),Alpha)
  3586. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  3587. PixelBlockX(12,0,"Add",ra.CFrame * CFrame.new(0,-2,0)*CFrame.Angles(math.rad(sine/2),math.rad(sine/3),math.rad(sine/4)),.4,.4,.4,0.001,MAINRUINCOLOR,0)
  3588. end
  3589.  
  3590. for i = 0, 10 do
  3591. swait()
  3592. local Alpha = .5
  3593. RootJoint.C0 = RootJoint.C0:lerp(cf(0,-0.9,-1.6)*angles(math.rad(-55),math.rad(0),math.rad(0))*RootCF,Alpha)
  3594. LH.C0 = LH.C0:lerp(cf(-1,0.1,-0.6)*angles(math.rad(65),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3595. RH.C0 = RH.C0:lerp(cf(1,-1,-0.2)*angles(math.rad(-10),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3596. LW.C0 = LW.C0:lerp(cf(-1.5,0.6,0.4)*angles(math.rad(-75),math.rad(0),math.rad(0)),Alpha)
  3597. RW.C0 = RW.C0:lerp(cf(1.2,0.5,-0.7)*angles(math.rad(60),math.rad(0),math.rad(0)),Alpha)
  3598. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*necko,Alpha)
  3599. end
  3600. EffecPart = Instance.new("Part",char)
  3601. EffecPart.CanCollide = false
  3602. EffecPart.Anchored = true
  3603. EffecPart.CFrame = ra.CFrame
  3604. EffecPart.Transparency = 1
  3605. CFuncs["Sound"].Create("rbxassetid://260496290", ra, 1,1)
  3606. coroutine.resume(coroutine.create(function()
  3607. for i = 0,15 do
  3608. swait()
  3609. PixelBlockX(4,i/2,"Add",EffecPart.CFrame * CFrame.new(0,-2,0),.4,.4,.4,0.1,MAINRUINCOLOR,0)
  3610. end
  3611. EffecPart:Destroy()
  3612. end))
  3613. attack = false
  3614. hum.WalkSpeed = storehumanoidWS
  3615. end
  3616. ----------------------------------- Abilities
  3617.  
  3618. -------------------------------------
  3619.  
  3620. Humanoid.Animator.Parent = nil
  3621.  
  3622. -------------------------------------
  3623.  
  3624. local attacktype = 1
  3625. mouse.Button1Down:connect(function()
  3626. if attack == false and attacktype == 1 then
  3627. attackone()
  3628. attacktype = 2
  3629. elseif attack == false and attacktype == 2 then
  3630. attacktwo()
  3631. attacktype = 3
  3632. elseif attack == false and attacktype == 3 then
  3633. attackthree()
  3634. attacktype = 1
  3635. end
  3636. end)
  3637.  
  3638. mouse.KeyDown:connect(function(k)
  3639. if k == "q" and attack == false and Mode ~= 1 then
  3640. RecolorRuin(Color3.fromRGB(17, 17, 17),Color3.fromRGB(242, 243, 243),Color3.fromRGB(202, 203, 209),"Arcade","Quotidian",1891202697,1.25,1.01,1,16)
  3641. elseif k == "e" and attack == false and Mode ~= 2 then
  3642. RecolorRuin(Color3.new(1,0,0),Color3.fromRGB(200,0,0),Color3.new(0,0,0),"SciFi","Backbeat",2127418838,1.25,1.01,2,16)
  3643. elseif k == "r" and attack == false and Mode ~= 3 then
  3644. RecolorRuin(Color3.fromRGB(213, 115, 61),Color3.fromRGB(248, 217, 109),Color3.fromRGB(199, 172, 120),"Highway","Tranquility",1999907410,1.25,1.01,3,16)
  3645. elseif k == "t" and attack == false and Mode ~= 4 then
  3646. RecolorRuin(Color3.fromRGB(123, 0, 123),Color3.fromRGB(17, 17, 17),Color3.fromRGB(248, 248, 248),"Fantasy","Star Cluster",2461094832,1.25,1.01,4,80)
  3647. elseif k == "y" and attack == false and Mode ~= 5 then
  3648. RecolorRuin(Color3.fromRGB(0, 143, 156),Color3.fromRGB(27, 42, 53),Color3.fromRGB(0, 32, 96),"Arcade","Sententious",2011649557,1.25,1.01,5,60)
  3649. elseif k == "u" and attack == false and Mode ~= 6 then
  3650. RecolorRuin(Color3.fromRGB(180, 128, 255),Color3.fromRGB(170, 0, 170),Color3.fromRGB(0, 32, 96),"Garamond","Pretentious",1833183591,1.25,1.01,6,16)
  3651. elseif k == "p" and attack == false and Mode ~= 7 then
  3652. RecolorRuin(Color3.fromRGB(248, 217, 109),Color3.fromRGB(241, 231, 199),Color3.fromRGB(248, 248, 248),"Fantasy","Martyr",1453054770,1.25,1.01,7,90)
  3653. elseif k == "f" and attack == false and Mode ~= 8 then
  3654. RecolorRuin(Color3.fromRGB(248, 248, 248),Color3.fromRGB(218, 134, 122),Color3.fromRGB(255, 89, 89),"Garamond","Grevious",2583854818,1.25,1.01,8,55)
  3655. end
  3656. end)
  3657.  
  3658.  
  3659.  
  3660. Humanoid.Name = "yoit"
  3661. Humanoid.MaxHealth = math.huge
  3662. Humanoid.Health = math.huge
  3663. Instance.new("ForceField",char).Visible = false
  3664.  
  3665.  
  3666. idleanim=.4
  3667. while true do
  3668. if mutedtog == false then
  3669. kan.Volume = ORVOL
  3670. elseif mutedtog == true then
  3671. kan.Volume = 0
  3672. end
  3673.  
  3674. swait()
  3675.  
  3676. techc.Rotation = techc.Rotation + 1
  3677. circl.Rotation = circl.Rotation - GetClientProperty(kan,"PlaybackLoudness")/175 - 1
  3678. circl2.Rotation = circl2.Rotation + GetClientProperty(kan,"PlaybackLoudness")/150 + 1
  3679. imgl2.Rotation = imgl2b.Rotation - 1.2
  3680. imgl2b.Rotation = imgl2b.Rotation + GetClientProperty(kan,"PlaybackLoudness")/125 - 1
  3681. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  3682. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  3683. CameraManager()
  3684.  
  3685. sine = sine + change
  3686. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3687. local velderp=RootPart.Velocity.y
  3688. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3689.  
  3690. if equipped==true or equipped==false then
  3691. if attack==false then
  3692. idle=idle+1
  3693. else
  3694. idle=0
  3695. end
  3696. if idle>=500 then
  3697. if attack==false then
  3698. --Sheath()
  3699. end
  3700. end
  3701. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3702. Anim="Jump"
  3703. if attack==false then
  3704. 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)
  3705. 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)
  3706. 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)
  3707. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3708. 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)
  3709. 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)
  3710. end
  3711. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3712. Anim="Fall"
  3713. if attack==false then
  3714. 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)
  3715. 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)
  3716. 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)
  3717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  3718. 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)
  3719. 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)
  3720. end
  3721. elseif torvel<1 and hitfloor~=nil then
  3722. Anim="Idle"
  3723. if attack==false then
  3724. if Mode ~= 4 and Mode ~= 7 then
  3725. local Alpha = .1
  3726. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0 +0.05 * math.cos(sine/32),0)*angles(math.rad(0),math.rad(-40),math.rad(0))*RootCF,Alpha)
  3727. LH.C0 = LH.C0:lerp(cf(-0.9,-1-0.05 * math.cos(sine/32),0.2)*angles(math.rad(0),math.rad(25),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3728. RH.C0 = RH.C0:lerp(cf(1,-1-0.05 * math.cos(sine/32),0.1)*angles(math.rad(0),math.rad(-15),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3729. LW.C0 = LW.C0:lerp(cf(-1.5,0.6,0.1)*angles(math.rad(6.3 - 4 * math.cos(sine/64)),math.rad(18.6+4 * math.cos(sine/32)),math.rad(-15.3-4 * math.cos(sine/64))),Alpha)
  3730. RW.C0 = RW.C0:lerp(cf(1.5,0.4,0)*angles(math.rad(-40.3+4 * math.cos(sine/32)),math.rad(2.6-4 * math.cos(sine/64)),math.rad(14.8+4 * math.cos(sine/32))),Alpha)
  3731. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.2,0,0.2)*angles(math.rad(-13),math.rad(39.3),math.rad(8.3))*necko,Alpha)
  3732. else
  3733. local Alpha = .1
  3734. RootJoint.C0 = RootJoint.C0:lerp(cf(0.1,1.2 - 0.2 * math.sin(sine/32),0)*angles(math.rad(20 + 3 * math.sin(sine/32)),math.rad(25),math.rad(0))*RootCF,Alpha)
  3735. LH.C0 = LH.C0:lerp(cf(-1,-0.7,-0.3)*angles(math.rad(-15 + 7 * math.cos(sine/32)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3736. RH.C0 = RH.C0:lerp(cf(1,-0.5,-0.8)*angles(math.rad(-45 + 7 * math.cos(sine/32)),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3737. LW.C0 = LW.C0:lerp(cf(-1,0.4,-0.5)*angles(math.rad(83 - 5 * math.cos(sine/32)),math.rad(-12.3),math.rad(66.7)),Alpha)
  3738. RW.C0 = RW.C0:lerp(cf(0.8,0.3,-0.8)*angles(math.rad(82.7 - 5 * math.cos(sine/32)),math.rad(-5.6),math.rad(-75.7)),Alpha)
  3739. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(-0.2,0.2,0.2)*angles(math.rad(-37.7),math.rad(-20.3),math.rad(-15))*necko,Alpha)
  3740. end
  3741. end
  3742. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3743. Anim="Walk"
  3744. if attack==false then
  3745. handlexweld.C0=clerp(handlexweld.C0,cf(1,-0.25,1)*angles(math.rad(90),math.rad(-80),math.rad(20)),.1)
  3746. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  3747. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  3748. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 8))*angles(math.rad(5 + 3 * math.cos(sine / 8)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  3749. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 8)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  3750. RW.C0 = RW.C0:lerp(cf(1.5,0.4,0)*angles(math.rad(-40.3+4 * math.cos(sine/32)),math.rad(2.6-4 * math.cos(sine/64)),math.rad(14.8+4 * math.cos(sine/32))),.1)
  3751. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 8))),.1)
  3752. end
  3753. elseif torvel>=22 and hitfloor~=nil then
  3754. Anim="Run"
  3755. if attack==false then
  3756. if Mode ~= 4 and Mode ~= 7 then
  3757. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3758. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3759. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  3760. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  3761. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  3762. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-90 + 90 + 90 * math.sin(sine / 6) ),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  3763. else
  3764. local Alpha = .1
  3765. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0.9- 0.2 * math.sin(sine/32),-0.7)*angles(math.rad(-76.7),math.rad(7.9 + root.RotVelocity.Y*3),math.rad(5.1- root.RotVelocity.Y))*RootCF,Alpha)
  3766. LH.C0 = LH.C0:lerp(cf(-0.9,-0.5,-0.9)*angles(math.rad(0),math.rad(0+ hed.RotVelocity.Y*3),math.rad(-10- hed.RotVelocity.Y*3))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
  3767. RH.C0 = RH.C0:lerp(cf(0.9,-0.7,-0.1)*angles(math.rad(9.4),math.rad(3.4+ hed.RotVelocity.Y*3),math.rad(19.7- hed.RotVelocity.Y*3))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
  3768. LW.C0 = LW.C0:lerp(cf(-0.6,0.8,-0.4)*angles(math.rad(135),math.rad(0+ root.RotVelocity.Y*3),math.rad(65- hed.RotVelocity.Y*3)),Alpha)
  3769. RW.C0 = RW.C0:lerp(cf(1.4,0.4,0.1)*angles(math.rad(-20),math.rad(0+ root.RotVelocity.Y*3),math.rad(-10- hed.RotVelocity.Y*3)),Alpha)
  3770. Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.2,0.5,-0.5)*angles(math.rad(50.9),math.rad(-9.5+ root.RotVelocity.Y*3),math.rad(5.9 - hed.RotVelocity.Y*3))*necko,Alpha)
  3771. end
  3772. end
  3773. end
  3774. end
  3775. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement