Advertisement
Guest User

synth

a guest
Jan 15th, 2019
2,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 89.82 KB | None | 0 0
  1. wait(2)
  2. local Player = game:GetService("Players").EzzyCrafts2
  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.  
  64. wait(0.5)
  65.  
  66. warn([[Sythezizer Loaded.
  67.  
  68. Created by NoobyGames12
  69. ]])
  70.  
  71.  
  72. -------------
  73. warn([[--------------------------------------------
  74. BUILD 1.0.0
  75. --------------------------------------------]])
  76. ---- Sources and functions might be taken from others
  77. plr = game:GetService("Players").EzzyCrafts2
  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. local secondary = false
  129.  
  130. local kan = Instance.new("Sound",char)
  131. kan.Volume = 1.25
  132. kan.TimePosition = 0
  133. kan.PlaybackSpeed = 1.01
  134. kan.Pitch = 1.01
  135. kan.SoundId = "rbxassetid://923445685"
  136. kan.Name = "synthezitation"
  137. kan.Looped = true
  138. kan:Play()
  139. local mutedtog = false
  140.  
  141. function CameraEnshaking(Length,Intensity)
  142. coroutine.resume(coroutine.create(function()
  143. local intensity = 1*Intensity
  144. local rotM = 0.01*Intensity
  145. for i = 0, Length, 0.1 do
  146. swait()
  147. intensity = intensity - 0.05*Intensity/Length
  148. rotM = rotM - 0.0005*Intensity/Length
  149. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  150. 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)
  151. end
  152. Humanoid.CameraOffset = Vec3(0, 0, 0)
  153. end))
  154. end
  155. CamShake=function(Part,Distan,Power,Times)
  156. local de=Part.Position
  157. for i,v in pairs(workspace:children()) do
  158. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  159. for _,c in pairs(v:children()) do
  160. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  161. local Noob=v.Humanoid
  162. if Noob~=nil then
  163. coroutine.resume(coroutine.create(function()
  164. FV = Instance.new("BoolValue", Noob)
  165. FV.Name = "CameraShake"
  166. for ShakeNum=1,Times do
  167. swait()
  168. local ef=Power
  169. if ef>=1 then
  170. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  171. else
  172. ef=Power*10
  173. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  174. end
  175. end
  176. Humanoid.CameraOffset = Vector3.new(0,0,0)
  177. FV:Destroy()
  178. end))
  179. CameraShake(Times, Power, Noob)
  180. end
  181. end
  182. end
  183. end
  184. end
  185. end
  186.  
  187.  
  188. function chatfunc(text,color,typet,font,timeex)
  189. local chat = coroutine.wrap(function()
  190. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  191. Character:FindFirstChild("TalkingBillBoard"):destroy()
  192. end
  193. local naeeym2 = Instance.new("BillboardGui",Character)
  194. naeeym2.Size = UDim2.new(0,100,0,40)
  195. naeeym2.StudsOffset = Vector3.new(0,3,0)
  196. naeeym2.Adornee = Character.Head
  197. naeeym2.Name = "TalkingBillBoard"
  198. local tecks2 = Instance.new("TextLabel",naeeym2)
  199. tecks2.BackgroundTransparency = 1
  200. tecks2.BorderSizePixel = 0
  201. tecks2.Text = ""
  202. tecks2.Font = font
  203. tecks2.TextSize = 30
  204. tecks2.TextStrokeTransparency = 0
  205. tecks2.TextColor3 = color
  206. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  207. tecks2.Size = UDim2.new(1,0,0.5,0)
  208. local tecks3 = Instance.new("TextLabel",naeeym2)
  209. tecks3.BackgroundTransparency = 1
  210. tecks3.BorderSizePixel = 0
  211. tecks3.Text = ""
  212. tecks3.Font = font
  213. tecks3.TextSize = 30
  214. tecks3.TextStrokeTransparency = 0
  215. if typet == "Inverted" then
  216. tecks3.TextColor3 = Color3.new(0,0,0)
  217. tecks3.TextStrokeColor3 = color
  218. elseif typet == "Normal" then
  219. tecks3.TextColor3 = color
  220. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  221. end
  222. tecks3.Size = UDim2.new(1,0,0.5,0)
  223. for i = 0, 74*timeex do
  224. swait()
  225. tecks2.Text = text
  226. tecks3.Text = text
  227. end
  228. local randomrot = math.random(1,2)
  229. if randomrot == 1 then
  230. for i = 1, 50 do
  231. swait()
  232. tecks2.Text = text
  233. tecks3.Text = text
  234. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  235. tecks2.TextTransparency = tecks2.TextTransparency + .04
  236. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  237. tecks3.TextTransparency = tecks2.TextTransparency + .04
  238. end
  239. elseif randomrot == 2 then
  240. for i = 1, 50 do
  241. swait()
  242. tecks2.Text = text
  243. tecks3.Text = text
  244. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  245. tecks2.TextTransparency = tecks2.TextTransparency + .04
  246. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  247. tecks3.TextTransparency = tecks2.TextTransparency + .04
  248. end
  249. end
  250. naeeym2:Destroy()
  251. end)
  252. chat()
  253. end
  254.  
  255.  
  256. local Create = LoadLibrary("RbxUtility").Create
  257.  
  258. CFuncs = {
  259. ["Part"] = {
  260. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  261. local Part = Create("Part"){
  262. Parent = Parent,
  263. Reflectance = Reflectance,
  264. Transparency = Transparency,
  265. CanCollide = false,
  266. Locked = true,
  267. BrickColor = BrickColor.new(tostring(BColor)),
  268. Name = Name,
  269. Size = Size,
  270. Material = Material,
  271. }
  272. RemoveOutlines(Part)
  273. return Part
  274. end;
  275. };
  276.  
  277. ["Mesh"] = {
  278. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279. local Msh = Create(Mesh){
  280. Parent = Part,
  281. Offset = OffSet,
  282. Scale = Scale,
  283. }
  284. if Mesh == "SpecialMesh" then
  285. Msh.MeshType = MeshType
  286. Msh.MeshId = MeshId
  287. end
  288. return Msh
  289. end;
  290. };
  291.  
  292. ["Mesh"] = {
  293. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  294. local Msh = Create(Mesh){
  295. Parent = Part,
  296. Offset = OffSet,
  297. Scale = Scale,
  298. }
  299. if Mesh == "SpecialMesh" then
  300. Msh.MeshType = MeshType
  301. Msh.MeshId = MeshId
  302. end
  303. return Msh
  304. end;
  305. };
  306.  
  307. ["Weld"] = {
  308. Create = function(Parent, Part0, Part1, C0, C1)
  309. local Weld = Create("Weld"){
  310. Parent = Parent,
  311. Part0 = Part0,
  312. Part1 = Part1,
  313. C0 = C0,
  314. C1 = C1,
  315. }
  316. return Weld
  317. end;
  318. };
  319.  
  320. ["Sound"] = {
  321. Create = function(id, par, vol, pit)
  322. coroutine.resume(coroutine.create(function()
  323. local S = Create("Sound"){
  324. Volume = vol,
  325. Name = "EffectSoundo",
  326. Pitch = pit or 1,
  327. SoundId = id,
  328. Parent = par or workspace,
  329. }
  330. wait()
  331. S:play()
  332. game:GetService("Debris"):AddItem(S, 10)
  333. end))
  334. end;
  335. };
  336.  
  337. ["TimeSound"] = {
  338. Create = function(id, par, vol, pit, timepos,timedel)
  339. coroutine.resume(coroutine.create(function()
  340. local S = Create("Sound"){
  341. Volume = vol,
  342. Name = "EffectSoundo",
  343. Pitch = pit or 1,
  344. SoundId = id,
  345. TimePosition = timepos,
  346. Parent = par or workspace,
  347. }
  348. wait()
  349. S:play()
  350. game:GetService("Debris"):AddItem(S, timedel)
  351. end))
  352. end;
  353. };
  354. ["EchoSound"] = {
  355. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  356. coroutine.resume(coroutine.create(function()
  357. local Sas = Create("Sound"){
  358. Volume = vol,
  359. Name = "EffectSoundo",
  360. Pitch = pit or 1,
  361. SoundId = id,
  362. TimePosition = timepos,
  363. Parent = par or workspace,
  364. }
  365. local E = Create("EchoSoundEffect"){
  366. Delay = echodelay,
  367. Name = "Echo",
  368. Feedback = fedb,
  369. DryLevel = dryl,
  370. Parent = Sas,
  371. }
  372. wait()
  373. Sas:play()
  374. game:GetService("Debris"):AddItem(Sas, delays)
  375. end))
  376. end;
  377. };
  378.  
  379. ["LongSound"] = {
  380. Create = function(id, par, vol, pit)
  381. coroutine.resume(coroutine.create(function()
  382. local S = Create("Sound"){
  383. Volume = vol,
  384. Pitch = pit or 1,
  385. SoundId = id,
  386. Parent = par or workspace,
  387. }
  388. wait()
  389. S:play()
  390. game:GetService("Debris"):AddItem(S, 60)
  391. end))
  392. end;
  393. };
  394.  
  395. ["ParticleEmitter"] = {
  396. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  397. local fp = Create("ParticleEmitter"){
  398. Parent = Parent,
  399. Color = ColorSequence.new(Color1, Color2),
  400. LightEmission = LightEmission,
  401. Size = Size,
  402. Texture = Texture,
  403. Transparency = Transparency,
  404. ZOffset = ZOffset,
  405. Acceleration = Accel,
  406. Drag = Drag,
  407. LockedToPart = LockedToPart,
  408. VelocityInheritance = VelocityInheritance,
  409. EmissionDirection = EmissionDirection,
  410. Enabled = Enabled,
  411. Lifetime = LifeTime,
  412. Rate = Rate,
  413. Rotation = Rotation,
  414. RotSpeed = RotSpeed,
  415. Speed = Speed,
  416. VelocitySpread = VelocitySpread,
  417. }
  418. return fp
  419. end;
  420. };
  421.  
  422. CreateTemplate = {
  423.  
  424. };
  425. }
  426.  
  427.  
  428.  
  429. New = function(Object, Parent, Name, Data)
  430. local Object = Instance.new(Object)
  431. for Index, Value in pairs(Data or {}) do
  432. Object[Index] = Value
  433. end
  434. Object.Parent = Parent
  435. Object.Name = Name
  436. return Object
  437. end
  438. local maincolor = BrickColor.new("Really black")
  439. local m = Instance.new("Model",char)
  440. local colorizermod = Instance.new("Model",char)
  441.  
  442.  
  443. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  444. local gui = it(GuiType)
  445. gui.Parent = parent
  446. gui.Text = text
  447. gui.BackgroundTransparency = backtrans
  448. gui.BackgroundColor3 = backcol
  449. gui.SizeConstraint = "RelativeXY"
  450. gui.TextXAlignment = "Center"
  451. gui.TextYAlignment = "Center"
  452. gui.Position = pos
  453. gui.Size = size
  454. gui.Font = "SourceSans"
  455. gui.FontSize = "Size14"
  456. gui.TextWrapped = false
  457. gui.TextStrokeTransparency = 0
  458. gui.TextColor = BrickColor.new("White")
  459. return gui
  460. end
  461. --------------------------- GUI STUFF
  462. local basgui = it("GuiMain")
  463. basgui.Parent = plr.PlayerGui
  464. basgui.Name = "VISgui"
  465. local fullscreenz = it("Frame")
  466. fullscreenz.Parent = basgui
  467. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  468. fullscreenz.BackgroundTransparency = 1
  469. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  470. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  471. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  472. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  473. imgl2.BackgroundTransparency = 1
  474. imgl2.BorderSizePixel = 0
  475. imgl2.ImageTransparency = 0.5
  476. imgl2.ImageColor3 = BrickColor.new("Pastel light blue").Color
  477. imgl2.Position = UDim2.new(0.75,-100,0.55,-100)
  478. imgl2.Size = UDim2.new(0,800,0,800)
  479. imgl2.Image = "rbxassetid://2076458450"
  480. local techc = imgl2:Clone()
  481. techc.Parent = fullscreenz
  482. techc.ImageTransparency = 0
  483. techc.Size = UDim2.new(0,900,0,900)
  484. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  485. techc.ImageColor3 = BrickColor.new("Pastel light blue").Color
  486. techc.Image = "rbxassetid://2092248396"
  487. local circl = imgl2:Clone()
  488. circl.Parent = fullscreenz
  489. circl.ImageTransparency = 0
  490. circl.Size = UDim2.new(0,550,0,550)
  491. circl.Position = UDim2.new(0.75,25,0.55,25)
  492. circl.ImageColor3 = BrickColor.new("Alder").Color
  493. circl.Image = "rbxassetid://2109052855"
  494. local circl2 = imgl2:Clone()
  495. circl2.Parent = fullscreenz
  496. circl2.ImageTransparency = 0
  497. circl2.Size = UDim2.new(0,700,0,700)
  498. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  499. circl2.ImageColor3 = BrickColor.new("Pastel light blue").Color
  500. circl2.Image = "rbxassetid://2109045978"
  501. local imgl2b = imgl2:Clone()
  502. imgl2b.Parent = fullscreenz
  503. imgl2b.ImageTransparency = 0
  504. imgl2b.Size = UDim2.new(0,600,0,600)
  505. imgl2b.Position = UDim2.new(0.75,0,0.55,0)
  506. imgl2b.ImageColor3 = BrickColor.new("Alder").Color
  507. local ned = Instance.new("TextLabel",fullscreenz)
  508. ned.ZIndex = 2
  509. ned.Font = "SciFi"
  510. ned.BackgroundTransparency = 1
  511. ned.BorderSizePixel = 0.65
  512. ned.Size = UDim2.new(0.3,0,0.2,0)
  513. ned.Position = UDim2.new(0.7,0,0.8,0)
  514. ned.TextColor3 = BrickColor.new("Pastel light blue").Color
  515. ned.TextStrokeColor3 = BrickColor.new("Alder").Color
  516. ned.TextScaled = true
  517. ned.TextStrokeTransparency = 0
  518. ned.Text = "SYNTHEZIZER"
  519. ned.TextSize = 24
  520. ned.Rotation = 1
  521. ned.TextXAlignment = "Right"
  522. ned.TextYAlignment = "Bottom"
  523.  
  524. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  525. local p = Instance.new("Part")
  526. p.TopSurface = 0
  527. p.BottomSurface = 0
  528. p.Parent = parent
  529. p.Size = Vector3.new(0.1,0.1,0.1)
  530. p.Transparency = transparency
  531. p.Reflectance = reflectance
  532. p.CanCollide = false
  533. p.Locked = true
  534. p.BrickColor = brickcolor
  535. p.Material = material
  536. return p
  537. end
  538.  
  539. function CreateMesh(parent,meshtype,x1,y1,z1)
  540. local mesh = Instance.new("SpecialMesh",parent)
  541. mesh.MeshType = meshtype
  542. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  543. return mesh
  544. end
  545.  
  546. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  547. local mesh = Instance.new("SpecialMesh",parent)
  548. mesh.MeshType = "FileMesh"
  549. mesh.MeshId = meshid
  550. mesh.Scale = Vector3.new(x1,y1,z1)
  551. return mesh
  552. end
  553.  
  554.  
  555. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  556. local mesh = Instance.new("SpecialMesh",parent)
  557. mesh.MeshType = "FileMesh"
  558. mesh.MeshId = meshid
  559. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  560. mesh.Scale = Vector3.new(x1,y1,z1)
  561. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  562. return mesh
  563. end
  564.  
  565. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  566. local weld = Instance.new("Weld")
  567. weld.Parent = parent
  568. weld.Part0 = part0
  569. weld.Part1 = part1
  570. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  571. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  572. return weld
  573. end
  574.  
  575.  
  576. ----------------------------
  577. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  578. 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))
  579. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  580. 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))
  581.  
  582. local handlex = CreateParta(m,1,1,"Neon",maincolor)
  583. CreateMesh(handlex,"Brick",0,0,0)
  584. local handlexweld = CreateWeld(handlex,tors,handlex,0,-2,-2.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  585.  
  586. local rotzo = CreateParta(m,1,1,"Neon",maincolor)
  587. CreateMesh(rotzo,"Brick",0,0,0)
  588. local rotingweld = CreateWeld(rotzo,handlex,rotzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  589. local rotzo2 = CreateParta(m,1,1,"Neon",maincolor)
  590. CreateMesh(rotzo2,"Brick",0,0,0)
  591. local rotingweld2 = CreateWeld(rotzo2,handlex,rotzo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  592.  
  593. local roterval = 0
  594. for i = 0, 7 do
  595. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  596. CreateMesh(rn,"Wedge",0.15,1,0.15)
  597. CreateWeld(rn,rotzo,rn,0,-4.25,0.1,math.rad(0),math.rad(90),math.rad(roterval),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  598. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  599. CreateMesh(rn,"Wedge",0.15,1,0.15)
  600. CreateWeld(rn,rotzo,rn,0,-4.25,0.1,math.rad(0),math.rad(-90),math.rad(roterval),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  601. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  602. CreateMesh(rn,"Wedge",0.15,1,0.15)
  603. CreateWeld(rn,rotzo,rn,0,3.25,0.1,math.rad(0),math.rad(90),math.rad(roterval),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  604. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  605. CreateMesh(rn,"Wedge",0.15,1,0.15)
  606. CreateWeld(rn,rotzo,rn,0,3.25,0.1,math.rad(0),math.rad(-90),math.rad(roterval),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  607.  
  608. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  609. CreateMesh(rn,"Wedge",0.15,1,0.25)
  610. CreateWeld(rn,rotzo2,rn,0,1.5,0.2,math.rad(0),math.rad(90),math.rad(roterval + 22.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  611. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  612. CreateMesh(rn,"Wedge",0.15,1,0.25)
  613. CreateWeld(rn,rotzo2,rn,0,1.5,0.2,math.rad(0),math.rad(-90),math.rad(roterval + 22.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  614. roterval = roterval + 45
  615. end
  616. local refec = Instance.new("ParticleEmitter",handlex)
  617. refec.Texture = "rbxassetid://284205403"
  618. refec.LightEmission = 0.95
  619. refec.Color = ColorSequence.new(BrickColor.new("Alder").Color)
  620. refec.Rate = 50
  621. refec.Lifetime = NumberRange.new(0.5)
  622. refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  623. refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  624. refec.Speed = NumberRange.new(0,2)
  625. refec.Drag = 5
  626. refec.LockedToPart = true
  627. refec.Rotation = NumberRange.new(-500,500)
  628. refec.VelocitySpread = 9000
  629. refec.RotSpeed = NumberRange.new(-500,500)
  630. local refec2 = refec:Clone()
  631. refec2.LightEmission = 0.75
  632. refec2.Texture = "rbxassetid://2109052855"--2108979939 254287058 2109052855
  633. refec2.Parent = handlex
  634. refec2.Rate = 15
  635. refec2.Lifetime = NumberRange.new(0.75)
  636. refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.15,0),NumberSequenceKeypoint.new(0.7,2.25,0),NumberSequenceKeypoint.new(0.8,2.15,0),NumberSequenceKeypoint.new(1,1.75,0)})
  637. refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  638. refec2.Speed = NumberRange.new(0)
  639. local refec3 = refec:Clone()
  640. refec3.LightEmission = 0.75
  641. refec3.Texture = "rbxassetid://2092248396"
  642. refec3.Parent = handlex
  643. refec3.Rate = 25
  644. refec3.Lifetime = NumberRange.new(1)
  645. refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,4,0),NumberSequenceKeypoint.new(1,15,0)})
  646. refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  647. refec3.Speed = NumberRange.new(0)
  648. refec3.RotSpeed = NumberRange.new(-50,50)
  649. local valuaring = 10
  650. for i = 0, 35 do
  651. valuaring = valuaring + 10
  652. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  653. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  654. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  655. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  656. CreateMesh(rn,"Brick",0.725,0.045,0.045)
  657. CreateWeld(rn,handlex,rn,0,3.8,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  658. rn = CreateParta(m,0,0,"Granite",maincolor)
  659. CreateMesh(rn,"Brick",0.35,0.05,0.2)
  660. CreateWeld(rn,handlex,rn,0,1.975,0,math.rad(0),math.rad(0),math.rad(valuaring + 5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  661. rn = CreateParta(m,0,0,"Granite",maincolor)
  662. CreateMesh(rn,"Torso",0.385,0.15,0.2)
  663. CreateWeld(rn,handlex,rn,0,2.1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  664. rn = CreateParta(colorizermod,0,0,"Neon",BrickColor.new("Alder"))
  665. CreateMesh(rn,"Wedge",0.5,0.5,0.15)
  666. CreateWeld(rn,handlex,rn,0,-2.25,0,math.rad(0),math.rad(0),math.rad(valuaring + 5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  667. end
  668. ------
  669.  
  670.  
  671. function RemoveOutlines(part)
  672. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  673. end
  674. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  675. local Part = Create("Part")({
  676. Parent = Parent,
  677. Reflectance = Reflectance,
  678. Transparency = Transparency,
  679. CanCollide = false,
  680. Locked = true,
  681. BrickColor = BrickColor.new(tostring(BColor)),
  682. Name = Name,
  683. Size = Size,
  684. Material = Material
  685. })
  686. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  687. RemoveOutlines(Part)
  688. return Part
  689. end
  690. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  691. local Msh = Create(Mesh)({
  692. Parent = Part,
  693. Offset = OffSet,
  694. Scale = Scale
  695. })
  696. if Mesh == "SpecialMesh" then
  697. Msh.MeshType = MeshType
  698. Msh.MeshId = MeshId
  699. end
  700. return Msh
  701. end
  702. function CreateWeld(Parent, Part0, Part1, C0, C1)
  703. local Weld = Create("Weld")({
  704. Parent = Parent,
  705. Part0 = Part0,
  706. Part1 = Part1,
  707. C0 = C0,
  708. C1 = C1
  709. })
  710. return Weld
  711. end
  712.  
  713. Character=Player.Character
  714. PlayerGui=Player.PlayerGui
  715. Backpack=Player.Backpack
  716. Torso=Character.Torso
  717. Head=Character.Head
  718. Humanoid=Character.Humanoid
  719. m=Instance.new('Model',Character)
  720. LeftArm=Character["Left Arm"]
  721. LeftLeg=Character["Left Leg"]
  722. RightArm=Character["Right Arm"]
  723. RightLeg=Character["Right Leg"]
  724. LW=Torso["Left Shoulder"]
  725. LH=Torso["Left Hip"]
  726. RW=Torso["Right Shoulder"]
  727. RH=Torso["Right Hip"]
  728. Face = Head.face
  729. Neck=Torso.Neck
  730. it=Instance.new
  731. attacktype=1
  732. vt=Vector3.new
  733. cf=CFrame.new
  734. euler=CFrame.fromEulerAnglesXYZ
  735. angles=CFrame.Angles
  736. cloaked=false
  737. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  738. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  739. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  740. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  741. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  742. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  743. RootPart=Character.HumanoidRootPart
  744. RootJoint=RootPart.RootJoint
  745. RootCF=euler(-1.57,0,3.14)
  746. attack = false
  747. attackdebounce = false
  748. deb=false
  749. equipped=true
  750. hand=false
  751. combo=0
  752. mana=0
  753. trispeed=.2
  754. attackmode='none'
  755. local idle=0
  756. local Anim="Idle"
  757. local Effects={}
  758. local gun=false
  759. local shoot=false
  760. local sine = 0
  761. local change = 1
  762.  
  763. --save shoulders
  764. RSH, LSH=nil, nil
  765. --welds
  766. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  767. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  768. LH=Torso["Left Hip"]
  769. RH=Torso["Right Hip"]
  770. TorsoColor=Torso.BrickColor
  771. function NoOutline(Part)
  772. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  773. end
  774. ch=Character
  775. RSH=ch.Torso["Right Shoulder"]
  776. LSH=ch.Torso["Left Shoulder"]
  777. --
  778. RSH.Parent=nil
  779. LSH.Parent=nil
  780. --
  781. RW.Name="Right Shoulder"
  782. RW.Part0=char.Torso
  783. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  784. RW.C1=cf(0, 0.5, 0)
  785. RW.Part1=char["Right Arm"]
  786. RW.Parent=char.Torso
  787. --
  788. LW.Name="Left Shoulder"
  789. LW.Part0=char.Torso
  790. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  791. LW.C1=cf(0, 0.5, 0)
  792. LW.Part1=char["Left Arm"]
  793. LW.Parent=char.Torso
  794. local donum=0
  795.  
  796.  
  797. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  798. local fp=it("Part")
  799. fp.formFactor=formfactor
  800. fp.Parent=parent
  801. fp.Reflectance=reflectance
  802. fp.Transparency=transparency
  803. fp.CanCollide=false
  804. fp.Locked=true
  805. fp.BrickColor=brickcolor
  806. fp.Name=name
  807. fp.Size=size
  808. fp.Position=Torso.Position
  809. NoOutline(fp)
  810. fp.Material="SmoothPlastic"
  811. fp:BreakJoints()
  812. return fp
  813. end
  814.  
  815. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  816. local mesh=it(Mesh)
  817. mesh.Parent=part
  818. if Mesh=="SpecialMesh" then
  819. mesh.MeshType=meshtype
  820. if meshid~="nil" then
  821. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  822. end
  823. end
  824. mesh.Offset=offset
  825. mesh.Scale=scale
  826. return mesh
  827. end
  828.  
  829. function weld(parent,part0,part1,c0)
  830. local weld=it("Weld")
  831. weld.Parent=parent
  832. weld.Part0=part0
  833. weld.Part1=part1
  834. weld.C0=c0
  835. return weld
  836. end
  837.  
  838. local Color1=Torso.BrickColor
  839.  
  840. local bodvel=Instance.new("BodyVelocity")
  841. local bg=Instance.new("BodyGyro")
  842.  
  843.  
  844. --------- SazEreno's Artificial HB --------------
  845. ArtificialHB = Instance.new("BindableEvent", script)
  846. ArtificialHB.Name = "ArtificialHB"
  847.  
  848. script:WaitForChild("ArtificialHB")
  849. Frame_Speed = 1 / 60
  850. frame = Frame_Speed
  851. tf = 0
  852. allowframeloss = false
  853. tossremainder = false
  854. lastframe = tick()
  855. script.ArtificialHB:Fire()
  856.  
  857. game:GetService("RunService").Heartbeat:connect(function(s, p)
  858. tf = tf + s
  859. if tf >= frame then
  860. if allowframeloss then
  861. script.ArtificialHB:Fire()
  862. lastframe = tick()
  863. else
  864. for i = 1, math.floor(tf / frame) do
  865. script.ArtificialHB:Fire()
  866. end
  867. lastframe = tick()
  868. end
  869. if tossremainder then
  870. tf = 0
  871. else
  872. tf = tf - frame * math.floor(tf / frame)
  873. end
  874. end
  875. end)
  876.  
  877. ------------------
  878. function swait(num)
  879. if num == 0 or num == nil then
  880. ArtificialHB.Event:wait()
  881. else
  882. for i = 1, num do
  883. ArtificialHB.Event:wait()
  884. end
  885. end
  886. end
  887.  
  888. -------- RAINBOW LEAVE IT TO ME
  889. local r = 255
  890. local g = 0
  891. local b = 0
  892. coroutine.resume(coroutine.create(function()
  893. while wait() do
  894. for i = 0, 254/5 do
  895. swait()
  896. g = g + 5
  897. end
  898. for i = 0, 254/5 do
  899. swait()
  900. r = r - 5
  901. end
  902. for i = 0, 254/5 do
  903. swait()
  904. b = b + 5
  905. end
  906. for i = 0, 254/5 do
  907. swait()
  908. g = g - 5
  909. end
  910. for i = 0, 254/5 do
  911. swait()
  912. r = r + 5
  913. end
  914. for i = 0, 254/5 do
  915. swait()
  916. b = b - 5
  917. end
  918. end
  919. end))
  920.  
  921.  
  922. so = function(id,par,vol,pit)
  923. coroutine.resume(coroutine.create(function()
  924. local sou = Instance.new("Sound",par or workspace)
  925. sou.Volume=vol
  926. sou.Pitch=pit or 1
  927. sou.SoundId=id
  928. swait()
  929. sou:play()
  930. game:GetService("Debris"):AddItem(sou,6)
  931. end))
  932. end
  933.  
  934. function clerp(a,b,t)
  935. local qa = {QuaternionFromCFrame(a)}
  936. local qb = {QuaternionFromCFrame(b)}
  937. local ax, ay, az = a.x, a.y, a.z
  938. local bx, by, bz = b.x, b.y, b.z
  939. local _t = 1-t
  940. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  941. end
  942.  
  943. function QuaternionFromCFrame(cf)
  944. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  945. local trace = m00 + m11 + m22
  946. if trace > 0 then
  947. local s = math.sqrt(1 + trace)
  948. local recip = 0.5/s
  949. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  950. else
  951. local i = 0
  952. if m11 > m00 then
  953. i = 1
  954. end
  955. if m22 > (i == 0 and m00 or m11) then
  956. i = 2
  957. end
  958. if i == 0 then
  959. local s = math.sqrt(m00-m11-m22+1)
  960. local recip = 0.5/s
  961. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  962. elseif i == 1 then
  963. local s = math.sqrt(m11-m22-m00+1)
  964. local recip = 0.5/s
  965. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  966. elseif i == 2 then
  967. local s = math.sqrt(m22-m00-m11+1)
  968. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  969. end
  970. end
  971. end
  972.  
  973. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  974. local xs, ys, zs = x + x, y + y, z + z
  975. local wx, wy, wz = w*xs, w*ys, w*zs
  976. local xx = x*xs
  977. local xy = x*ys
  978. local xz = x*zs
  979. local yy = y*ys
  980. local yz = y*zs
  981. local zz = z*zs
  982. 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))
  983. end
  984.  
  985. function QuaternionSlerp(a, b, t)
  986. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  987. local startInterp, finishInterp;
  988. if cosTheta >= 0.0001 then
  989. if (1 - cosTheta) > 0.0001 then
  990. local theta = math.acos(cosTheta)
  991. local invSinTheta = 1/math.sin(theta)
  992. startInterp = math.sin((1-t)*theta)*invSinTheta
  993. finishInterp = math.sin(t*theta)*invSinTheta
  994. else
  995. startInterp = 1-t
  996. finishInterp = t
  997. end
  998. else
  999. if (1+cosTheta) > 0.0001 then
  1000. local theta = math.acos(-cosTheta)
  1001. local invSinTheta = 1/math.sin(theta)
  1002. startInterp = math.sin((t-1)*theta)*invSinTheta
  1003. finishInterp = math.sin(t*theta)*invSinTheta
  1004. else
  1005. startInterp = t-1
  1006. finishInterp = t
  1007. end
  1008. end
  1009. 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
  1010. end
  1011.  
  1012. local function CFrameFromTopBack(at, top, back)
  1013. local right = top:Cross(back)
  1014. return CFrame.new(at.x, at.y, at.z,
  1015. right.x, top.x, back.x,
  1016. right.y, top.y, back.y,
  1017. right.z, top.z, back.z)
  1018. end
  1019.  
  1020. function Triangle(a, b, c)
  1021. local edg1 = (c-a):Dot((b-a).unit)
  1022. local edg2 = (a-b):Dot((c-b).unit)
  1023. local edg3 = (b-c):Dot((a-c).unit)
  1024. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1025. a, b, c = a, b, c
  1026. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1027. a, b, c = b, c, a
  1028. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1029. a, b, c = c, a, b
  1030. else
  1031. assert(false, "unreachable")
  1032. end
  1033.  
  1034. local len1 = (c-a):Dot((b-a).unit)
  1035. local len2 = (b-a).magnitude - len1
  1036. local width = (a + (b-a).unit*len1 - c).magnitude
  1037.  
  1038. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1039.  
  1040. local list = {}
  1041.  
  1042. if len1 > 0.01 then
  1043. local w1 = Instance.new('WedgePart', m)
  1044. game:GetService("Debris"):AddItem(w1,5)
  1045. w1.Material = "SmoothPlastic"
  1046. w1.FormFactor = 'Custom'
  1047. w1.BrickColor = BrickColor.new("Really red")
  1048. w1.Transparency = 0
  1049. w1.Reflectance = 0
  1050. w1.Material = "SmoothPlastic"
  1051. w1.CanCollide = false
  1052. local l1 = Instance.new("PointLight",w1)
  1053. l1.Color = Color3.new(170,0,0)
  1054. NoOutline(w1)
  1055. local sz = Vector3.new(0.2, width, len1)
  1056. w1.Size = sz
  1057. local sp = Instance.new("SpecialMesh",w1)
  1058. sp.MeshType = "Wedge"
  1059. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1060. w1:BreakJoints()
  1061. w1.Anchored = true
  1062. w1.Parent = workspace
  1063. w1.Transparency = 0.7
  1064. table.insert(Effects,{w1,"Disappear",.01})
  1065. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1066. table.insert(list,w1)
  1067. end
  1068.  
  1069. if len2 > 0.01 then
  1070. local w2 = Instance.new('WedgePart', m)
  1071. game:GetService("Debris"):AddItem(w2,5)
  1072. w2.Material = "SmoothPlastic"
  1073. w2.FormFactor = 'Custom'
  1074. w2.BrickColor = BrickColor.new("Really red")
  1075. w2.Transparency = 0
  1076. w2.Reflectance = 0
  1077. w2.Material = "SmoothPlastic"
  1078. w2.CanCollide = false
  1079. local l2 = Instance.new("PointLight",w2)
  1080. l2.Color = Color3.new(170,0,0)
  1081. NoOutline(w2)
  1082. local sz = Vector3.new(0.2, width, len2)
  1083. w2.Size = sz
  1084. local sp = Instance.new("SpecialMesh",w2)
  1085. sp.MeshType = "Wedge"
  1086. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1087. w2:BreakJoints()
  1088. w2.Anchored = true
  1089. w2.Parent = workspace
  1090. w2.Transparency = 0.7
  1091. table.insert(Effects,{w2,"Disappear",.01})
  1092. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1093. table.insert(list,w2)
  1094. end
  1095. return unpack(list)
  1096. end
  1097.  
  1098.  
  1099. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1100. if hit.Parent == nil then
  1101. return
  1102. end
  1103. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1104. for _, v in pairs(hit.Parent:children()) do
  1105. if v:IsA("Humanoid") then
  1106. h = v
  1107. end
  1108. end
  1109. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1110. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1111. return
  1112. end
  1113. local c = Create("ObjectValue")({
  1114. Name = "creator",
  1115. Value = game:GetService("Players").EzzyCrafts2,
  1116. Parent = h
  1117. })
  1118. game:GetService("Debris"):AddItem(c, 0.5)
  1119. if HitSound ~= nil and HitPitch ~= nil then
  1120. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1121. end
  1122. local Damage = math.random(minim, maxim)
  1123. local blocked = false
  1124. local block = hit.Parent:findFirstChild("Block")
  1125. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1126. blocked = true
  1127. block.Value = block.Value - 1
  1128. print(block.Value)
  1129. end
  1130. if blocked == false then
  1131. local HitHealth = h.Health
  1132. h.MaxHealth = 100
  1133. h.Health = h.Health - Damage
  1134. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1135. print("gained kill")
  1136. dmg(h.Parent)
  1137. end
  1138. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1139. else
  1140. h.Health = h.Health - Damage / 2
  1141. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1142. end
  1143. if Type == "Knockdown" then
  1144. local hum = hit.Parent.Humanoid
  1145. hum.PlatformStand = true
  1146. coroutine.resume(coroutine.create(function(HHumanoid)
  1147. swait(1)
  1148. HHumanoid.PlatformStand = false
  1149. end), hum)
  1150. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1151. local bodvol = Create("BodyVelocity")({
  1152. velocity = angle * knockback,
  1153. P = 5000,
  1154. maxForce = Vector3.new(8000, 8000, 8000),
  1155. Parent = hit
  1156. })
  1157. local rl = Create("BodyAngularVelocity")({
  1158. P = 3000,
  1159. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1160. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1161. Parent = hit
  1162. })
  1163. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1164. game:GetService("Debris"):AddItem(rl, 0.5)
  1165. elseif Type == "Normal" then
  1166. local vp = Create("BodyVelocity")({
  1167. P = 500,
  1168. maxForce = Vector3.new(math.huge, 0, math.huge),
  1169. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1170. })
  1171. if knockback > 0 then
  1172. vp.Parent = hit.Parent.Head
  1173. end
  1174. game:GetService("Debris"):AddItem(vp, 0.5)
  1175. elseif Type == "Up" then
  1176. local bodyVelocity = Create("BodyVelocity")({
  1177. velocity = Vector3.new(0, 20, 0),
  1178. P = 5000,
  1179. maxForce = Vector3.new(8000, 8000, 8000),
  1180. Parent = hit
  1181. })
  1182. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1183. local bodyVelocity = Create("BodyVelocity")({
  1184. velocity = Vector3.new(0, 20, 0),
  1185. P = 5000,
  1186. maxForce = Vector3.new(8000, 8000, 8000),
  1187. Parent = hit
  1188. })
  1189. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1190. elseif Type == "Leech" then
  1191. local hum = hit.Parent.Humanoid
  1192. if hum ~= nil then
  1193. for i = 0, 2 do
  1194. 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)
  1195. end
  1196. Humanoid.Health = Humanoid.Health + 10
  1197. end
  1198. elseif Type == "UpKnock" then
  1199. local hum = hit.Parent.Humanoid
  1200. hum.PlatformStand = true
  1201. if hum ~= nil then
  1202. hitr = true
  1203. end
  1204. coroutine.resume(coroutine.create(function(HHumanoid)
  1205. swait(5)
  1206. HHumanoid.PlatformStand = false
  1207. hitr = false
  1208. end), hum)
  1209. local bodyVelocity = Create("BodyVelocity")({
  1210. velocity = Vector3.new(0, 20, 0),
  1211. P = 5000,
  1212. maxForce = Vector3.new(8000, 8000, 8000),
  1213. Parent = hit
  1214. })
  1215. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1216. local bodyVelocity = Create("BodyVelocity")({
  1217. velocity = Vector3.new(0, 20, 0),
  1218. P = 5000,
  1219. maxForce = Vector3.new(8000, 8000, 8000),
  1220. Parent = hit
  1221. })
  1222. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1223. elseif Type == "Snare" then
  1224. local bp = Create("BodyPosition")({
  1225. P = 2000,
  1226. D = 100,
  1227. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1228. position = hit.Parent.Torso.Position,
  1229. Parent = hit.Parent.Torso
  1230. })
  1231. game:GetService("Debris"):AddItem(bp, 1)
  1232. elseif Type == "Slashnare" then
  1233. 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)
  1234. for i = 1, math.random(4, 5) do
  1235. 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)
  1236. end
  1237. local bp = Create("BodyPosition")({
  1238. P = 2000,
  1239. D = 100,
  1240. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1241. position = hit.Parent.Torso.Position,
  1242. Parent = hit.Parent.Torso
  1243. })
  1244. game:GetService("Debris"):AddItem(bp, 1)
  1245. elseif Type == "Spike" then
  1246. local bp = Create("BodyPosition")({
  1247. P = 2000,
  1248. D = 100,
  1249. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1250. position = hit.Parent.Torso.Position,
  1251. Parent = hit.Parent.Torso
  1252. })
  1253. game:GetService("Debris"):AddItem(bp, 1)
  1254. elseif Type == "Freeze" then
  1255. local BodPos = Create("BodyPosition")({
  1256. P = 50000,
  1257. D = 1000,
  1258. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1259. position = hit.Parent.Torso.Position,
  1260. Parent = hit.Parent.Torso
  1261. })
  1262. local BodGy = Create("BodyGyro")({
  1263. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1264. P = 20000,
  1265. Parent = hit.Parent.Torso,
  1266. cframe = hit.Parent.Torso.CFrame
  1267. })
  1268. hit.Parent.Torso.Anchored = true
  1269. coroutine.resume(coroutine.create(function(Part)
  1270. swait(1.5)
  1271. Part.Anchored = false
  1272. end), hit.Parent.Torso)
  1273. game:GetService("Debris"):AddItem(BodPos, 3)
  1274. game:GetService("Debris"):AddItem(BodGy, 3)
  1275. end
  1276. local debounce = Create("BoolValue")({
  1277. Name = "DebounceHit",
  1278. Parent = hit.Parent,
  1279. Value = true
  1280. })
  1281. game:GetService("Debris"):AddItem(debounce, Delay)
  1282. c = Instance.new("ObjectValue")
  1283. c.Name = "creator"
  1284. c.Value = Player
  1285. c.Parent = h
  1286. game:GetService("Debris"):AddItem(c, 0.5)
  1287. end
  1288. end
  1289. function ShowDamage(Pos, Text, Time, Color)
  1290. local Rate = 0.03333333333333333
  1291. local Pos = Pos or Vector3.new(0, 0, 0)
  1292. local Text = Text or ""
  1293. local Time = Time or 2
  1294. local Color = Color or Color3.new(1, 0, 1)
  1295. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1296. EffectPart.Anchored = true
  1297. local BillboardGui = Create("BillboardGui")({
  1298. Size = UDim2.new(3, 0, 3, 0),
  1299. Adornee = EffectPart,
  1300. Parent = EffectPart
  1301. })
  1302. local TextLabel = Create("TextLabel")({
  1303. BackgroundTransparency = 1,
  1304. Size = UDim2.new(1, 0, 1, 0),
  1305. Text = Text,
  1306. TextColor3 = Color,
  1307. TextScaled = true,
  1308. Font = Enum.Font.ArialBold,
  1309. Parent = BillboardGui
  1310. })
  1311. game.Debris:AddItem(EffectPart, Time + 0.1)
  1312. EffectPart.Parent = game:GetService("Workspace")
  1313. delay(0, function()
  1314. local Frames = Time / Rate
  1315. for Frame = 1, Frames do
  1316. wait(Rate)
  1317. local Percent = Frame / Frames
  1318. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1319. TextLabel.TextTransparency = Percent
  1320. end
  1321. if EffectPart and EffectPart.Parent then
  1322. EffectPart:Destroy()
  1323. end
  1324. end)
  1325. end
  1326. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1327. for _, c in pairs(workspace:children()) do
  1328. local hum = c:findFirstChildOfClass("Humanoid")
  1329. if hum ~= nil then
  1330. local head = c:findFirstChild("Head")
  1331. if head ~= nil then
  1332. local targ = head.Position - Part.Position
  1333. local mag = targ.magnitude
  1334. if magni >= mag and c.Name ~= Player.Name then
  1335. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1336. end
  1337. end
  1338. end
  1339. end
  1340. end
  1341.  
  1342. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1343. for _, c in pairs(workspace:children()) do
  1344. local hum = c:findFirstChild("Humanoid")
  1345. if hum ~= nil then
  1346. local head = c:findFirstChild("Torso")
  1347. if head ~= nil then
  1348. local targ = head.Position - Part.Position
  1349. local mag = targ.magnitude
  1350. if magni >= mag and c.Name ~= Player.Name then
  1351. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1352. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1353. end
  1354. end
  1355. end
  1356. end
  1357. end
  1358.  
  1359. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1360. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1361. end
  1362.  
  1363.  
  1364. function ring(type,pos,scale,value)
  1365. local type = type
  1366. local rng = Instance.new("Part", char)
  1367. rng.Anchored = true
  1368. rng.BrickColor = origcolor
  1369. rng.CanCollide = false
  1370. rng.FormFactor = 3
  1371. rng.Name = "Ring"
  1372. rng.Size = Vector3.new(1, 1, 1)
  1373. rng.Transparency = 0
  1374. rng.TopSurface = 0
  1375. rng.BottomSurface = 0
  1376. rng.CFrame = pos
  1377. local rngm = Instance.new("SpecialMesh", rng)
  1378. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1379. rngm.Scale = scale
  1380. local scaler2 = 1
  1381. if type == "Add" then
  1382. scaler2 = 1*value
  1383. elseif type == "Divide" then
  1384. scaler2 = 1/value
  1385. end
  1386. coroutine.resume(coroutine.create(function()
  1387. for i = 0,10,0.1 do
  1388. swait()
  1389. if type == "Add" then
  1390. scaler2 = scaler2 - 0.01*value
  1391. elseif type == "Divide" then
  1392. scaler2 = scaler2 - 0.01/value
  1393. end
  1394. rng.Transparency = rng.Transparency + 0.01
  1395. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1396. end
  1397. rng:Destroy()
  1398. end))
  1399. end
  1400.  
  1401.  
  1402. function wave(type,pos,scale,value)
  1403. local type = type
  1404. local rng = Instance.new("Part", char)
  1405. rng.Anchored = true
  1406. rng.BrickColor = origcolor
  1407. rng.CanCollide = false
  1408. rng.FormFactor = 3
  1409. rng.Name = "Ring"
  1410. rng.Size = Vector3.new(1, 1, 1)
  1411. rng.Transparency = 0
  1412. rng.TopSurface = 0
  1413. rng.BottomSurface = 0
  1414. rng.CFrame = pos
  1415. local rngm = Instance.new("SpecialMesh", rng)
  1416. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1417. rngm.Scale = scale
  1418. local scaler2 = 1
  1419. if type == "Add" then
  1420. scaler2 = 1*value
  1421. elseif type == "Divide" then
  1422. scaler2 = 1/value
  1423. end
  1424. coroutine.resume(coroutine.create(function()
  1425. for i = 0,10,0.1 do
  1426. swait()
  1427. if type == "Add" then
  1428. scaler2 = scaler2 - 0.01*value
  1429. elseif type == "Divide" then
  1430. scaler2 = scaler2 - 0.01/value
  1431. end
  1432. rng.Transparency = rng.Transparency + 0.01
  1433. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1434. end
  1435. rng:Destroy()
  1436. end))
  1437. end
  1438.  
  1439. function wind(type,pos,scale,value,speed)
  1440. local type = type
  1441. local rng = Instance.new("Part", char)
  1442. rng.Anchored = true
  1443. rng.BrickColor = origcolor
  1444. rng.CanCollide = false
  1445. rng.FormFactor = 3
  1446. rng.Name = "Ring"
  1447. rng.Size = Vector3.new(1, 1, 1)
  1448. rng.Transparency = 0
  1449. rng.TopSurface = 0
  1450. rng.BottomSurface = 0
  1451. rng.CFrame = pos
  1452. local rngm = Instance.new("SpecialMesh", rng)
  1453. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1454. rngm.Scale = scale
  1455. local scaler2 = 1
  1456. if type == "Add" then
  1457. scaler2 = 1*value
  1458. elseif type == "Divide" then
  1459. scaler2 = 1/value
  1460. end
  1461. coroutine.resume(coroutine.create(function()
  1462. for i = 0,10,0.1 do
  1463. swait()
  1464. if type == "Add" then
  1465. scaler2 = scaler2 - 0.01*value
  1466. elseif type == "Divide" then
  1467. scaler2 = scaler2 - 0.01/value
  1468. end
  1469. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  1470. rng.Transparency = rng.Transparency + 0.01
  1471. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1472. end
  1473. rng:Destroy()
  1474. end))
  1475. end
  1476.  
  1477. function groundwind(type,pos,scale,value,speed)
  1478. local type = type
  1479. local rng = Instance.new("Part", char)
  1480. rng.Anchored = true
  1481. rng.BrickColor = origcolor
  1482. rng.CanCollide = false
  1483. rng.FormFactor = 3
  1484. rng.Name = "Ring"
  1485. rng.Size = Vector3.new(1, 1, 1)
  1486. rng.Transparency = 0
  1487. rng.TopSurface = 0
  1488. rng.BottomSurface = 0
  1489. rng.CFrame = pos
  1490. local rngm = Instance.new("SpecialMesh", rng)
  1491. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1492. rngm.Scale = scale
  1493. local scaler2 = 1
  1494. if type == "Add" then
  1495. scaler2 = 1*value
  1496. elseif type == "Divide" then
  1497. scaler2 = 1/value
  1498. end
  1499. coroutine.resume(coroutine.create(function()
  1500. for i = 0,10,0.1 do
  1501. swait()
  1502. if type == "Add" then
  1503. scaler2 = scaler2 - 0.01*value
  1504. elseif type == "Divide" then
  1505. scaler2 = scaler2 - 0.01/value
  1506. end
  1507. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  1508. rng.Transparency = rng.Transparency + 0.01
  1509. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  1510. end
  1511. rng:Destroy()
  1512. end))
  1513. end
  1514.  
  1515. function CameraManager()
  1516. if TwoD and not CamInterrupt then
  1517. if Humanoid.Health > 0 then
  1518. Camera.CameraSubject = Humanoid
  1519. Camera.CameraType = "Scriptable"
  1520. Humanoid.AutoRotate = false
  1521. if Booleans.GyroUse then
  1522. Directer.MaxTorque = Vec3(0, math.huge, 0)
  1523. else
  1524. Directer.MaxTorque = Vec3(0, 0, 0)
  1525. end
  1526. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  1527. if Booleans.CamFollow then
  1528. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  1529. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  1530. else
  1531. CPart.Position = RootPart.Position
  1532. end
  1533. else
  1534. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  1535. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  1536. end
  1537. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  1538. else
  1539. Camera.CameraSubject = Humanoid
  1540. Camera.CameraType = "Custom"
  1541. Controller.Disabled = false
  1542. end
  1543. end
  1544. end
  1545.  
  1546. function ring(type,pos,scale,value)
  1547. local type = type
  1548. local rng = Instance.new("Part", char)
  1549. rng.Anchored = true
  1550. rng.BrickColor = origcolor
  1551. rng.CanCollide = false
  1552. rng.FormFactor = 3
  1553. rng.Name = "Ring"
  1554. rng.Size = Vector3.new(1, 1, 1)
  1555. rng.Transparency = 0
  1556. rng.TopSurface = 0
  1557. rng.BottomSurface = 0
  1558. rng.CFrame = pos
  1559. local rngm = Instance.new("SpecialMesh", rng)
  1560. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1561. rngm.Scale = scale
  1562. local scaler2 = 1
  1563. if type == "Add" then
  1564. scaler2 = 1*value
  1565. elseif type == "Divide" then
  1566. scaler2 = 1/value
  1567. end
  1568. coroutine.resume(coroutine.create(function()
  1569. for i = 0,10,0.1 do
  1570. swait()
  1571. if type == "Add" then
  1572. scaler2 = scaler2 - 0.01*value
  1573. elseif type == "Divide" then
  1574. scaler2 = scaler2 - 0.01/value
  1575. end
  1576. rng.Transparency = rng.Transparency + 0.01
  1577. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1578. end
  1579. rng:Destroy()
  1580. end))
  1581. end
  1582.  
  1583.  
  1584. function wave(type,pos,scale,value)
  1585. local type = type
  1586. local rng = Instance.new("Part", char)
  1587. rng.Anchored = true
  1588. rng.BrickColor = origcolor
  1589. rng.CanCollide = false
  1590. rng.FormFactor = 3
  1591. rng.Name = "Ring"
  1592. rng.Size = Vector3.new(1, 1, 1)
  1593. rng.Transparency = 0
  1594. rng.TopSurface = 0
  1595. rng.BottomSurface = 0
  1596. rng.CFrame = pos
  1597. local rngm = Instance.new("SpecialMesh", rng)
  1598. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1599. rngm.Scale = scale
  1600. local scaler2 = 1
  1601. if type == "Add" then
  1602. scaler2 = 1*value
  1603. elseif type == "Divide" then
  1604. scaler2 = 1/value
  1605. end
  1606. coroutine.resume(coroutine.create(function()
  1607. for i = 0,10,0.1 do
  1608. swait()
  1609. if type == "Add" then
  1610. scaler2 = scaler2 - 0.01*value
  1611. elseif type == "Divide" then
  1612. scaler2 = scaler2 - 0.01/value
  1613. end
  1614. rng.Transparency = rng.Transparency + 0.01
  1615. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1616. end
  1617. rng:Destroy()
  1618. end))
  1619. end
  1620.  
  1621. function sphere(bonuspeed,type,pos,scale,value,color)
  1622. local type = type
  1623. local rng = Instance.new("Part", char)
  1624. rng.Anchored = true
  1625. if ModeOfGlitch ~= 9 then
  1626. rng.BrickColor = color
  1627. elseif ModeOfGlitch == 9 then
  1628. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1629. end
  1630. rng.CanCollide = false
  1631. rng.FormFactor = 3
  1632. rng.Name = "Ring"
  1633. rng.Material = "Neon"
  1634. rng.Size = Vector3.new(1, 1, 1)
  1635. rng.Transparency = 0
  1636. rng.TopSurface = 0
  1637. rng.BottomSurface = 0
  1638. rng.CFrame = pos
  1639. local rngm = Instance.new("SpecialMesh", rng)
  1640. rngm.MeshType = "Sphere"
  1641. rngm.Scale = scale
  1642. if rainbowmode == true then
  1643. rng.Color = Color3.new(r/255,g/255,b/255)
  1644. end
  1645. if ModeOfGlitch == 9 then
  1646. coroutine.resume(coroutine.create(function()
  1647. while true do
  1648. swait()
  1649. if rng.Parent ~= nil then
  1650. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1651. else
  1652. break
  1653. end
  1654. end
  1655. end))
  1656. end
  1657. local scaler2 = 1
  1658. if type == "Add" then
  1659. scaler2 = 1*value
  1660. elseif type == "Divide" then
  1661. scaler2 = 1/value
  1662. end
  1663. coroutine.resume(coroutine.create(function()
  1664. for i = 0,10/bonuspeed,0.1 do
  1665. swait()
  1666. if rainbowmode == true then
  1667. rng.Color = Color3.new(r/255,g/255,b/255)
  1668. end
  1669. if type == "Add" then
  1670. scaler2 = scaler2 - 0.01*value/bonuspeed
  1671. elseif type == "Divide" then
  1672. scaler2 = scaler2 - 0.01/value*bonuspeed
  1673. end
  1674. if chaosmode == true then
  1675. rng.BrickColor = BrickColor.random()
  1676. end
  1677. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1678. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1679. end
  1680. rng:Destroy()
  1681. end))
  1682. end
  1683.  
  1684. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  1685. local type = type
  1686. local rng = Instance.new("Part", char)
  1687. rng.Anchored = true
  1688. if ModeOfGlitch ~= 9 then
  1689. rng.BrickColor = color
  1690. elseif ModeOfGlitch == 9 then
  1691. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1692. end
  1693. rng.CanCollide = false
  1694. rng.FormFactor = 3
  1695. rng.Name = "Ring"
  1696. rng.Material = "Neon"
  1697. rng.Size = Vector3.new(1, 1, 1)
  1698. rng.Transparency = 0
  1699. rng.TopSurface = 0
  1700. rng.BottomSurface = 0
  1701. rng.CFrame = pos
  1702. local rngm = Instance.new("SpecialMesh", rng)
  1703. rngm.MeshType = "Sphere"
  1704. rngm.Scale = scale
  1705. local scaler2 = 1
  1706. local scaler2b = 1
  1707. local scaler2c = 1
  1708. if type == "Add" then
  1709. scaler2 = 1*value
  1710. scaler2b = 1*value2
  1711. scaler2c = 1*value3
  1712. elseif type == "Divide" then
  1713. scaler2 = 1/value
  1714. scaler2b = 1/value2
  1715. scaler2c = 1/value3
  1716. end
  1717. if ModeOfGlitch == 9 then
  1718. coroutine.resume(coroutine.create(function()
  1719. while true do
  1720. swait()
  1721. if rng.Parent ~= nil then
  1722. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1723. else
  1724. break
  1725. end
  1726. end
  1727. end))
  1728. end
  1729. coroutine.resume(coroutine.create(function()
  1730. for i = 0,10/bonuspeed,0.1 do
  1731. swait()
  1732. if type == "Add" then
  1733. scaler2 = scaler2 - 0.01*value/bonuspeed
  1734. scaler2b = scaler2b - 0.01*value/bonuspeed
  1735. scaler2c = scaler2c - 0.01*value/bonuspeed
  1736. elseif type == "Divide" then
  1737. scaler2 = scaler2 - 0.01/value*bonuspeed
  1738. scaler2b = scaler2b - 0.01/value*bonuspeed
  1739. scaler2c = scaler2c - 0.01/value*bonuspeed
  1740. end
  1741. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1742. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1743. end
  1744. rng:Destroy()
  1745. end))
  1746. end
  1747.  
  1748. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  1749. local type = type
  1750. local rotenable = rotatingop
  1751. local rng = Instance.new("Part", char)
  1752. rng.Anchored = true
  1753. rng.BrickColor = color
  1754. rng.CanCollide = false
  1755. rng.FormFactor = 3
  1756. rng.Name = "Ring"
  1757. rng.Material = "Neon"
  1758. rng.Size = Vector3.new(1, 1, 1)
  1759. rng.Transparency = 0
  1760. if typeoftrans == "In" then
  1761. rng.Transparency = 1
  1762. end
  1763. rng.TopSurface = 0
  1764. rng.BottomSurface = 0
  1765. rng.CFrame = pos
  1766. local rngm = Instance.new("SpecialMesh", rng)
  1767. rngm.MeshType = "FileMesh"
  1768. if typeofshape == "Normal" then
  1769. rngm.MeshId = "rbxassetid://662586858"
  1770. elseif typeofshape == "Round" then
  1771. rngm.MeshId = "rbxassetid://662585058"
  1772. end
  1773. rngm.Scale = scale
  1774. local scaler2 = 1/10
  1775. if type == "Add" then
  1776. scaler2 = 1*value/10
  1777. elseif type == "Divide" then
  1778. scaler2 = 1/value/10
  1779. end
  1780. local randomrot = math.random(1,2)
  1781. coroutine.resume(coroutine.create(function()
  1782. for i = 0,10/bonuspeed,0.1 do
  1783. swait()
  1784. if type == "Add" then
  1785. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  1786. elseif type == "Divide" then
  1787. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  1788. end
  1789. if rotenable == true then
  1790. if randomrot == 1 then
  1791. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  1792. elseif randomrot == 2 then
  1793. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  1794. end
  1795. end
  1796. if typeoftrans == "Out" then
  1797. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1798. elseif typeoftrans == "In" then
  1799. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1800. end
  1801. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  1802. end
  1803. rng:Destroy()
  1804. end))
  1805. end
  1806.  
  1807. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1808. local type = type
  1809. local rng = Instance.new("Part", char)
  1810. rng.Anchored = true
  1811. rng.BrickColor = color
  1812. rng.CanCollide = false
  1813. rng.FormFactor = 3
  1814. rng.Name = "Ring"
  1815. rng.Material = "Neon"
  1816. rng.Size = Vector3.new(1, 1, 1)
  1817. rng.Transparency = 0
  1818. rng.TopSurface = 0
  1819. rng.BottomSurface = 0
  1820. rng.CFrame = pos
  1821. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1822. local rngm = Instance.new("SpecialMesh", rng)
  1823. rngm.MeshType = "Brick"
  1824. rngm.Scale = vt(x1,y1,z1)
  1825. if rainbowmode == true then
  1826. rng.Color = Color3.new(r/255,g/255,b/255)
  1827. end
  1828. local scaler2 = 1
  1829. local speeder = FastSpeed/10
  1830. if type == "Add" then
  1831. scaler2 = 1*value
  1832. elseif type == "Divide" then
  1833. scaler2 = 1/value
  1834. end
  1835. coroutine.resume(coroutine.create(function()
  1836. for i = 0,10/bonuspeed,0.1 do
  1837. swait()
  1838. if rainbowmode == true then
  1839. rng.Color = Color3.new(r/255,g/255,b/255)
  1840. end
  1841. if type == "Add" then
  1842. scaler2 = scaler2 - 0.01*value/bonuspeed
  1843. elseif type == "Divide" then
  1844. scaler2 = scaler2 - 0.01/value*bonuspeed
  1845. end
  1846. if chaosmode == true then
  1847. rng.BrickColor = BrickColor.random()
  1848. end
  1849. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  1850. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1851. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1852. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1853. end
  1854. rng:Destroy()
  1855. end))
  1856. end
  1857.  
  1858. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1859. local type = type
  1860. local rng = Instance.new("Part", char)
  1861. rng.Anchored = true
  1862. rng.BrickColor = color
  1863. rng.CanCollide = false
  1864. rng.FormFactor = 3
  1865. rng.Name = "Ring"
  1866. rng.Material = "Neon"
  1867. rng.Size = Vector3.new(1, 1, 1)
  1868. rng.Transparency = 0
  1869. rng.TopSurface = 0
  1870. rng.BottomSurface = 0
  1871. rng.CFrame = pos
  1872. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1873. local rngm = Instance.new("SpecialMesh", rng)
  1874. rngm.MeshType = "Brick"
  1875. rngm.Scale = vt(x1,y1,z1)
  1876. if rainbowmode == true then
  1877. rng.Color = Color3.new(r/255,g/255,b/255)
  1878. end
  1879. local scaler2 = 1
  1880. local speeder = FastSpeed/10
  1881. if type == "Add" then
  1882. scaler2 = 1*value
  1883. elseif type == "Divide" then
  1884. scaler2 = 1/value
  1885. end
  1886. coroutine.resume(coroutine.create(function()
  1887. for i = 0,10/bonuspeed,0.1 do
  1888. swait()
  1889. if rainbowmode == true then
  1890. rng.Color = Color3.new(r/255,g/255,b/255)
  1891. end
  1892. if type == "Add" then
  1893. scaler2 = scaler2 - 0.01*value/bonuspeed
  1894. elseif type == "Divide" then
  1895. scaler2 = scaler2 - 0.01/value*bonuspeed
  1896. end
  1897. if chaosmode == true then
  1898. rng.BrickColor = BrickColor.random()
  1899. end
  1900. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  1901. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1902. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1903. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1904. end
  1905. rng:Destroy()
  1906. end))
  1907. end
  1908.  
  1909. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1910. local type = type
  1911. local rng = Instance.new("Part", char)
  1912. rng.Anchored = true
  1913. rng.BrickColor = color
  1914. rng.CanCollide = false
  1915. rng.FormFactor = 3
  1916. rng.Name = "Ring"
  1917. rng.Material = "Neon"
  1918. rng.Size = Vector3.new(1, 1, 1)
  1919. rng.Transparency = 0
  1920. rng.TopSurface = 0
  1921. rng.BottomSurface = 0
  1922. rng.CFrame = pos
  1923. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1924. local rngm = Instance.new("SpecialMesh", rng)
  1925. rngm.MeshType = "Brick"
  1926. rngm.Scale = vt(x1,y1,z1)
  1927. if rainbowmode == true then
  1928. rng.Color = Color3.new(r/255,g/255,b/255)
  1929. end
  1930. local scaler2 = 0
  1931. local speeder = FastSpeed/10
  1932. if type == "Add" then
  1933. scaler2 = 1*value
  1934. elseif type == "Divide" then
  1935. scaler2 = 1/value
  1936. end
  1937. coroutine.resume(coroutine.create(function()
  1938. for i = 0,10/bonuspeed,0.1 do
  1939. swait()
  1940. if rainbowmode == true then
  1941. rng.Color = Color3.new(r/255,g/255,b/255)
  1942. end
  1943. if type == "Add" then
  1944. scaler2 = scaler2 - 0.01*value/bonuspeed
  1945. elseif type == "Divide" then
  1946. scaler2 = scaler2 - 0.01/value*bonuspeed
  1947. end
  1948. if chaosmode == true then
  1949. rng.BrickColor = BrickColor.random()
  1950. end
  1951. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  1952. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1953. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1954. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1955. end
  1956. rng:Destroy()
  1957. end))
  1958. end
  1959.  
  1960. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  1961. local type = type
  1962. local rng = Instance.new("Part", char)
  1963. rng.Anchored = true
  1964. rng.BrickColor = color
  1965. rng.Color = color3
  1966. rng.CanCollide = false
  1967. rng.FormFactor = 3
  1968. rng.Name = "Ring"
  1969. rng.Material = "Neon"
  1970. rng.Size = Vector3.new(1, 1, 1)
  1971. rng.Transparency = 0
  1972. rng.TopSurface = 0
  1973. rng.BottomSurface = 0
  1974. rng.CFrame = pos
  1975. local rngm = Instance.new("SpecialMesh", rng)
  1976. rngm.MeshType = "Brick"
  1977. rngm.Scale = scale
  1978. local scaler2 = 1
  1979. local scaler2b = 1
  1980. local scaler2c = 1
  1981. if type == "Add" then
  1982. scaler2 = 1*value
  1983. scaler2b = 1*value2
  1984. scaler2c = 1*value3
  1985. elseif type == "Divide" then
  1986. scaler2 = 1/value
  1987. scaler2b = 1/value2
  1988. scaler2c = 1/value3
  1989. end
  1990. coroutine.resume(coroutine.create(function()
  1991. for i = 0,10/bonuspeed,0.1 do
  1992. swait()
  1993. if type == "Add" then
  1994. scaler2 = scaler2 - 0.01*value/bonuspeed
  1995. scaler2b = scaler2b - 0.01*value/bonuspeed
  1996. scaler2c = scaler2c - 0.01*value/bonuspeed
  1997. elseif type == "Divide" then
  1998. scaler2 = scaler2 - 0.01/value*bonuspeed
  1999. scaler2b = scaler2b - 0.01/value*bonuspeed
  2000. scaler2c = scaler2c - 0.01/value*bonuspeed
  2001. end
  2002. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2003. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2004. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2005. end
  2006. rng:Destroy()
  2007. end))
  2008. end
  2009.  
  2010. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2011. local type = type
  2012. local rng = Instance.new("Part", char)
  2013. rng.Anchored = true
  2014. if ModeOfGlitch ~= 9 then
  2015. rng.BrickColor = color
  2016. elseif ModeOfGlitch == 9 then
  2017. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2018. end
  2019. rng.CanCollide = false
  2020. rng.FormFactor = 3
  2021. rng.Name = "Ring"
  2022. rng.Material = "Neon"
  2023. rng.Size = Vector3.new(1, 1, 1)
  2024. rng.Transparency = 0
  2025. rng.TopSurface = 0
  2026. rng.BottomSurface = 0
  2027. rng.CFrame = pos
  2028. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2029. local rngm = Instance.new("SpecialMesh", rng)
  2030. rngm.MeshType = "Sphere"
  2031. rngm.Scale = vt(x1,y1,z1)
  2032. if rainbowmode == true then
  2033. rng.Color = Color3.new(r/255,g/255,b/255)
  2034. end
  2035. if ModeOfGlitch == 9 then
  2036. coroutine.resume(coroutine.create(function()
  2037. while true do
  2038. swait()
  2039. if rng.Parent ~= nil then
  2040. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2041. else
  2042. break
  2043. end
  2044. end
  2045. end))
  2046. end
  2047. local scaler2 = 1
  2048. local speeder = FastSpeed
  2049. if type == "Add" then
  2050. scaler2 = 1*value
  2051. elseif type == "Divide" then
  2052. scaler2 = 1/value
  2053. end
  2054. coroutine.resume(coroutine.create(function()
  2055. for i = 0,10/bonuspeed,0.1 do
  2056. swait()
  2057. if rainbowmode == true then
  2058. rng.Color = Color3.new(r/255,g/255,b/255)
  2059. end
  2060. if type == "Add" then
  2061. scaler2 = scaler2 - 0.01*value/bonuspeed
  2062. elseif type == "Divide" then
  2063. scaler2 = scaler2 - 0.01/value*bonuspeed
  2064. end
  2065. if chaosmode == true then
  2066. rng.BrickColor = BrickColor.random()
  2067. end
  2068. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2069. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2070. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2071. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2072. end
  2073. rng:Destroy()
  2074. end))
  2075. end
  2076.  
  2077.  
  2078. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2079. local type = type
  2080. local rng = Instance.new("Part", char)
  2081. rng.Anchored = true
  2082. if ModeOfGlitch ~= 9 then
  2083. rng.BrickColor = color
  2084. elseif ModeOfGlitch == 9 then
  2085. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2086. end
  2087. rng.CanCollide = false
  2088. rng.FormFactor = 3
  2089. rng.Name = "Ring"
  2090. rng.Material = "Neon"
  2091. rng.Size = Vector3.new(1, 1, 1)
  2092. rng.Transparency = 1
  2093. rng.TopSurface = 0
  2094. rng.BottomSurface = 0
  2095. rng.CFrame = pos
  2096. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2097. local rngm = Instance.new("SpecialMesh", rng)
  2098. rngm.MeshType = "Sphere"
  2099. rngm.Scale = vt(x1,y1,z1)
  2100. if rainbowmode == true then
  2101. rng.Color = Color3.new(r/255,g/255,b/255)
  2102. end
  2103. if ModeOfGlitch == 9 then
  2104. coroutine.resume(coroutine.create(function()
  2105. while true do
  2106. swait()
  2107. if rng.Parent ~= nil then
  2108. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2109. else
  2110. break
  2111. end
  2112. end
  2113. end))
  2114. end
  2115. local scaler2 = 1
  2116. local speeder = FastSpeed
  2117. if type == "Add" then
  2118. scaler2 = 1*value
  2119. elseif type == "Divide" then
  2120. scaler2 = 1/value
  2121. end
  2122. coroutine.resume(coroutine.create(function()
  2123. for i = 0,10/bonuspeed,0.1 do
  2124. swait()
  2125. if rainbowmode == true then
  2126. rng.Color = Color3.new(r/255,g/255,b/255)
  2127. end
  2128. if type == "Add" then
  2129. scaler2 = scaler2 - 0.01*value/bonuspeed
  2130. elseif type == "Divide" then
  2131. scaler2 = scaler2 - 0.01/value*bonuspeed
  2132. end
  2133. if chaosmode == true then
  2134. rng.BrickColor = BrickColor.random()
  2135. end
  2136. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2137. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2138. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2139. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2140. end
  2141. rng:Destroy()
  2142. end))
  2143. end
  2144.  
  2145. function dmg(dude)
  2146. if dude.Name ~= Character then
  2147. local keptcolor = BrickColor.new("Alder")
  2148. local bgf = Instance.new("BodyGyro",dude.Head)
  2149. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2150. --[[local val = Instance.new("BoolValue",dude)
  2151. val.Name = "IsHit"]]--
  2152. local ds = coroutine.wrap(function()
  2153. dude:WaitForChild("Head"):BreakJoints()
  2154. for i, v in pairs(dude:GetChildren()) do
  2155. if v:IsA("Part") or v:IsA("MeshPart") then
  2156. v.Name = "DEMINISHED"
  2157. end
  2158. end
  2159. wait(0.5)
  2160. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2161. coroutine.resume(coroutine.create(function()
  2162. for i, v in pairs(dude:GetChildren()) do
  2163. if v:IsA("Accessory") then
  2164. v:Destroy()
  2165. end
  2166. if v:IsA("Humanoid") then
  2167. v:Destroy()
  2168. end
  2169. if v:IsA("CharacterMesh") then
  2170. v:Destroy()
  2171. end
  2172. if v:IsA("Model") then
  2173. v:Destroy()
  2174. end
  2175. if v:IsA("Part") or v:IsA("MeshPart") then
  2176. for x, o in pairs(v:GetChildren()) do
  2177. if o:IsA("Decal") then
  2178. o:Destroy()
  2179. end
  2180. end
  2181. coroutine.resume(coroutine.create(function()
  2182. v.Material = "Neon"
  2183. v.CanCollide = false
  2184. v.Anchored = false
  2185. local bld = Instance.new("ParticleEmitter",v)
  2186. bld.LightEmission = 0.75
  2187. bld.Texture = "rbxassetid://363275192" ---284205403
  2188. bld.Color = ColorSequence.new(keptcolor.Color)
  2189. bld.Rate = 500
  2190. bld.Lifetime = NumberRange.new(1)
  2191. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2192. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2193. bld.Speed = NumberRange.new(2,5)
  2194. bld.VelocitySpread = 50000
  2195. bld.Rotation = NumberRange.new(-500,500)
  2196. bld.RotSpeed = NumberRange.new(-500,500)
  2197. local sbs = Instance.new("BodyPosition", v)
  2198. sbs.P = 3000
  2199. sbs.D = 1000
  2200. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2201. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2202. v.Color = keptcolor.Color
  2203. coroutine.resume(coroutine.create(function()
  2204. for i = 0, 49 do
  2205. swait(1)
  2206. v:BreakJoints()
  2207. v.Transparency = v.Transparency + 0.02
  2208. end
  2209. v:BreakJoints()
  2210. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2211. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2212. bld.Speed = NumberRange.new(10,25)
  2213. bld.Drag = 5
  2214. bld.Acceleration = vt(0,2,0)
  2215. wait(0.5)
  2216. bld.Enabled = false
  2217. wait(8)
  2218. v:Destroy()
  2219. dude:Destroy()
  2220. end))
  2221. end))
  2222. end
  2223. end
  2224. end))
  2225. end)
  2226. ds()
  2227. end
  2228. end
  2229.  
  2230.  
  2231. function FindNearestHead(Position, Distance, SinglePlayer)
  2232. if SinglePlayer then
  2233. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2234. end
  2235. local List = {}
  2236. for i, v in pairs(workspace:GetChildren()) do
  2237. if v:IsA("Model") then
  2238. if v:findFirstChild("Head") then
  2239. if v ~= Character then
  2240. if (v.Head.Position - Position).magnitude <= Distance then
  2241. table.insert(List, v)
  2242. end
  2243. end
  2244. end
  2245. end
  2246. end
  2247. return List
  2248. end
  2249.  
  2250. function FaceMouse()
  2251. Cam = workspace.CurrentCamera
  2252. return {
  2253. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2254. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2255. }
  2256. end
  2257.  
  2258. function FaceMouse2()
  2259. Cam = workspace.CurrentCamera
  2260. return {
  2261. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2262. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2263. }
  2264. end
  2265.  
  2266. -- Functions are ready.
  2267. local storehumanoidWS = 16
  2268.  
  2269. function createBGCircle(size,parent,color)
  2270. local bgui = Instance.new("BillboardGui",parent)
  2271. bgui.Size = UDim2.new(size, 0, size, 0)
  2272. local imgc = Instance.new("ImageLabel",bgui)
  2273. imgc.BackgroundTransparency = 1
  2274. imgc.ImageTransparency = 0
  2275. imgc.Size = UDim2.new(1,0,1,0)
  2276. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  2277. imgc.ImageColor3 = color
  2278. return bgui,imgc
  2279. end
  2280.  
  2281. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  2282. local bgui,imgc = createBGCircle(size,guipar,color)
  2283. bgui.AlwaysOnTop = true
  2284. imgc.Image = "rbxassetid://" ..img
  2285. local rrot = math.random(1,2)
  2286. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  2287. coroutine.resume(coroutine.create(function()
  2288. for i = 0, 24*delay do
  2289. swait()
  2290. if rotationenabled == true then
  2291. if rrot == 1 then
  2292. imgc.Rotation = imgc.Rotation + rotsp
  2293. elseif rrot == 2 then
  2294. imgc.Rotation = imgc.Rotation - rotsp
  2295. end
  2296. end
  2297. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  2298. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  2299. end
  2300. bgui:Destroy()
  2301. end))
  2302. end
  2303.  
  2304. local actualrotationvalue = 0
  2305.  
  2306. function Laserbeamy()
  2307. attack = true
  2308. hum.WalkSpeed = 0
  2309. CFuncs["Sound"].Create("rbxassetid://289315275", handlex, 7.5, 1)
  2310. CFuncs["Sound"].Create("rbxassetid://1521621176", handlex, 5,1)
  2311. CFuncs["Sound"].Create("rbxassetid://418302853", handlex, 6.5, 1)
  2312. CFuncs["TimeSound"].Create("rbxassetid://184173042", handlex, 5, 1,0,2.75)
  2313. CFuncs["Sound"].Create("rbxassetid://898407368", handlex, 1.75, 1.2)
  2314. CFuncs["Sound"].Create("rbxassetid://1930016365", handlex, 1.75, 1.1)
  2315. CFuncs["Sound"].Create("rbxassetid://1752639888", handlex, 1.5, 1)
  2316. local efec = Instance.new("ParticleEmitter",handlex)
  2317. efec.Texture = "rbxassetid://2109052855"
  2318. efec.LightEmission = 1
  2319. efec.Color = ColorSequence.new(BrickColor.new("Alder").Color)
  2320. efec.Rate = 10
  2321. efec.Lifetime = NumberRange.new(0.75)
  2322. efec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.8,7.5,0),NumberSequenceKeypoint.new(1,0,0)})
  2323. efec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.25,0),NumberSequenceKeypoint.new(0.6,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  2324. efec.Drag = 5
  2325. efec.LockedToPart = true
  2326. efec.Rotation = NumberRange.new(-500,500)
  2327. efec.VelocitySpread = 9000
  2328. efec.Speed = NumberRange.new(0)
  2329. efec.RotSpeed = NumberRange.new(-500,500)
  2330. local efec2 = efec:Clone()
  2331. efec2.LightEmission = 1
  2332. efec2.Texture = "rbxassetid://2092248396"
  2333. efec2.Parent = handlex
  2334. efec2.Rate = 10
  2335. efec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,17.5,0),NumberSequenceKeypoint.new(0.5,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,100,0)})
  2336. efec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2337. efec2.RotSpeed = NumberRange.new(-100,100)
  2338. for i = 0,10,0.1 do
  2339. swait()
  2340. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  2341. actualrotationvalue = actualrotationvalue + 14
  2342. handlexweld.C0=clerp(handlexweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2343. handlexweld.C1=clerp(handlexweld.C1,cf(0,-2,5)*angles(math.rad(-5),math.rad(60),math.rad(0)),.3)
  2344. sphere2(5,"Add",handlex.CFrame,vt(4,4,0.1),0.005,0.005,0.005,BrickColor.new("Alder"))
  2345. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)* angles(math.rad(5),math.rad(0),math.rad(60)),0.5)
  2346. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(-60)),.5)
  2347. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(0), math.rad(60)), 0.5)
  2348. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.5)
  2349. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-30),math.rad(15)),.5)
  2350. 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(-4.5),math.rad(0),math.rad(10)),.5)
  2351. end
  2352. efec.Enabled = false
  2353. efec2.Enabled = false
  2354. game:GetService("Debris"):AddItem(efec, 5)
  2355. game:GetService("Debris"):AddItem(efec2, 5)
  2356. CFuncs["Sound"].Create("rbxassetid://919941001", handlex, 8, 1.1)
  2357. sphere2(5,"Add",handlex.CFrame,vt(4,4,0.1),0.5,0.5,0.005,BrickColor.new("Alder"))
  2358. sphere2(4,"Add",handlex.CFrame,vt(4,4,0.1),0.5,0.5,0.005,BrickColor.new("Alder"))
  2359. sphere2(3,"Add",handlex.CFrame,vt(4,4,0.1),0.5,0.5,0.005,BrickColor.new("Alder"))
  2360. for i = 0, 14 do
  2361. slash(math.random(10,40)/10,5,true,"Round","Add","Out",handlex.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(30,70)/250,BrickColor.new("White"))
  2362. end
  2363. for i = 0, 24 do
  2364. for i = 0,1,0.6 do
  2365. swait()
  2366. hum.CameraOffset = vt(math.random(-10,10)/60,math.random(-10,10)/60,math.random(-10,10)/60)
  2367. actualrotationvalue = actualrotationvalue + 14
  2368. handlexweld.C0=clerp(handlexweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2369. handlexweld.C1=clerp(handlexweld.C1,cf(0,-2,5)*angles(math.rad(-5),math.rad(60),math.rad(0)),.3)
  2370. sphere2(5,"Add",handlex.CFrame,vt(4,4,0.1),0.005,0.005,0.005,BrickColor.new("Alder"))
  2371. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)* angles(math.rad(5),math.rad(0),math.rad(60)),0.5)
  2372. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(-60)),.5)
  2373. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(0), math.rad(60)), 0.5)
  2374. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.5)
  2375. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-30),math.rad(15)),.5)
  2376. 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(-4.5),math.rad(0),math.rad(10)),.5)
  2377. end
  2378. local orb = Instance.new("Part", char)
  2379. CFuncs["Sound"].Create("rbxassetid://1146690130", handlex, 2,1.25)
  2380. orb.BrickColor = BrickColor.new("Alder")
  2381. orb.CanCollide = false
  2382. orb.FormFactor = 3
  2383. orb.Name = "Ring"
  2384. orb.Material = "Neon"
  2385. orb.Size = Vector3.new(1, 1, 1)
  2386. orb.Transparency = 1
  2387. orb.TopSurface = 0
  2388. orb.BottomSurface = 0
  2389. orb.Anchored = true
  2390. orb.CFrame = handlex.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,1))
  2391. local a = Instance.new("Part",char)
  2392. a.Name = "Direction"
  2393. a.Anchored = true
  2394. a.BrickColor = BrickColor.new("Alder")
  2395. a.Material = "Neon"
  2396. a.Transparency = 0.25
  2397. a.Shape = "Cylinder"
  2398. local ht = Instance.new("Part",char)
  2399. ht.Name = "DirectionHit"
  2400. ht.Anchored = true
  2401. ht.BrickColor = BrickColor.new("Alder")
  2402. ht.CanCollide = false
  2403. ht.Transparency = 1
  2404. ht.Size = vt(0.1,0.1,0.1)
  2405. CFuncs["Sound"].Create("rbxassetid://206049428", ht, 3, 1)
  2406. CFuncs["Sound"].Create("rbxassetid://824687369", ht, 6, 1)
  2407. CFuncs["Sound"].Create("rbxassetid://698224146", ht, 4, 1)
  2408. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 4, 1.1)
  2409. a.CanCollide = false
  2410. local ray = Ray.new(
  2411. orb.CFrame.p, -- origin
  2412. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2413. )
  2414. local ignore = char
  2415. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2416. a.BottomSurface = 10
  2417. a.TopSurface = 10
  2418. local distance = (orb.CFrame.p - position).magnitude
  2419. a.Size = Vector3.new(distance,1,1)
  2420. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2421. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  2422. sphere2(3,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.35,0.35,0.35,BrickColor.new("Alder"))
  2423. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.35,0.35,0.35,BrickColor.new("Alder"))
  2424. MagniDamage(ht, 15, 70,95, 0, "Normal")
  2425. for i = 0, 4 do
  2426. slash(math.random(10,60)/10,5,true,"Round","Add","Out",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,80)/250,BrickColor.new("White"))
  2427. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,1,3),-0.015,1.5,-0.015,BrickColor.new("Alder"))
  2428. local rsiz = math.random(30,60)
  2429. sphereMK(math.random(2,4),0.75,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Alder"),0)
  2430. end
  2431. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  2432. local msh = Instance.new("SpecialMesh",a)
  2433. msh.MeshType = "Cylinder"
  2434. msh.Scale = vt(1,2,2)
  2435. coroutine.resume(coroutine.create(function()
  2436. for i = 0, 49 do
  2437. swait()
  2438. msh.Scale = msh.Scale - vt(0,0.04,0.04)
  2439. a.Transparency = a.Transparency + 0.02
  2440. end
  2441. a:Destroy()
  2442. ht:Destroy()
  2443. orb:Destroy()
  2444. end))
  2445. end
  2446. hum.WalkSpeed = 16
  2447. attack = false
  2448. end
  2449.  
  2450. function uselessnuke()
  2451. attack = true
  2452. local vel = Instance.new("BodyPosition", root)
  2453. vel.P = 25000
  2454. vel.D = 1000
  2455. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  2456. vel.position = root.CFrame.p + vt(0,250,0)
  2457. CFuncs["Sound"].Create("rbxassetid://1295446488", char, 1.5, 0.8)
  2458. for i = 0, 49 do
  2459. coroutine.resume(coroutine.create(function()
  2460. slash(math.random(10,100)/10,3,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.05,0.01,0.05),math.random(25,500)/250,BrickColor.new("White"))
  2461. end))
  2462. end
  2463. for i = 0, 4, 0.1 do
  2464. swait()
  2465. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-25)),.8)
  2466. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(25)),.8)
  2467. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  2468. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.8)
  2469. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-57)),.8)
  2470. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(83),math.rad(0),math.rad(58)),.8)
  2471. end
  2472. wait(2)
  2473. local efec = Instance.new("ParticleEmitter",root)
  2474. efec.Texture = "rbxassetid://2109052855"
  2475. efec.LightEmission = 1
  2476. efec.Color = ColorSequence.new(BrickColor.new("Pastel light blue").Color)
  2477. efec.Rate = 15
  2478. efec.Lifetime = NumberRange.new(1)
  2479. efec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,100,0),NumberSequenceKeypoint.new(0.2,50,0),NumberSequenceKeypoint.new(0.6,125,0),NumberSequenceKeypoint.new(0.8,175,0),NumberSequenceKeypoint.new(1,20,0)})
  2480. efec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.25,0),NumberSequenceKeypoint.new(0.6,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  2481. efec.Drag = 5
  2482. efec.LockedToPart = true
  2483. efec.Rotation = NumberRange.new(-500,500)
  2484. efec.VelocitySpread = 9000
  2485. efec.RotSpeed = NumberRange.new(-500,500)
  2486. local efec2 = efec:Clone()
  2487. efec2.LightEmission = 1
  2488. efec2.Texture = "rbxassetid://2092248396"
  2489. efec2.Parent = root
  2490. efec2.Rate = 30
  2491. efec2.Lifetime = NumberRange.new(1)
  2492. efec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,175,0),NumberSequenceKeypoint.new(0.5,150,0),NumberSequenceKeypoint.new(0.8,500,0),NumberSequenceKeypoint.new(1,1000,0)})
  2493. efec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2494. efec2.Speed = NumberRange.new(0)
  2495. efec2.RotSpeed = NumberRange.new(-100,100)
  2496. sphere2(1,"Add",root.CFrame,vt(500,500,500),-10,-10,-10,BrickColor.new("Alder"))
  2497. sphere2(1,"Add",root.CFrame,vt(750,750,750),-15,-15,-15,BrickColor.new("Pastel light blue"))
  2498. CFuncs["LongSound"].Create("rbxassetid://1930483671", char, 10, 1)
  2499. wait(2)
  2500. CameraEnshaking(20,50)
  2501. CFuncs["Sound"].Create("rbxassetid://1368605755", char, 10, 1)
  2502. CFuncs["Sound"].Create("rbxassetid://763718160", char, 5, 0.5)
  2503. CFuncs["Sound"].Create("rbxassetid://763718160", char, 5, 0.25)
  2504. CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 1)
  2505. CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 0.75)
  2506. CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.5)
  2507. CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.25)
  2508. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 10, 1)
  2509. CFuncs["Sound"].Create("rbxassetid://239000203", char, 10, 1)
  2510. coroutine.resume(coroutine.create(function()
  2511. for i = 0, 74, 0.1 do
  2512. swait()
  2513. MagniDamage(root, 1500000, 999999,99999999, 0, "Normal")
  2514. coroutine.resume(coroutine.create(function()
  2515. for i = 0, 2 do
  2516. slash(math.random(10,40)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(250,2500)/250,BrickColor.new("White"))
  2517. end
  2518. slash(math.random(30,90)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),math.random(2,5)/250,BrickColor.new("Alder"))
  2519. sphere2(10,"Add",root.CFrame,vt(30,100000,30),2.5,100,2.5,BrickColor.new("Alder"))
  2520. sphere2(10,"Add",root.CFrame,vt(50,100000,50),3,100,3,BrickColor.new("Pastel light blue"))
  2521. sphere2(10,"Add",root.CFrame,vt(10,10,10),5,5,5,BrickColor.new("Alder"))
  2522. sphere2(10,"Add",root.CFrame,vt(10,10,10),10,10,10,BrickColor.new("Pastel light blue"))
  2523. end))
  2524. end
  2525. vel:Destroy()
  2526. attack = false
  2527. efec.Enabled = false
  2528. efec2.Enabled = false
  2529. game:GetService("Debris"):AddItem(efec, 5)
  2530. game:GetService("Debris"):AddItem(efec2, 5)
  2531. end))
  2532. end
  2533. ----------------------------------- Abilities
  2534.  
  2535. -------------------------------------
  2536.  
  2537. Humanoid.Animator.Parent = nil
  2538.  
  2539. -------------------------------------
  2540.  
  2541. local attacktype = 1
  2542. mouse.Button1Down:connect(function()
  2543. if attack == false and attacktype == 1 then
  2544. attacktype = 2
  2545. --attackone()
  2546. elseif attack == false and attacktype == 2 then
  2547. attacktype = 3
  2548. --attacktwo()
  2549. elseif attack == false and attacktype == 3 then
  2550. attacktype = 1
  2551. --attackthree()
  2552. elseif attack == false and attacktype == 4 then
  2553. attacktype = 1
  2554. --attackfour()
  2555. end
  2556. end)
  2557. mouse.KeyDown:connect(function(k)
  2558. if k == "e" and attack == false and secondary == false then
  2559. secondary = true
  2560. for i,v in pairs(colorizermod:GetChildren()) do
  2561. if v:IsA("Part") then
  2562. v.BrickColor = BrickColor.new("Pastel light blue")
  2563. end
  2564. end
  2565. refec.Color = ColorSequence.new(BrickColor.new("Pastel light blue").Color)
  2566. refec2.Color = refec.Color
  2567. refec3.Color = refec.Color
  2568. elseif k == "e" and attack == false and secondary == true then
  2569. secondary = false
  2570. for i,v in pairs(colorizermod:GetChildren()) do
  2571. if v:IsA("Part") then
  2572. v.BrickColor = BrickColor.new("Alder")
  2573. end
  2574. end
  2575. refec.Color = ColorSequence.new(BrickColor.new("Alder").Color)
  2576. refec2.Color = refec.Color
  2577. refec3.Color = refec.Color
  2578. end
  2579. if k == "z" and attack == false and secondary == false then
  2580. Laserbeamy()
  2581. end
  2582. if k == "m" and attack == false then
  2583. uselessnuke()
  2584. end
  2585. end)
  2586. Humanoid.Name = "SYNTHEZ"
  2587. Humanoid.MaxHealth = math.huge
  2588. Humanoid.Health = math.huge
  2589. Instance.new("ForceField",char).Visible = false
  2590.  
  2591. idleanim=.4
  2592. while true do
  2593. if mutedtog == false then
  2594. kan.Volume = 1.1
  2595. elseif mutedtog == true then
  2596. kan.Volume = 0
  2597. end
  2598. kan.PlaybackSpeed = 1.01
  2599. kan.Pitch = 1.01
  2600. kan.SoundId = "rbxassetid://923445685"
  2601. kan.Looped = true
  2602. kan.Parent = char
  2603. kan:Resume()
  2604. actualrotationvalue = actualrotationvalue + 1
  2605. techc.Rotation = techc.Rotation + 1
  2606. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  2607. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  2608. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  2609. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  2610. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  2611. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  2612. CameraManager()
  2613. swait()
  2614. sine = sine + change
  2615. rotingweld.C0=clerp(rotingweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(actualrotationvalue + 750 * math.cos(sine / 1000))),.3)
  2616. rotingweld2.C0=clerp(rotingweld2.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-actualrotationvalue - 750 * math.cos(sine / 1000))),.3)
  2617. if attack == false then
  2618. hum.CameraOffset = vt(0 + 0.05 * math.cos(sine / 32),0 - 0.05 * math.cos(sine / 46),0 - 0.05 * math.cos(sine / 57))
  2619. handlexweld.C1=clerp(handlexweld.C1,cf(0,-2,-2.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2620. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.25 * math.cos(sine / 57))*angles(math.rad(0 + 5 * math.cos(sine / 55)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  2621. end
  2622. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2623. local velderp=RootPart.Velocity.y
  2624. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2625. coroutine.resume(coroutine.create(function()
  2626. --[[if hitfloor ~= nil then
  2627. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.025,0.01,0.025),math.random(1,10)/250,BrickColor.new("White"))
  2628. end]]--
  2629. end))
  2630. if equipped==true or equipped==false then
  2631. if attack==false then
  2632. idle=idle+1
  2633. else
  2634. idle=0
  2635. end
  2636. if idle>=500 then
  2637. if attack==false then
  2638. --Sheath()
  2639. end
  2640. end
  2641. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2642. Anim="Jump"
  2643. if attack==false then
  2644. 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)
  2645. 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)
  2646. 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)
  2647. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2648. 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)
  2649. 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)
  2650. end
  2651. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2652. Anim="Fall"
  2653. if attack==false then
  2654. 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)
  2655. 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)
  2656. 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)
  2657. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  2658. 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)
  2659. 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)
  2660. end
  2661. elseif torvel<1 and hitfloor~=nil then
  2662. Anim="Idle"
  2663. if attack==false then
  2664. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  2665. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  2666. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  2667. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 3 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  2668. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.005 * math.cos(sine / 45),-0.5)*angles(math.rad(84 + 6 * math.cos(sine / 74)),math.rad(8 - 5 * math.cos(sine / 53)),math.rad(-80 + 3 * math.cos(sine / 45))),.1)
  2669. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  2670. end
  2671. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2672. Anim="Walk"
  2673. if attack==false then
  2674. 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)
  2675. 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)
  2676. 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 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  2677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  2678. 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(5 - 10 * math.cos(sine / 4))),.1)
  2679. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  2680. end
  2681. elseif torvel>=22 and hitfloor~=nil then
  2682. Anim="Run"
  2683. if attack==false then
  2684. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  2685. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  2686. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  2687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  2688. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  2689. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  2690. end
  2691. end
  2692. end
  2693. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement