Advertisement
5sdfsadgaq5465

synth switcher

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