Advertisement
naoteinteressa

Untitled

Apr 22nd, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(1)
  2. local Player = game:GetService("Players").sonicPros2
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  61. end
  62.  
  63. wait(2)
  64. warn([[ẅ̸̘́̽ͅW̸̩̱̚h̶̳̱́͘e̶̩̻͋̐͝Ȓ̸͉̖̂́e̵͕̖͔̅̎ ̸͍̈́D̶͔̼̹͒̔̍D̷̨͇̍͌i̸̥̍̃Ḍ̶̟̃ ̵̦̞̌̒i̶͍̇T̴̨͖̪̔͋͝ ̷̺̀G̷̗̀̉g̶̝̞̏Ö̵̦͊?̸̙̒#̴̝̭̰͑̌@̶͕͛̎ Loaded.
  65. Description.
  66.  
  67. Made by Spectrum
  68. ]])
  69.  
  70.  
  71. ------------- ORIGINAL WIELDER: Geordie
  72.  
  73. --- its obs smooth af do not touch
  74. ---- Sources and functions might be taken from others
  75. plr = game:GetService("Players").GodzPlaysRB
  76. Player = plr
  77. --mouse = plr:GetMouse()
  78. char = plr.Character
  79. hum = char.Humanoid
  80. local cam = game.Workspace.CurrentCamera
  81. Camera = cam
  82. local CamInterrupt = false
  83. local TwoD = false
  84. local TargetInfo = {nil, nil}
  85. cam.CameraType = "Custom"
  86. t = char.Torso
  87. h = char.Head
  88. ra = char["Right Arm"]
  89. la = char["Left Arm"]
  90. rl = char["Right Leg"]
  91. ll = char["Left Leg"]
  92. tors = char.Torso
  93. lleg = char["Left Leg"]
  94. root = char.HumanoidRootPart
  95. hed = char.Head
  96. rleg = char["Right Leg"]
  97. rarm = char["Right Arm"]
  98. larm = char["Left Arm"]
  99. radian = math.rad
  100. random = math.random
  101. Vec3 = Vector3.new
  102. Inst = Instance.new
  103. cFrame = CFrame.new
  104. Euler = CFrame.fromEulerAnglesXYZ
  105. vt = Vector3.new
  106. bc = BrickColor.new
  107. br = BrickColor.random
  108. it = Instance.new
  109. cf = CFrame.new
  110.  
  111. local Booleans = {
  112. CamFollow = true,
  113. GyroUse = true
  114. }
  115.  
  116. function lerp(object, newCFrame, alpha)
  117. return object:lerp(newCFrame, alpha)
  118. end
  119.  
  120. local Directer = Inst("BodyGyro", root)
  121. Directer.MaxTorque = Vec3(0, 0, 0)
  122. Directer.P = 600000
  123. local CPart = Inst("Part")
  124. CPart.Anchored = true
  125. CPart.CanCollide = false
  126. CPart.Locked = true
  127. CPart.Transparency = 1
  128.  
  129. local rainbowmode = false
  130. local chaosmode = true
  131.  
  132. local ORGID = 1280408510
  133. local ORVOL = 1.15
  134. local ORPIT = 1.01
  135. local kan = Instance.new("Sound",char)
  136. kan.Volume = 1.15
  137. kan.TimePosition = 0
  138. kan.PlaybackSpeed = 1.01
  139. kan.Pitch = 1.01
  140. kan.SoundId = "rbxassetid://1280408510"
  141. kan.Name = "RaRinBow"
  142. kan.Looped = true
  143. kan:Play()
  144.  
  145. local currentThemePlaying = kan.SoundId
  146. local currentPitch = kan.Pitch
  147. local currentVol = kan.Volume
  148. function newTheme(ID,timepos,pitch,vol)
  149. local kanz = kan
  150. --kanz:Stop()
  151. kanz.Volume = vol
  152. --kanz.TimePosition = timepos
  153. kanz.PlaybackSpeed = pitch
  154. kanz.Pitch = pitch
  155. kanz.SoundId = ID
  156. kanz.Name = "wrecked"
  157. kanz.Looped = true
  158. currentThemePlaying = kanz.SoundId
  159. currentVol = kanz.Volume
  160. currentPitch = kanz.Pitch
  161. --kanz:Play()
  162. --coroutine.resume(coroutine.create(function()
  163. --wait(0.05)
  164. --end))
  165. end
  166.  
  167.  
  168. function newThemeCust(ID,timepos,pitch,vol)
  169. local kanz = kan
  170. kanz:Stop()
  171. kanz.Volume = vol
  172. kanz.TimePosition = timepos
  173. kanz.PlaybackSpeed = pitch
  174. kanz.Pitch = pitch
  175. kanz.SoundId = ID
  176. kanz.Name = "wrecked"
  177. kanz.Looped = true
  178. currentThemePlaying = kanz.SoundId
  179. currentVol = kanz.Volume
  180. currentPitch = kanz.Pitch
  181. kanz:Play()
  182. coroutine.resume(coroutine.create(function()
  183. wait(0.05)
  184. end))
  185. end
  186.  
  187. local mutedtog = false
  188.  
  189. function CameraEnshaking(Length,Intensity)
  190. coroutine.resume(coroutine.create(function()
  191. local intensity = 1*Intensity
  192. local rotM = 0.01*Intensity
  193. for i = 0, Length, 0.1 do
  194. swait()
  195. intensity = intensity - 0.05*Intensity/Length
  196. rotM = rotM - 0.0005*Intensity/Length
  197. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  198. 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)
  199. end
  200. Humanoid.CameraOffset = Vec3(0, 0, 0)
  201. end))
  202. end
  203. CamShake=function(Part,Distan,Power,Times)
  204. local de=Part.Position
  205. for i,v in pairs(workspace:children()) do
  206. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  207. for _,c in pairs(v:children()) do
  208. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  209. local Noob=v.Humanoid
  210. if Noob~=nil then
  211. coroutine.resume(coroutine.create(function()
  212. FV = Instance.new("BoolValue", Noob)
  213. FV.Name = "CameraShake"
  214. for ShakeNum=1,Times do
  215. swait()
  216. local ef=Power
  217. if ef>=1 then
  218. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  219. else
  220. ef=Power*10
  221. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  222. end
  223. end
  224. Humanoid.CameraOffset = Vector3.new(0,0,0)
  225. FV:Destroy()
  226. end))
  227. CameraShake(Times, Power, Noob)
  228. end
  229. end
  230. end
  231. end
  232. end
  233. end
  234.  
  235. local bilguit = Instance.new("BillboardGui", hed)
  236. bilguit.Adornee = nil
  237. bilguit.Name = "ModeName"
  238. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  239. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  240. local modet = Instance.new("TextLabel", bilguit)
  241. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  242. modet.FontSize = "Size10"
  243. modet.TextSize = 30
  244. modet.TextScaled = false
  245. modet.TextTransparency = 0
  246. modet.BackgroundTransparency = 1
  247. modet.TextTransparency = 0
  248. modet.TextStrokeTransparency = 0
  249. modet.Font = "Code"
  250. modet.TextStrokeColor3 = Color3.new(1,0,0)
  251. modet.TextColor3 = Color3.new(1,1,1)
  252. modet.Text = "What is life anyway."
  253.  
  254. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  255.  
  256.  
  257. function RandomEnum(enum)
  258. local t = enum:GetEnumItems()
  259. if(#t < 1)then t = 1 end
  260. local choice = M.RNG(1,#t)
  261. return t[choice]
  262. end
  263.  
  264. function RandomCaps(str)
  265. local new = ""
  266. for i = 1, #str do
  267. if(math.random(1,2) == 1)then
  268. new = new .. (str:sub(i,i):upper())
  269. else
  270. new = new .. str:sub(i,i)
  271. end
  272. end
  273. return new
  274. end
  275.  
  276.  
  277. function chatfunc(text,color,typet,font,timeex)
  278. local chat = coroutine.wrap(function()
  279. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  280. Character:FindFirstChild("TalkingBillBoard"):destroy()
  281. end
  282. local naeeym2 = Instance.new("BillboardGui",Character)
  283. naeeym2.Size = UDim2.new(0,100,0,40)
  284. naeeym2.StudsOffset = Vector3.new(0,3,0)
  285. naeeym2.Adornee = Character.Head
  286. naeeym2.Name = "TalkingBillBoard"
  287. local tecks2 = Instance.new("TextLabel",naeeym2)
  288. tecks2.BackgroundTransparency = 1
  289. tecks2.BorderSizePixel = 0
  290. tecks2.Text = ""
  291. tecks2.Font = "Arcade"
  292. tecks2.TextSize = 30
  293. tecks2.TextStrokeTransparency = 0
  294. tecks2.TextColor3 = color
  295. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  296. tecks2.Size = UDim2.new(1,0,0.5,0)
  297. local tecks3 = Instance.new("TextLabel",naeeym2)
  298. tecks3.BackgroundTransparency = 1
  299. tecks3.BorderSizePixel = 0
  300. tecks3.Text = ""
  301. tecks3.Font = "Arcade"
  302. tecks3.TextSize = 30
  303. tecks3.TextStrokeTransparency = 0
  304. if typet == "Inverted" then
  305. tecks3.TextColor3 = Color3.new(0,0,0)
  306. tecks3.TextStrokeColor3 = BrickColor.random().Color
  307. elseif typet == "Normal" then
  308. tecks3.TextColor3 = BrickColor.random().Color
  309. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  310. end
  311. tecks3.Size = UDim2.new(1,0,0.5,0)
  312. coroutine.resume(coroutine.create(function()
  313. while true do
  314. swait(1)
  315. if chaosmode == true then
  316. tecks2.TextColor3 = BrickColor.random().Color
  317. tecks3.TextStrokeColor3 = BrickColor.random().Color
  318. tecks2.Rotation = math.random(-6,6)
  319. tecks3.Rotation = math.random(-6,6)
  320. tecks2.Font = RandomEnum(Enum.Font)
  321. tecks3.Font = RandomEnum(Enum.Font)
  322. tecks2.Text = RandomCaps(text)
  323. tecks3.Text = RandomCaps(text)
  324. end
  325. end
  326. end))
  327. for i = 0, 74*timeex do
  328. swait()
  329. tecks2.Text = text
  330. tecks3.Text = text
  331. end
  332. local randomrot = math.random(1,2)
  333. if randomrot == 1 then
  334. for i = 1, 50 do
  335. swait()
  336. tecks2.Text = text
  337. tecks3.Text = text
  338. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  339. tecks2.TextTransparency = tecks2.TextTransparency + .04
  340. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  341. tecks3.TextTransparency = tecks2.TextTransparency + .04
  342. end
  343. elseif randomrot == 2 then
  344. for i = 1, 50 do
  345. swait()
  346. tecks2.Text = text
  347. tecks3.Text = text
  348. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  349. tecks2.TextTransparency = tecks2.TextTransparency + .04
  350. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  351. tecks3.TextTransparency = tecks2.TextTransparency + .04
  352. end
  353. end
  354. if toggleTag == false then
  355. end
  356. naeeym2:Destroy()
  357. end)
  358. chat()
  359. end
  360.  
  361. function bosschatfunc(text,color,watval)
  362. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  363. coroutine.resume(coroutine.create(function()
  364. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  365. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  366. end
  367. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  368. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  369. scrg.Name = "Dialog"
  370. local txtlb = Instance.new("TextLabel",scrg)
  371. txtlb.Text = ""
  372. txtlb.Font = "Bodoni"
  373. txtlb.TextColor3 = Color3.new(0,0,0)
  374. txtlb.TextStrokeTransparency = 0
  375. txtlb.BackgroundTransparency = 0.75
  376. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  377. txtlb.TextStrokeColor3 = color
  378. txtlb.TextScaled = true
  379. txtlb.Size = UDim2.new(1,0,0.25,0)
  380. txtlb.TextXAlignment = "Left"
  381. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  382. local txtlb2 = Instance.new("TextLabel",scrg)
  383. txtlb2.Text = "???:"
  384. txtlb2.Font = "Arcade"
  385. txtlb2.TextColor3 = Color3.new(0,0,0)
  386. txtlb2.TextStrokeTransparency = 0
  387. txtlb2.BackgroundTransparency = 1
  388. txtlb2.TextStrokeColor3 = color
  389. txtlb2.TextSize = 40
  390. txtlb2.Size = UDim2.new(1,0,0.25,0)
  391. txtlb2.TextXAlignment = "Left"
  392. txtlb2.Position = UDim2.new(0,0,1,0)
  393. local fvalen = 0.55
  394. local fval = -0.49
  395. coroutine.resume(coroutine.create(function()
  396. while true do
  397. swait()
  398. if chaosmode == true then
  399. txtlb.Rotation = math.random(-1,1)
  400. txtlb2.Rotation = math.random(-1,1)
  401. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  402. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  403. txtlb.TextStrokeColor3 = BrickColor.random().Color
  404. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  405. end
  406. end
  407. end))
  408. coroutine.resume(coroutine.create(function()
  409. while true do
  410. swait()
  411. if scrg.Parent ~= nil then
  412. fvalen = fvalen - 0.0001
  413. elseif scrg.Parent == nil then
  414. break
  415. end
  416. end
  417. end))
  418. local flol = 1.75
  419. local flil = 1.6
  420. coroutine.resume(coroutine.create(function()
  421. for i = 0, 9 do
  422. swait()
  423. fval = fval + 0.05
  424. flol = flol - 0.1
  425. flil = flil - 0.1
  426. txtlb.Text = ""
  427. txtlb.Position = UDim2.new(0,0,flol,0)
  428. txtlb2.Position = UDim2.new(0,0,flil,0)
  429. end
  430. txtlb.Text = text
  431. wait(watval)
  432. local valinc = 0
  433. for i = 0, 99 do
  434. swait()
  435. valinc = valinc + 0.0001
  436. flol = flol + valinc
  437. flil = flil + valinc
  438. txtlb.Rotation = txtlb.Rotation + valinc*20
  439. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  440. txtlb.Position = UDim2.new(0,0,flol,0)
  441. txtlb2.Position = UDim2.new(0,0,flil,0)
  442. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  443. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  444. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  445. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  446. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  447. end
  448. scrg:Destroy()
  449. end))
  450. end))
  451. end
  452. end
  453.  
  454.  
  455. local Create = LoadLibrary("RbxUtility").Create
  456.  
  457. CFuncs = {
  458. ["Part"] = {
  459. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  460. local Part = Create("Part"){
  461. Parent = Parent,
  462. Reflectance = Reflectance,
  463. Transparency = Transparency,
  464. CanCollide = false,
  465. Locked = true,
  466. BrickColor = BrickColor.new(tostring(BColor)),
  467. Name = Name,
  468. Size = Size,
  469. Material = Material,
  470. }
  471. RemoveOutlines(Part)
  472. return Part
  473. end;
  474. };
  475.  
  476. ["Mesh"] = {
  477. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  478. local Msh = Create(Mesh){
  479. Parent = Part,
  480. Offset = OffSet,
  481. Scale = Scale,
  482. }
  483. if Mesh == "SpecialMesh" then
  484. Msh.MeshType = MeshType
  485. Msh.MeshId = MeshId
  486. end
  487. return Msh
  488. end;
  489. };
  490.  
  491. ["Mesh"] = {
  492. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  493. local Msh = Create(Mesh){
  494. Parent = Part,
  495. Offset = OffSet,
  496. Scale = Scale,
  497. }
  498. if Mesh == "SpecialMesh" then
  499. Msh.MeshType = MeshType
  500. Msh.MeshId = MeshId
  501. end
  502. return Msh
  503. end;
  504. };
  505.  
  506. ["Weld"] = {
  507. Create = function(Parent, Part0, Part1, C0, C1)
  508. local Weld = Create("Weld"){
  509. Parent = Parent,
  510. Part0 = Part0,
  511. Part1 = Part1,
  512. C0 = C0,
  513. C1 = C1,
  514. }
  515. return Weld
  516. end;
  517. };
  518.  
  519. ["Sound"] = {
  520. Create = function(id, par, vol, pit)
  521. coroutine.resume(coroutine.create(function()
  522. local S = Create("Sound"){
  523. Volume = vol,
  524. Name = "EffectSoundo",
  525. Pitch = pit or 1,
  526. SoundId = id,
  527. Parent = par or workspace,
  528. }
  529. wait()
  530. S:play()
  531. game:GetService("Debris"):AddItem(S, 10)
  532. end))
  533. end;
  534. };
  535.  
  536. ["TimeSound"] = {
  537. Create = function(id, par, vol, pit, timepos)
  538. coroutine.resume(coroutine.create(function()
  539. local S = Create("Sound"){
  540. Volume = vol,
  541. Name = "EffectSoundo",
  542. Pitch = pit or 1,
  543. SoundId = id,
  544. TimePosition = timepos,
  545. Parent = par or workspace,
  546. }
  547. wait()
  548. S:play()
  549. game:GetService("Debris"):AddItem(S, 10)
  550. end))
  551. end;
  552. };
  553. ["EchoSound"] = {
  554. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  555. coroutine.resume(coroutine.create(function()
  556. local Sas = Create("Sound"){
  557. Volume = vol,
  558. Name = "EffectSoundo",
  559. Pitch = pit or 1,
  560. SoundId = id,
  561. TimePosition = timepos,
  562. Parent = par or workspace,
  563. }
  564. local E = Create("EchoSoundEffect"){
  565. Delay = echodelay,
  566. Name = "Echo",
  567. Feedback = fedb,
  568. DryLevel = dryl,
  569. Parent = Sas,
  570. }
  571. wait()
  572. Sas:play()
  573. game:GetService("Debris"):AddItem(Sas, delays)
  574. end))
  575. end;
  576. };
  577.  
  578. ["LongSound"] = {
  579. Create = function(id, par, vol, pit)
  580. coroutine.resume(coroutine.create(function()
  581. local S = Create("Sound"){
  582. Volume = vol,
  583. Pitch = pit or 1,
  584. SoundId = id,
  585. Parent = par or workspace,
  586. }
  587. wait()
  588. S:play()
  589. game:GetService("Debris"):AddItem(S, 60)
  590. end))
  591. end;
  592. };
  593.  
  594. ["ParticleEmitter"] = {
  595. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  596. local fp = Create("ParticleEmitter"){
  597. Parent = Parent,
  598. Color = ColorSequence.new(Color1, Color2),
  599. LightEmission = LightEmission,
  600. Size = Size,
  601. Texture = Texture,
  602. Transparency = Transparency,
  603. ZOffset = ZOffset,
  604. Acceleration = Accel,
  605. Drag = Drag,
  606. LockedToPart = LockedToPart,
  607. VelocityInheritance = VelocityInheritance,
  608. EmissionDirection = EmissionDirection,
  609. Enabled = Enabled,
  610. Lifetime = LifeTime,
  611. Rate = Rate,
  612. Rotation = Rotation,
  613. RotSpeed = RotSpeed,
  614. Speed = Speed,
  615. VelocitySpread = VelocitySpread,
  616. }
  617. return fp
  618. end;
  619. };
  620.  
  621. CreateTemplate = {
  622.  
  623. };
  624. }
  625.  
  626.  
  627.  
  628. New = function(Object, Parent, Name, Data)
  629. local Object = Instance.new(Object)
  630. for Index, Value in pairs(Data or {}) do
  631. Object[Index] = Value
  632. end
  633. Object.Parent = Parent
  634. Object.Name = Name
  635. return Object
  636. end
  637. local halocolor = BrickColor.new("Pastel light blue")
  638. local halocolor2 = BrickColor.new("Cool yellow")
  639. local starcolor = BrickColor.new("Bright yellow")
  640. local lunacolor = BrickColor.new("Navy blue")
  641. local lunacolor2 = BrickColor.new("Bright blue")
  642. local wepcolor = BrickColor.new("Really black")
  643. local maincolor = BrickColor.new("Really black")
  644. local m = Instance.new("Model",char)
  645. local m2 = Instance.new("Model",char)
  646. local m3 = Instance.new("Model",char)
  647. local mw1 = Instance.new("Model",char)
  648. local mw2 = Instance.new("Model",char)
  649.  
  650.  
  651. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  652. local gui = it(GuiType)
  653. gui.Parent = parent
  654. gui.Text = text
  655. gui.BackgroundTransparency = backtrans
  656. gui.BackgroundColor3 = backcol
  657. gui.SizeConstraint = "RelativeXY"
  658. gui.TextXAlignment = "Center"
  659. gui.TextYAlignment = "Center"
  660. gui.Position = pos
  661. gui.Size = size
  662. gui.Font = "SourceSans"
  663. gui.FontSize = "Size14"
  664. gui.TextWrapped = false
  665. gui.TextStrokeTransparency = 0
  666. gui.TextColor = BrickColor.new("White")
  667. return gui
  668. end
  669.  
  670. local extrawingmod1 = Instance.new("Model",char)
  671. local extrawingmod2 = Instance.new("Model",char)
  672.  
  673. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  674. local p = Instance.new("Part")
  675. p.TopSurface = 0
  676. p.BottomSurface = 0
  677. p.Parent = parent
  678. p.Size = Vector3.new(0.1,0.1,0.1)
  679. p.Transparency = transparency
  680. p.Reflectance = reflectance
  681. p.CanCollide = false
  682. p.Locked = true
  683. p.BrickColor = brickcolor
  684. p.Material = material
  685. return p
  686. end
  687.  
  688. function CreateMesh(parent,meshtype,x1,y1,z1)
  689. local mesh = Instance.new("SpecialMesh",parent)
  690. mesh.MeshType = meshtype
  691. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  692. return mesh
  693. end
  694.  
  695. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  696. local mesh = Instance.new("SpecialMesh",parent)
  697. mesh.MeshType = "FileMesh"
  698. mesh.MeshId = meshid
  699. mesh.Scale = Vector3.new(x1,y1,z1)
  700. return mesh
  701. end
  702.  
  703.  
  704. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  705. local mesh = Instance.new("SpecialMesh",parent)
  706. mesh.MeshType = "FileMesh"
  707. mesh.MeshId = meshid
  708. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  709. mesh.Scale = Vector3.new(x1,y1,z1)
  710. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  711. return mesh
  712. end
  713.  
  714. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  715. local weld = Instance.new("Weld")
  716. weld.Parent = parent
  717. weld.Part0 = part0
  718. weld.Part1 = part1
  719. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  720. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  721. return weld
  722. end
  723.  
  724.  
  725. --------------
  726. --------------
  727. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  728. 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))
  729. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  730. 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))
  731.  
  732. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  733. CreateMesh(handlex,"Brick",0,0,0)
  734. 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))
  735. 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))
  736. ------
  737.  
  738.  
  739. function RemoveOutlines(part)
  740. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  741. end
  742. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  743. local Part = Create("Part")({
  744. Parent = Parent,
  745. Reflectance = Reflectance,
  746. Transparency = Transparency,
  747. CanCollide = false,
  748. Locked = true,
  749. BrickColor = BrickColor.new(tostring(BColor)),
  750. Name = Name,
  751. Size = Size,
  752. Material = Material
  753. })
  754. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  755. RemoveOutlines(Part)
  756. return Part
  757. end
  758. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  759. local Msh = Create(Mesh)({
  760. Parent = Part,
  761. Offset = OffSet,
  762. Scale = Scale
  763. })
  764. if Mesh == "SpecialMesh" then
  765. Msh.MeshType = MeshType
  766. Msh.MeshId = MeshId
  767. end
  768. return Msh
  769. end
  770. function CreateWeld(Parent, Part0, Part1, C0, C1)
  771. local Weld = Create("Weld")({
  772. Parent = Parent,
  773. Part0 = Part0,
  774. Part1 = Part1,
  775. C0 = C0,
  776. C1 = C1
  777. })
  778. return Weld
  779. end
  780.  
  781. Character=Player.Character
  782. PlayerGui=Player.PlayerGui
  783. Backpack=Player.Backpack
  784. Torso=Character.Torso
  785. Head=Character.Head
  786. Humanoid=Character.Humanoid
  787. m=Instance.new('Model',Character)
  788. LeftArm=Character["Left Arm"]
  789. LeftLeg=Character["Left Leg"]
  790. RightArm=Character["Right Arm"]
  791. RightLeg=Character["Right Leg"]
  792. LS=Torso["Left Shoulder"]
  793. LH=Torso["Left Hip"]
  794. RS=Torso["Right Shoulder"]
  795. RH=Torso["Right Hip"]
  796. Face = Head.face
  797. Neck=Torso.Neck
  798. it=Instance.new
  799. attacktype=1
  800. vt=Vector3.new
  801. cf=CFrame.new
  802. euler=CFrame.fromEulerAnglesXYZ
  803. angles=CFrame.Angles
  804. cloaked=false
  805. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  806. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  807. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  808. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  809. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  810. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  811. RootPart=Character.HumanoidRootPart
  812. RootJoint=RootPart.RootJoint
  813. RootCF=euler(-1.57,0,3.14)
  814. attack = false
  815. attackdebounce = false
  816. deb=false
  817. equipped=true
  818. hand=false
  819. MMouse=nil
  820. combo=0
  821. mana=0
  822. trispeed=.2
  823. attackmode='none'
  824. local idle=0
  825. local Anim="Idle"
  826. local Effects={}
  827. local gun=false
  828. local shoot=false
  829. local sine = 0
  830. local change = 1
  831.  
  832.  
  833. function warnedpeople(text,represfont,color,color2)
  834. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  835. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  836. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  837. coroutine.resume(coroutine.create(function()
  838. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  839. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  840. end
  841. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  842. scrg.Name = "Spinny"
  843. local frm = Instance.new("Frame",scrg)
  844. frm.BackgroundTransparency = 0.25
  845. frm.BackgroundColor3 = color
  846. frm.BorderSizePixel = 0
  847. frm.Rotation = 45
  848. frm.Size = UDim2.new(3,0,0,100)
  849. frm.Position = UDim2.new(-4,0,0,0)
  850. local frm2 = frm:Clone()
  851. frm2.Parent = scrg
  852. frm2.BackgroundColor3 = color2
  853. frm2.Position = UDim2.new(-4.05,0,0,0)
  854. local imlb = Instance.new("ImageLabel",scrg)
  855. imlb.BackgroundTransparency = 1
  856. imlb.BackgroundColor3 = Color3.new(0,0,0)
  857. imlb.Image = "rbxassetid://2344851144"
  858. imlb.Size = UDim2.new(0,750,0,750)
  859. imlb.ImageColor3 = color2
  860. imlb.ImageTransparency = 0.25
  861. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  862. local imlb2 = imlb:Clone()
  863. imlb2.Image = "rbxassetid://2325939897"
  864. imlb2.Size = UDim2.new(1,0,1,0)
  865. imlb2.ImageColor3 = color
  866. imlb2.ImageTransparency = 0
  867. imlb2.Position = UDim2.new(0,0,0,0)
  868. local imlb3 = imlb:Clone()
  869. imlb3.Image = "rbxassetid://2344830904"
  870. imlb3.Size = UDim2.new(1,0,1,0)
  871. imlb3.ImageColor3 = color2
  872. imlb3.ImageTransparency = 0
  873. imlb3.Position = UDim2.new(0,0,0,0)
  874. local imlb4 = imlb:Clone()
  875. imlb4.Image = "rbxassetid://2344870656"
  876. imlb4.Size = UDim2.new(1,0,1,0)
  877. imlb4.ImageColor3 = Color3.new(1,1,1)
  878. imlb4.ImageTransparency = 0
  879. imlb4.Position = UDim2.new(0,0,0,0)
  880. imlb2.Parent = imlb
  881. imlb3.Parent = imlb
  882. imlb4.Parent = imlb
  883. local txtlb2 = Instance.new("TextLabel",imlb)
  884. txtlb2.Text = text
  885. txtlb2.Font = represfont
  886. txtlb2.TextColor3 = color
  887. txtlb2.TextStrokeTransparency = 0
  888. txtlb2.BackgroundTransparency = 1
  889. txtlb2.TextStrokeColor3 = color2
  890. txtlb2.TextScaled = true
  891. txtlb2.Size = UDim2.new(1,0,1,0)
  892. txtlb2.Position = UDim2.new(0,0,0,0)
  893. local fvalen = 0.55
  894. local fval = -0.49
  895. coroutine.resume(coroutine.create(function()
  896. while true do
  897. swait()
  898. if chaosmode == true then
  899. txtlb2.Rotation = math.random(-1,1)
  900. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  901. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  902. imlb.ImageColor3 = BrickColor.random().Color
  903. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  904. end
  905. end
  906. end))
  907. coroutine.resume(coroutine.create(function()
  908. while true do
  909. swait()
  910. if scrg.Parent ~= nil then
  911. fvalen = fvalen - 0.0001
  912. elseif scrg.Parent == nil then
  913. break
  914. end
  915. end
  916. end))
  917. local flol = -5
  918. local flil = 1.6
  919. coroutine.resume(coroutine.create(function()
  920. for i = 0, 49 do
  921. swait()
  922. flol = flol + 0.125
  923. flil = flil - 0.1
  924. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  925. frm.Rotation = frm.Rotation - 0.25
  926. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  927. frm2.Rotation = frm.Rotation + 0.325
  928. imlb3.Rotation = imlb3.Rotation - 10
  929. imlb2.Rotation = imlb.Rotation + 7.5
  930. imlb.Rotation = imlb.Rotation + 5
  931. txtlb2.Rotation = txtlb2.Rotation - 5.125
  932. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  933. end
  934. for i = 0, 99 do
  935. swait()
  936. fval = fval + 0.05
  937. flol = flol + 0.005
  938. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  939. frm.Rotation = frm.Rotation - 0.075
  940. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  941. frm2.Rotation = frm2.Rotation + 0.125
  942. imlb3.Rotation = imlb3.Rotation - 2
  943. imlb2.Rotation = imlb.Rotation + 1.5
  944. imlb.Rotation = imlb.Rotation + 1
  945. txtlb2.Rotation = txtlb2.Rotation - 1.125
  946. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  947. end
  948. local valinc = 0
  949. local vinc2 = 1
  950. for i = 0, 99 do
  951. swait()
  952. vinc2 = vinc2 + 0.25
  953. valinc = valinc + 0.0001
  954. flol = flol + valinc
  955. flil = flil + valinc
  956. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  957. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  958. imlb.Rotation = imlb.Rotation + 1*vinc2
  959. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  960. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  961. frm.Rotation = frm.Rotation + 0.1*vinc2
  962. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  963. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  964. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  965. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  966. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  967. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  968. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  969. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  970. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  971. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  972. end
  973. scrg:Destroy()
  974. end))
  975. end))
  976. end
  977. end
  978.  
  979.  
  980.  
  981. --save shoulders
  982. RSH, LSH=nil, nil
  983. --welds
  984. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  985. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  986. LH=Torso["Left Hip"]
  987. RH=Torso["Right Hip"]
  988. TorsoColor=Torso.BrickColor
  989. function NoOutline(Part)
  990. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  991. end
  992. ch=Character
  993. RSH=ch.Torso["Right Shoulder"]
  994. LSH=ch.Torso["Left Shoulder"]
  995. --
  996. RSH.Parent=nil
  997. LSH.Parent=nil
  998. --
  999. RW.Name="Right Shoulder"
  1000. RW.Part0=ch.Torso
  1001. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1002. RW.C1=cf(0, 0.5, 0)
  1003. RW.Part1=ch["Right Arm"]
  1004. RW.Parent=ch.Torso
  1005. --
  1006. LW.Name="Left Shoulder"
  1007. LW.Part0=ch.Torso
  1008. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1009. LW.C1=cf(0, 0.5, 0)
  1010. LW.Part1=ch["Left Arm"]
  1011. LW.Parent=ch.Torso
  1012.  
  1013. local Stats=Instance.new("BoolValue")
  1014. Stats.Name="Stats"
  1015. Stats.Parent=Character
  1016. local Atk=Instance.new("NumberValue")
  1017. Atk.Name="Damage"
  1018. Atk.Parent=Stats
  1019. Atk.Value=1
  1020. local Def=Instance.new("NumberValue")
  1021. Def.Name="Defense"
  1022. Def.Parent=Stats
  1023. Def.Value=1
  1024. local Speed=Instance.new("NumberValue")
  1025. Speed.Name="Speed"
  1026. Speed.Parent=Stats
  1027. Speed.Value=1
  1028. local Mvmt=Instance.new("NumberValue")
  1029. Mvmt.Name="Movement"
  1030. Mvmt.Parent=Stats
  1031. Mvmt.Value=1
  1032.  
  1033. local donum=0
  1034.  
  1035.  
  1036. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1037. local fp=it("Part")
  1038. fp.formFactor=formfactor
  1039. fp.Parent=parent
  1040. fp.Reflectance=reflectance
  1041. fp.Transparency=transparency
  1042. fp.CanCollide=false
  1043. fp.Locked=true
  1044. fp.BrickColor=brickcolor
  1045. fp.Name=name
  1046. fp.Size=size
  1047. fp.Position=Torso.Position
  1048. NoOutline(fp)
  1049. fp.Material="SmoothPlastic"
  1050. fp:BreakJoints()
  1051. return fp
  1052. end
  1053.  
  1054. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1055. local mesh=it(Mesh)
  1056. mesh.Parent=part
  1057. if Mesh=="SpecialMesh" then
  1058. mesh.MeshType=meshtype
  1059. if meshid~="nil" then
  1060. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1061. end
  1062. end
  1063. mesh.Offset=offset
  1064. mesh.Scale=scale
  1065. return mesh
  1066. end
  1067.  
  1068. function weld(parent,part0,part1,c0)
  1069. local weld=it("Weld")
  1070. weld.Parent=parent
  1071. weld.Part0=part0
  1072. weld.Part1=part1
  1073. weld.C0=c0
  1074. return weld
  1075. end
  1076.  
  1077. local Color1=Torso.BrickColor
  1078.  
  1079. local bodvel=Instance.new("BodyVelocity")
  1080. local bg=Instance.new("BodyGyro")
  1081.  
  1082. --------- SazEreno's Artificial HB --------------
  1083. ArtificialHB = Instance.new("BindableEvent", script)
  1084. ArtificialHB.Name = "ArtificialHB"
  1085.  
  1086. script:WaitForChild("ArtificialHB")
  1087. Frame_Speed = 1 / 60
  1088. frame = Frame_Speed
  1089. tf = 0
  1090. allowframeloss = false
  1091. tossremainder = false
  1092. lastframe = tick()
  1093. script.ArtificialHB:Fire()
  1094.  
  1095. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1096. tf = tf + s
  1097. if tf >= frame then
  1098. if allowframeloss then
  1099. script.ArtificialHB:Fire()
  1100. lastframe = tick()
  1101. else
  1102. for i = 1, math.floor(tf / frame) do
  1103. script.ArtificialHB:Fire()
  1104. end
  1105. lastframe = tick()
  1106. end
  1107. if tossremainder then
  1108. tf = 0
  1109. else
  1110. tf = tf - frame * math.floor(tf / frame)
  1111. end
  1112. end
  1113. end)
  1114.  
  1115. ------------------
  1116. function swait(num)
  1117. if num == 0 or num == nil then
  1118. ArtificialHB.Event:wait()
  1119. else
  1120. for i = 1, num do
  1121. ArtificialHB.Event:wait()
  1122. end
  1123. end
  1124. end
  1125. -------- RAINBOW LEAVE IT TO ME
  1126. local r = 255
  1127. local g = 0
  1128. local b = 0
  1129. coroutine.resume(coroutine.create(function()
  1130. while wait() do
  1131. for i = 0, 254/5 do
  1132. swait()
  1133. g = g + 5
  1134. end
  1135. for i = 0, 254/5 do
  1136. swait()
  1137. r = r - 5
  1138. end
  1139. for i = 0, 254/5 do
  1140. swait()
  1141. b = b + 5
  1142. end
  1143. for i = 0, 254/5 do
  1144. swait()
  1145. g = g - 5
  1146. end
  1147. for i = 0, 254/5 do
  1148. swait()
  1149. r = r + 5
  1150. end
  1151. for i = 0, 254/5 do
  1152. swait()
  1153. b = b - 5
  1154. end
  1155. end
  1156. end))
  1157.  
  1158.  
  1159. so = function(id,par,vol,pit)
  1160. coroutine.resume(coroutine.create(function()
  1161. local sou = Instance.new("Sound",par or workspace)
  1162. sou.Volume=vol
  1163. sou.Pitch=pit or 1
  1164. sou.SoundId=id
  1165. swait()
  1166. sou:play()
  1167. game:GetService("Debris"):AddItem(sou,6)
  1168. end))
  1169. end
  1170.  
  1171. function clerp(a,b,t)
  1172. local qa = {QuaternionFromCFrame(a)}
  1173. local qb = {QuaternionFromCFrame(b)}
  1174. local ax, ay, az = a.x, a.y, a.z
  1175. local bx, by, bz = b.x, b.y, b.z
  1176. local _t = 1-t
  1177. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1178. end
  1179.  
  1180. function QuaternionFromCFrame(cf)
  1181. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1182. local trace = m00 + m11 + m22
  1183. if trace > 0 then
  1184. local s = math.sqrt(1 + trace)
  1185. local recip = 0.5/s
  1186. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1187. else
  1188. local i = 0
  1189. if m11 > m00 then
  1190. i = 1
  1191. end
  1192. if m22 > (i == 0 and m00 or m11) then
  1193. i = 2
  1194. end
  1195. if i == 0 then
  1196. local s = math.sqrt(m00-m11-m22+1)
  1197. local recip = 0.5/s
  1198. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1199. elseif i == 1 then
  1200. local s = math.sqrt(m11-m22-m00+1)
  1201. local recip = 0.5/s
  1202. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1203. elseif i == 2 then
  1204. local s = math.sqrt(m22-m00-m11+1)
  1205. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1206. end
  1207. end
  1208. end
  1209.  
  1210. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1211. local xs, ys, zs = x + x, y + y, z + z
  1212. local wx, wy, wz = w*xs, w*ys, w*zs
  1213. local xx = x*xs
  1214. local xy = x*ys
  1215. local xz = x*zs
  1216. local yy = y*ys
  1217. local yz = y*zs
  1218. local zz = z*zs
  1219. 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))
  1220. end
  1221.  
  1222. function QuaternionSlerp(a, b, t)
  1223. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1224. local startInterp, finishInterp;
  1225. if cosTheta >= 0.0001 then
  1226. if (1 - cosTheta) > 0.0001 then
  1227. local theta = math.acos(cosTheta)
  1228. local invSinTheta = 1/math.sin(theta)
  1229. startInterp = math.sin((1-t)*theta)*invSinTheta
  1230. finishInterp = math.sin(t*theta)*invSinTheta
  1231. else
  1232. startInterp = 1-t
  1233. finishInterp = t
  1234. end
  1235. else
  1236. if (1+cosTheta) > 0.0001 then
  1237. local theta = math.acos(-cosTheta)
  1238. local invSinTheta = 1/math.sin(theta)
  1239. startInterp = math.sin((t-1)*theta)*invSinTheta
  1240. finishInterp = math.sin(t*theta)*invSinTheta
  1241. else
  1242. startInterp = t-1
  1243. finishInterp = t
  1244. end
  1245. end
  1246. 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
  1247. end
  1248.  
  1249. local function CFrameFromTopBack(at, top, back)
  1250. local right = top:Cross(back)
  1251. return CFrame.new(at.x, at.y, at.z,
  1252. right.x, top.x, back.x,
  1253. right.y, top.y, back.y,
  1254. right.z, top.z, back.z)
  1255. end
  1256.  
  1257. function Triangle(a, b, c)
  1258. local edg1 = (c-a):Dot((b-a).unit)
  1259. local edg2 = (a-b):Dot((c-b).unit)
  1260. local edg3 = (b-c):Dot((a-c).unit)
  1261. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1262. a, b, c = a, b, c
  1263. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1264. a, b, c = b, c, a
  1265. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1266. a, b, c = c, a, b
  1267. else
  1268. assert(false, "unreachable")
  1269. end
  1270.  
  1271. local len1 = (c-a):Dot((b-a).unit)
  1272. local len2 = (b-a).magnitude - len1
  1273. local width = (a + (b-a).unit*len1 - c).magnitude
  1274.  
  1275. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1276.  
  1277. local list = {}
  1278.  
  1279. if len1 > 0.01 then
  1280. local w1 = Instance.new('WedgePart', m)
  1281. game:GetService("Debris"):AddItem(w1,5)
  1282. w1.Material = "SmoothPlastic"
  1283. w1.FormFactor = 'Custom'
  1284. w1.BrickColor = BrickColor.new("Really red")
  1285. w1.Transparency = 0
  1286. w1.Reflectance = 0
  1287. w1.Material = "SmoothPlastic"
  1288. w1.CanCollide = false
  1289. local l1 = Instance.new("PointLight",w1)
  1290. l1.Color = Color3.new(170,0,0)
  1291. NoOutline(w1)
  1292. local sz = Vector3.new(0.2, width, len1)
  1293. w1.Size = sz
  1294. local sp = Instance.new("SpecialMesh",w1)
  1295. sp.MeshType = "Wedge"
  1296. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1297. w1:BreakJoints()
  1298. w1.Anchored = true
  1299. w1.Parent = workspace
  1300. w1.Transparency = 0.7
  1301. table.insert(Effects,{w1,"Disappear",.01})
  1302. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1303. table.insert(list,w1)
  1304. end
  1305.  
  1306. if len2 > 0.01 then
  1307. local w2 = Instance.new('WedgePart', m)
  1308. game:GetService("Debris"):AddItem(w2,5)
  1309. w2.Material = "SmoothPlastic"
  1310. w2.FormFactor = 'Custom'
  1311. w2.BrickColor = BrickColor.new("Really red")
  1312. w2.Transparency = 0
  1313. w2.Reflectance = 0
  1314. w2.Material = "SmoothPlastic"
  1315. w2.CanCollide = false
  1316. local l2 = Instance.new("PointLight",w2)
  1317. l2.Color = Color3.new(170,0,0)
  1318. NoOutline(w2)
  1319. local sz = Vector3.new(0.2, width, len2)
  1320. w2.Size = sz
  1321. local sp = Instance.new("SpecialMesh",w2)
  1322. sp.MeshType = "Wedge"
  1323. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1324. w2:BreakJoints()
  1325. w2.Anchored = true
  1326. w2.Parent = workspace
  1327. w2.Transparency = 0.7
  1328. table.insert(Effects,{w2,"Disappear",.01})
  1329. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1330. table.insert(list,w2)
  1331. end
  1332. return unpack(list)
  1333. end
  1334.  
  1335.  
  1336. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1337. if hit.Parent == nil then
  1338. return
  1339. end
  1340. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1341. for _, v in pairs(hit.Parent:children()) do
  1342. if v:IsA("Humanoid") then
  1343. h = v
  1344. end
  1345. end
  1346. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1347. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1348. return
  1349. end
  1350. local c = Create("ObjectValue")({
  1351. Name = "creator",
  1352. Value = game:GetService("Players").GodzPlaysRB,
  1353. Parent = h
  1354. })
  1355. game:GetService("Debris"):AddItem(c, 0.5)
  1356. if HitSound ~= nil and HitPitch ~= nil then
  1357. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1358. end
  1359. local Damage = math.random(minim, maxim)
  1360. local blocked = false
  1361. local block = hit.Parent:findFirstChild("Block")
  1362. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1363. blocked = true
  1364. block.Value = block.Value - 1
  1365. print(block.Value)
  1366. end
  1367. if blocked == false then
  1368. HitHealth = h.Health
  1369. h.MaxHealth = 100
  1370. h.Health = h.Health - Damage
  1371. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1372. print("gained kill")
  1373. dmg(h.Parent)
  1374. end
  1375. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1376. else
  1377. h.Health = h.Health - Damage / 2
  1378. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1379. end
  1380. if Type == "Knockdown" then
  1381. local hum = hit.Parent.Humanoid
  1382. hum.PlatformStand = true
  1383. coroutine.resume(coroutine.create(function(HHumanoid)
  1384. swait(1)
  1385. HHumanoid.PlatformStand = false
  1386. end), hum)
  1387. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1388. local bodvol = Create("BodyVelocity")({
  1389. velocity = angle * knockback,
  1390. P = 5000,
  1391. maxForce = Vector3.new(8000, 8000, 8000),
  1392. Parent = hit
  1393. })
  1394. local rl = Create("BodyAngularVelocity")({
  1395. P = 3000,
  1396. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1397. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1398. Parent = hit
  1399. })
  1400. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1401. game:GetService("Debris"):AddItem(rl, 0.5)
  1402. elseif Type == "Normal" then
  1403. local vp = Create("BodyVelocity")({
  1404. P = 500,
  1405. maxForce = Vector3.new(math.huge, 0, math.huge),
  1406. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1407. })
  1408. if knockback > 0 then
  1409. vp.Parent = hit.Parent.Head
  1410. end
  1411. game:GetService("Debris"):AddItem(vp, 0.5)
  1412. elseif Type == "Up" then
  1413. local bodyVelocity = Create("BodyVelocity")({
  1414. velocity = Vector3.new(0, 20, 0),
  1415. P = 5000,
  1416. maxForce = Vector3.new(8000, 8000, 8000),
  1417. Parent = hit
  1418. })
  1419. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1420. local bodyVelocity = Create("BodyVelocity")({
  1421. velocity = Vector3.new(0, 20, 0),
  1422. P = 5000,
  1423. maxForce = Vector3.new(8000, 8000, 8000),
  1424. Parent = hit
  1425. })
  1426. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1427. elseif Type == "Leech" then
  1428. local hum = hit.Parent.Humanoid
  1429. if hum ~= nil then
  1430. for i = 0, 2 do
  1431. 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)
  1432. end
  1433. Humanoid.Health = Humanoid.Health + 10
  1434. end
  1435. elseif Type == "UpKnock" then
  1436. local hum = hit.Parent.Humanoid
  1437. hum.PlatformStand = true
  1438. if hum ~= nil then
  1439. hitr = true
  1440. end
  1441. coroutine.resume(coroutine.create(function(HHumanoid)
  1442. swait(5)
  1443. HHumanoid.PlatformStand = false
  1444. hitr = false
  1445. end), hum)
  1446. local bodyVelocity = Create("BodyVelocity")({
  1447. velocity = Vector3.new(0, 20, 0),
  1448. P = 5000,
  1449. maxForce = Vector3.new(8000, 8000, 8000),
  1450. Parent = hit
  1451. })
  1452. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1453. local bodyVelocity = Create("BodyVelocity")({
  1454. velocity = Vector3.new(0, 20, 0),
  1455. P = 5000,
  1456. maxForce = Vector3.new(8000, 8000, 8000),
  1457. Parent = hit
  1458. })
  1459. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1460. elseif Type == "Snare" then
  1461. local bp = Create("BodyPosition")({
  1462. P = 2000,
  1463. D = 100,
  1464. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1465. position = hit.Parent.Torso.Position,
  1466. Parent = hit.Parent.Torso
  1467. })
  1468. game:GetService("Debris"):AddItem(bp, 1)
  1469. elseif Type == "Slashnare" then
  1470. 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)
  1471. for i = 1, math.random(4, 5) do
  1472. 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)
  1473. end
  1474. local bp = Create("BodyPosition")({
  1475. P = 2000,
  1476. D = 100,
  1477. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1478. position = hit.Parent.Torso.Position,
  1479. Parent = hit.Parent.Torso
  1480. })
  1481. game:GetService("Debris"):AddItem(bp, 1)
  1482. elseif Type == "Spike" then
  1483. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1484. local bp = Create("BodyPosition")({
  1485. P = 2000,
  1486. D = 100,
  1487. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1488. position = hit.Parent.Torso.Position,
  1489. Parent = hit.Parent.Torso
  1490. })
  1491. game:GetService("Debris"):AddItem(bp, 1)
  1492. elseif Type == "Freeze" then
  1493. local BodPos = Create("BodyPosition")({
  1494. P = 50000,
  1495. D = 1000,
  1496. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1497. position = hit.Parent.Torso.Position,
  1498. Parent = hit.Parent.Torso
  1499. })
  1500. local BodGy = Create("BodyGyro")({
  1501. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1502. P = 20000,
  1503. Parent = hit.Parent.Torso,
  1504. cframe = hit.Parent.Torso.CFrame
  1505. })
  1506. hit.Parent.Torso.Anchored = true
  1507. coroutine.resume(coroutine.create(function(Part)
  1508. swait(1.5)
  1509. Part.Anchored = false
  1510. end), hit.Parent.Torso)
  1511. game:GetService("Debris"):AddItem(BodPos, 3)
  1512. game:GetService("Debris"):AddItem(BodGy, 3)
  1513. end
  1514. local debounce = Create("BoolValue")({
  1515. Name = "DebounceHit",
  1516. Parent = hit.Parent,
  1517. Value = true
  1518. })
  1519. game:GetService("Debris"):AddItem(debounce, Delay)
  1520. c = Instance.new("ObjectValue")
  1521. c.Name = "creator"
  1522. c.Value = Player
  1523. c.Parent = h
  1524. game:GetService("Debris"):AddItem(c, 0.5)
  1525. end
  1526. end
  1527. function ShowDamage(Pos, Text, Time, Color)
  1528. local Rate = 0.03333333333333333
  1529. local Pos = Pos or Vector3.new(0, 0, 0)
  1530. local Text = Text or ""
  1531. local Time = Time or 2
  1532. local Color = Color or Color3.new(1, 0, 1)
  1533. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1534. EffectPart.Anchored = true
  1535. local BillboardGui = Create("BillboardGui")({
  1536. Size = UDim2.new(3, 0, 3, 0),
  1537. Adornee = EffectPart,
  1538. Parent = EffectPart
  1539. })
  1540. local TextLabel = Create("TextLabel")({
  1541. BackgroundTransparency = 1,
  1542. Size = UDim2.new(1, 0, 1, 0),
  1543. Text = Text,
  1544. TextColor3 = Color,
  1545. TextScaled = true,
  1546. Font = Enum.Font.ArialBold,
  1547. Parent = BillboardGui
  1548. })
  1549. game.Debris:AddItem(EffectPart, Time + 0.1)
  1550. EffectPart.Parent = game:GetService("Workspace")
  1551. delay(0, function()
  1552. local Frames = Time / Rate
  1553. for Frame = 1, Frames do
  1554. wait(Rate)
  1555. local Percent = Frame / Frames
  1556. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1557. TextLabel.TextTransparency = Percent
  1558. end
  1559. if EffectPart and EffectPart.Parent then
  1560. EffectPart:Destroy()
  1561. end
  1562. end)
  1563. end
  1564. function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
  1565. for _, c in pairs(workspace:children()) do
  1566. local hum = c:findFirstChildOfClass("Humanoid")
  1567. if hum ~= nil then
  1568. local head = c:findFirstChild("Torso")
  1569. if head ~= nil then
  1570. local targ = head.Position - Part.Position
  1571. local mag = targ.magnitude
  1572. if magni >= mag and c.Name ~= Player.Name then
  1573. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  1574. end
  1575. end
  1576. local head = c:findFirstChild("UpperTorso")
  1577. if head ~= nil then
  1578. local targ = head.Position - Part.Position
  1579. local mag = targ.magnitude
  1580. if magni >= mag and c.Name ~= Player.Name then
  1581. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  1582. end
  1583. end
  1584. end
  1585. end
  1586. end
  1587.  
  1588.  
  1589. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1590. for _, c in pairs(workspace:children()) do
  1591. local hum = c:findFirstChild("Humanoid")
  1592. if hum ~= nil then
  1593. local head = c:findFirstChild("Torso")
  1594. if head ~= nil then
  1595. local targ = head.Position - Part.Position
  1596. local mag = targ.magnitude
  1597. if magni >= mag and c.Name ~= Player.Name then
  1598. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1599. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1600. end
  1601. end
  1602. end
  1603. end
  1604. end
  1605.  
  1606. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1607. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1608. end
  1609.  
  1610. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1611. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1612. prt.Anchored=true
  1613. prt.CFrame=cframe
  1614. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1615. --http://www.roblox.com/asset/?id=4770560
  1616. game:GetService("Debris"):AddItem(prt,2)
  1617. CF=prt.CFrame
  1618. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1619. for i=0,1,0.2 do
  1620. wait()
  1621. Part.CFrame=CF*cf(0,0,-0.4)
  1622. end
  1623. for i=0,1,delay do
  1624. wait()
  1625. --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)
  1626. Mesh.Scale=Mesh.Scale
  1627. end
  1628. for i=0,1,0.1 do
  1629. wait()
  1630. Part.Transparency=i
  1631. end
  1632. Part.Parent=nil
  1633. end),prt,msh,CF)
  1634. end
  1635.  
  1636. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1637. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1638. prt.Anchored=true
  1639. prt.Material = "Neon"
  1640. prt.CFrame=cframe
  1641. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1642. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1643. game:GetService("Debris"):AddItem(prt,5)
  1644. coroutine.resume(coroutine.create(function(Part,Mesh)
  1645. for i=0,1,delay do
  1646. swait()
  1647. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1648. Part.Transparency=i
  1649. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1650. end
  1651. Part.Parent=nil
  1652. end),prt,msh)
  1653. end
  1654.  
  1655. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1656. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1657. prt.Anchored=true
  1658. prt.Material = "Neon"
  1659. prt.CFrame=cframe
  1660. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1661. game:GetService("Debris"):AddItem(prt,5)
  1662. coroutine.resume(coroutine.create(function(Part,Mesh)
  1663. local rtype = rottype
  1664. for i=0,1,delay do
  1665. swait()
  1666. if rtype == 1 then
  1667. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1668. elseif rtype == 2 then
  1669. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1670. end
  1671. Part.Transparency=i
  1672. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1673. end
  1674. Part.Parent=nil
  1675. end),prt,msh)
  1676. end
  1677.  
  1678. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1679. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1680. prt.Anchored=true
  1681. prt.CFrame=cframe
  1682. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1683. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1684. game:GetService("Debris"):AddItem(prt,5)
  1685. coroutine.resume(coroutine.create(function(Part,Mesh)
  1686. for i=0,1,delay do
  1687. wait()
  1688. Part.Transparency=i
  1689. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1690. end
  1691. Part.Parent=nil
  1692. end),prt,msh)
  1693. end
  1694.  
  1695. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1696. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1697. prt.Anchored=true
  1698. prt.Material = "Neon"
  1699. prt.CFrame=cframe
  1700. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1701. game:GetService("Debris"):AddItem(prt,5)
  1702. coroutine.resume(coroutine.create(function(Part,Mesh)
  1703. local rtype = rottype
  1704. for i=0,1,delay do
  1705. swait()
  1706. if rtype == 1 then
  1707. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1708. elseif rtype == 2 then
  1709. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1710. end
  1711. Part.Transparency=i
  1712. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1713. end
  1714. Part.Parent=nil
  1715. end),prt,msh)
  1716. end
  1717.  
  1718. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1719. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1720. prt.Anchored=true
  1721. prt.Material = "Neon"
  1722. prt.CFrame=cframe
  1723. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1724. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1725. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1726. game:GetService("Debris"):AddItem(prt,5)
  1727. coroutine.resume(coroutine.create(function(Part,Mesh)
  1728. local rtype = rottype
  1729. for i=0,1,delay do
  1730. swait()
  1731. if rtype == 1 then
  1732. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1733. elseif rtype == 2 then
  1734. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1735. end
  1736. dec.Transparency=i
  1737. dec2.Transparency=i
  1738. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1739. end
  1740. Part.Parent=nil
  1741. end),prt,msh)
  1742. end
  1743.  
  1744. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1745. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1746. prt.Anchored=true
  1747. prt.Material = "Neon"
  1748. prt.CFrame=cframe
  1749. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1750. game:GetService("Debris"):AddItem(prt,5)
  1751. coroutine.resume(coroutine.create(function(Part,Mesh)
  1752. local rtype = rottype
  1753. for i=0,1,delay do
  1754. swait()
  1755. if rtype == 1 then
  1756. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1757. elseif rtype == 2 then
  1758. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1759. end
  1760. prt.Transparency=i
  1761. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1762. end
  1763. Part.Parent=nil
  1764. end),prt,msh)
  1765. end
  1766.  
  1767. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1768. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1769. prt.Anchored=true
  1770. prt.Material = "Neon"
  1771. prt.CFrame=cframe
  1772. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1773. game:GetService("Debris"):AddItem(prt,5)
  1774. coroutine.resume(coroutine.create(function(Part,Mesh)
  1775. local rtype = rottype
  1776. for i=0,1,delay do
  1777. swait()
  1778. if rtype == 1 then
  1779. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1780. elseif rtype == 2 then
  1781. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1782. end
  1783. prt.Transparency=i
  1784. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1785. end
  1786. Part.Parent=nil
  1787. end),prt,msh)
  1788. end
  1789.  
  1790. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1791. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1792. prt.Anchored=true
  1793. prt.Material = "Neon"
  1794. prt.CFrame=cframe
  1795. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1796. game:GetService("Debris"):AddItem(prt,5)
  1797. coroutine.resume(coroutine.create(function(Part,Mesh)
  1798. local rtype = rottype
  1799. for i=0,1,delay do
  1800. swait()
  1801. if rtype == 1 then
  1802. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1803. elseif rtype == 2 then
  1804. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1805. end
  1806. prt.Transparency=i
  1807. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1808. end
  1809. Part.Parent=nil
  1810. end),prt,msh)
  1811. end
  1812.  
  1813. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1814. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1815. prt.Anchored=true
  1816. prt.Material = "Neon"
  1817. prt.CFrame=cframe
  1818. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1819. game:GetService("Debris"):AddItem(prt,5)
  1820. coroutine.resume(coroutine.create(function(Part,Mesh)
  1821. local rtype = rottype
  1822. for i=0,1,delay do
  1823. swait()
  1824. if rtype == 1 then
  1825. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1826. elseif rtype == 2 then
  1827. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1828. end
  1829. prt.Transparency=i
  1830. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1831. end
  1832. Part.Parent=nil
  1833. end),prt,msh)
  1834. end
  1835.  
  1836. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1837. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1838. prt.Anchored=false
  1839. prt.CFrame=cframe
  1840. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1841. local wld=weld(prt,prt,Parent,cframe)
  1842. game:GetService("Debris"):AddItem(prt,5)
  1843. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1844. for i=0,1,delay do
  1845. wait()
  1846. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1847. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1848. Part.Transparency=i
  1849. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1850. end
  1851. Part.Parent=nil
  1852. end),prt,msh,wld)
  1853. end
  1854.  
  1855. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1856. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1857. prt.Anchored=false
  1858. prt.CFrame=cframe
  1859. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1860. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1861. game:GetService("Debris"):AddItem(prt,5)
  1862. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1863. for i=0,1,delay do
  1864. wait()
  1865. Weld.C0=euler(i*20,0,0)
  1866. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1867. Part.Transparency=i
  1868. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1869. end
  1870. Part.Parent=nil
  1871. end),prt,msh,wld)
  1872. end
  1873.  
  1874. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1875. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1876. prt.Anchored=true
  1877. prt.CFrame=cframe
  1878. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1879. game:GetService("Debris"):AddItem(prt,2)
  1880. coroutine.resume(coroutine.create(function(Part,Mesh)
  1881. for i=0,1,delay do
  1882. wait()
  1883. Part.CFrame=Part.CFrame
  1884. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1885. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1886. prt2.Anchored=true
  1887. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1888. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1889. game:GetService("Debris"):AddItem(prt2,2)
  1890. coroutine.resume(coroutine.create(function(Part,Mesh)
  1891. for i=0,1,0.1 do
  1892. wait()
  1893. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1894. end
  1895. Part.Parent=nil
  1896. end),prt2,msh2)
  1897. end
  1898. for i=0,1,delay*2 do
  1899. wait()
  1900. Part.CFrame=Part.CFrame
  1901. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1902. end
  1903. Part.Parent=nil
  1904. end),prt,msh)
  1905. end
  1906.  
  1907. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1908. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1909. prt.Anchored=true
  1910. prt.CFrame=cframe
  1911. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1912. game:GetService("Debris"):AddItem(prt,2)
  1913. coroutine.resume(coroutine.create(function(Part,Mesh)
  1914. for i=0,1,delay do
  1915. wait()
  1916. Part.CFrame=Part.CFrame
  1917. Part.Transparency=i
  1918. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1919. end
  1920. Part.Parent=nil
  1921. end),prt,msh)
  1922. end
  1923.  
  1924. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1925. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1926. prt.Anchored=true
  1927. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1928. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1929. game:GetService("Debris"):AddItem(prt,2)
  1930. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1931. CF=Part.CFrame
  1932. Numbb=0
  1933. randnumb=math.random()/10
  1934. rand1=math.random()/10
  1935. for i=0,1,rand1 do
  1936. wait()
  1937. CF=CF*cf(0,math.random()/2,0)
  1938. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1939. Part.CFrame=CF*euler(Numbb,0,0)
  1940. Part.Transparency=i
  1941. Numbb=Numbb+randnumb
  1942. end
  1943. Part.Parent=nil
  1944. end),prt,CF,Numbb,randnumb)
  1945. end
  1946.  
  1947. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1948. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1949. prt.Anchored=true
  1950. prt.CFrame=cframe
  1951. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1952. game:GetService("Debris"):AddItem(prt,5)
  1953. coroutine.resume(coroutine.create(function(Part,Mesh)
  1954. for i=0,1,delay do
  1955. wait()
  1956. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1957. Part.Transparency=i
  1958. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1959. end
  1960. Part.Parent=nil
  1961. end),prt,msh)
  1962. end
  1963.  
  1964. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1965. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1966. prt.Anchored=true
  1967. prt.CFrame=cframe
  1968. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1969. game:GetService("Debris"):AddItem(prt,2)
  1970. coroutine.resume(coroutine.create(function(Part,Mesh)
  1971. for i=0,1,delay do
  1972. wait()
  1973. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1974. Part.Transparency=i
  1975. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1976. end
  1977. Part.Parent=nil
  1978. end),prt,msh)
  1979. end
  1980.  
  1981. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1982. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1983. prt.Anchored=true
  1984. prt.CFrame=cframe*cf(x,y,z)
  1985. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1986. game:GetService("Debris"):AddItem(prt,5)
  1987. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1988. local num=math.random()
  1989. local num2=math.random(-3,2)+math.random()
  1990. local numm=0
  1991. for i=0,1,delay*2 do
  1992. swait()
  1993. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1994. Part.Transparency=i
  1995. numm=numm+0.01
  1996. end
  1997. Part.Parent=nil
  1998. Mesh.Parent=nil
  1999. end),prt,msh,x,y,z)
  2000. end
  2001.  
  2002. function dmgstart(dmg,what)
  2003. hitcon = what.Touched:connect(function(hit)
  2004. local hum = hit.Parent:FindFirstChild("Humanoid")
  2005. if hum and not hum:IsDescendantOf(Character) then
  2006. hum:TakeDamage(dmg)
  2007. end
  2008. end)
  2009. end
  2010.  
  2011. function dmgstop()
  2012. hitcon:disconnect()
  2013. end
  2014.  
  2015. function Cloak()
  2016. Face.Parent=nil
  2017. cloaked=true
  2018. for _,v in pairs(Torso.Parent:children()) do
  2019. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2020. coroutine.resume(coroutine.create(function()
  2021. for i=0,1,0.2 do
  2022. wait()
  2023. v.Transparency=i
  2024. end
  2025. v.Transparency=1
  2026. end))
  2027. end
  2028. if v.className=="Hat" then
  2029. hatp=v.Handle
  2030. coroutine.resume(coroutine.create(function(derp)
  2031. for i=0,1,0.2 do
  2032. wait()
  2033. derp.Transparency=i
  2034. end
  2035. derp.Transparency=1
  2036. end),hatp)
  2037. end
  2038. end
  2039. for _,v in pairs(m:children()) do
  2040. if v.className=="Part" then
  2041. coroutine.resume(coroutine.create(function()
  2042. for i=0,1,0.2 do
  2043. wait()
  2044. v.Transparency=i
  2045. end
  2046. v.Transparency=1
  2047. end))
  2048. end
  2049. end
  2050. end
  2051.  
  2052. function UnCloak()
  2053. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2054. Face.Parent=Head
  2055. cloaked=false
  2056. for _,v in pairs(Torso.Parent:children()) do
  2057. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2058. coroutine.resume(coroutine.create(function()
  2059. for i=0,1,0.1 do
  2060. wait()
  2061. v.Transparency=v.Transparency-0.1
  2062. end
  2063. v.Transparency=0
  2064. end))
  2065. end
  2066. if v.className=="Hat" then
  2067. hatp=v.Handle
  2068. coroutine.resume(coroutine.create(function(derp)
  2069. for i=0,1,0.1 do
  2070. wait()
  2071. derp.Transparency=derp.Transparency-0.1
  2072. end
  2073. derp.Transparency=0
  2074. end),hatp)
  2075. end
  2076. end
  2077. for _,v in pairs(m:children()) do
  2078. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2079. coroutine.resume(coroutine.create(function()
  2080. for i=0,1,0.1 do
  2081. wait()
  2082. v.Transparency=v.Transparency-0.1
  2083. end
  2084. v.Transparency=0
  2085. end))
  2086. v.Transparency=0
  2087. end
  2088. end
  2089. end
  2090.  
  2091. local origcolor = BrickColor.new("Pastel light blue")
  2092. ---- This section of explosions.
  2093.  
  2094. ----
  2095.  
  2096.  
  2097. function ring(type,pos,scale,value)
  2098. local type = type
  2099. local rng = Instance.new("Part", char)
  2100. rng.Anchored = true
  2101. rng.BrickColor = origcolor
  2102. rng.CanCollide = false
  2103. rng.FormFactor = 3
  2104. rng.Name = "Ring"
  2105. rng.Size = Vector3.new(1, 1, 1)
  2106. rng.Transparency = 0
  2107. rng.TopSurface = 0
  2108. rng.BottomSurface = 0
  2109. rng.CFrame = pos
  2110. local rngm = Instance.new("SpecialMesh", rng)
  2111. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2112. rngm.Scale = scale
  2113. local scaler2 = 1
  2114. if type == "Add" then
  2115. scaler2 = 1*value
  2116. elseif type == "Divide" then
  2117. scaler2 = 1/value
  2118. end
  2119. coroutine.resume(coroutine.create(function()
  2120. for i = 0,10,0.1 do
  2121. swait()
  2122. if type == "Add" then
  2123. scaler2 = scaler2 - 0.01*value
  2124. elseif type == "Divide" then
  2125. scaler2 = scaler2 - 0.01/value
  2126. end
  2127. rng.Transparency = rng.Transparency + 0.01
  2128. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2129. end
  2130. rng:Destroy()
  2131. end))
  2132. end
  2133.  
  2134.  
  2135. function wave(type,pos,scale,value)
  2136. local type = type
  2137. local rng = Instance.new("Part", char)
  2138. rng.Anchored = true
  2139. rng.BrickColor = origcolor
  2140. rng.CanCollide = false
  2141. rng.FormFactor = 3
  2142. rng.Name = "Ring"
  2143. rng.Size = Vector3.new(1, 1, 1)
  2144. rng.Transparency = 0
  2145. rng.TopSurface = 0
  2146. rng.BottomSurface = 0
  2147. rng.CFrame = pos
  2148. local rngm = Instance.new("SpecialMesh", rng)
  2149. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2150. rngm.Scale = scale
  2151. local scaler2 = 1
  2152. if type == "Add" then
  2153. scaler2 = 1*value
  2154. elseif type == "Divide" then
  2155. scaler2 = 1/value
  2156. end
  2157. coroutine.resume(coroutine.create(function()
  2158. for i = 0,10,0.1 do
  2159. swait()
  2160. if type == "Add" then
  2161. scaler2 = scaler2 - 0.01*value
  2162. elseif type == "Divide" then
  2163. scaler2 = scaler2 - 0.01/value
  2164. end
  2165. rng.Transparency = rng.Transparency + 0.01
  2166. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2167. end
  2168. rng:Destroy()
  2169. end))
  2170. end
  2171.  
  2172. function wind(type,pos,scale,value,speed)
  2173. local type = type
  2174. local rng = Instance.new("Part", char)
  2175. rng.Anchored = true
  2176. rng.BrickColor = origcolor
  2177. rng.CanCollide = false
  2178. rng.FormFactor = 3
  2179. rng.Name = "Ring"
  2180. rng.Size = Vector3.new(1, 1, 1)
  2181. rng.Transparency = 0
  2182. rng.TopSurface = 0
  2183. rng.BottomSurface = 0
  2184. rng.CFrame = pos
  2185. local rngm = Instance.new("SpecialMesh", rng)
  2186. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2187. rngm.Scale = scale
  2188. local scaler2 = 1
  2189. if type == "Add" then
  2190. scaler2 = 1*value
  2191. elseif type == "Divide" then
  2192. scaler2 = 1/value
  2193. end
  2194. coroutine.resume(coroutine.create(function()
  2195. for i = 0,10,0.1 do
  2196. swait()
  2197. if type == "Add" then
  2198. scaler2 = scaler2 - 0.01*value
  2199. elseif type == "Divide" then
  2200. scaler2 = scaler2 - 0.01/value
  2201. end
  2202. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2203. rng.Transparency = rng.Transparency + 0.01
  2204. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2205. end
  2206. rng:Destroy()
  2207. end))
  2208. end
  2209.  
  2210. function groundwind(type,pos,scale,value,speed)
  2211. local type = type
  2212. local rng = Instance.new("Part", char)
  2213. rng.Anchored = true
  2214. rng.BrickColor = origcolor
  2215. rng.CanCollide = false
  2216. rng.FormFactor = 3
  2217. rng.Name = "Ring"
  2218. rng.Size = Vector3.new(1, 1, 1)
  2219. rng.Transparency = 0
  2220. rng.TopSurface = 0
  2221. rng.BottomSurface = 0
  2222. rng.CFrame = pos
  2223. local rngm = Instance.new("SpecialMesh", rng)
  2224. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2225. rngm.Scale = scale
  2226. local scaler2 = 1
  2227. if type == "Add" then
  2228. scaler2 = 1*value
  2229. elseif type == "Divide" then
  2230. scaler2 = 1/value
  2231. end
  2232. coroutine.resume(coroutine.create(function()
  2233. for i = 0,10,0.1 do
  2234. swait()
  2235. if type == "Add" then
  2236. scaler2 = scaler2 - 0.01*value
  2237. elseif type == "Divide" then
  2238. scaler2 = scaler2 - 0.01/value
  2239. end
  2240. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2241. rng.Transparency = rng.Transparency + 0.01
  2242. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2243. end
  2244. rng:Destroy()
  2245. end))
  2246. end
  2247.  
  2248. function CameraManager()
  2249. if TwoD and not CamInterrupt then
  2250. if Humanoid.Health > 0 then
  2251. Camera.CameraSubject = Humanoid
  2252. Camera.CameraType = "Scriptable"
  2253. Humanoid.AutoRotate = false
  2254. if Booleans.GyroUse then
  2255. Directer.MaxTorque = Vec3(0, huge, 0)
  2256. else
  2257. Directer.MaxTorque = Vec3(0, 0, 0)
  2258. end
  2259. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2260. if Booleans.CamFollow then
  2261. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2262. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2263. else
  2264. CPart.Position = RootPart.Position
  2265. end
  2266. else
  2267. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2268. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2269. end
  2270. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2271. else
  2272. Camera.CameraSubject = Humanoid
  2273. Camera.CameraType = "Custom"
  2274. end
  2275. end
  2276. end
  2277.  
  2278. function ring(type,pos,scale,value)
  2279. local type = type
  2280. local rng = Instance.new("Part", char)
  2281. rng.Anchored = true
  2282. rng.BrickColor = origcolor
  2283. rng.CanCollide = false
  2284. rng.FormFactor = 3
  2285. rng.Name = "Ring"
  2286. rng.Size = Vector3.new(1, 1, 1)
  2287. rng.Transparency = 0
  2288. rng.TopSurface = 0
  2289. rng.BottomSurface = 0
  2290. rng.CFrame = pos
  2291. local rngm = Instance.new("SpecialMesh", rng)
  2292. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2293. rngm.Scale = scale
  2294. local scaler2 = 1
  2295. if type == "Add" then
  2296. scaler2 = 1*value
  2297. elseif type == "Divide" then
  2298. scaler2 = 1/value
  2299. end
  2300. coroutine.resume(coroutine.create(function()
  2301. for i = 0,10,0.1 do
  2302. swait()
  2303. if type == "Add" then
  2304. scaler2 = scaler2 - 0.01*value
  2305. elseif type == "Divide" then
  2306. scaler2 = scaler2 - 0.01/value
  2307. end
  2308. rng.Transparency = rng.Transparency + 0.01
  2309. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2310. end
  2311. rng:Destroy()
  2312. end))
  2313. end
  2314.  
  2315.  
  2316. function wave(type,pos,scale,value)
  2317. local type = type
  2318. local rng = Instance.new("Part", char)
  2319. rng.Anchored = true
  2320. rng.BrickColor = origcolor
  2321. rng.CanCollide = false
  2322. rng.FormFactor = 3
  2323. rng.Name = "Ring"
  2324. rng.Size = Vector3.new(1, 1, 1)
  2325. rng.Transparency = 0
  2326. rng.TopSurface = 0
  2327. rng.BottomSurface = 0
  2328. rng.CFrame = pos
  2329. local rngm = Instance.new("SpecialMesh", rng)
  2330. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2331. rngm.Scale = scale
  2332. local scaler2 = 1
  2333. if type == "Add" then
  2334. scaler2 = 1*value
  2335. elseif type == "Divide" then
  2336. scaler2 = 1/value
  2337. end
  2338. coroutine.resume(coroutine.create(function()
  2339. for i = 0,10,0.1 do
  2340. swait()
  2341. if type == "Add" then
  2342. scaler2 = scaler2 - 0.01*value
  2343. elseif type == "Divide" then
  2344. scaler2 = scaler2 - 0.01/value
  2345. end
  2346. rng.Transparency = rng.Transparency + 0.01
  2347. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2348. end
  2349. rng:Destroy()
  2350. end))
  2351. end
  2352.  
  2353. function sphere(bonuspeed,type,pos,scale,value,color)
  2354. local type = type
  2355. local rng = Instance.new("Part", char)
  2356. rng.Anchored = true
  2357. if ModeOfGlitch ~= 9 then
  2358. rng.BrickColor = color
  2359. elseif ModeOfGlitch == 9 then
  2360. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2361. end
  2362. rng.CanCollide = false
  2363. rng.FormFactor = 3
  2364. rng.Name = "Ring"
  2365. rng.Material = "Neon"
  2366. rng.Size = Vector3.new(1, 1, 1)
  2367. rng.Transparency = 0
  2368. rng.TopSurface = 0
  2369. rng.BottomSurface = 0
  2370. rng.CFrame = pos
  2371. local rngm = Instance.new("SpecialMesh", rng)
  2372. rngm.MeshType = "Sphere"
  2373. rngm.Scale = scale
  2374. if rainbowmode == true then
  2375. rng.Color = Color3.new(r/255,g/255,b/255)
  2376. end
  2377. if ModeOfGlitch == 9 then
  2378. coroutine.resume(coroutine.create(function()
  2379. while true do
  2380. swait()
  2381. if rng.Parent ~= nil then
  2382. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2383. else
  2384. break
  2385. end
  2386. end
  2387. end))
  2388. end
  2389. local scaler2 = 1
  2390. if type == "Add" then
  2391. scaler2 = 1*value
  2392. elseif type == "Divide" then
  2393. scaler2 = 1/value
  2394. end
  2395. coroutine.resume(coroutine.create(function()
  2396. for i = 0,10/bonuspeed,0.1 do
  2397. swait()
  2398. if rainbowmode == true then
  2399. rng.Color = Color3.new(r/255,g/255,b/255)
  2400. end
  2401. if type == "Add" then
  2402. scaler2 = scaler2 - 0.01*value/bonuspeed
  2403. elseif type == "Divide" then
  2404. scaler2 = scaler2 - 0.01/value*bonuspeed
  2405. end
  2406. if chaosmode == true then
  2407. rng.BrickColor = BrickColor.random()
  2408. end
  2409. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2410. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2411. end
  2412. rng:Destroy()
  2413. end))
  2414. end
  2415.  
  2416. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2417. local type = type
  2418. local rng = Instance.new("Part", char)
  2419. rng.Anchored = true
  2420. if ModeOfGlitch ~= 9 then
  2421. rng.BrickColor = color
  2422. elseif ModeOfGlitch == 9 then
  2423. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2424. end
  2425. rng.CanCollide = false
  2426. rng.FormFactor = 3
  2427. rng.Name = "Ring"
  2428. rng.Material = "Neon"
  2429. rng.Size = Vector3.new(1, 1, 1)
  2430. rng.Transparency = 0
  2431. rng.TopSurface = 0
  2432. rng.BottomSurface = 0
  2433. rng.CFrame = pos
  2434. local rngm = Instance.new("SpecialMesh", rng)
  2435. rngm.MeshType = "Sphere"
  2436. rngm.Scale = scale
  2437. local scaler2 = 1
  2438. local scaler2b = 1
  2439. local scaler2c = 1
  2440. if type == "Add" then
  2441. scaler2 = 1*value
  2442. scaler2b = 1*value2
  2443. scaler2c = 1*value3
  2444. elseif type == "Divide" then
  2445. scaler2 = 1/value
  2446. scaler2b = 1/value2
  2447. scaler2c = 1/value3
  2448. end
  2449. if ModeOfGlitch == 9 then
  2450. coroutine.resume(coroutine.create(function()
  2451. while true do
  2452. swait()
  2453. if rng.Parent ~= nil then
  2454. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2455. else
  2456. break
  2457. end
  2458. end
  2459. end))
  2460. end
  2461. coroutine.resume(coroutine.create(function()
  2462. for i = 0,10/bonuspeed,0.1 do
  2463. swait()
  2464. if type == "Add" then
  2465. scaler2 = scaler2 - 0.01*value/bonuspeed
  2466. scaler2b = scaler2b - 0.01*value/bonuspeed
  2467. scaler2c = scaler2c - 0.01*value/bonuspeed
  2468. elseif type == "Divide" then
  2469. scaler2 = scaler2 - 0.01/value*bonuspeed
  2470. scaler2b = scaler2b - 0.01/value*bonuspeed
  2471. scaler2c = scaler2c - 0.01/value*bonuspeed
  2472. end
  2473. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2474. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2475. end
  2476. rng:Destroy()
  2477. end))
  2478. end
  2479.  
  2480. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2481. local type = type
  2482. local rotenable = rotatingop
  2483. local rng = Instance.new("Part", char)
  2484. rng.Anchored = true
  2485. rng.BrickColor = color
  2486. rng.CanCollide = false
  2487. rng.FormFactor = 3
  2488. rng.Name = "Ring"
  2489. rng.Material = "Neon"
  2490. rng.Size = Vector3.new(1, 1, 1)
  2491. rng.Transparency = 0
  2492. if typeoftrans == "In" then
  2493. rng.Transparency = 1
  2494. end
  2495. rng.TopSurface = 0
  2496. rng.BottomSurface = 0
  2497. rng.CFrame = pos
  2498. local rngm = Instance.new("SpecialMesh", rng)
  2499. rngm.MeshType = "FileMesh"
  2500. if typeofshape == "Normal" then
  2501. rngm.MeshId = "rbxassetid://662586858"
  2502. elseif typeofshape == "Round" then
  2503. rngm.MeshId = "rbxassetid://662585058"
  2504. end
  2505. rngm.Scale = scale
  2506. local scaler2 = 1/10
  2507. if type == "Add" then
  2508. scaler2 = 1*value/10
  2509. elseif type == "Divide" then
  2510. scaler2 = 1/value/10
  2511. end
  2512. local randomrot = math.random(1,2)
  2513. coroutine.resume(coroutine.create(function()
  2514. for i = 0,10/bonuspeed,0.1 do
  2515. swait()
  2516. if type == "Add" then
  2517. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2518. elseif type == "Divide" then
  2519. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2520. end
  2521. if rotenable == true then
  2522. if randomrot == 1 then
  2523. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2524. elseif randomrot == 2 then
  2525. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2526. end
  2527. end
  2528. if typeoftrans == "Out" then
  2529. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2530. elseif typeoftrans == "In" then
  2531. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2532. end
  2533. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2534. end
  2535. rng:Destroy()
  2536. end))
  2537. end
  2538.  
  2539. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2540. local type = type
  2541. local rng = Instance.new("Part", char)
  2542. rng.Anchored = true
  2543. rng.BrickColor = color
  2544. rng.CanCollide = false
  2545. rng.FormFactor = 3
  2546. rng.Name = "Ring"
  2547. rng.Material = "Neon"
  2548. rng.Size = Vector3.new(1, 1, 1)
  2549. rng.Transparency = 0
  2550. rng.TopSurface = 0
  2551. rng.BottomSurface = 0
  2552. rng.CFrame = pos
  2553. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2554. local rngm = Instance.new("SpecialMesh", rng)
  2555. rngm.MeshType = "Brick"
  2556. rngm.Scale = vt(x1,y1,z1)
  2557. if rainbowmode == true then
  2558. rng.Color = Color3.new(r/255,g/255,b/255)
  2559. end
  2560. local scaler2 = 1
  2561. local speeder = FastSpeed/10
  2562. if type == "Add" then
  2563. scaler2 = 1*value
  2564. elseif type == "Divide" then
  2565. scaler2 = 1/value
  2566. end
  2567. coroutine.resume(coroutine.create(function()
  2568. for i = 0,10/bonuspeed,0.1 do
  2569. swait()
  2570. if rainbowmode == true then
  2571. rng.Color = Color3.new(r/255,g/255,b/255)
  2572. end
  2573. if type == "Add" then
  2574. scaler2 = scaler2 - 0.01*value/bonuspeed
  2575. elseif type == "Divide" then
  2576. scaler2 = scaler2 - 0.01/value*bonuspeed
  2577. end
  2578. if chaosmode == true then
  2579. rng.BrickColor = BrickColor.random()
  2580. end
  2581. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2582. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2583. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2584. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2585. end
  2586. rng:Destroy()
  2587. end))
  2588. end
  2589.  
  2590. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2591. local type = type
  2592. local rng = Instance.new("Part", char)
  2593. rng.Anchored = true
  2594. rng.BrickColor = color
  2595. rng.CanCollide = false
  2596. rng.FormFactor = 3
  2597. rng.Name = "Ring"
  2598. rng.Material = "Neon"
  2599. rng.Size = Vector3.new(1, 1, 1)
  2600. rng.Transparency = 0
  2601. rng.TopSurface = 0
  2602. rng.BottomSurface = 0
  2603. rng.CFrame = pos
  2604. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2605. local rngm = Instance.new("SpecialMesh", rng)
  2606. rngm.MeshType = "Brick"
  2607. rngm.Scale = vt(x1,y1,z1)
  2608. if rainbowmode == true then
  2609. rng.Color = Color3.new(r/255,g/255,b/255)
  2610. end
  2611. local scaler2 = 1
  2612. local speeder = FastSpeed/10
  2613. if type == "Add" then
  2614. scaler2 = 1*value
  2615. elseif type == "Divide" then
  2616. scaler2 = 1/value
  2617. end
  2618. coroutine.resume(coroutine.create(function()
  2619. for i = 0,10/bonuspeed,0.1 do
  2620. swait()
  2621. if rainbowmode == true then
  2622. rng.Color = Color3.new(r/255,g/255,b/255)
  2623. end
  2624. if type == "Add" then
  2625. scaler2 = scaler2 - 0.01*value/bonuspeed
  2626. elseif type == "Divide" then
  2627. scaler2 = scaler2 - 0.01/value*bonuspeed
  2628. end
  2629. if chaosmode == true then
  2630. rng.BrickColor = BrickColor.random()
  2631. end
  2632. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2633. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2634. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2635. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2636. end
  2637. rng:Destroy()
  2638. end))
  2639. end
  2640.  
  2641. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2642. local type = type
  2643. local rng = Instance.new("Part", char)
  2644. rng.Anchored = true
  2645. rng.BrickColor = color
  2646. rng.CanCollide = false
  2647. rng.FormFactor = 3
  2648. rng.Name = "Ring"
  2649. rng.Material = "Neon"
  2650. rng.Size = Vector3.new(1, 1, 1)
  2651. rng.Transparency = 0
  2652. rng.TopSurface = 0
  2653. rng.BottomSurface = 0
  2654. rng.CFrame = pos
  2655. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2656. local rngm = Instance.new("SpecialMesh", rng)
  2657. rngm.MeshType = "Brick"
  2658. rngm.Scale = vt(x1,y1,z1)
  2659. if rainbowmode == true then
  2660. rng.Color = Color3.new(r/255,g/255,b/255)
  2661. end
  2662. local scaler2 = 0
  2663. local speeder = FastSpeed/10
  2664. if type == "Add" then
  2665. scaler2 = 1*value
  2666. elseif type == "Divide" then
  2667. scaler2 = 1/value
  2668. end
  2669. coroutine.resume(coroutine.create(function()
  2670. for i = 0,10/bonuspeed,0.1 do
  2671. swait()
  2672. if rainbowmode == true then
  2673. rng.Color = Color3.new(r/255,g/255,b/255)
  2674. end
  2675. if type == "Add" then
  2676. scaler2 = scaler2 - 0.01*value/bonuspeed
  2677. elseif type == "Divide" then
  2678. scaler2 = scaler2 - 0.01/value*bonuspeed
  2679. end
  2680. if chaosmode == true then
  2681. rng.BrickColor = BrickColor.random()
  2682. end
  2683. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2684. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2685. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2686. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2687. end
  2688. rng:Destroy()
  2689. end))
  2690. end
  2691.  
  2692. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2693. local type = type
  2694. local rng = Instance.new("Part", char)
  2695. rng.Anchored = true
  2696. rng.BrickColor = color
  2697. rng.Color = color3
  2698. rng.CanCollide = false
  2699. rng.FormFactor = 3
  2700. rng.Name = "Ring"
  2701. rng.Material = "Neon"
  2702. rng.Size = Vector3.new(1, 1, 1)
  2703. rng.Transparency = 0
  2704. rng.TopSurface = 0
  2705. rng.BottomSurface = 0
  2706. rng.CFrame = pos
  2707. local rngm = Instance.new("SpecialMesh", rng)
  2708. rngm.MeshType = "Brick"
  2709. rngm.Scale = scale
  2710. local scaler2 = 1
  2711. local scaler2b = 1
  2712. local scaler2c = 1
  2713. if type == "Add" then
  2714. scaler2 = 1*value
  2715. scaler2b = 1*value2
  2716. scaler2c = 1*value3
  2717. elseif type == "Divide" then
  2718. scaler2 = 1/value
  2719. scaler2b = 1/value2
  2720. scaler2c = 1/value3
  2721. end
  2722. coroutine.resume(coroutine.create(function()
  2723. for i = 0,10/bonuspeed,0.1 do
  2724. swait()
  2725. if type == "Add" then
  2726. scaler2 = scaler2 - 0.01*value/bonuspeed
  2727. scaler2b = scaler2b - 0.01*value/bonuspeed
  2728. scaler2c = scaler2c - 0.01*value/bonuspeed
  2729. elseif type == "Divide" then
  2730. scaler2 = scaler2 - 0.01/value*bonuspeed
  2731. scaler2b = scaler2b - 0.01/value*bonuspeed
  2732. scaler2c = scaler2c - 0.01/value*bonuspeed
  2733. end
  2734. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2735. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2736. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2737. end
  2738. rng:Destroy()
  2739. end))
  2740. end
  2741.  
  2742. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2743. local type = type
  2744. local rng = Instance.new("Part", char)
  2745. rng.Anchored = true
  2746. if ModeOfGlitch ~= 9 then
  2747. rng.BrickColor = color
  2748. elseif ModeOfGlitch == 9 then
  2749. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2750. end
  2751. rng.CanCollide = false
  2752. rng.FormFactor = 3
  2753. rng.Name = "Ring"
  2754. rng.Material = "Neon"
  2755. rng.Size = Vector3.new(1, 1, 1)
  2756. rng.Transparency = 0
  2757. rng.TopSurface = 0
  2758. rng.BottomSurface = 0
  2759. rng.CFrame = pos
  2760. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2761. local rngm = Instance.new("SpecialMesh", rng)
  2762. rngm.MeshType = "Sphere"
  2763. rngm.Scale = vt(x1,y1,z1)
  2764. if rainbowmode == true then
  2765. rng.Color = Color3.new(r/255,g/255,b/255)
  2766. end
  2767. if ModeOfGlitch == 9 then
  2768. coroutine.resume(coroutine.create(function()
  2769. while true do
  2770. swait()
  2771. if rng.Parent ~= nil then
  2772. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2773. else
  2774. break
  2775. end
  2776. end
  2777. end))
  2778. end
  2779. local scaler2 = 1
  2780. local speeder = FastSpeed
  2781. if type == "Add" then
  2782. scaler2 = 1*value
  2783. elseif type == "Divide" then
  2784. scaler2 = 1/value
  2785. end
  2786. coroutine.resume(coroutine.create(function()
  2787. for i = 0,10/bonuspeed,0.1 do
  2788. swait()
  2789. if rainbowmode == true then
  2790. rng.Color = Color3.new(r/255,g/255,b/255)
  2791. end
  2792. if type == "Add" then
  2793. scaler2 = scaler2 - 0.01*value/bonuspeed
  2794. elseif type == "Divide" then
  2795. scaler2 = scaler2 - 0.01/value*bonuspeed
  2796. end
  2797. if chaosmode == true then
  2798. rng.BrickColor = BrickColor.random()
  2799. end
  2800. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2801. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2802. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2803. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2804. end
  2805. rng:Destroy()
  2806. end))
  2807. end
  2808.  
  2809.  
  2810. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2811. local type = type
  2812. local rng = Instance.new("Part", char)
  2813. rng.Anchored = true
  2814. if ModeOfGlitch ~= 9 then
  2815. rng.BrickColor = color
  2816. elseif ModeOfGlitch == 9 then
  2817. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2818. end
  2819. rng.CanCollide = false
  2820. rng.FormFactor = 3
  2821. rng.Name = "Ring"
  2822. rng.Material = "Neon"
  2823. rng.Size = Vector3.new(1, 1, 1)
  2824. rng.Transparency = 1
  2825. rng.TopSurface = 0
  2826. rng.BottomSurface = 0
  2827. rng.CFrame = pos
  2828. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2829. local rngm = Instance.new("SpecialMesh", rng)
  2830. rngm.MeshType = "Sphere"
  2831. rngm.Scale = vt(x1,y1,z1)
  2832. if rainbowmode == true then
  2833. rng.Color = Color3.new(r/255,g/255,b/255)
  2834. end
  2835. if ModeOfGlitch == 9 then
  2836. coroutine.resume(coroutine.create(function()
  2837. while true do
  2838. swait()
  2839. if rng.Parent ~= nil then
  2840. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2841. else
  2842. break
  2843. end
  2844. end
  2845. end))
  2846. end
  2847. local scaler2 = 1
  2848. local speeder = FastSpeed
  2849. if type == "Add" then
  2850. scaler2 = 1*value
  2851. elseif type == "Divide" then
  2852. scaler2 = 1/value
  2853. end
  2854. coroutine.resume(coroutine.create(function()
  2855. for i = 0,10/bonuspeed,0.1 do
  2856. swait()
  2857. if rainbowmode == true then
  2858. rng.Color = Color3.new(r/255,g/255,b/255)
  2859. end
  2860. if type == "Add" then
  2861. scaler2 = scaler2 - 0.01*value/bonuspeed
  2862. elseif type == "Divide" then
  2863. scaler2 = scaler2 - 0.01/value*bonuspeed
  2864. end
  2865. if chaosmode == true then
  2866. rng.BrickColor = BrickColor.random()
  2867. end
  2868. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2869. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2870. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2871. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2872. end
  2873. rng:Destroy()
  2874. end))
  2875. end
  2876.  
  2877. function dmg(dude)
  2878. if dude.Name ~= Character then
  2879. local keptcolor = BrickColor.new("Really red")
  2880. local bgf = Instance.new("BodyGyro",dude.Head)
  2881. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2882. --[[local val = Instance.new("BoolValue",dude)
  2883. val.Name = "IsHit"]]--
  2884. local ds = coroutine.wrap(function()
  2885. dude:WaitForChild("Head"):BreakJoints()
  2886. for i, v in pairs(dude:GetChildren()) do
  2887. if v:IsA("Part") or v:IsA("MeshPart") then
  2888. v.Name = "DEMINISHED"
  2889. end
  2890. end
  2891. wait(0.5)
  2892. targetted = nil
  2893. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2894. coroutine.resume(coroutine.create(function()
  2895. for i, v in pairs(dude:GetChildren()) do
  2896. if v:IsA("Accessory") then
  2897. v:Destroy()
  2898. end
  2899. if v:IsA("Humanoid") then
  2900. v:Destroy()
  2901. end
  2902. if v:IsA("CharacterMesh") then
  2903. v:Destroy()
  2904. end
  2905. if v:IsA("Model") then
  2906. v:Destroy()
  2907. end
  2908. if v:IsA("Part") or v:IsA("MeshPart") then
  2909. for x, o in pairs(v:GetChildren()) do
  2910. if o:IsA("Decal") then
  2911. o:Destroy()
  2912. end
  2913. end
  2914. coroutine.resume(coroutine.create(function()
  2915. v.Material = "Neon"
  2916. v.CanCollide = false
  2917. v.Anchored = false
  2918. local bld = Instance.new("ParticleEmitter",v)
  2919. bld.LightEmission = 0.75
  2920. bld.Texture = "rbxassetid://363275192" ---284205403
  2921. bld.Color = ColorSequence.new(keptcolor.Color)
  2922. bld.Rate = 500
  2923. bld.Lifetime = NumberRange.new(1)
  2924. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2925. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2926. bld.Speed = NumberRange.new(2,5)
  2927. bld.VelocitySpread = 50000
  2928. bld.Rotation = NumberRange.new(-500,500)
  2929. bld.RotSpeed = NumberRange.new(-500,500)
  2930. local sbs = Instance.new("BodyPosition", v)
  2931. sbs.P = 3000
  2932. sbs.D = 1000
  2933. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2934. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2935. v.Color = keptcolor.Color
  2936. coroutine.resume(coroutine.create(function()
  2937. for i = 0, 49 do
  2938. swait(1)
  2939. v:BreakJoints()
  2940. v.Transparency = v.Transparency + 0.02
  2941. end
  2942. v:BreakJoints()
  2943. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2944. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2945. bld.Speed = NumberRange.new(10,25)
  2946. bld.Drag = 5
  2947. bld.Acceleration = vt(0,2,0)
  2948. wait(0.5)
  2949. bld.Enabled = false
  2950. wait(8)
  2951. v:Destroy()
  2952. dude:Destroy()
  2953. end))
  2954. end))
  2955. end
  2956. end
  2957. end))
  2958. end)
  2959. ds()
  2960. end
  2961. end
  2962.  
  2963.  
  2964. function FindNearestHead(Position, Distance, SinglePlayer)
  2965. if SinglePlayer then
  2966. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2967. end
  2968. local List = {}
  2969. for i, v in pairs(workspace:GetChildren()) do
  2970. if v:IsA("Model") then
  2971. if v:findFirstChild("Head") then
  2972. if v ~= Character then
  2973. if (v.Head.Position - Position).magnitude <= Distance then
  2974. table.insert(List, v)
  2975. end
  2976. end
  2977. end
  2978. end
  2979. end
  2980. return List
  2981. end
  2982.  
  2983. function FaceMouse()
  2984. Cam = workspace.CurrentCamera
  2985. return {
  2986. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2987. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2988. }
  2989. end
  2990.  
  2991. function FaceMouse2()
  2992. Cam = workspace.CurrentCamera
  2993. return {
  2994. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2995. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2996. }
  2997. end
  2998.  
  2999. local ModeOfGlitch = 1
  3000. -- Functions are ready.
  3001. local storehumanoidWS = 16
  3002.  
  3003. function createBGCircle(size,parent,color)
  3004. local bgui = Instance.new("BillboardGui",parent)
  3005. bgui.Size = UDim2.new(size, 0, size, 0)
  3006. local imgc = Instance.new("ImageLabel",bgui)
  3007. imgc.BackgroundTransparency = 1
  3008. imgc.ImageTransparency = 0
  3009. imgc.Size = UDim2.new(1,0,1,0)
  3010. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  3011. imgc.ImageColor3 = color
  3012. return bgui,imgc
  3013. end
  3014.  
  3015. ----------------------------------- Abilities
  3016.  
  3017. -------------------------------------
  3018.  
  3019. Humanoid.Animator.Parent = nil
  3020.  
  3021. -------------------------------------
  3022.  
  3023. local attacktype = 1
  3024. mouse.Button1Down:connect(function()
  3025. if attack == false and attacktype == 1 then
  3026. attacktype = 1
  3027. --attackone()
  3028. elseif attack == false and attacktype == 2 then
  3029. attacktype = 1
  3030. --attacktwo()
  3031. elseif attack == false and attacktype == 3 then
  3032. attacktype = 1
  3033. --attackthree()
  3034. elseif attack == false and attacktype == 4 then
  3035. attacktype = 1
  3036. --attackfour()
  3037. end
  3038. end)
  3039. mouse.KeyDown:connect(function(k)
  3040. if k == "l" and mutedtog == false then
  3041. mutedtog = true
  3042. kan.Volume = 0
  3043. elseif k == "l" and mutedtog == true then
  3044. mutedtog = false
  3045. kan.Volume = 1.25
  3046. end
  3047. if k == "z" and attack == false then
  3048. --none()
  3049. end
  3050. end)
  3051.  
  3052. plr.Chatted:connect(function(message)
  3053. chatfunc(message,BrickColor.random().Color,"Inverted","SciFi",3)
  3054. end)
  3055.  
  3056. Humanoid.Name = "Rainbow"
  3057. Humanoid.MaxHealth = math.huge
  3058. Humanoid.Health = math.huge
  3059. Instance.new("ForceField",char).Visible = false
  3060.  
  3061.  
  3062. idleanim=.4
  3063. while true do
  3064. if mutedtog == false then
  3065. kan.Volume = ORVOL
  3066. elseif mutedtog == true then
  3067. kan.Volume = 0
  3068. end
  3069. kan.PlaybackSpeed = ORPIT
  3070. kan.Pitch = ORPIT
  3071. kan.Looped = true
  3072. kan.Parent = char
  3073. kan:Resume()
  3074. CameraManager()
  3075. swait()
  3076. --modet.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
  3077. modet.TextColor3 = Color3.new(0,0,0)
  3078. modet.TextStrokeColor3 = BrickColor.random().Color
  3079. sine = sine + change
  3080. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3081. local velderp=RootPart.Velocity.y
  3082. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3083. if equipped==true or equipped==false then
  3084. if attack==false then
  3085. idle=idle+1
  3086. else
  3087. idle=0
  3088. end
  3089. if idle>=500 then
  3090. if attack==false then
  3091. --Sheath()
  3092. end
  3093. end
  3094. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3095. Anim="Jump"
  3096. if attack==false then
  3097. 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)
  3098. 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)
  3099. 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)
  3100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3101. 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)
  3102. 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)
  3103. end
  3104. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3105. Anim="Fall"
  3106. if attack==false then
  3107. 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)
  3108. 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)
  3109. 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)
  3110. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  3111. 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)
  3112. 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)
  3113. end
  3114. elseif torvel<1 and hitfloor~=nil then
  3115. Anim="Idle"
  3116. if attack==false then
  3117. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 8.5),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(3 - 6 * math.cos(sine / 15))),.1)
  3118. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 8.5),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(3 + 6 * math.cos(sine / 15))),.1)
  3119. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 8.5))*angles(math.rad(3 - 6 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  3120. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  3121. RW.C0=clerp(RW.C0,cf(1.3,0.5 + 0.15 * math.cos(sine / 8.5),0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.1)
  3122. LW.C0=clerp(LW.C0,cf(-1.3,0.5 + 0.15 * math.cos(sine / 8.5),0)*angles(math.rad(0),math.rad(0),math.rad(10)),.1)
  3123. end
  3124. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3125. Anim="Walk"
  3126. if attack==false then
  3127. 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)
  3128. 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)
  3129. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  3130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(7 - 5 * math.cos(sine / 60)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
  3131. RW.C0=clerp(RW.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(10 - 5 * math.cos(sine / 4))),.1)
  3132. 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(-10 + 15 * math.cos(sine / 4))),.1)
  3133. end
  3134. elseif torvel>=22 and hitfloor~=nil then
  3135. Anim="Run"
  3136. if attack==false then
  3137. 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)
  3138. 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)
  3139. 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)
  3140. 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)
  3141. 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)
  3142. LW.C0=clerp(LW.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)
  3143. end
  3144. end
  3145. end
  3146. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement