Advertisement
memberhero

Techno Switcher

Feb 27th, 2019
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = RhiBel00351
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62.  
  63. local Char = Player.Character
  64. local Event = Char:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67.  
  68. local input = function(io,a)
  69. if a then return end
  70. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  71. Event:FireServer(io)
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75. local Changed = false
  76. local Mouse = Player:GetMouse()
  77. local h,t = Mouse.Hit,Mouse.Target
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  81. h,t=Mouse.Hit,Mouse.Target
  82. end
  83. end
  84. ]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87. wait(0.2)
  88. warn[[Techoburst
  89. Did someone expect this?
  90.  
  91. Created by NoobyGames12
  92. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  93. BUILD 0.0.9A
  94. - - - - - - - - - - - - - - - - - - - - - - - - - - - - ]]
  95. ---- DO NOT CHANGE ANYTHING BELOW IF YOU'RE NOT AN EDITOR
  96. wait(0.2)
  97. plr = owner
  98. char = plr.Character
  99. hum = char.Humanoid
  100. local cam = game.Workspace.CurrentCamera
  101. t = char.Torso
  102. h = char.Head
  103. ra = char["Right Arm"]
  104. la = char["Left Arm"]
  105. rl = char["Right Leg"]
  106. ll = char["Left Leg"]
  107. tors = char.Torso
  108. lleg = char["Left Leg"]
  109. root = char.HumanoidRootPart
  110. hed = char.Head
  111. rleg = char["Right Leg"]
  112. rarm = char["Right Arm"]
  113. larm = char["Left Arm"]
  114. it = Instance.new
  115. vt = Vector3.new
  116. bc = BrickColor.new
  117. br = BrickColor.random
  118. it = Instance.new
  119. cf = CFrame.new
  120. ceuler = CFrame.fromEulerAnglesXYZ
  121.  
  122. local muter = false
  123. local ORGID = 1836057235
  124. local ORVOL = 1.25
  125. local ORPIT = 1.01
  126. local kan = Instance.new("Sound",tors)
  127. kan.Volume = 0.85
  128. kan.TimePosition = 0
  129. kan.PlaybackSpeed = 1
  130. kan.Pitch = 1
  131. kan.SoundId = "rbxassetid://1255569288"
  132. kan.Name = "wrecked"
  133. kan.Looped = true
  134. kan:Play()
  135.  
  136. --------------------------- GUI STUFF
  137. local basgui = it("GuiMain")
  138. basgui.Parent = plr.PlayerGui
  139. basgui.Name = "VISgui"
  140. local fullscreenz = it("Frame")
  141. fullscreenz.Parent = basgui
  142. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  143. fullscreenz.BackgroundTransparency = 1
  144. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  145. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  146. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  147. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  148. imgl2.BackgroundTransparency = 1
  149. imgl2.BorderSizePixel = 0
  150. imgl2.ImageTransparency = 0.5
  151. imgl2.ImageColor3 = Color3.new(1,0,0)
  152. imgl2.Position = UDim2.new(0.75,0,0.55,0)
  153. imgl2.Size = UDim2.new(0,600,0,600)
  154. imgl2.Image = "rbxassetid://2059444669"
  155. local techc = imgl2:Clone()
  156. techc.Parent = fullscreenz
  157. techc.ImageTransparency = 0.5
  158. techc.Size = UDim2.new(0,700,0,700)
  159. techc.Position = UDim2.new(0.75,-50,0.55,-50)
  160. techc.ImageColor3 = Color3.new(0,0,0)
  161. techc.Image = "rbxassetid://1657788285"
  162. local circl = imgl2:Clone()
  163. circl.Parent = fullscreenz
  164. circl.ImageTransparency = 0
  165. circl.Size = UDim2.new(0,500,0,500)
  166. circl.Position = UDim2.new(0.75,50,0.55,50)
  167. circl.ImageColor3 = Color3.new(0,0,0)
  168. circl.Image = "rbxassetid://997291547"
  169. local circl2 = imgl2:Clone()
  170. circl2.Parent = fullscreenz
  171. circl2.ImageTransparency = 0
  172. circl2.ImageColor3 = Color3.new(0,0,0)
  173. circl2.Image = "rbxassetid://997291547"
  174. local imgl2b = imgl2:Clone()
  175. imgl2b.Parent = fullscreenz
  176. imgl2b.ImageTransparency = 0
  177. imgl2b.Size = UDim2.new(0,500,0,500)
  178. imgl2b.Position = UDim2.new(0.75,50,0.55,50)
  179. local ned = Instance.new("TextLabel",fullscreenz)
  180. ned.ZIndex = 2
  181. ned.Font = "Arcade"
  182. ned.BackgroundTransparency = 1
  183. ned.BorderSizePixel = 0.65
  184. ned.Size = UDim2.new(0.4,0,0.2,0)
  185. ned.Position = UDim2.new(0.6,0,0.8,0)
  186. ned.TextColor3 = BrickColor.new("Cyan").Color
  187. ned.TextStrokeColor3 = BrickColor.new("Toothpaste").Color
  188. ned.TextScaled = true
  189. ned.TextStrokeTransparency = 0
  190. ned.Text = "TECHNOBURST"
  191. ned.TextSize = 24
  192. ned.Rotation = 1
  193. --ned.TextXAlignment = "Right"
  194. ned.TextYAlignment = "Bottom"
  195.  
  196. function CameraShake(Times, Power)
  197. coroutine.resume(coroutine.create(function()
  198. FV = Instance.new("BoolValue", Character)
  199. FV.Name = "CameraShake"
  200. for ShakeNum=1,Times do
  201. swait()
  202. local ef=Power
  203. if ef>=1 then
  204. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  205. else
  206. ef=Power*10
  207. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  208. end
  209. end
  210. Humanoid.CameraOffset = Vector3.new(0,0,0)
  211. FV:Destroy()
  212. end))
  213. end
  214.  
  215. CamShake=function(Part,Distan,Power,Times)
  216. local de=Part.Position
  217. for i,v in pairs(workspace:children()) do
  218. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  219. for _,c in pairs(v:children()) do
  220. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  221. local Noob=v.Humanoid
  222. if Noob~=nil then
  223. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  224. --[[local ss=script.CamShake:clone()
  225. ss.Parent=Noob
  226. ss.Power.Value=Power
  227. ss.Times.Value=Times
  228. ss.Disabled=false]]
  229. CameraShake(Times, Power)
  230. end
  231. end
  232. end
  233. end
  234. end
  235. end
  236. end
  237.  
  238. local MAINRUINCOLOR = BrickColor.new("Cyan")
  239.  
  240. local toggleTag = true
  241. local bilguit = Instance.new("BillboardGui", hed)
  242. bilguit.Adornee = nil
  243. bilguit.Name = "ModeName"
  244. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  245. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  246. local modet = Instance.new("TextLabel", bilguit)
  247. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  248. modet.FontSize = "Size8"
  249. modet.TextScaled = true
  250. modet.TextTransparency = 0
  251. modet.BackgroundTransparency = 1
  252. modet.TextTransparency = 0
  253. modet.TextStrokeTransparency = 0
  254. modet.Font = "Antique"
  255. modet.TextStrokeColor3 = bc("Cyan").Color
  256. modet.TextColor3 = bc("Cyan").Color
  257. modet.Text = "TECHNO SWITCHER"
  258.  
  259. local chaosmode = false
  260.  
  261. function chatfunc(text,color,color2,typet,font,timeex)
  262. local chat = coroutine.wrap(function()
  263. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  264. Character:FindFirstChild("TalkingBillBoard"):destroy()
  265. end
  266. local naeeym2 = Instance.new("BillboardGui",Character)
  267. naeeym2.Size = UDim2.new(0,100,0,40)
  268. naeeym2.StudsOffset = Vector3.new(0,1.5,0)
  269. naeeym2.Adornee = Character.Head
  270. naeeym2.Name = "TalkingBillBoard"
  271. local tecks2 = Instance.new("TextLabel",naeeym2)
  272. tecks2.BackgroundTransparency = 1
  273. tecks2.BorderSizePixel = 0
  274. tecks2.Text = ""
  275. tecks2.Font = font
  276. tecks2.TextSize = 30
  277. tecks2.TextStrokeTransparency = 0
  278. tecks2.TextColor3 = color
  279. tecks2.TextStrokeColor3 = color2
  280. tecks2.Size = UDim2.new(1,0,0.5,0)
  281. local tecks3 = Instance.new("TextLabel",naeeym2)
  282. tecks3.BackgroundTransparency = 1
  283. tecks3.BorderSizePixel = 0
  284. tecks3.Text = ""
  285. tecks3.Font = font
  286. tecks3.TextSize = 30
  287. tecks3.TextStrokeTransparency = 0
  288. if typet == "Inverted" then
  289. tecks3.TextColor3 = color2
  290. tecks3.TextStrokeColor3 = color
  291. elseif typet == "Normal" then
  292. tecks3.TextColor3 = color
  293. tecks3.TextStrokeColor3 = color2
  294. end
  295. tecks3.Size = UDim2.new(1,0,0.5,0)
  296. coroutine.resume(coroutine.create(function()
  297. while true do
  298. swait(1)
  299. if chaosmode == true then
  300. tecks2.TextColor3 = BrickColor.random().Color
  301. tecks3.TextStrokeColor3 = BrickColor.random().Color
  302. end
  303. end
  304. end))
  305. for i = 0, 74*timeex do
  306. swait()
  307. tecks2.Text = text
  308. tecks3.Text = text
  309. end
  310. local va = 0
  311. local mult = 1
  312. for i = 0, 49 do
  313. swait()
  314. mult = mult + 0.1
  315. va = va + 0.1*mult
  316. tecks2.Text = text
  317. tecks3.Text = text
  318. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  319. tecks2.TextTransparency = tecks2.TextTransparency + .04
  320. tecks2.Position = tecks2.Position + UDim2.new(0,va,0,0)
  321. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  322. tecks3.TextTransparency = tecks2.TextTransparency + .04
  323. tecks3.Position = tecks3.Position - UDim2.new(0,va,0,0)
  324. end
  325. naeeym2:Destroy()
  326. end)
  327. chat()
  328. end
  329.  
  330.  
  331. local Create = LoadLibrary("RbxUtility").Create
  332.  
  333. CFuncs = {
  334. ["Part"] = {
  335. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  336. local Part = Create("Part"){
  337. Parent = Parent,
  338. Reflectance = Reflectance,
  339. Transparency = Transparency,
  340. CanCollide = false,
  341. Locked = true,
  342. BrickColor = BrickColor.new(tostring(BColor)),
  343. Name = Name,
  344. Size = Size,
  345. Material = Material,
  346. }
  347. RemoveOutlines(Part)
  348. return Part
  349. end;
  350. };
  351.  
  352. ["Mesh"] = {
  353. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  354. local Msh = Create(Mesh){
  355. Parent = Part,
  356. Offset = OffSet,
  357. Scale = Scale,
  358. }
  359. if Mesh == "SpecialMesh" then
  360. Msh.MeshType = MeshType
  361. Msh.MeshId = MeshId
  362. end
  363. return Msh
  364. end;
  365. };
  366.  
  367.  
  368. ["Weld"] = {
  369. Create = function(Parent, Part0, Part1, C0, C1)
  370. local Weld = Create("Weld"){
  371. Parent = Parent,
  372. Part0 = Part0,
  373. Part1 = Part1,
  374. C0 = C0,
  375. C1 = C1,
  376. }
  377. return Weld
  378. end;
  379. };
  380.  
  381. ["Sound"] = {
  382. Create = function(id, par, vol, pit)
  383. coroutine.resume(coroutine.create(function()
  384. local S = Create("Sound"){
  385. Volume = vol,
  386. Pitch = pit or 1,
  387. SoundId = id,
  388. Parent = par or workspace,
  389. }
  390. wait()
  391. S:play()
  392. game:GetService("Debris"):AddItem(S, 10)
  393. end))
  394. end;
  395. };
  396.  
  397. ["LongSound"] = {
  398. Create = function(id, par, vol, pit)
  399. coroutine.resume(coroutine.create(function()
  400. local S = Create("Sound"){
  401. Volume = vol,
  402. Pitch = pit or 1,
  403. SoundId = id,
  404. Parent = par or workspace,
  405. }
  406. wait()
  407. S:play()
  408. game:GetService("Debris"):AddItem(S, 30)
  409. end))
  410. end;
  411. };
  412.  
  413. ["ParticleEmitter"] = {
  414. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  415. local fp = Create("ParticleEmitter"){
  416. Parent = Parent,
  417. Color = ColorSequence.new(Color1, Color2),
  418. LightEmission = LightEmission,
  419. Size = Size,
  420. Texture = Texture,
  421. Transparency = Transparency,
  422. ZOffset = ZOffset,
  423. Acceleration = Accel,
  424. Drag = Drag,
  425. LockedToPart = LockedToPart,
  426. VelocityInheritance = VelocityInheritance,
  427. EmissionDirection = EmissionDirection,
  428. Enabled = Enabled,
  429. Lifetime = LifeTime,
  430. Rate = Rate,
  431. Rotation = Rotation,
  432. RotSpeed = RotSpeed,
  433. Speed = Speed,
  434. VelocitySpread = VelocitySpread,
  435. }
  436. return fp
  437. end;
  438. };
  439.  
  440. CreateTemplate = {
  441.  
  442. };
  443. }
  444.  
  445.  
  446.  
  447. New = function(Object, Parent, Name, Data)
  448. local Object = Instance.new(Object)
  449. for Index, Value in pairs(Data or {}) do
  450. Object[Index] = Value
  451. end
  452. Object.Parent = Parent
  453. Object.Name = Name
  454. return Object
  455. end
  456. local m = Instance.new("Model",char)
  457.  
  458. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  459. local p = Instance.new("Part")
  460. p.TopSurface = 0
  461. p.BottomSurface = 0
  462. p.Parent = parent
  463. p.Size = Vector3.new(0.05,0.05,0.05)
  464. p.Transparency = transparency
  465. p.Reflectance = reflectance
  466. p.CanCollide = false
  467. p.Locked = true
  468. p.BrickColor = brickcolor
  469. p.Material = material
  470. return p
  471. end
  472.  
  473. function CreateMesh(parent,meshtype,x1,y1,z1)
  474. local mesh = Instance.new("SpecialMesh",parent)
  475. mesh.MeshType = meshtype
  476. mesh.Scale = Vector3.new(x1*20,y1*20,z1*20)
  477. return mesh
  478. end
  479.  
  480. function RecolorTextAndRename(name,col1,col2,font)
  481. modet.TextStrokeColor3 = col2
  482. modet.TextColor3 = col1
  483. modet.Font = font
  484. modet.Text = name
  485. techc.ImageColor3 = col2
  486. circl.ImageColor3 = col2
  487. circl2.ImageColor3 = col1
  488. imgl2.ImageColor3 = col1
  489. imgl2b.ImageColor3 = col2
  490. ned.Text = name
  491. ned.TextColor3 = col1
  492. ned.TextStrokeColor3 = col2
  493. end
  494.  
  495. local disably = true
  496.  
  497. function warnedpeople(text,represfont,color,color2)
  498. if disably ~= true then
  499. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  500. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  501. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  502. coroutine.resume(coroutine.create(function()
  503. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  504. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  505. end
  506. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  507. scrg.Name = "Spinny"
  508. local frm = Instance.new("Frame",scrg)
  509. frm.BackgroundTransparency = 0.25
  510. frm.BackgroundColor3 = color
  511. frm.BorderSizePixel = 0
  512. frm.Rotation = 45
  513. frm.Size = UDim2.new(3,0,0,100)
  514. frm.Position = UDim2.new(-4,0,0,0)
  515. local frm2 = frm:Clone()
  516. frm2.Parent = scrg
  517. frm2.BackgroundColor3 = color2
  518. frm2.Position = UDim2.new(-4.05,0,0,0)
  519. local imlb = Instance.new("ImageLabel",scrg)
  520. imlb.BackgroundTransparency = 1
  521. imlb.BackgroundColor3 = Color3.new(0,0,0)
  522. imlb.Image = "rbxassetid://2344851144"
  523. imlb.Size = UDim2.new(0,750,0,750)
  524. imlb.ImageColor3 = color2
  525. imlb.ImageTransparency = 0.25
  526. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  527. local imlb2 = imlb:Clone()
  528. imlb2.Image = "rbxassetid://2325939897"
  529. imlb2.Size = UDim2.new(1,0,1,0)
  530. imlb2.ImageColor3 = color
  531. imlb2.ImageTransparency = 0
  532. imlb2.Position = UDim2.new(0,0,0,0)
  533. local imlb3 = imlb:Clone()
  534. imlb3.Image = "rbxassetid://2344830904"
  535. imlb3.Size = UDim2.new(1,0,1,0)
  536. imlb3.ImageColor3 = color2
  537. imlb3.ImageTransparency = 0
  538. imlb3.Position = UDim2.new(0,0,0,0)
  539. local imlb4 = imlb:Clone()
  540. imlb4.Image = "rbxassetid://2344870656"
  541. imlb4.Size = UDim2.new(3,0,3,0)
  542. imlb4.ImageColor3 = Color3.new(1,1,1)
  543. imlb4.ImageTransparency = 0
  544. imlb4.Position = UDim2.new(-1,0,-1,0)
  545. local imlb5 = imlb:Clone()
  546. imlb5.Image = "rbxassetid://2344870656"
  547. imlb5.Size = UDim2.new(10,0,10,0)
  548. imlb5.ImageColor3 = color2
  549. imlb5.ImageTransparency = 0
  550. imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
  551. imlb2.Parent = imlb
  552. imlb3.Parent = imlb
  553. imlb4.Parent = imlb
  554. imlb5.Parent = imlb
  555. local txtlb2 = Instance.new("TextLabel",imlb)
  556. txtlb2.Text = text
  557. txtlb2.Font = represfont
  558. txtlb2.TextColor3 = color
  559. txtlb2.TextStrokeTransparency = 0
  560. txtlb2.BackgroundTransparency = 1
  561. txtlb2.TextStrokeColor3 = color2
  562. txtlb2.TextScaled = true
  563. txtlb2.Size = UDim2.new(1,0,1,0)
  564. txtlb2.Position = UDim2.new(0,0,0,0)
  565. local fvalen = 0.55
  566. local fval = -0.49
  567. coroutine.resume(coroutine.create(function()
  568. while true do
  569. swait()
  570. if chaosmode == true then
  571. txtlb2.Rotation = math.random(-1,1)
  572. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  573. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  574. imlb.ImageColor3 = BrickColor.random().Color
  575. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  576. end
  577. end
  578. end))
  579. coroutine.resume(coroutine.create(function()
  580. while true do
  581. swait()
  582. if scrg.Parent ~= nil then
  583. fvalen = fvalen - 0.0001
  584. elseif scrg.Parent == nil then
  585. break
  586. end
  587. end
  588. end))
  589. local flol = -5
  590. local flil = 1.6
  591. coroutine.resume(coroutine.create(function()
  592. for i = 0, 49 do
  593. swait()
  594. flol = flol + 0.125
  595. flil = flil - 0.1
  596. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  597. frm.Rotation = frm.Rotation - 0.25
  598. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  599. frm2.Rotation = frm.Rotation + 0.325
  600. imlb3.Rotation = imlb3.Rotation - 10
  601. imlb2.Rotation = imlb.Rotation + 7.5
  602. imlb.Rotation = imlb.Rotation + 5
  603. txtlb2.Rotation = txtlb2.Rotation - 5.125
  604. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  605. end
  606. for i = 0, 99 do
  607. swait()
  608. fval = fval + 0.05
  609. flol = flol + 0.005
  610. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  611. frm.Rotation = frm.Rotation - 0.075
  612. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  613. frm2.Rotation = frm2.Rotation + 0.125
  614. imlb3.Rotation = imlb3.Rotation - 2
  615. imlb2.Rotation = imlb.Rotation + 1.5
  616. imlb.Rotation = imlb.Rotation + 1
  617. txtlb2.Rotation = txtlb2.Rotation - 1.125
  618. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  619. end
  620. local valinc = 0
  621. local vinc2 = 1
  622. for i = 0, 99 do
  623. swait()
  624. vinc2 = vinc2 + 0.25
  625. valinc = valinc + 0.0001
  626. flol = flol + valinc
  627. flil = flil + valinc
  628. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  629. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  630. imlb.Rotation = imlb.Rotation + 1*vinc2
  631. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  632. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  633. frm.Rotation = frm.Rotation + 0.1*vinc2
  634. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  635. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  636. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  637. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  638. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  639. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  640. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  641. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  642. imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
  643. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  644. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  645. end
  646. scrg:Destroy()
  647. end))
  648. end))
  649. end
  650. end
  651. end
  652.  
  653.  
  654. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  655. local mesh = Instance.new("SpecialMesh",parent)
  656. mesh.MeshType = "FileMesh"
  657. mesh.MeshId = meshid
  658. mesh.Scale = Vector3.new(x1,y1,z1)
  659. return mesh
  660. end
  661.  
  662.  
  663. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  664. local mesh = Instance.new("SpecialMesh",parent)
  665. mesh.MeshType = "FileMesh"
  666. mesh.MeshId = meshid
  667. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  668. mesh.Scale = Vector3.new(x1,y1,z1)
  669. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  670. return mesh
  671. end
  672.  
  673. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  674. local weld = Instance.new("Weld")
  675. weld.Parent = parent
  676. weld.Part0 = part0
  677. weld.Part1 = part1
  678. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  679. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  680. return weld
  681. end
  682.  
  683.  
  684.  
  685.  
  686. ---- WEAPON OR STUFF
  687. --[[local rarmor = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random())
  688. local weaponweld = CreateWeld(rarmor,tors,rarmor,-3,0,-0.5,math.rad(0),math.rad(0),math.rad(-40),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  689. local MainWeldS = CreateWeld(Part475,rarmor,Part475,0,0,0,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  690. local A0 = Instance.new("Attachment",rarmor)
  691. A0.Position = Vector3.new(-2.5,0.25,0)
  692. local A1 = Instance.new("Attachment",rarmor)
  693. A1.Position = Vector3.new(-7.5,0.4,0)
  694. tl1 = Instance.new('Trail',rarmor)
  695. tl1.Attachment0 = A0
  696. tl1.Attachment1 = A1
  697. tl1.Texture = "http://www.roblox.com/asset/?id=1978704853"
  698. tl1.LightEmission = 1
  699. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  700. tl1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  701. tl1.Lifetime = 0.6
  702. tl1.Enabled = false]]--
  703. ------
  704.  
  705.  
  706. function lerp(object, newCFrame, alpha)
  707. return object:lerp(newCFrame, alpha)
  708. end
  709.  
  710. function RemoveOutlines(part)
  711. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  712. end
  713. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  714. local Part = Create("Part")({
  715. Parent = Parent,
  716. Reflectance = Reflectance,
  717. Transparency = Transparency,
  718. CanCollide = false,
  719. Locked = true,
  720. BrickColor = BrickColor.new(tostring(BColor)),
  721. Name = Name,
  722. Size = Size,
  723. Material = Material
  724. })
  725. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  726. RemoveOutlines(Part)
  727. return Part
  728. end
  729. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  730. local Msh = Create(Mesh)({
  731. Parent = Part,
  732. Offset = OffSet,
  733. Scale = Scale
  734. })
  735. if Mesh == "SpecialMesh" then
  736. Msh.MeshType = MeshType
  737. Msh.MeshId = MeshId
  738. end
  739. return Msh
  740. end
  741. function CreateWeld(Parent, Part0, Part1, C0, C1)
  742. local Weld = Create("Weld")({
  743. Parent = Parent,
  744. Part0 = Part0,
  745. Part1 = Part1,
  746. C0 = C0,
  747. C1 = C1
  748. })
  749. return Weld
  750. end
  751.  
  752. Character=Player.Character
  753. PlayerGui=Player.PlayerGui
  754. Backpack=Player.Backpack
  755. Torso=Character.Torso
  756. Head=Character.Head
  757. Humanoid=Character.Humanoid
  758. m=Instance.new('Model',Character)
  759. LeftArm=Character["Left Arm"]
  760. LeftLeg=Character["Left Leg"]
  761. RightArm=Character["Right Arm"]
  762. RightLeg=Character["Right Leg"]
  763. LS=Torso["Left Shoulder"]
  764. LH=Torso["Left Hip"]
  765. RS=Torso["Right Shoulder"]
  766. RH=Torso["Right Hip"]
  767. Face = Head.face
  768. Neck=Torso.Neck
  769. it=Instance.new
  770. attacktype=1
  771. vt=Vector3.new
  772. cf=CFrame.new
  773. euler=CFrame.fromEulerAnglesXYZ
  774. angles=CFrame.Angles
  775. cloaked=false
  776. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  777. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  778. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  779. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  780. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  781. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  782. RootPart=Character.HumanoidRootPart
  783. RootJoint=RootPart.RootJoint
  784. RootCF=euler(-1.57,0,3.14)
  785. attack = false
  786. attackdebounce = false
  787. deb=false
  788. equipped=true
  789. hand=false
  790. MMouse=nil
  791. combo=0
  792. mana=0
  793. trispeed=.2
  794. attackmode='none'
  795. local idle=0
  796. local Anim="Idle"
  797. local Effects={}
  798. local sine = 0
  799. local change = 1
  800.  
  801. --save shoulders
  802. RSH, LSH=nil, nil
  803. --welds
  804. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  805. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  806. LH=Torso["Left Hip"]
  807. RH=Torso["Right Hip"]
  808. TorsoColor=Torso.BrickColor
  809. function NoOutline(Part)
  810. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  811. end
  812. ch=Character
  813. RSH=ch.Torso["Right Shoulder"]
  814. LSH=ch.Torso["Left Shoulder"]
  815. --
  816. RSH.Parent=nil
  817. LSH.Parent=nil
  818. --
  819. RW.Name="Right Shoulder"
  820. RW.Part0=ch.Torso
  821. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  822. RW.C1=cf(0, 0.5, 0)
  823. RW.Part1=ch["Right Arm"]
  824. RW.Parent=ch.Torso
  825. --
  826. LW.Name="Left Shoulder"
  827. LW.Part0=ch.Torso
  828. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  829. LW.C1=cf(0, 0.5, 0)
  830. LW.Part1=ch["Left Arm"]
  831. LW.Parent=ch.Torso
  832. local donum=0
  833.  
  834.  
  835. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  836. local fp=it("Part")
  837. fp.formFactor=formfactor
  838. fp.Parent=parent
  839. fp.Reflectance=reflectance
  840. fp.Transparency=transparency
  841. fp.CanCollide=false
  842. fp.Locked=true
  843. fp.BrickColor=brickcolor
  844. fp.Name=name
  845. fp.Size=size
  846. fp.Position=Torso.Position
  847. NoOutline(fp)
  848. fp.Material="SmoothPlastic"
  849. fp:BreakJoints()
  850. return fp
  851. end
  852.  
  853. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  854. local mesh=it(Mesh)
  855. mesh.Parent=part
  856. if Mesh=="SpecialMesh" then
  857. mesh.MeshType=meshtype
  858. if meshid~="nil" then
  859. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  860. end
  861. end
  862. mesh.Offset=offset
  863. mesh.Scale=scale
  864. return mesh
  865. end
  866.  
  867. function weld(parent,part0,part1,c0)
  868. local weld=it("Weld")
  869. weld.Parent=parent
  870. weld.Part0=part0
  871. weld.Part1=part1
  872. weld.C0=c0
  873. return weld
  874. end
  875.  
  876. local bodvel=Instance.new("BodyVelocity")
  877. local bg=Instance.new("BodyGyro")
  878.  
  879. function swait(num)
  880. if num==0 or num==nil then
  881. game:service'RunService'.Stepped:wait(0)
  882. else
  883. for i=0,num do
  884. game:service'RunService'.Stepped:wait(0)
  885. end
  886. end
  887. end
  888.  
  889.  
  890. so = function(id,par,vol,pit)
  891. coroutine.resume(coroutine.create(function()
  892. local sou = Instance.new("Sound",par or workspace)
  893. sou.Volume=vol
  894. sou.Pitch=pit or 1
  895. sou.SoundId=id
  896. swait()
  897. sou:play()
  898. game:GetService("Debris"):AddItem(sou,6)
  899. end))
  900. end
  901.  
  902. function clerp(a,b,t)
  903. local qa = {QuaternionFromCFrame(a)}
  904. local qb = {QuaternionFromCFrame(b)}
  905. local ax, ay, az = a.x, a.y, a.z
  906. local bx, by, bz = b.x, b.y, b.z
  907. local _t = 1-t
  908. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  909. end
  910.  
  911. function QuaternionFromCFrame(cf)
  912. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  913. local trace = m00 + m11 + m22
  914. if trace > 0 then
  915. local s = math.sqrt(1 + trace)
  916. local recip = 0.5/s
  917. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  918. else
  919. local i = 0
  920. if m11 > m00 then
  921. i = 1
  922. end
  923. if m22 > (i == 0 and m00 or m11) then
  924. i = 2
  925. end
  926. if i == 0 then
  927. local s = math.sqrt(m00-m11-m22+1)
  928. local recip = 0.5/s
  929. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  930. elseif i == 1 then
  931. local s = math.sqrt(m11-m22-m00+1)
  932. local recip = 0.5/s
  933. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  934. elseif i == 2 then
  935. local s = math.sqrt(m22-m00-m11+1)
  936. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  937. end
  938. end
  939. end
  940.  
  941. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  942. local xs, ys, zs = x + x, y + y, z + z
  943. local wx, wy, wz = w*xs, w*ys, w*zs
  944. local xx = x*xs
  945. local xy = x*ys
  946. local xz = x*zs
  947. local yy = y*ys
  948. local yz = y*zs
  949. local zz = z*zs
  950. 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))
  951. end
  952.  
  953. function shakes(power,length)
  954. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  955. local var = script.Shaker:Clone()
  956. var.Parent = v.Character
  957. local pw = var.Shakeval
  958. local lgth = var.MultLength
  959. pw.Value = power
  960. lgth.Value = length
  961. var.Disabled = false
  962. game:GetService("Debris"):AddItem(var, length+4)
  963. end
  964. end
  965.  
  966. function QuaternionSlerp(a, b, t)
  967. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  968. local startInterp, finishInterp;
  969. if cosTheta >= 0.0001 then
  970. if (1 - cosTheta) > 0.0001 then
  971. local theta = math.acos(cosTheta)
  972. local invSinTheta = 1/math.sin(theta)
  973. startInterp = math.sin((1-t)*theta)*invSinTheta
  974. finishInterp = math.sin(t*theta)*invSinTheta
  975. else
  976. startInterp = 1-t
  977. finishInterp = t
  978. end
  979. else
  980. if (1+cosTheta) > 0.0001 then
  981. local theta = math.acos(-cosTheta)
  982. local invSinTheta = 1/math.sin(theta)
  983. startInterp = math.sin((t-1)*theta)*invSinTheta
  984. finishInterp = math.sin(t*theta)*invSinTheta
  985. else
  986. startInterp = t-1
  987. finishInterp = t
  988. end
  989. end
  990. 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
  991. end
  992.  
  993. local function CFrameFromTopBack(at, top, back)
  994. local right = top:Cross(back)
  995. return CFrame.new(at.x, at.y, at.z,
  996. right.x, top.x, back.x,
  997. right.y, top.y, back.y,
  998. right.z, top.z, back.z)
  999. end
  1000.  
  1001. function Triangle(a, b, c)
  1002. local edg1 = (c-a):Dot((b-a).unit)
  1003. local edg2 = (a-b):Dot((c-b).unit)
  1004. local edg3 = (b-c):Dot((a-c).unit)
  1005. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1006. a, b, c = a, b, c
  1007. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1008. a, b, c = b, c, a
  1009. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1010. a, b, c = c, a, b
  1011. else
  1012. assert(false, "unreachable")
  1013. end
  1014.  
  1015. local len1 = (c-a):Dot((b-a).unit)
  1016. local len2 = (b-a).magnitude - len1
  1017. local width = (a + (b-a).unit*len1 - c).magnitude
  1018.  
  1019. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1020.  
  1021. local list = {}
  1022.  
  1023. if len1 > 0.01 then
  1024. local w1 = Instance.new('WedgePart', m)
  1025. game:GetService("Debris"):AddItem(w1,5)
  1026. w1.Material = "SmoothPlastic"
  1027. w1.FormFactor = 'Custom'
  1028. w1.BrickColor = BrickColor.new("Really red")
  1029. w1.Transparency = 0
  1030. w1.Reflectance = 0
  1031. w1.Material = "SmoothPlastic"
  1032. w1.CanCollide = false
  1033. local l1 = Instance.new("PointLight",w1)
  1034. l1.Color = Color3.new(170,0,0)
  1035. NoOutline(w1)
  1036. local sz = Vector3.new(0.2, width, len1)
  1037. w1.Size = sz
  1038. local sp = Instance.new("SpecialMesh",w1)
  1039. sp.MeshType = "Wedge"
  1040. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1041. w1:BreakJoints()
  1042. w1.Anchored = true
  1043. w1.Parent = workspace
  1044. w1.Transparency = 0.7
  1045. table.insert(Effects,{w1,"Disappear",.01})
  1046. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1047. table.insert(list,w1)
  1048. end
  1049.  
  1050. if len2 > 0.01 then
  1051. local w2 = Instance.new('WedgePart', m)
  1052. game:GetService("Debris"):AddItem(w2,5)
  1053. w2.Material = "SmoothPlastic"
  1054. w2.FormFactor = 'Custom'
  1055. w2.BrickColor = BrickColor.new("Really red")
  1056. w2.Transparency = 0
  1057. w2.Reflectance = 0
  1058. w2.Material = "SmoothPlastic"
  1059. w2.CanCollide = false
  1060. local l2 = Instance.new("PointLight",w2)
  1061. l2.Color = Color3.new(170,0,0)
  1062. NoOutline(w2)
  1063. local sz = Vector3.new(0.2, width, len2)
  1064. w2.Size = sz
  1065. local sp = Instance.new("SpecialMesh",w2)
  1066. sp.MeshType = "Wedge"
  1067. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1068. w2:BreakJoints()
  1069. w2.Anchored = true
  1070. w2.Parent = workspace
  1071. w2.Transparency = 0.7
  1072. table.insert(Effects,{w2,"Disappear",.01})
  1073. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1074. table.insert(list,w2)
  1075. end
  1076. return unpack(list)
  1077. end
  1078.  
  1079.  
  1080. local currentThemePlaying = kan.SoundId
  1081. local currentPitch = kan.Pitch
  1082. local currentVol = kan.Volume
  1083. function newTheme(ID,timepos,pitch,vol)
  1084. local kanz = kan
  1085. --kanz:Stop()
  1086. kanz.Volume = vol
  1087. --kanz.TimePosition = timepos
  1088. kanz.PlaybackSpeed = pitch
  1089. kanz.Pitch = pitch
  1090. kanz.SoundId = ID
  1091. kanz.Name = "wrecked"
  1092. kanz.Looped = true
  1093. currentThemePlaying = kanz.SoundId
  1094. currentVol = kanz.Volume
  1095. currentPitch = kanz.Pitch
  1096. --kanz:Play()
  1097. --coroutine.resume(coroutine.create(function()
  1098. --wait(0.05)
  1099. --end))
  1100. end
  1101.  
  1102.  
  1103. function newThemeCust(ID,timepos,pitch,vol)
  1104. local kanz = kan
  1105. kanz:Stop()
  1106. kanz.Volume = vol
  1107. kanz.TimePosition = timepos
  1108. kanz.PlaybackSpeed = pitch
  1109. kanz.Pitch = pitch
  1110. kanz.SoundId = ID
  1111. kanz.Name = "wrecked"
  1112. kanz.Looped = true
  1113. currentThemePlaying = kanz.SoundId
  1114. currentVol = kanz.Volume
  1115. currentPitch = kanz.Pitch
  1116. kanz:Play()
  1117. coroutine.resume(coroutine.create(function()
  1118. wait(0.05)
  1119. end))
  1120. end
  1121.  
  1122. local mutedtog = false
  1123.  
  1124.  
  1125. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1126. if hit.Parent == nil then
  1127. return
  1128. end
  1129. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1130. for _, v in pairs(hit.Parent:children()) do
  1131. if v:IsA("Humanoid") then
  1132. h = v
  1133. h.MaxHealth = 100
  1134. end
  1135. end
  1136. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil or h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1137. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1138. return
  1139. end
  1140. local c = Create("ObjectValue")({
  1141. Name = "creator",
  1142. Value = owner,
  1143. Parent = h
  1144. })
  1145. game:GetService("Debris"):AddItem(c, 0.5)
  1146. if HitSound ~= nil and HitPitch ~= nil then
  1147. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1148. end
  1149. local Damage = math.random(minim, maxim)
  1150. local blocked = false
  1151. local block = hit.Parent:findFirstChild("Block")
  1152. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1153. blocked = true
  1154. block.Value = block.Value - 1
  1155. print(block.Value)
  1156. end
  1157. if blocked == false then
  1158. HitHealth = h.Health
  1159. h.MaxHealth = 100
  1160. h.Health = h.Health - Damage
  1161. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1162. print("gained kill")
  1163. dmg(h.Parent)
  1164. end
  1165. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1166. else
  1167. h.Health = h.Health - Damage / 2
  1168. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1169. end
  1170. if Type == "Normal" then
  1171. local vp = Create("BodyVelocity")({
  1172. P = 500,
  1173. maxForce = Vector3.new(math.huge, 0, math.huge),
  1174. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1175. })
  1176. if knockback > 0 then
  1177. vp.Parent = hit.Parent.Torso
  1178. end
  1179. game:GetService("Debris"):AddItem(vp, 0.5)
  1180. end
  1181. local debounce = Create("BoolValue")({
  1182. Name = "DebounceHit",
  1183. Parent = hit.Parent,
  1184. Value = true
  1185. })
  1186. game:GetService("Debris"):AddItem(debounce, Delay)
  1187. c = Instance.new("ObjectValue")
  1188. c.Name = "creator"
  1189. c.Value = Player
  1190. c.Parent = h
  1191. game:GetService("Debris"):AddItem(c, 0.5)
  1192. end
  1193. end
  1194. function ShowDamage(Pos, Text, Time, Color)
  1195. local Rate = 0.1
  1196. local Pos = Pos or Vector3.new(0, 0, 0)
  1197. local Text = Text or ""
  1198. local Time = Time or 2
  1199. local Color = Color or Color3.new(1, 0, 1)
  1200. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1201. EffectPart.Anchored = true
  1202. local BillboardGui = Create("BillboardGui")({
  1203. Size = UDim2.new(3, 0, 3, 0),
  1204. Adornee = EffectPart,
  1205. Parent = EffectPart
  1206. })
  1207. local TextLabel = Create("TextLabel")({
  1208. BackgroundTransparency = 1,
  1209. Size = UDim2.new(1, 0, 1, 0),
  1210. Text = Text,
  1211. TextColor3 = Color3.new(1,1,1),
  1212. TextStrokeColor3 = Color3.new(0,0,0),
  1213. TextStrokeTransparency = 0.25,
  1214. TextScaled = true,
  1215. Font = Enum.Font.Fantasy,
  1216. TextSize = 24,
  1217. Parent = BillboardGui
  1218. })
  1219. game.Debris:AddItem(EffectPart, Time + 0.1)
  1220. EffectPart.Parent = game:GetService("Workspace")
  1221. delay(0, function()
  1222. local Frames = Time / Rate
  1223. for Frame = 1, Frames do
  1224. swait(Rate)
  1225. local Percent = Frame / Frames
  1226. TextLabel.Text = Text
  1227. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent*2, 0)
  1228. end
  1229. for Frame = 1, Frames do
  1230. swait(Rate)
  1231. local Percent = Frame / Frames
  1232. TextLabel.Text = Text
  1233. end
  1234. for Frame = 1, Frames do
  1235. swait(Rate)
  1236. local Percent = Frame / Frames
  1237. TextLabel.TextTransparency = Percent
  1238. TextLabel.Text = Text
  1239. TextLabel.TextStrokeTransparency = Percent
  1240. end
  1241. if EffectPart and EffectPart.Parent then
  1242. EffectPart:Destroy()
  1243. end
  1244. end)
  1245. end
  1246. function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
  1247. for _, c in pairs(workspace:children()) do
  1248. local hum = c:findFirstChildOfClass("Humanoid")
  1249. if hum ~= nil then
  1250. local head = c:findFirstChild("Torso")
  1251. if head ~= nil then
  1252. local targ = head.Position - Part.Position
  1253. local mag = targ.magnitude
  1254. if magni >= mag and c.Name ~= Player.Name then
  1255. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 1)
  1256. end
  1257. end
  1258. local head = c:findFirstChild("UpperTorso")
  1259. if head ~= nil then
  1260. local targ = head.Position - Part.Position
  1261. local mag = targ.magnitude
  1262. if magni >= mag and c.Name ~= Player.Name then
  1263. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 1)
  1264. end
  1265. end
  1266. end
  1267. end
  1268. end
  1269.  
  1270.  
  1271. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1272. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1273. end
  1274. ----
  1275.  
  1276. function dmg(dude)
  1277. if dude.Name ~= Character then
  1278. local bgf = Instance.new("BodyGyro",dude.Head)
  1279. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  1280. --[[local val = Instance.new("BoolValue",dude)
  1281. val.Name = "IsHit"]]--
  1282. local ds = coroutine.wrap(function()
  1283. dude:WaitForChild("Head"):BreakJoints()
  1284. for i, v in pairs(dude:GetChildren()) do
  1285. if v:IsA("Part") or v:IsA("MeshPart") then
  1286. v.Name = "DEMINISHED"
  1287. CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
  1288. CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
  1289. end
  1290. end
  1291. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
  1292. coroutine.resume(coroutine.create(function()
  1293. for i, v in pairs(dude:GetChildren()) do
  1294. if v:IsA("Accessory") then
  1295. v:Destroy()
  1296. end
  1297. if v:IsA("Humanoid") then
  1298. v:Destroy()
  1299. end
  1300. if v:IsA("CharacterMesh") then
  1301. v:Destroy()
  1302. end
  1303. if v:IsA("Model") then
  1304. v:Destroy()
  1305. end
  1306. if v:IsA("Part") or v:IsA("MeshPart") then
  1307. for x, o in pairs(v:GetChildren()) do
  1308. if o:IsA("Decal") then
  1309. o:Destroy()
  1310. end
  1311. end
  1312. coroutine.resume(coroutine.create(function()
  1313. v.Material = "Neon"
  1314. v.CanCollide = false
  1315. v.Anchored = false
  1316. local bld = Instance.new("ParticleEmitter",v)
  1317. bld.LightEmission = 1
  1318. bld.Texture = "rbxassetid://363275192" ---284205403
  1319. bld.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color)
  1320. bld.Rate = 500
  1321. bld.Lifetime = NumberRange.new(1)
  1322. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  1323. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  1324. bld.Speed = NumberRange.new(2,5)
  1325. bld.VelocitySpread = 50000
  1326. bld.Rotation = NumberRange.new(-500,500)
  1327. bld.RotSpeed = NumberRange.new(-500,500)
  1328. local sbs = Instance.new("BodyPosition", v)
  1329. sbs.P = 3000
  1330. sbs.D = 1000
  1331. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1332. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  1333. v.Color = BrickColor.new("Toothpaste").Color
  1334. coroutine.resume(coroutine.create(function()
  1335. wait(0.5)
  1336. bld.Enabled = false
  1337. for i = 0, 49 do
  1338. swait()
  1339. v:BreakJoints()
  1340. v.Transparency = v.Transparency + 0.02
  1341. end
  1342. coroutine.resume(coroutine.create(function()
  1343. for i = 0, 99 do
  1344. swait()
  1345. dude:Destroy()
  1346. v:Destroy()
  1347. dude:Destroy()
  1348. end
  1349. end))
  1350. end))
  1351. end))
  1352. end
  1353. end
  1354. end))
  1355. end)
  1356. ds()
  1357. end
  1358. end
  1359.  
  1360. function sphere(bonuspeed,type,pos,scale,value,color)
  1361. local type = type
  1362. local rng = Instance.new("Part", char)
  1363. rng.Anchored = true
  1364. rng.BrickColor = color
  1365. rng.CanCollide = false
  1366. rng.FormFactor = 3
  1367. rng.Name = "Ring"
  1368. rng.Material = "Neon"
  1369. rng.Size = Vector3.new(1, 1, 1)
  1370. rng.Transparency = 0
  1371. rng.TopSurface = 0
  1372. rng.BottomSurface = 0
  1373. rng.CFrame = pos
  1374. local rngm = Instance.new("SpecialMesh", rng)
  1375. rngm.MeshType = "Sphere"
  1376. rngm.Scale = scale
  1377. if rainbowmode == true then
  1378. rng.Color = Color3.new(r/255,g/255,b/255)
  1379. end
  1380. local scaler2 = 1
  1381. if type == "Add" then
  1382. scaler2 = 1*value
  1383. elseif type == "Divide" then
  1384. scaler2 = 1/value
  1385. end
  1386. coroutine.resume(coroutine.create(function()
  1387. for i = 0,10/bonuspeed,0.1 do
  1388. swait()
  1389. if rainbowmode == true then
  1390. rng.Color = Color3.new(r/255,g/255,b/255)
  1391. end
  1392. if type == "Add" then
  1393. scaler2 = scaler2 - 0.01*value/bonuspeed
  1394. elseif type == "Divide" then
  1395. scaler2 = scaler2 - 0.01/value*bonuspeed
  1396. end
  1397. if chaosmode == true then
  1398. rng.BrickColor = BrickColor.random()
  1399. end
  1400. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1401. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1402. end
  1403. rng:Destroy()
  1404. end))
  1405. end
  1406.  
  1407. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  1408. local type = type
  1409. local rng = Instance.new("Part", char)
  1410. rng.Anchored = true
  1411. rng.BrickColor = color
  1412. rng.Color = color3
  1413. rng.CanCollide = false
  1414. rng.FormFactor = 3
  1415. rng.Name = "Ring"
  1416. rng.Material = "Neon"
  1417. rng.Size = Vector3.new(1, 1, 1)
  1418. rng.Transparency = 0
  1419. rng.TopSurface = 0
  1420. rng.BottomSurface = 0
  1421. rng.CFrame = pos
  1422. local rngm = Instance.new("SpecialMesh", rng)
  1423. rngm.MeshType = "Sphere"
  1424. rngm.Scale = scale
  1425. local scaler2 = 1
  1426. local scaler2b = 1
  1427. local scaler2c = 1
  1428. if type == "Add" then
  1429. scaler2 = 1*value
  1430. scaler2b = 1*value2
  1431. scaler2c = 1*value3
  1432. elseif type == "Divide" then
  1433. scaler2 = 1/value
  1434. scaler2b = 1/value2
  1435. scaler2c = 1/value3
  1436. end
  1437. coroutine.resume(coroutine.create(function()
  1438. for i = 0,10/bonuspeed,0.1 do
  1439. swait()
  1440. if type == "Add" then
  1441. scaler2 = scaler2 - 0.01*value/bonuspeed
  1442. scaler2b = scaler2b - 0.01*value/bonuspeed
  1443. scaler2c = scaler2c - 0.01*value/bonuspeed
  1444. elseif type == "Divide" then
  1445. scaler2 = scaler2 - 0.01/value*bonuspeed
  1446. scaler2b = scaler2b - 0.01/value*bonuspeed
  1447. scaler2c = scaler2c - 0.01/value*bonuspeed
  1448. end
  1449. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1450. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1451. end
  1452. rng:Destroy()
  1453. end))
  1454. end
  1455.  
  1456. VT = Vector3.new
  1457. vt = Vector3.new
  1458.  
  1459. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  1460. local type = type
  1461. local rng = Instance.new("Part", char)
  1462. rng.Anchored = true
  1463. rng.BrickColor = color
  1464. rng.Color = color3
  1465. rng.CanCollide = false
  1466. rng.FormFactor = 3
  1467. rng.Name = "Ring"
  1468. rng.Material = "Neon"
  1469. rng.Size = Vector3.new(1, 1, 1)
  1470. rng.Transparency = 0
  1471. rng.TopSurface = 0
  1472. rng.BottomSurface = 0
  1473. rng.CFrame = pos
  1474. local rngm = Instance.new("SpecialMesh", rng)
  1475. rngm.MeshType = "Brick"
  1476. rngm.Scale = scale
  1477. local scaler2 = 1
  1478. local scaler2b = 1
  1479. local scaler2c = 1
  1480. if type == "Add" then
  1481. scaler2 = 1*value
  1482. scaler2b = 1*value2
  1483. scaler2c = 1*value3
  1484. elseif type == "Divide" then
  1485. scaler2 = 1/value
  1486. scaler2b = 1/value2
  1487. scaler2c = 1/value3
  1488. end
  1489. coroutine.resume(coroutine.create(function()
  1490. for i = 0,10/bonuspeed,0.1 do
  1491. swait()
  1492. if type == "Add" then
  1493. scaler2 = scaler2 - 0.01*value/bonuspeed
  1494. scaler2b = scaler2b - 0.01*value/bonuspeed
  1495. scaler2c = scaler2c - 0.01*value/bonuspeed
  1496. elseif type == "Divide" then
  1497. scaler2 = scaler2 - 0.01/value*bonuspeed
  1498. scaler2b = scaler2b - 0.01/value*bonuspeed
  1499. scaler2c = scaler2c - 0.01/value*bonuspeed
  1500. end
  1501. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1502. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1503. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1504. end
  1505. rng:Destroy()
  1506. end))
  1507. end
  1508.  
  1509. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,color3,outerpos)
  1510. local type = type
  1511. local rng = Instance.new("Part", char)
  1512. rng.Anchored = true
  1513. rng.BrickColor = color
  1514. rng.Color = color3
  1515. rng.CanCollide = false
  1516. rng.FormFactor = 3
  1517. rng.Name = "Ring"
  1518. rng.Material = "Neon"
  1519. rng.Size = Vector3.new(1, 1, 1)
  1520. rng.Transparency = 0
  1521. rng.TopSurface = 0
  1522. rng.BottomSurface = 0
  1523. rng.CFrame = pos
  1524. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1525. local rngm = Instance.new("SpecialMesh", rng)
  1526. rngm.MeshType = "Sphere"
  1527. rngm.Scale = vt(x1,y1,z1)
  1528. if rainbowmode == true then
  1529. rng.Color = Color3.new(r/255,g/255,b/255)
  1530. end
  1531. local scaler2 = 1
  1532. local speeder = FastSpeed
  1533. if type == "Add" then
  1534. scaler2 = 1*value
  1535. elseif type == "Divide" then
  1536. scaler2 = 1/value
  1537. end
  1538. coroutine.resume(coroutine.create(function()
  1539. for i = 0,10/bonuspeed,0.1 do
  1540. swait()
  1541. if rainbowmode == true then
  1542. rng.Color = Color3.new(r/255,g/255,b/255)
  1543. end
  1544. if type == "Add" then
  1545. scaler2 = scaler2 - 0.01*value/bonuspeed
  1546. elseif type == "Divide" then
  1547. scaler2 = scaler2 - 0.01/value*bonuspeed
  1548. end
  1549. if chaosmode == true then
  1550. rng.BrickColor = BrickColor.random()
  1551. end
  1552. speeder = speeder - 0.01*FastSpeed*bonuspeed
  1553. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1554. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1555. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  1556. end
  1557. rng:Destroy()
  1558. end))
  1559. end
  1560.  
  1561. function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
  1562. local type = type
  1563. local rng = Instance.new("Part", char)
  1564. rng.Anchored = true
  1565. rng.BrickColor = color
  1566. rng.CanCollide = false
  1567. rng.FormFactor = 3
  1568. rng.Name = "Ring"
  1569. rng.Material = "Neon"
  1570. rng.Size = Vector3.new(1, 1, 1)
  1571. rng.Transparency = 0
  1572. if typeoftrans == "In" then
  1573. rng.Transparency = 1
  1574. end
  1575. rng.TopSurface = 0
  1576. rng.BottomSurface = 0
  1577. rng.CFrame = pos
  1578. local rngm = Instance.new("SpecialMesh", rng)
  1579. rngm.MeshType = "FileMesh"
  1580. rngm.MeshId = "rbxassetid://20329976"
  1581. rngm.Scale = scale
  1582. local scaler2 = 1
  1583. local scaler2b = 1
  1584. if type == "Add" then
  1585. scaler2 = 1*value
  1586. scaler2b = 1*value2
  1587. elseif type == "Divide" then
  1588. scaler2 = 1/value
  1589. scaler2b = 1/value2
  1590. end
  1591. local randomrot = math.random(1,2)
  1592. coroutine.resume(coroutine.create(function()
  1593. for i = 0,10/bonuspeed,0.1 do
  1594. swait()
  1595. if type == "Add" then
  1596. scaler2 = scaler2 - 0.01*value/bonuspeed
  1597. scaler2b = scaler2b - 0.01*value/bonuspeed
  1598. elseif type == "Divide" then
  1599. scaler2 = scaler2 - 0.01/value*bonuspeed
  1600. scaler2b = scaler2b - 0.01/value*bonuspeed
  1601. end
  1602. if randomrot == 1 then
  1603. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
  1604. elseif randomrot == 2 then
  1605. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
  1606. end
  1607. if typeoftrans == "Out" then
  1608. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1609. elseif typeoftrans == "In" then
  1610. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1611. end
  1612. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
  1613. end
  1614. rng:Destroy()
  1615. end))
  1616. end
  1617.  
  1618. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  1619. local type = type
  1620. local rotenable = rotatingop
  1621. local rng = Instance.new("Part", char)
  1622. rng.Anchored = true
  1623. rng.BrickColor = color
  1624. rng.CanCollide = false
  1625. rng.FormFactor = 3
  1626. rng.Name = "Ring"
  1627. rng.Material = "Neon"
  1628. rng.Size = Vector3.new(1, 1, 1)
  1629. rng.Transparency = 0
  1630. if typeoftrans == "In" then
  1631. rng.Transparency = 1
  1632. end
  1633. rng.TopSurface = 0
  1634. rng.BottomSurface = 0
  1635. rng.CFrame = pos
  1636. local rngm = Instance.new("SpecialMesh", rng)
  1637. rngm.MeshType = "FileMesh"
  1638. if typeofshape == "Normal" then
  1639. rngm.MeshId = "rbxassetid://662586858"
  1640. elseif typeofshape == "Round" then
  1641. rngm.MeshId = "rbxassetid://662585058"
  1642. end
  1643. rngm.Scale = scale
  1644. local scaler2 = 1/10
  1645. if type == "Add" then
  1646. scaler2 = 1*value/10
  1647. elseif type == "Divide" then
  1648. scaler2 = 1/value/10
  1649. end
  1650. local randomrot = math.random(1,2)
  1651. coroutine.resume(coroutine.create(function()
  1652. for i = 0,10/bonuspeed,0.1 do
  1653. swait()
  1654. if type == "Add" then
  1655. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  1656. elseif type == "Divide" then
  1657. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  1658. end
  1659. if rotenable == true then
  1660. if randomrot == 1 then
  1661. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  1662. elseif randomrot == 2 then
  1663. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  1664. end
  1665. end
  1666. if typeoftrans == "Out" then
  1667. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1668. elseif typeoftrans == "In" then
  1669. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1670. end
  1671. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  1672. end
  1673. rng:Destroy()
  1674. end))
  1675. end
  1676.  
  1677. function FindNearestTorso(Position, Distance, SinglePlayer)
  1678. if SinglePlayer then
  1679. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  1680. end
  1681. local List = {}
  1682. for i, v in pairs(workspace:GetChildren()) do
  1683. if v:IsA("Model") then
  1684. if v:findFirstChild("Torso") or v:findFirstChild("UpperTorso") then
  1685. if v ~= Character then
  1686. if (v.Head.Position - Position).magnitude <= Distance then
  1687. table.insert(List, v)
  1688. end
  1689. end
  1690. end
  1691. end
  1692. end
  1693. return List
  1694. end
  1695.  
  1696. function createBGCircle(size,parent)
  1697. local bgui = Instance.new("BillboardGui",parent)
  1698. bgui.Size = UDim2.new(size, 0, size, 0)
  1699. local imgc = Instance.new("ImageLabel",bgui)
  1700. imgc.BackgroundTransparency = 1
  1701. imgc.ImageTransparency = 0
  1702. imgc.Size = UDim2.new(1,0,1,0)
  1703. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  1704. imgc.ImageColor3 = Color3.new(0,1,1)
  1705. return bgui,imgc
  1706. end
  1707. local dashing = false
  1708. local floatmode = false
  1709. local equipped = false
  1710. Humanoid.Name = "UNKNOWN"
  1711. Humanoid.MaxHealth = math.huge
  1712. Humanoid.Health = math.huge
  1713. Instance.new("ForceField",char).Visible = false
  1714. Humanoid.Animator.Parent = nil
  1715. ------------------
  1716. ------------------
  1717. function chaosstomp()
  1718. attack = true
  1719. hum.WalkSpeed = 0
  1720. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 5, 1)
  1721. for i = 0,4,0.1 do
  1722. swait()
  1723. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  1724. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1725. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  1726. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  1727. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  1728. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  1729. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  1730. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  1731. end
  1732. local bgui,imgc = createBGCircle(0,root)
  1733. bgui.AlwaysOnTop = true
  1734. for i = 0, 2 do
  1735. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  1736. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  1737. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  1738. CFuncs["Sound"].Create("rbxassetid://335657174", root, 10, 0.75)
  1739. end
  1740. local scl= 0.1
  1741. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,BrickColor.new("Toothpaste"),BrickColor.new("Toothpaste").Color)
  1742. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,BrickColor.new("Toothpaste"),BrickColor.new("Toothpaste").Color)
  1743. for i = 0,5,0.1 do
  1744. swait()
  1745. scl = scl + 0.1*scl
  1746. bgui.Size = UDim2.new(scl*5,0,scl*5,0)
  1747. MagniDamage(root,scl*3,99999,9999999,0,"Normal",153092213)
  1748. coroutine.resume(coroutine.create(function()
  1749. for i, v in pairs(FindNearestTorso(root.CFrame.p, scl*3)) do
  1750. if v:FindFirstChild('Head') then
  1751. dmg(v)
  1752. end
  1753. end
  1754. end))
  1755. hum.CameraOffset = vt(math.random(-2*scl,2*scl)/25,math.random(-2*scl,2*scl)/25,math.random(-2*scl,2*scl)/25)
  1756. waveEff(5,"Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,5),scl/10,0.1,BrickColor.new("Cyan"))
  1757. slash(5,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3.25,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),scl/10,BrickColor.new("Navy blue"))
  1758. for i = 0, 2 do
  1759. sphereMK(5,math.random(15,65)/45,"Add",root.CFrame*CFrame.new(math.random(-scl*5,scl*5),-10,math.random(-scl*3,scl*3))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,BrickColor.new("Toothpaste"),Color3.new(0,1,1),0)
  1760. end
  1761. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),scl/10,0.01,scl/10,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1762. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  1763. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  1764. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  1765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  1766. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  1767. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  1768. end
  1769. coroutine.resume(coroutine.create(function()
  1770. for i = 0, 24 do
  1771. swait()
  1772. bgui.Size = bgui.Size + UDim2.new(scl,0,scl,0)
  1773. imgc.ImageTransparency = imgc.ImageTransparency + 0.04
  1774. end
  1775. bgui:Destroy()
  1776. end))
  1777. hum.CameraOffset = vt(0,0,0)
  1778. attack = false
  1779. hum.WalkSpeed = 16
  1780. end
  1781.  
  1782. function orbofvanishment()
  1783. attack = true
  1784. hum.WalkSpeed = 3
  1785. local truescale = 0
  1786. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  1787. for i = 0,4,0.1 do
  1788. swait()
  1789. truescale = truescale + 0.2
  1790. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  1791. slash(5,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,8,0)*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),-0.1,BrickColor.new("Cyan"))
  1792. block(10,"Add",root.CFrame*CFrame.new(0,8,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(truescale,truescale,truescale),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1793. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-20),math.rad(0)),.5)
  1794. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5)
  1795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(40)),.5)
  1796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.5)
  1797. RW.C0=clerp(RW.C0,cf(1.45,1,0.1)*angles(math.rad(180),math.rad(-30),math.rad(-5)),.5)
  1798. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5)
  1799. end
  1800. hum.CameraOffset = vt(0,0,0)
  1801. CFuncs["Sound"].Create("rbxassetid://260411131", rarm, 7.5, 1)
  1802. for i = 0,2,0.1 do
  1803. swait()
  1804. block(10,"Add",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1805. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(0)),.5)
  1806. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5)
  1807. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(55)),.5)
  1808. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-55)),.5)
  1809. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.6)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
  1810. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5)
  1811. end
  1812. local orb = Instance.new("Part", char)
  1813. for i = 0, 4 do
  1814. CFuncs["Sound"].Create("rbxassetid://335657174", orb, 10, 0.75)
  1815. end
  1816. orb.BrickColor = BrickColor.new("Toothpaste")
  1817. orb.CanCollide = false
  1818. orb.FormFactor = 3
  1819. orb.Name = "Ring"
  1820. orb.Material = "Neon"
  1821. orb.Size = Vector3.new(1, 1, 1)
  1822. orb.Transparency = 0
  1823. orb.TopSurface = 0
  1824. orb.BottomSurface = 0
  1825. local orbm = Instance.new("SpecialMesh", orb)
  1826. orbm.MeshType = "Sphere"
  1827. orbm.Name = "SizeMesh"
  1828. orbm.Scale = vt(10,10,10)
  1829. orb.CFrame = root.CFrame + root.CFrame.lookVector*3
  1830. local a = Instance.new("Part",workspace)
  1831. a.Name = "Direction"
  1832. a.Anchored = true
  1833. a.BrickColor = bc("Bright red")
  1834. a.Material = "Neon"
  1835. a.Transparency = 1
  1836. a.CanCollide = false
  1837. local ray = Ray.new(
  1838. orb.CFrame.p, -- origin
  1839. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  1840. )
  1841. local ignore = orb
  1842. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1843. a.BottomSurface = 10
  1844. a.TopSurface = 10
  1845. local distance = (orb.CFrame.p - position).magnitude
  1846. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1847. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1848. orb.CFrame = a.CFrame
  1849. a:Destroy()
  1850. local over = false
  1851. local bgui,imgc = createBGCircle(50,orb)
  1852. bgui.AlwaysOnTop = true
  1853. imgc.Image = "rbxassetid://2059444669"
  1854. local at1a = Instance.new("Attachment",orb)
  1855. at1a.Position = Vector3.new(0,5,0)
  1856. local at2a = Instance.new("Attachment",orb)
  1857. at2a.Position = Vector3.new(0,5,0)
  1858. local at1b = Instance.new("Attachment",orb)
  1859. at1b.Position = Vector3.new(5,0,0)
  1860. local at2b = Instance.new("Attachment",orb)
  1861. at2b.Position = Vector3.new(-5,0,0)
  1862. local tl1 = Instance.new('Trail',orb)
  1863. tl1.Attachment0 = at1a
  1864. tl1.Attachment1 = at2a
  1865. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1866. tl1.LightEmission = 1
  1867. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1868. tl1.Color = ColorSequence.new(BrickColor.new('Toothpaste').Color)
  1869. tl1.Lifetime = 3
  1870. local tl2 = tl1:Clone()
  1871. tl2.Parent = orb
  1872. tl2.Attachment0 = at1b
  1873. tl2.Attachment1 = at2b
  1874. coroutine.resume(coroutine.create(function()
  1875. while true do
  1876. swait()
  1877. if over == false then
  1878. hum.CameraOffset = vt(math.random(-10,10)/250,math.random(-10,10)/250,math.random(-10,10)/250)
  1879. MagniDamage(orb,25,99999,9999999,0,"Normal",153092213)
  1880. coroutine.resume(coroutine.create(function()
  1881. for i, v in pairs(FindNearestTorso(orb.CFrame.p, 25)) do
  1882. if v:FindFirstChild('Head') then
  1883. dmg(v)
  1884. end
  1885. end
  1886. end))
  1887. slash(10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.15,0.01,0.15),-0.05,BrickColor.new("Toothpaste"))
  1888. imgc.ImageTransparency = 0.25 + 0.25 * math.cos(sine / 10)
  1889. imgc.Rotation = imgc.Rotation + 10
  1890. bgui.Size = UDim2.new(50 + 25 * math.cos(sine / 10),0, 50 + 25 * math.cos(sine / 10),0)
  1891. elseif over == true then
  1892. break
  1893. end
  1894. end
  1895. end))
  1896. local bv = Instance.new("BodyVelocity")
  1897. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1898. bv.velocity = orb.CFrame.lookVector*350
  1899. bv.Parent = orb
  1900. coroutine.resume(coroutine.create(function()
  1901. wait(1)
  1902. over = true
  1903. orb.Anchored = true
  1904. MagniDamage(orb,125,99999,9999999,0,"Normal",153092213)
  1905. coroutine.resume(coroutine.create(function()
  1906. for i, v in pairs(FindNearestTorso(orb.CFrame.p, 125)) do
  1907. if v:FindFirstChild('Head') then
  1908. dmg(v)
  1909. end
  1910. end
  1911. end))
  1912. for i = 0, 4 do
  1913. CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5,1)
  1914. CFuncs["Sound"].Create("rbxassetid://763718160", orb, 10, 1.1)
  1915. CFuncs["Sound"].Create("rbxassetid://782353443", orb, 10, 1)
  1916. CFuncs["Sound"].Create("rbxassetid://335657174", orb, 10, 1)
  1917. end
  1918. for i = 0, 2 do
  1919. block(3,"Add",orb.CFrame,vt(1,1,1),2.5,2.5,2.5,BrickColor.new("Navy blue"),Color3.new(0,0,0.5))
  1920. block(2,"Add",orb.CFrame,vt(1,1,1),2,2,2,BrickColor.new("Cyan"),Color3.new(0,0.5,1))
  1921. block(1,"Add",orb.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1922. end
  1923. for i = 0, 19 do
  1924. slash(math.random(10,55)/10,5,true,"Round","Add","Out",orb.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(50,500)/250,BrickColor.new("Cyan"))
  1925. end
  1926. imgc.ImageTransparency = 0
  1927. for i = 0, 49 do
  1928. swait()
  1929. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  1930. orbm.Scale = orbm.Scale + vt(1,1,1)
  1931. orb.Transparency = orb.Transparency + 0.02
  1932. imgc.Rotation = imgc.Rotation + 20
  1933. imgc.ImageTransparency = imgc.ImageTransparency + 0.02
  1934. bgui.Size = bgui.Size + UDim2.new(15,0,15,0)
  1935. end
  1936. hum.CameraOffset = vt(0,0,0)
  1937. game:GetService("Debris"):AddItem(orb, 10)
  1938. end))
  1939. for i = 0,2,0.1 do
  1940. swait()
  1941. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(5),math.rad(-10)),.5)
  1942. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-10)),.5)
  1943. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.1)*angles(math.rad(5),math.rad(0),math.rad(-45)),.5)
  1944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(45)),.5)
  1945. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(50)),.5)
  1946. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(10),math.rad(-30)),.5)
  1947. end
  1948. attack = false
  1949. hum.WalkSpeed = 16
  1950. end
  1951.  
  1952. function blink()
  1953. for i = 0, 14 do
  1954. 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.01,0.01,0.01),math.random(50,100)/250,BrickColor.new("Cyan"))
  1955. end
  1956. block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.25,0.25,0.25,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1957. block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.1,0.1,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1958. coroutine.resume(coroutine.create(function()
  1959. for i = 0, 24 do
  1960. swait()
  1961. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  1962. end
  1963. end))
  1964. CFuncs["Sound"].Create("rbxassetid://335657174", root, 10, 1)
  1965. root.CFrame = root.CFrame + root.CFrame.lookVector*100
  1966. for i = 0, 14 do
  1967. 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.01,0.01,0.01),math.random(50,100)/250,BrickColor.new("Cyan"))
  1968. end
  1969. block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.25,0.25,0.25,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1970. block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.1,0.1,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
  1971. end
  1972. ------------------
  1973.  
  1974.  
  1975. local sngy = Instance.new("TextLabel",fullscreenz)
  1976. sngy.ZIndex = 2
  1977. sngy.Font = "Arcade"
  1978. sngy.BackgroundTransparency = 1
  1979. sngy.BorderSizePixel = 0.65
  1980. sngy.Size = UDim2.new(0.35,0,0.2,0)
  1981. sngy.Position = UDim2.new(0.325,0,0.8,0)
  1982. sngy.TextColor3 = BrickColor.new("Cyan").Color
  1983. sngy.TextStrokeColor3 = BrickColor.new("Cyan").Color
  1984. sngy.TextScaled = true
  1985. sngy.TextStrokeTransparency = 0
  1986. sngy.Text = string.upper("Techno Switcher by lukekitten95, LightYT Roblox & More. Original made by Noobygames12. Version 1.0.5")
  1987. sngy.TextSize = 12
  1988. sngy.Rotation = 0
  1989. sngy.TextXAlignment = "Center"
  1990. sngy.TextYAlignment = "Bottom"
  1991.  
  1992. local storehumanoidWS = 16
  1993.  
  1994. local ModeOfGlitch = 1331
  1995.  
  1996. function mode1()
  1997. attack = true
  1998. ModeOfGlitch = 1
  1999. storehumanoidWS = 16
  2000. hum.WalkSpeed = 16
  2001. RecolorTextAndRename("TECHNO",BrickColor.new("Cyan").Color,BrickColor.new("Cyan").Color,"Antique")
  2002. newTheme("rbxassetid://1836057235",0,1,1.25)
  2003. MAINRUINCOLOR = BrickColor.new("Cyan")
  2004. attack = false
  2005. end
  2006.  
  2007. function mode2()
  2008. attack = true
  2009. ModeOfGlitch = 2
  2010. storehumanoidWS = 45
  2011. hum.WalkSpeed = 45
  2012. RecolorTextAndRename("i hacked ur mc account noob lol xd",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
  2013. newTheme("rbxassetid://296277143",0,1,1.25)
  2014. MAINRUINCOLOR = BrickColor.new("Really red")
  2015. attack = false
  2016. end
  2017.  
  2018. function TheoriesMSGfunc(text,color,C3)
  2019. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  2020. coroutine.resume(coroutine.create(function()
  2021. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  2022. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  2023. end
  2024. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  2025. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  2026. scrg.Name = "Dialog"
  2027. local txtlb = Instance.new("TextLabel",scrg)
  2028. txtlb.Text = ""
  2029. txtlb.Font = "Bodoni"
  2030. txtlb.TextColor3 = Color3.new(0,0,0)
  2031. txtlb.TextStrokeTransparency = 1
  2032. txtlb.BackgroundTransparency = 1
  2033. txtlb.BackgroundColor3 = color
  2034. txtlb.TextStrokeColor3 = C3
  2035. txtlb.TextColor3 = color
  2036. txtlb.TextScaled = true
  2037. txtlb.Size = UDim2.new(1,0,1,0)
  2038. txtlb.TextXAlignment = "Left"
  2039. txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
  2040. local txtlb2 = Instance.new("TextLabel",scrg)
  2041. txtlb2.Text = ""
  2042. txtlb2.Font = "Bodoni"
  2043. txtlb2.TextColor3 = Color3.new(0,0,0)
  2044. txtlb2.TextStrokeTransparency = 0
  2045. txtlb2.BackgroundTransparency = 0.96
  2046. txtlb2.BackgroundColor3 = C3
  2047. txtlb2.TextStrokeColor3 = color
  2048. txtlb2.TextScaled = true
  2049. txtlb2.Size = UDim2.new(0, 999999, 0, 999)
  2050. txtlb2.TextXAlignment = "Center"
  2051. txtlb2.Position = UDim2.new(0,0,0,0)
  2052. local Iml = Instance.new("ImageLabel",scrg)
  2053. Iml.BackgroundTransparency = 1
  2054. Iml.BorderSizePixel = 0
  2055. Iml.ImageTransparency = 0
  2056. Iml.ImageColor3 = C3
  2057. Iml.Position = UDim2.new(0,0,0.75 + 1,0)
  2058. Iml.Size = UDim2.new(0, 638.82, 0, 591.5)
  2059. Iml.Image = "rbxassetid://0"
  2060. local Iml1 = Instance.new("ImageLabel",scrg)
  2061. Iml1.BackgroundTransparency = 1
  2062. Iml1.BorderSizePixel = 0
  2063. Iml1.ImageTransparency = 0
  2064. Iml1.ImageColor3 = C3
  2065. Iml1.Position = UDim2.new(0,0,0.75 + 1,0)
  2066. Iml1.Size = UDim2.new(0, 638.82, 0, 591.5)
  2067. Iml1.Image = "rbxassetid://0"
  2068. local Iml2 = Instance.new("ImageLabel",scrg)
  2069. Iml2.BackgroundTransparency = 1
  2070. Iml2.BorderSizePixel = 0
  2071. Iml2.ImageTransparency = 0
  2072. Iml2.ImageColor3 = color
  2073. Iml2.Position = UDim2.new(0,0,0.75 + 1,0)
  2074. Iml2.Size = UDim2.new(0, 638.82, 0, 591.5)
  2075. Iml2.Image = "rbxassetid://0"
  2076. local txtlb = Instance.new("TextLabel",Iml)
  2077. txtlb.Text = text
  2078. txtlb.Font = "SciFi"
  2079. txtlb.TextColor3 = color
  2080. txtlb.TextStrokeTransparency = 0
  2081. txtlb.BackgroundTransparency = 1
  2082. txtlb.TextStrokeColor3 = color
  2083. txtlb.TextScaled = true
  2084. txtlb.Size = UDim2.new(1,0,1,0)
  2085. txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
  2086. local fvalen = 0.4
  2087. local fval = -0.49
  2088. coroutine.resume(coroutine.create(function()
  2089. while true do
  2090. swait()
  2091. if scrg.Parent ~= nil then
  2092. fvalen = fvalen - 0.0001
  2093. elseif scrg.Parent == nil then
  2094. break
  2095. end
  2096. end
  2097. end))
  2098. local flol = -0.625
  2099. local flil = -0.935
  2100. coroutine.resume(coroutine.create(function()
  2101. while true do
  2102. swait()
  2103. Iml1.Rotation = Iml1.Rotation + 2.5
  2104. Iml2.Rotation = Iml2.Rotation - 2.5
  2105. end
  2106. end))
  2107. coroutine.resume(coroutine.create(function()
  2108. for i = 0, 36 do
  2109. swait()
  2110. fval = fval + 0.0125
  2111. flol = flol + 0.025
  2112. flil = flil + 0.025
  2113. txtlb.Text = text
  2114. txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency - 0.008
  2115. txtlb.Position = UDim2.new(flil,0,0,0)
  2116. Iml.Position = UDim2.new(flol,0,-0.05,0)
  2117. Iml1.Position = UDim2.new(flol,0,-0.05,0)
  2118. Iml2.Position = UDim2.new(flol,0,-0.05,0)
  2119. end
  2120. coroutine.resume(coroutine.create(function()
  2121. for i = 0, 99 do
  2122. swait()
  2123. fval = fval + 0.00001
  2124. flol = flol + 0.0001
  2125. flil = flil + 0.0001
  2126. txtlb.Text = text
  2127. txtlb.Position = UDim2.new(flil,0,0,0)
  2128. Iml1.Position = UDim2.new(flol,0,-0.05,0)
  2129. Iml1.Position = UDim2.new(flol,0,-0.05,0)
  2130. Iml2.Position = UDim2.new(flol,0,-0.05,0)
  2131. end
  2132. end))
  2133. wait(1.6)
  2134. local valinc = 0
  2135. for i = 0, 99 do
  2136. swait()
  2137. valinc = valinc + 0.0001
  2138. flol = flol + valinc
  2139. flil = flil + valinc
  2140. Iml1.Rotation = Iml1.Rotation - valinc*50
  2141. Iml.Rotation = Iml1.Rotation - valinc*2
  2142. Iml2.Rotation = Iml2.Rotation - valinc*50
  2143. Iml.Position = UDim2.new(flol,0,0,0)
  2144. Iml1.Position = UDim2.new(flol,0,-0.05,0)
  2145. Iml2.Position = UDim2.new(flol,0,-0.05,0)
  2146. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  2147. txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency + 0.006
  2148. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  2149. Iml.ImageTransparency = Iml1.ImageTransparency + 0.01
  2150. Iml1.ImageTransparency = Iml1.ImageTransparency + 0.01
  2151. Iml2.ImageTransparency = Iml2.ImageTransparency + 0.01
  2152. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  2153. end
  2154. scrg:Destroy()
  2155. end))
  2156. end))
  2157. end
  2158. end
  2159.  
  2160. function mode3()
  2161. attack = true
  2162. ModeOfGlitch = 3
  2163. storehumanoidWS = 22
  2164. hum.WalkSpeed = 22
  2165. RecolorTextAndRename("Technological",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,"Antique")
  2166. newTheme("rbxassetid://1838028467",0,1,1.25)
  2167. MAINRUINCOLOR = BrickColor.new("Really blue")
  2168. attack = false
  2169. end
  2170.  
  2171. function mode4()
  2172. attack = true
  2173. ModeOfGlitch = 3
  2174. storehumanoidWS = 16
  2175. hum.WalkSpeed = 16
  2176. RecolorTextAndRename("i plaY mINeCraFt",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,"Antique")
  2177. newTheme("rbxassetid://1920287366",0,1,1.25)
  2178. MAINRUINCOLOR = BrickColor.new("Really blue")
  2179. attack = false
  2180. end
  2181.  
  2182. function secretmode()
  2183. attack = true
  2184. ModeOfGlitch = 201
  2185. storehumanoidWS = 150
  2186. hum.WalkSpeed = 150
  2187. RecolorTextAndRename("lOGan pAUL XD",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Antique")
  2188. newTheme("rbxassetid://986986864",0,1,1.25)
  2189. MAINRUINCOLOR = BrickColor.new("Really blue")
  2190. attack = false
  2191. end
  2192.  
  2193. function determined()
  2194. newTheme("rbxassetid://228698188",0,1.01,20)
  2195. kan.TimePosition = 0
  2196. wait(19)
  2197. RecolorTextAndRename("We Don't Care what they say..",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
  2198. wait(3)
  2199. RecolorTextAndRename("We will be here all day...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
  2200. wait(3)
  2201. RecolorTextAndRename("We'll Stay here 'till its over...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
  2202. wait(3)
  2203. RecolorTextAndRename("'Till the World's out of sight...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
  2204. wait(3)
  2205. RecolorTextAndRename("We will stand, We will fight...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
  2206. wait(2)
  2207. RecolorTextAndRename("IT'S NOT OVER 'TILL ITS OVER!",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
  2208. wait(3.5)
  2209. ModeOfGlitch = 1312
  2210. storehumanoidWS = 125
  2211. hum.WalkSpeed = 125
  2212. RecolorTextAndRename("DETERMINED",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
  2213. newTheme("rbxassetid://228698188",0,1.01,20)
  2214. MAINRUINCOLOR = BrickColor.new("Really red")
  2215. end
  2216.  
  2217. function secretmode2()
  2218. attack = true
  2219. ModeOfGlitch = 202
  2220. storehumanoidWS = 150
  2221. hum.WalkSpeed = 150
  2222. RecolorTextAndRename("Kill em with real lyrics",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Antique")
  2223. newTheme("rbxassetid://491080872",0,1,20)
  2224. MAINRUINCOLOR = BrickColor.new("Really blue")
  2225. attack = false
  2226. end
  2227.  
  2228. local attacktype = 1
  2229. mouse.Button1Down:connect(function()
  2230. --[[if attack == false and attacktype == 1 then
  2231. attacktype = 2
  2232. -- attackone()
  2233. elseif attack == false and attacktype == 2 then
  2234. attacktype = 3
  2235. --attacktwo()
  2236. elseif attack == false and attacktype == 3 then
  2237. attacktype = 1
  2238. --attackthree()
  2239. elseif attack == false and attacktype == 4 then
  2240. attacktype = 1
  2241. --attackfour()
  2242. end]]--
  2243. end)
  2244. mouse.KeyDown:connect(function(k)
  2245. if k == "z" and attack == false then
  2246. chaosstomp()
  2247. end
  2248. if k == "one" or k == "q" and attack == false and ModeOfGlitch ~= 1 then
  2249. mode1()
  2250. end
  2251. if k == "two" or k == "e" and attack == false and ModeOfGlitch ~= 2 then
  2252. mode2()
  2253. end
  2254. if k == "three" or k == "r" and attack == false and ModeOfGlitch ~= 3 then
  2255. mode3()
  2256. end
  2257. if k == "four" or k == "t" and attack == false and ModeOfGlitch ~= 4 then
  2258. mode4()
  2259. end
  2260. if k == "x" and attack == false then
  2261. orbofvanishment()
  2262. end
  2263. if k == "c" and attack == false then
  2264. blink()
  2265. end
  2266. if k == "l" and muter == false then
  2267. muter = true
  2268. kan.Volume = 0
  2269. elseif k == "l" and muter == true then
  2270. muter = false
  2271. kan.Volume = 1.25
  2272. end
  2273. end)
  2274. plr.Chatted:connect(function(message)
  2275. if message:sub(1,3) == "id/" then
  2276. ORGID = message:sub(4)
  2277. kan.TimePosition = 0
  2278. kan:Play()
  2279. elseif message:sub(1,6) == "pitch/" then
  2280. ORPIT = message:sub(7)
  2281. elseif message:sub(1,4) == "vol/" then
  2282. ORVOL = message:sub(5)
  2283. elseif message:sub(1,5) == "LOGAN" then
  2284. shakes(0.5,1)
  2285. secretmode()
  2286. elseif message:sub(1,4) == "KIND" then
  2287. shakes(0.5,1)
  2288. secretmode2()
  2289. elseif message:sub(1,10) == "DETERMINED" then
  2290. determined()
  2291. end
  2292. end)
  2293.  
  2294. local bgui = Instance.new("BillboardGui",root)
  2295. bgui.Size = UDim2.new(25, 0, 25, 0)
  2296. local imgc = Instance.new("ImageLabel",bgui)
  2297. imgc.BackgroundTransparency = 1
  2298. imgc.ImageTransparency = 1
  2299. imgc.Size = UDim2.new(1,0,1,0)
  2300. imgc.Image = "rbxassetid://2059444669" --997291547,521073910
  2301. imgc.ImageColor3 = Color3.new(0,1,1)
  2302. local imgc2 = imgc:Clone()
  2303. imgc2.Parent = bgui
  2304. imgc2.Size = UDim2.new(1.5,0,1.5,0)
  2305. imgc2.Position = UDim2.new(-0.25,0,-0.25,0)
  2306. imgc2.ImageColor3 = Color3.new(0,0.75,1)
  2307. imgc.Rotation = 45
  2308. imgc2.Rotation = 45
  2309.  
  2310. idleanim=.4
  2311. while true do
  2312. swait()
  2313. Humanoid.MaxHealth = math.huge
  2314. Humanoid.Health = math.huge
  2315. coroutine.resume(coroutine.create(function()
  2316. for i, v in pairs(FindNearestTorso(root.CFrame.p, 7.5)) do
  2317. if v:FindFirstChild('Head') then
  2318. dmg(v)
  2319. end
  2320. end
  2321. end))
  2322. techc.Rotation = techc.Rotation + 0.1
  2323. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/75
  2324. imgl2.ImageColor3 = Color3.new(0,0.2 + kan.PlaybackLoudness/2500,0.5 + kan.PlaybackLoudness/2500)
  2325. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/50
  2326. imgl2b.ImageColor3 = Color3.new(0,0.2 + kan.PlaybackLoudness/1000,0.5 + kan.PlaybackLoudness/1000)
  2327. ned.Rotation = 0 - 2 * math.cos(sine / 25)
  2328. imgc.ImageTransparency = 0.5 + 0.25 * math.cos(sine / 30)
  2329. imgc.Rotation = imgc.Rotation + kan.PlaybackLoudness/50
  2330. imgc2.ImageTransparency = 0.75 - 0.25 * math.cos(sine / 30)
  2331. imgc2.Rotation = imgc2.Rotation - kan.PlaybackLoudness/50
  2332. bgui.Size = UDim2.new(15 + 1 * math.cos(sine / 30),0, 15 + 1 * math.cos(sine / 30),0)
  2333. ned.Position = UDim2.new(0.6,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  2334. sine = sine + change
  2335. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2336. local velderp=RootPart.Velocity.y
  2337. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2338. if hitfloor ~= nil then
  2339. slash(math.random(75,150)/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.01,0.01,0.01),math.random(5,350)/250,MAINRUINCOLOR)
  2340. end
  2341. if equipped==true or equipped==false then
  2342. if attack==false then
  2343. idle=idle+1
  2344. else
  2345. idle=0
  2346. end
  2347. if idle>=500 then
  2348. if attack==false then
  2349. --Sheath()
  2350. end
  2351. end
  2352. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2353. Anim="Jump"
  2354. if attack==false then
  2355. 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)
  2356. 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)
  2357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  2358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2359. 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)
  2360. 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)
  2361. end
  2362. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2363. Anim="Fall"
  2364. if attack==false then
  2365. 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)
  2366. 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)
  2367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  2368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  2369. 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)
  2370. 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)
  2371. end
  2372. elseif torvel<1 and hitfloor~=nil then
  2373. Anim="Idle"
  2374. if attack==false then
  2375. RH.C0=clerp(RH.C0,cf(1,-1 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15 + 1 * math.cos(sine / 30)),math.rad(0)),.5)
  2376. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(5 + 2.5 * math.cos(sine / 30))),.5)
  2377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05 - 0.1 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0 ),math.rad(30 - 2 * math.cos(sine / 30))),.5)
  2378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 5 * math.cos(sine / 30)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 30))),.5)
  2379. RW.C0=clerp(RW.C0,cf(1.45,0.5 - 0.05 * math.cos(sine / 30),0.1)*angles(math.rad(-5),math.rad(-10),math.rad(10 + 5 * math.cos(sine / 30))),.5)
  2380. LW.C0=clerp(LW.C0,cf(-1.4,0.5 - 0.05 * math.cos(sine / 30),0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10 - 5 * math.cos(sine / 30))),.5)
  2381. end
  2382. --game.Players.lukekitten95.hum.WalkSpeed = 12345678 -- remove this part so it will work
  2383. elseif torvel>2 and torvel<42 and hitfloor~=nil then
  2384. Anim="Walk"
  2385. if attack==false then
  2386. 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 + 25 * math.cos(sine / 8))),.5)
  2387. 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 + 25 * math.cos(sine / 8))),.5)
  2388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.025 * math.cos(sine / 4))*angles(math.rad(5 + 1 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.5)
  2389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 1 * 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))),.5)
  2390. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 5 * math.cos(sine / 4))),.5)
  2391. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 4))),.5)
  2392. end
  2393. elseif torvel>=42 and hitfloor~=nil then
  2394. Anim="Run"
  2395. if attack==false then
  2396. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  2397. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  2398. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
  2399. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
  2400. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
  2401. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
  2402. end
  2403. end
  2404. end
  2405. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement