refrop

Titan noob (alpha) v4

May 1st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.64 KB | None | 0 0
  1. --[[ noob music player 1.0
  2.  
  3. noob music player version 1.0
  4.  
  5. ]]
  6.  
  7. --[[
  8.  
  9. what's new?
  10.  
  11. - 1.1.0
  12. · prints starting message
  13. · you can now choose what colour (cyan by default) you want it to be if you want to post this as a new script/paste
  14. · clicking the play button now shows bgm info on top
  15. · main frame is now draggable (might not work but could be fixed soon)
  16.  
  17. - 1.2.0
  18. · now you can set the font for the music player itself
  19. · dragging the gui still doesn't work
  20. · new bgm info appears above character
  21.  
  22. - 1.3.0
  23. · bgm info appears above screen again
  24. · GUI now has sounds
  25. · default appearance changed
  26.  
  27. - 1.3.1
  28. · sounds work correctly
  29. · default appearance changed
  30. · I'm not actually gonna work on the draggable frame, as it's 2hard4me
  31.  
  32. - 1.4.0
  33. · users can now play audio from hash codes (i.e. 7b509300b5bed2c924d6a0bda990d33b)
  34. · not only that, but the music player itself is also larger
  35. · it's also pretty rare to find working songs like these.
  36. · you can now set the style of title when it disappears, but only when you save post this as a new paste
  37. · custom() now works properly
  38.  
  39. ]]
  40.  
  41. print("Hello this script is better in parties :D")
  42.  
  43. -- define player variable
  44. local Player=game.Players.LocalPlayer
  45.  
  46. -- appearance
  47. col=Color3.fromRGB(255, 255, 0) -- blue color
  48. font=Enum.Font.SciFi
  49. style="Fade"
  50.  
  51. -- creation of gui
  52. local scrg=Instance.new("ScreenGui",Player.PlayerGui)
  53. local credit=Instance.new("TextLabel",scrg)
  54. credit.BackgroundColor3=Color3.fromRGB(255, 170, 0)
  55. credit.BackgroundTransparency=1
  56. credit.Position=UDim2.new(0,0,1,-18)
  57. credit.Size=UDim2.new(1,0,0,18)
  58. credit.Font=font
  59. credit.FontSize=Enum.FontSize.Size18
  60. credit.Text="Have a nice day :D"
  61. credit.TextColor3=Color3.fromRGB(255,255,255)
  62. credit.TextScaled=true
  63. credit.TextStrokeTransparency=0.5
  64. credit.TextWrapped=true
  65. credit.TextXAlignment=Enum.TextXAlignment.Left
  66. local title=Instance.new("TextLabel",scrg)
  67. title.BackgroundTransparency=1
  68. title.FontSize=Enum.FontSize.Size60
  69. title.Font=font
  70. title.Size=UDim2.new(1,0,0.25)
  71. title.TextColor3=col
  72. title.TextStrokeTransparency=0.5
  73. title.Text="Noob's Music Player GUI v1.4.0"
  74. local main=Instance.new("Frame",scrg)
  75. main.BackgroundColor3=Color3.fromRGB(0,0,0)
  76. main.BackgroundTransparency=0.5
  77. main.BorderColor3=col
  78. main.BorderSizePixel=5
  79. main.Position=UDim2.new(0,0,0.5,-100)
  80. main.Size=UDim2.new(0,400,0,90)
  81. main.Selectable=true
  82. main.Draggable=true
  83. local loopcol=Instance.new("Frame",main)
  84. loopcol.BackgroundTransparency=1
  85. loopcol.Size=UDim2.new(1,0,0.2,0)
  86. local ltitle=Instance.new("TextLabel",loopcol)
  87. ltitle.BackgroundColor3=Color3.fromRGB(255,255,255)
  88. ltitle.BackgroundTransparency=1
  89. ltitle.Size=UDim2.new(1,0,1,0)
  90. ltitle.Font=font
  91. ltitle.FontSize=Enum.FontSize.Size18
  92. ltitle.Text="Looped"
  93. ltitle.TextColor3=col
  94. ltitle.TextXAlignment=Enum.TextXAlignment.Left
  95. ltitle.Active=false
  96. local ltrue=Instance.new("TextButton",loopcol)
  97. ltrue.BackgroundColor3=Color3.fromRGB(0,0,0)
  98. ltrue.BackgroundTransparency=0.5
  99. ltrue.BorderSizePixel=0
  100. ltrue.Position=UDim2.new(0.5,0,0,0)
  101. ltrue.Size=UDim2.new(0.25,0,1,0)
  102. ltrue.Font=font
  103. ltrue.FontSize=Enum.FontSize.Size18
  104. ltrue.Text="true"
  105. ltrue.TextColor3=Color3.fromRGB(255,255,255)
  106. local lfalse=Instance.new("TextButton",loopcol)
  107. lfalse.Name="TextButton2"
  108. lfalse.BackgroundColor3=Color3.fromRGB(0,0,0)
  109. lfalse.BackgroundTransparency=0.5
  110. lfalse.BorderSizePixel=0
  111. lfalse.Position=UDim2.new(0.75,0,0,0)
  112. lfalse.Size=UDim2.new(0.25,0,1,0)
  113. lfalse.Font=font
  114. lfalse.FontSize=Enum.FontSize.Size18
  115. lfalse.Text="false"
  116. lfalse.TextColor3=Color3.fromRGB(255,255,255)
  117. local pscol=Instance.new("Frame",main)
  118. pscol.Name="Frame2"
  119. pscol.BackgroundTransparency=1
  120. pscol.Position=UDim2.new(0,0,0.2,0)
  121. pscol.Size=UDim2.new(1,0,0.2,0)
  122. local pstitle=Instance.new("TextLabel",pscol)
  123. pstitle.BackgroundTransparency=1
  124. pstitle.Size=UDim2.new(1,0,1,0)
  125. pstitle.Font=font
  126. pstitle.FontSize=Enum.FontSize.Size18
  127. pstitle.Text="PlaybackSpeed"
  128. pstitle.TextColor3=col
  129. pstitle.TextXAlignment=Enum.TextXAlignment.Left
  130. pstitle.Active=false
  131. local psfield=Instance.new("TextBox",pscol)
  132. psfield.BackgroundColor3=Color3.fromRGB(0,0,0)
  133. psfield.BackgroundTransparency=0.5
  134. psfield.BorderSizePixel=0
  135. psfield.Position=UDim2.new(0.5,0,0,0)
  136. psfield.Size=UDim2.new(0.5,0,1,0)
  137. psfield.Font=font
  138. psfield.FontSize=Enum.FontSize.Size18
  139. psfield.Text="Input Here"
  140. psfield.TextColor3=Color3.fromRGB(255,255,255)
  141. psfield.TextScaled=true
  142. local sidcol=Instance.new("Frame",main)
  143. sidcol.Name="Frame3"
  144. sidcol.BackgroundTransparency=1
  145. sidcol.Position=UDim2.new(0,0,0.4,0)
  146. sidcol.Size=UDim2.new(1,0,0.2,0)
  147. local sidtitle=Instance.new("TextLabel",sidcol)
  148. sidtitle.BackgroundColor3=Color3.fromRGB(255,255,255)
  149. sidtitle.BackgroundTransparency=1
  150. sidtitle.Size=UDim2.new(1,0,1,0)
  151. sidtitle.Font=font
  152. sidtitle.FontSize=Enum.FontSize.Size18
  153. sidtitle.Text="SoundId"
  154. sidtitle.TextColor3=col
  155. sidtitle.TextXAlignment=Enum.TextXAlignment.Left
  156. sidtitle.Active=false
  157. local sidfield=Instance.new("TextBox",sidcol)
  158. sidfield.BackgroundColor3=Color3.fromRGB(0,0,0)
  159. sidfield.BackgroundTransparency=0.5
  160. sidfield.BorderSizePixel=0
  161. sidfield.Position=UDim2.new(0.5,0,0,0)
  162. sidfield.Size=UDim2.new(0.5,0,1,0)
  163. sidfield.Font=font
  164. sidfield.FontSize=Enum.FontSize.Size18
  165. sidfield.Text="Input Here"
  166. sidfield.TextColor3=Color3.fromRGB(255,255,255)
  167. sidfield.TextScaled=true
  168. local volucol=Instance.new("Frame",main)
  169. volucol.Name="Frame4"
  170. volucol.BackgroundColor3=Color3.new(1,1,1)
  171. volucol.BackgroundTransparency=1
  172. volucol.Position=UDim2.new(0,0,0.6,0)
  173. volucol.Size=UDim2.new(1,0,0.2,0)
  174. local volutitle=Instance.new("TextLabel",volucol)
  175. volutitle.BackgroundColor3=Color3.fromRGB(255,255,255)
  176. volutitle.BackgroundTransparency=1
  177. volutitle.Size=UDim2.new(1,0,1,0)
  178. volutitle.Font=font
  179. volutitle.FontSize=Enum.FontSize.Size18
  180. volutitle.Text="Volume"
  181. volutitle.TextColor3=col
  182. volutitle.TextXAlignment=Enum.TextXAlignment.Left
  183. volutitle.Active=false
  184. local volufield= Instance.new("TextBox",volucol)
  185. volufield.BackgroundColor3=Color3.fromRGB(0,0,0)
  186. volufield.BackgroundTransparency=0.5
  187. volufield.BorderSizePixel=0
  188. volufield.Position=UDim2.new(0.5,0,0,0)
  189. volufield.Size=UDim2.new(0.5,0,1,0)
  190. volufield.Font=font
  191. volufield.FontSize=Enum.FontSize.Size18
  192. volufield.Text="Input Here"
  193. volufield.TextColor3=Color3.fromRGB(255,255,255)
  194. volufield.TextScaled=true
  195. local control=Instance.new("Frame",main)
  196. control.Name="Frame5"
  197. control.BackgroundColor3=Color3.fromRGB(255,255,255)
  198. control.BackgroundTransparency=1
  199. control.Position=UDim2.new(0,0,0.8,0)
  200. control.Size=UDim2.new(1,0,0.2,0)
  201. local pleh1=Instance.new("TextButton",control)
  202. pleh1.BackgroundColor3=Color3.fromRGB(0,0,0)
  203. pleh1.BackgroundTransparency=0.5
  204. pleh1.BorderSizePixel=0
  205. pleh1.Size=UDim2.new(0.25,0,1,0)
  206. pleh1.Font=font
  207. pleh1.FontSize=Enum.FontSize.Size18
  208. pleh1.Text="Play Music"
  209. pleh1.TextColor3=Color3.fromRGB(255,255,255)
  210. local pleh2=Instance.new("TextButton",control)
  211. pleh2.BackgroundColor3=Color3.fromRGB(0,0,0)
  212. pleh2.BackgroundTransparency=0.5
  213. pleh2.BorderSizePixel=0
  214. pleh2.Position=UDim2.new(0.25,0,0,0)
  215. pleh2.Size=UDim2.new(0.25,0,1,0)
  216. pleh2.Font=font
  217. pleh2.FontSize=Enum.FontSize.Size18
  218. pleh2.Text="Play # Music"
  219. pleh2.TextColor3=Color3.fromRGB(255,255,255)
  220. local stahp=Instance.new("TextButton",control)
  221. stahp.Name="TextButton2"
  222. stahp.BackgroundColor3=Color3.fromRGB(0,0,0)
  223. stahp.BackgroundTransparency=0.5
  224. stahp.BorderSizePixel=0
  225. stahp.Position=UDim2.new(0.5, 0, 0, 0)
  226. stahp.Size=UDim2.new(0.5, 0, 1, 0)
  227. stahp.Font=font
  228. stahp.FontSize=Enum.FontSize.Size18
  229. stahp.Text="Stop Music"
  230. stahp.TextColor3=Color3.fromRGB(255,255,255)
  231. -- yay! creation is finished!
  232. -- but wait... ...there's more...
  233.  
  234.  
  235. -- this is the fun part...
  236.  
  237. -- define looped variable
  238. looped=true
  239.  
  240. function create()
  241. local sound=Instance.new("Sound",workspace)
  242. sound.Name="MusicGUIsong"
  243. end
  244.  
  245. function del()
  246. if workspace.MusicGUIsong.IsPlaying==true then
  247. workspace.MusicGUIsong:Destroy()
  248. end
  249. end
  250.  
  251. function informii()
  252. --[[local doublecheckplayer=game.Players.LocalPlayer.Name
  253. local wp=workspace:findFirstChild(doublecheckplayer)
  254. local hed=wp.Head
  255. local b=Instance.new("BillboardGui",hed)
  256. b.StudsOffset=Vector3.new(0,4,0)
  257. b.Size=UDim2.new(18,0,4,0)
  258. b.Adornee=hed
  259. local t=Instance.new("TextLabel",b)
  260. t.BackgroundTransparency=1
  261. t.TextColor3=col]]
  262. --t.Text=[[SoundId playing: ]]..sidfield.Text..[[
  263. --PlaybackSpeed: ]]..psfield.Text..[[
  264. --Volume: ]]..volufield.Text
  265. --[[t.Font=font
  266. t.Size=UDim2.new(1,0,1,0) -- keeping this here in case I want to use it again
  267. t.TextScaled=true
  268. wait(5)
  269. t:Destroy()]]
  270. local h=Instance.new("Hint",workspace)
  271. h.Text="SoundId playing: "..sidfield.Text.." - PlaybackSpeed: "..psfield.Text.." - Volume: "..volufield.Text
  272. wait(5)
  273. h:Destroy()
  274. end
  275.  
  276. function custom(texts) -- custom notification
  277. local wp=workspace:FindFirstChild(Player.Name)
  278. local hed=wp.Head
  279. local b=Instance.new("BillboardGui",hed)
  280. b.StudsOffset=Vector3.new(0,4,0)
  281. b.Size=UDim2.new(18,0,6,0)
  282. b.Adornee=hed
  283. local t=Instance.new("TextLabel",b)
  284. t.BackgroundTransparency=1
  285. t.TextColor3=col
  286. t.Text=texts
  287. t.Font=font
  288. t.Size=UDim2.new(1,0,1,0)
  289. t.TextScaled=true
  290. wait(5)
  291. repeat
  292. wait(0.05)
  293. t.TextTransparency=t.TextTransparency+0.1
  294. until
  295. t.TextTransparency==1
  296. t:Destroy()
  297. end
  298.  
  299. function makesound(id)
  300. local s=Instance.new("Sound",main)
  301. s.SoundId=id
  302. s.Volume=1
  303. s.PlaybackSpeed=1
  304. s:Play()
  305. end
  306.  
  307. ltrue.MouseButton1Click:connect(function()
  308. looped=true
  309. end)
  310. lfalse.MouseButton1Click:connect(function()
  311. looped=false
  312. end)
  313. pleh1.MouseButton1Click:connect(function()
  314. create()
  315. workspace.MusicGUIsong.Looped=looped
  316. workspace.MusicGUIsong.PlaybackSpeed=psfield.Text
  317. workspace.MusicGUIsong.SoundId="rbxassetid://"..sidfield.Text
  318. workspace.MusicGUIsong.Volume=volufield.Text
  319. workspace.MusicGUIsong:Play()
  320. informii()
  321. end)
  322. pleh2.MouseButton1Click:connect(function()
  323. create()
  324. workspace.MusicGUIsong.Looped=looped
  325. workspace.MusicGUIsong.PlaybackSpeed=psfield.Text
  326. workspace.MusicGUIsong.SoundId="http://www.roblox.com/asset/?hash="..sidfield.Text
  327. workspace.MusicGUIsong.Volume=volufield.Text
  328. workspace.MusicGUIsong:Play()
  329. informii()
  330. end)
  331. stahp.MouseButton1Click:connect(function()
  332. del()
  333. end)
  334.  
  335. -- sounds
  336.  
  337. ltrue.MouseButton1Click:connect(function()
  338. makesound("rbxassetid://156785206")
  339. end)
  340.  
  341. lfalse.MouseButton1Click:connect(function()
  342. makesound("rbxassetid://156785206")
  343. end)
  344.  
  345. psfield.SelectionGained:connect(function()
  346. makesound("rbxassetid://156785206")
  347. end)
  348.  
  349. psfield.Changed:connect(function()
  350. makesound("rbxassetid://215658476")
  351. end)
  352.  
  353. sidfield.SelectionGained:connect(function()
  354. makesound("rbxassetid://156785206")
  355. end)
  356.  
  357. sidfield.Changed:connect(function()
  358. makesound("rbxassetid://215658476")
  359. end)
  360.  
  361. volufield.SelectionGained:connect(function()
  362. makesound("rbxassetid://156785206")
  363. end)
  364.  
  365. volufield.Changed:connect(function()
  366. makesound("rbxassetid://215658476")
  367. end)
  368.  
  369. pleh1.MouseButton1Click:connect(function()
  370. makesound("rbxassetid://156785206")
  371. end)
  372.  
  373. pleh2.MouseButton1Click:connect(function()
  374. makesound("rbxassetid://156785206")
  375. end)
  376.  
  377. stahp.MouseButton1Click:connect(function()
  378. makesound("rbxassetid://156785206")
  379. end)
  380.  
  381. -- title fade after 3 seconds
  382.  
  383. wait(3)
  384. if style=="Fade" then
  385. repeat
  386. wait(0.05)
  387. title.TextTransparency=title.TextTransparency+0.01
  388. title.TextStrokeTransparency=title.TextStrokeTransparency+0.005
  389. until
  390. title.TextTransparency>=1 and title.TextStrokeTransparency>=1
  391. title:Destroy()
  392. elseif style=="Shrink" then
  393. repeat
  394. wait(0.05)
  395. title.TextSize=title.TextSize-1
  396. until
  397. title.TextSize==1
  398. title:Destroy()
  399. elseif style=="Hide" then
  400. title:TweenPosition(UDim2.new(0,0,-1,0),"In","Back",1)
  401. wait(1)
  402. title:Destroy()
  403. else
  404. print([[style "]]..style..[[" is invalid, returning "Fade"]])
  405. repeat
  406. wait(0.05)
  407. title.TextTransparency=title.TextTransparency+0.01
  408. title.TextStrokeTransparency=title.TextStrokeTransparency+0.005
  409. until
  410. title.TextTransparency>=1 and title.TextStrokeTransparency>=1
  411. title:Destroy()
  412. end
  413.  
  414. custom("NOOB :D")
  415. print(":V")
  416. print(_vegetto.." ...")
  417. ---
  418. local p = game.Players.LocalPlayer
  419. local char = p.Character
  420. local mouse = p:GetMouse()
  421. local larm = char["Left Arm"]
  422. local rarm = char["Right Arm"]
  423. local lleg = char["Left Leg"]
  424. local rleg = char["Right Leg"]
  425. local hed = char.Head
  426. local torso = char.Torso
  427. local ASD = BrickColor.new("New Yeller")
  428. local hum = char.Humanoid
  429. local cam = game.Workspace.CurrentCamera
  430. local root = char.HumanoidRootPart
  431. local deb = false
  432. local shot = 0
  433. local l = game:GetService("Lighting")
  434. local rs = game:GetService("RunService").RenderStepped
  435. local stanceToggle = "Normal"
  436. math.randomseed(os.time())
  437. hum.WalkSpeed = 7
  438. char.Health:Destroy()
  439. hum.MaxHealth = 999999999999999999999999999999999999999999999999999
  440. wait(0.1)
  441. hum.Health = 999999999999999999999999999999999999999999999999999
  442. z = Instance.new("Sound", char.Torso)
  443. z.SoundId = "rbxassetid://757245933"----------------change this to put a specific song to your script
  444. z.Looped = true
  445. z.Pitch = 1
  446. z.Volume = 70
  447. ----------------------------------------------------
  448. local SM = Instance.new("Smoke",torso)
  449. SM.Size = 15
  450. local S = Instance.new("Part",char)
  451. S.Size = Vector3.new(1,1,1)
  452. S.Material = "Neon"
  453. S.BrickColor = BrickColor.new("Deep orange")
  454. S.Transparency = 1
  455. S.Anchored = true
  456. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  457. local Ring = Instance.new("Part",S)
  458. Ring.Size = Vector3.new(1,1,1)
  459. Ring.BrickColor = BrickColor.new("Lime green")
  460. Ring.Anchored = true
  461. Ring.CanCollide = true
  462. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  463. local Ring2 = Instance.new("SpecialMesh",Ring)
  464. Ring2.MeshId = "rbxassetid://3270017"
  465. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  466. local S2 = Instance.new("SpecialMesh",S)
  467. S2.MeshType = "Sphere"
  468. S2.Scale = Vector3.new(1,1,1)
  469. v = Instance.new("Sound")
  470. v.SoundId = "rbxassetid://821439273"
  471. v.Parent = char.Torso
  472. v.Looped = false
  473. v.Pitch = 1
  474. v.Volume = 50
  475. wait(.01)
  476. v:Play()
  477. local partasdeff = Instance.new("ParticleEmitter",S)
  478. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0, 255, 0))
  479. partasdeff.LightEmission = .99
  480. partasdeff.Size = NumberSequence.new(0.2)
  481. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  482. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  483. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  484. partasdeff.Transparency = bbb
  485. partasdeff.Size = aaa
  486. partasdeff.ZOffset = .9
  487. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  488. partasdeff.LockedToPart = false
  489. partasdeff.EmissionDirection = "Top"
  490. partasdeff.Lifetime = NumberRange.new(1, 2)
  491. partasdeff.Rate = 1000
  492. partasdeff.Rotation = NumberRange.new(-100, 100)
  493. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  494. partasdeff.Speed = NumberRange.new(10)
  495. partasdeff.VelocitySpread = 300
  496. partasdeff.Enabled = true
  497. for i = 1,100 do
  498. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  499. Ring.Transparency = Ring.Transparency + 0.01
  500. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  501. S.Transparency = S.Transparency + 0.01
  502. game:GetService("RunService").RenderStepped:wait()
  503. end
  504. S:remove()
  505. wait(1)
  506. SM:remove()
  507. hed.face.Texture = "rbxasset://textures/face.png"
  508. char.Shirt:remove()
  509. char.Pants.PantsTemplate= "rbxassetid://1193911323"
  510. v = Instance.new("Sound")
  511. v.SoundId = "rbxassetid://609158214"
  512. v.Parent = torso
  513. v.Looped = false
  514. v.Pitch = 1.04
  515. v.Volume = 10
  516. wait(.01)
  517. v:Play()
  518. z:Play()
  519. ----------------------------------------------------
  520. Debounces = {
  521. on = false;
  522. ks = false;
  523. CanAttack = true;
  524. CanJoke = true;
  525. NoIdl = false;
  526. Slashing = false;
  527. Slashed = false;
  528. Grabbing = false;
  529. Grabbed = false;
  530. }
  531. local Touche = {char.Name, }
  532. ----------------------------------------------------
  533. function lerp(a, b, t) -- Linear interpolation
  534. return a + (b - a)*t
  535. end
  536.  
  537. function slerp(a, b, t) --Spherical interpolation
  538. dot = a:Dot(b)
  539. if dot > 0.99999 or dot < -0.99999 then
  540. return t <= 0.5 and a or b
  541. else
  542. r = math.acos(dot)
  543. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  544. end
  545. end
  546.  
  547. function matrixInterpolate(a, b, t)
  548. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  549. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  550. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  551. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  552. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  553. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  554. local t = v1:Dot(v2)
  555. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  556. return CFrame.new()
  557. end
  558. return CFrame.new(
  559. v0.x, v0.y, v0.z,
  560. v1.x, v1.y, v1.z,
  561. v2.x, v2.y, v2.z,
  562. v3.x, v3.y, v3.z)
  563. end
  564. ----------------------------------------------------
  565. function genWeld(a,b)
  566. local w = Instance.new("Weld",a)
  567. w.Part0 = a
  568. w.Part1 = b
  569. return w
  570. end
  571. function weld(a, b)
  572. local weld = Instance.new("Weld")
  573. weld.Name = "W"
  574. weld.Part0 = a
  575. weld.Part1 = b
  576. weld.C0 = a.CFrame:inverse() * b.CFrame
  577. weld.Parent = a
  578. return weld;
  579. end
  580. ----------------------------------------------------
  581. function Lerp(c1,c2,al)
  582. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  583. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  584. for i,v in pairs(com1) do
  585. com1[i] = v+(com2[i]-v)*al
  586. end
  587. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  588. end
  589. ----------------------------------------------------
  590. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  591. local wld = Instance.new("Weld", wp1)
  592. wld.Part0 = wp0
  593. wld.Part1 = wp1
  594. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  595. end
  596. ----------------------------------------------------
  597. for i,v in pairs(char:children()) do
  598. if v:IsA("Hat") then
  599. v:Destroy()
  600. end
  601. end
  602. for i,v in pairs(hed:children()) do
  603. if v:IsA("Sound") then
  604. v:Destroy()
  605. end
  606. end
  607. ----------------------------------------------------
  608. function HasntTouched(plrname)
  609. local ret = true
  610. for _, v in pairs(Touche) do
  611. if v == plrname then
  612. ret = false
  613. end
  614. end
  615. return ret
  616. end
  617. ----------------------------------------------------
  618. larm.Size = larm.Size * 5
  619. rarm.Size = rarm.Size * 5
  620. lleg.Size = lleg.Size * 5
  621. rleg.Size = rleg.Size * 5
  622. torso.Size = torso.Size * 5
  623. hed.Size = hed.Size * 5
  624. root.Size = root.Size * 5
  625. ----------------------------------------------------
  626. newWeld(torso, larm, -1.5, 0.5, 0)
  627. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  628. newWeld(torso, rarm, 1.5, 0.5, 0)
  629. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  630. newWeld(torso, hed, 0, 1.5, 0)
  631. newWeld(torso, lleg, -0.5, -1, 0)
  632. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  633. newWeld(torso, rleg, 0.5, -1, 0)
  634. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  635. newWeld(root, torso, 0, -1, 0)
  636. torso.Weld.C1 = CFrame.new(0, -1, 0)
  637. ----------------------------------------------------
  638. local Part = Instance.new("Part",hed)
  639. Part.BrickColor = BrickColor.new("Really black")
  640. Part.Size = Vector3.new(1,1,1)
  641. Part.CanCollide = false
  642. Part.Material = "Neon"
  643. local M = Instance.new("SpecialMesh",Part)
  644. M.MeshId = "rbxassetid://id"-------------------hair
  645. M.Scale = Vector3.new(5,5,5)
  646. local Part2 = Instance.new("Weld",Part)
  647. Part2.Part0 = hed
  648. Part2.Part1 = Part
  649. Part2.C0 = CFrame.new(-0.2,1.5,0.8)
  650. ----------------------------------------------------
  651. ----------------------------------------------------
  652. ----------------------------------------------------
  653.  
  654. ----------------------------------------------------
  655. function weld5(part0, part1, c0, c1)
  656. weeld=Instance.new("Weld", part0)
  657. weeld.Part0=part0
  658. weeld.Part1=part1
  659. weeld.C0=c0
  660. weeld.C1=c1
  661. return weeld
  662. end
  663. ----------------------------------------------------
  664. function newRay(start,face,range,wat)
  665. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  666. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  667. return rey,hit,pos
  668. end
  669. ----------------------------------------------------
  670. mod5 = Instance.new("Model",char)
  671.  
  672. function FindNearestTorso(Position,Distance,SinglePlayer)
  673. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  674. local List = {}
  675. for i,v in pairs(workspace:GetChildren())do
  676. if v:IsA("Model")then
  677. if v:findFirstChild("Torso")then
  678. if v ~= char then
  679. if(v.Torso.Position -Position).magnitude <= Distance then
  680. table.insert(List,v)
  681. end
  682. end
  683. end
  684. end
  685. end
  686. return List
  687. end
  688.  
  689. function Landing()
  690. part=Instance.new('Part',mod5)
  691. part.Anchored=true
  692. part.CanCollide=false
  693. part.FormFactor='Custom'
  694. part.Size=Vector3.new(.2,.2,.2)
  695. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  696. part.Transparency=.7
  697. part.BrickColor=BrickColor.new('Institutional white')
  698. mesh=Instance.new('SpecialMesh',part)
  699. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  700. mesh.Scale=Vector3.new(10,5,10)
  701.  
  702. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  703. if v:FindFirstChild('Humanoid') then
  704. v.Humanoid:TakeDamage(math.random(20,30))
  705. v.Humanoid.PlatformStand = true
  706. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  707. end
  708. end
  709.  
  710. coroutine.resume(coroutine.create(function()
  711. for i=0,3.8,0.05 do
  712. wait()
  713. part.CFrame=part.CFrame
  714. part.Transparency=i
  715. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  716. end
  717. part.Parent = nil
  718. end))
  719. end
  720. ----------------------------------------------------
  721. mod4 = Instance.new("Model",char)
  722.  
  723. ptez = {0.7, 0.8, 0.9, 1}
  724.  
  725. function FindNearestTorso(Position,Distance,SinglePlayer)
  726. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  727. local List = {}
  728. for i,v in pairs(workspace:GetChildren())do
  729. if v:IsA("Model")then
  730. if v:findFirstChild("Torso")then
  731. if v ~= char then
  732. if(v.Torso.Position -Position).magnitude <= Distance then
  733. table.insert(List,v)
  734. end
  735. end
  736. end
  737. end
  738. end
  739. return List
  740. end
  741.  
  742. ----------------------------------------------------
  743.  
  744. local acos = math.acos
  745. local sqrt = math.sqrt
  746. local Vec3 = Vector3.new
  747. local fromAxisAngle = CFrame.fromAxisAngle
  748.  
  749. local function toAxisAngle(CFr)
  750. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  751. local Angle = math.acos((R00+R11+R22-1)/2)
  752. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  753. A = A == 0 and 0.00001 or A
  754. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  755. B = B == 0 and 0.00001 or B
  756. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  757. C = C == 0 and 0.00001 or C
  758. local x = (R21-R12)/sqrt(A)
  759. local y = (R02-R20)/sqrt(B)
  760. local z = (R10-R01)/sqrt(C)
  761. return Vec3(x,y,z),Angle
  762. end
  763.  
  764. function ApplyTrig(Num,Func)
  765. local Min,Max = Func(0),Func(1)
  766. local i = Func(Num)
  767. return (i-Min)/(Max-Min)
  768. --[[if Func == "sin" then
  769. return (math.sin((1-Num)*math.pi)+1)/2
  770. elseif Func == "cos" then
  771. return (math.cos((1-Num)*math.pi)+1)/2
  772. end]]
  773. end
  774.  
  775. function LerpCFrame(CFrame1,CFrame2,Num)
  776. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  777. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  778. end
  779. mouse.KeyDown:connect(function(key)
  780. if key == "e" then
  781. if Debounces.CanAttack == true then
  782. Debounces.CanAttack = false
  783. Debounces.on = true
  784. Debounces.NoIdl = true
  785. for i = 1,20 do
  786. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  787. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  788. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  789. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  790. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  791. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  792. if Debounces.on == false then break end
  793. wait()
  794. end
  795. local HitBox = Instance.new("Part",char)
  796. HitBox.Size = Vector3.new(5,5,5)
  797. HitBox.CanCollide = false
  798. HitBox.Transparency = math.huge
  799. local HitBox2 = Instance.new("Weld",HitBox)
  800. HitBox2.Part0 = rarm
  801. HitBox2.Part1 = HitBox
  802. HitBox2.C0 = CFrame.new(0,-4.5,0)
  803. HitBox.Touched:connect(function(hit)
  804. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  805. if not DD then DD = true
  806. hit.Parent.Humanoid.PlatformStand = true
  807. local We = Instance.new("Weld",hit.Parent.Torso)
  808. We.Part0 = rarm
  809. We.Part1 = hit.Parent.Torso
  810. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  811. wait(1)
  812. for i = 1,20 do
  813. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  814. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  815. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  816. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  817. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  818. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  819. if Debounces.on == false then break end
  820. wait()
  821. end
  822. hit.Parent.Humanoid:TakeDamage(20)
  823. for i = 1,20 do
  824. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  825. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  826. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  827. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  828. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  829. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  830. if Debounces.on == false then break end
  831. wait()
  832. end
  833. for i = 1,20 do
  834. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  835. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  836. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  837. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  838. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  839. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  840. if Debounces.on == false then break end
  841. wait()
  842. end
  843. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  844. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  845. partasdeff.LightEmission = .1
  846. partasdeff.Size = NumberSequence.new(0.2)
  847. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  848. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  849. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  850. partasdeff.Transparency = bbb
  851. partasdeff.Size = aaa
  852. partasdeff.ZOffset = .9
  853. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  854. partasdeff.LockedToPart = false
  855. partasdeff.EmissionDirection = "Top"
  856. partasdeff.Lifetime = NumberRange.new(1, 2)
  857. partasdeff.Rate = 1000
  858. partasdeff.Rotation = NumberRange.new(-100, 100)
  859. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  860. partasdeff.Speed = NumberRange.new(10)
  861. partasdeff.VelocitySpread = 300
  862. partasdeff.Enabled = true
  863. wait(1.5)
  864. hit.Parent:BreakJoints()
  865. We:remove()
  866. partasdeff.Enabled = false
  867. if Debounces.CanAttack == false then
  868. Debounces.CanAttack = true
  869. Debounces.on = false
  870. Debounces.NoIdl = false
  871. end
  872. wait(1313)
  873. DD = false
  874. end
  875. end
  876. end)
  877. ---ANIMATION REPLAY
  878. end
  879. end
  880. end)
  881. mouse.KeyDown:connect(function(key)
  882. if key == "r" then
  883. if Debounces.CanAttack == true then
  884. Debounces.CanAttack = false
  885. Debounces.on = true
  886. Debounces.NoIdl = true
  887. for i = 1,20 do
  888. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  889. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  890. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  891. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  892. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  893. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  894. if Debounces.on == false then break end
  895. wait()
  896. end
  897. local HitBox = Instance.new("Part",char)
  898. HitBox.Size = Vector3.new(5,5,5)
  899. HitBox.CanCollide = false
  900. HitBox.Transparency = math.huge
  901. local HitBox2 = Instance.new("Weld",HitBox)
  902. HitBox2.Part0 = rleg
  903. HitBox2.Part1 = HitBox
  904. HitBox2.C0 = CFrame.new(0,-1.1,0)
  905. local SFXZ = Instance.new("Sound",torso)
  906. SFXZ.SoundId = "rbxassetid://169259383"
  907. SFXZ.Volume = math.huge
  908. SFXZ.Pitch = 0.5
  909. SFXZ.Looped = false
  910. wait(0.01)
  911. SFXZ:Play()
  912. HitBox.Touched:connect(function(hit)
  913. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  914. local SFXZ = Instance.new("Sound",torso)
  915. SFXZ.SoundId = "rbxassetid://743886825"
  916. SFXZ.Volume = 1
  917. SFXZ.Pitch = 0.5
  918. SFXZ.Looped = false
  919. SFXZ:Play()
  920. HitBox:remove()
  921. hit.Parent.Humanoid:TakeDamage(44)
  922. hit.Parent.Humanoid.PlatformStand = true
  923. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  924. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  925. Fl.velocity = rleg.CFrame.lookVector*350
  926. wait(0.1)
  927. Fl:remove()
  928. end
  929. end)
  930. for i = 1,20 do
  931. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  932. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  933. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  934. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  935. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  936. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  937. if Debounces.on == false then break end
  938. wait()
  939. end
  940. if Debounces.CanAttack == false then
  941. Debounces.CanAttack = true
  942. Debounces.on = false
  943. Debounces.NoIdl = false
  944. HitBox:remove()
  945. end
  946. end
  947. end
  948. end)
  949. ----------------------------------------------------
  950. mouse.KeyDown:connect(function(key)
  951. if string.byte(key) == 48 then
  952. char.Humanoid.WalkSpeed = 34
  953. end
  954. end)
  955. mouse.KeyUp:connect(function(key)
  956. if string.byte(key) == 48 then
  957. char.Humanoid.WalkSpeed = 5
  958. end
  959. end)
  960. ----------------------------------------------------
  961. local animpose = "Idle"
  962. local lastanimpose = "Idle"
  963. local sine = 0
  964. local change = 1
  965. local val = 0
  966. local ffing = false
  967. ----------------------------------------------------
  968. local x = Instance.new("Sound", char.Torso)
  969. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  970. x.Looped = true
  971. x.Volume = 1
  972. x.Pitch = 1
  973. local footsteps = false
  974. -------------------------------
  975. game:GetService("RunService").RenderStepped:connect(function()
  976. rarm.BrickColor = ASD
  977. larm.BrickColor = ASD
  978. rleg.BrickColor = ASD
  979. lleg.BrickColor = ASD
  980. hed.BrickColor = ASD
  981. torso.BrickColor = ASD
  982. --[[if char.Humanoid.Jump == true then
  983. jump = true
  984. else
  985. jump = false
  986. end]]
  987. char.Humanoid.FreeFalling:connect(function(f)
  988. if f then
  989. ffing = true
  990. else
  991. ffing = false
  992. end
  993. end)
  994. sine = sine + change
  995. if jumpn == true then
  996. animpose = "Jumping"
  997. elseif ffing == true then
  998. animpose = "Freefalling"
  999. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1000. animpose = "Idle"
  1001. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1002. animpose = "Walking"
  1003. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1004. animpose = "Running"
  1005. end
  1006. if animpose ~= lastanimpose then
  1007. sine = 0
  1008. if Debounces.NoIdl == false then
  1009. if animpose == "Idle" then
  1010. for i = 1, 2 do
  1011. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  1012. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  1013. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1014. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1015. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1016. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1017. end
  1018. elseif animpose == "Walking" then
  1019. for i = 1, 2 do
  1020. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  1021. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  1022. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  1023. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  1024. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1025. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1026. end
  1027. elseif animpose == "Running" then
  1028. for i = 1, 2 do
  1029. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  1030. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  1031. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1032. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1033. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  1034. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  1035. end
  1036. wait()
  1037. end
  1038. else
  1039. end
  1040. end
  1041. lastanimpose = animpose
  1042. if Debounces.NoIdl == false then
  1043. if animpose == "Idle" then
  1044. if stanceToggle == "Normal" then
  1045. change = 0.5
  1046. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.Angles(0,0,0-.1*math.sin(tick()*1))*CFrame.Angles(0,0,0.3),.2)
  1047. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.Angles(0,0,0+.1*math.sin(tick()*1))*CFrame.Angles(0,0,-0.3),.2)
  1048. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
  1049. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
  1050. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1051. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1052. elseif stanceToggle == "Sitting" then
  1053. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  1054. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  1055. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  1056. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  1057. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  1058. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  1059. end
  1060. elseif animpose == "Walking" then
  1061. if stanceToggle == "Normal" then
  1062. change = 1
  1063. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3,0.8,0)*CFrame.Angles(0-.5*math.sin(tick()*2/0.7),0,0),.3)
  1064. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3,0.8,0)*CFrame.Angles(0+.5*math.sin(tick()*2/0.7),0,0),.3)
  1065. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  1066. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-2.2,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  1067. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/16)/4, -.05 + math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/16)/2.3, 0, 0), .4)
  1068. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/16)/4, -.05 + -math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/16)/2.3, 0, 0), .4)
  1069. end
  1070. elseif animpose == "Running" then
  1071. change = 1
  1072. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  1073. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  1074. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1075. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1076. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  1077. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8 )/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  1078. end
  1079. end
  1080. if animpose == "Walking" then
  1081. if footsteps == false then
  1082. x:Play()
  1083. footsteps = true
  1084. end
  1085. x.Pitch = 1.1
  1086. elseif animpose == "Idle" then
  1087. x:Stop()
  1088. footsteps = false
  1089. elseif animpose == "Running" then
  1090. x.Pitch = 1.2
  1091. if footsteps == false then
  1092. x:Play()
  1093. footsteps = true
  1094. end
  1095. end
  1096. end)
Add Comment
Please, Sign In to add comment