TheJake678

rightnow

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