Advertisement
Godzillagamerzz10

Fe Purple Suit Dancer (SOUNDS CHANGED)

Nov 21st, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.70 KB | None | 0 0
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6.  
  7. print("Converted to FE by: godzillagamerz10/13!")
  8. print("I only changed the sounds, feel free to edit more.")
  9.  
  10.  
  11.  
  12. local asin = math.asin
  13. local atan2 = math.atan2
  14. local rad = math.rad
  15. local sin = math.sin
  16. local abs = math.abs
  17. local ceil = math.ceil
  18. local function getAngles(cf)
  19. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  20. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  21. end
  22. Lerp = {
  23. Number = function(C1,C2,inc)
  24. return C1 + (C2 - C1) * inc
  25. end;
  26. CFrame = function(a,b,m)
  27. local c,d={a:components()},{b:components()}
  28. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  29. return CFrame.new(unpack(c))
  30. end;
  31. }
  32. local function genWeld(a,b)
  33. local w = Instance.new("Weld",a)
  34. w.Part0 = a
  35. w.Part1 = b
  36. return w
  37. end
  38. Part = function(x,y,z,color,tr,cc,an,parent)
  39. local p = Instance.new('Part',parent or Weapon)
  40. p.formFactor = 'Custom'
  41. p.Size = Vector3.new(x,y,z)
  42. p.BrickColor = BrickColor.new(color)
  43. p.CanCollide = cc
  44. p.Transparency = tr
  45. p.Anchored = an
  46. p.TopSurface,p.BottomSurface = 0,0
  47. p:BreakJoints()
  48. return p
  49. end
  50. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  51. local w = Instance.new('Motor',par or p0)
  52. w.Part0 = p0
  53. w.Part1 = p1
  54. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  55. return w
  56. end
  57. Mesh = function(par,num,x,y,z)
  58. local msh = nil
  59. if num == 1 then
  60. msh = Instance.new("CylinderMesh",par)
  61. elseif num == 2 then
  62. msh = Instance.new("SpecialMesh",par)
  63. msh.MeshType = 'Wedge'
  64. elseif num == 3 then
  65. msh = Instance.new("BlockMesh",par)
  66. elseif type(num) == 'string' then
  67. msh = Instance.new("SpecialMesh",par)
  68. msh.MeshId = num
  69. end
  70. msh.Scale = Vector3.new(x,y,z)
  71. return msh
  72. end
  73. anglespeed = 1
  74. yeet = 0
  75. dnc=0
  76. count = 0
  77. angle = 0
  78. counttime = 50
  79. countspeed = 1
  80. speed = 1
  81. hats={}
  82. song={}
  83. local plr=game.Players.LocalPlayer
  84. local pchar=plr.Character
  85. local torso=pchar.Torso
  86. local mos=plr:GetMouse()
  87. local Neck = genWeld(pchar.Torso,pchar.Head)
  88. Neck.C0 = CFrame.new(0,1,0)
  89. Neck.C1 = CFrame.new(0,-0.5,0)
  90. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  91. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  92. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  93. RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  94. RightShoulder.C0 = CFrame.new(1,0.5,0)
  95. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  96. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  97. LeftHip.C0 = CFrame.new(-1,-1,0)
  98. LeftHip.C1 = CFrame.new(-0.5,1,0)
  99. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  100. RightHip.C0 = CFrame.new(1,-1,0)
  101. RightHip.C1 = CFrame.new(0.5,1,0)
  102. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  103. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  104. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  105. local mainp=Part(2.01,2.01,1.01,'Black',0,false,false,pchar)
  106. Weld(torso,mainp,0,0,0,0,0,0,mainp)
  107. local p=Part(2.02,1.2,1.02,'Lavender',0,false,false,pchar)
  108. Weld(mainp,p,0,.41,0,0,0,0,p)
  109. local p=Part(2.02,2.03,.5,'Lavender',0,false,false,pchar)
  110. Weld(mainp,p,0,0,-0.26,0,0,0,p)
  111. local p=Part(.5,1,1.02,'Lavender',0,false,false,pchar)
  112. Weld(mainp,p,-0.2,-0.65,0,0,0,rad(30),p)
  113. local p=Part(.5,1,1.02,'Lavender',0,false,false,pchar)
  114. Weld(mainp,p,0.2,-0.65,0,0,0,-rad(30),p)
  115. local p=Part(.5,1,1.02,'Lavender',0,false,false,pchar)
  116. Weld(mainp,p,.76,-0.51,0,0,0,0,p)
  117. local p=Part(.5,1,1.02,'Lavender',0,false,false,pchar)
  118. Weld(mainp,p,-.76,-0.51,0,0,0,0,p)
  119. local p=Part(1.01,2.01,1.01,'Nougat',0,false,false,pchar)
  120. Weld(pchar['Right Arm'],p,0,0,0,0,0,0,p)
  121. local p=Part(1.02,1.25,1.02,'Lavender',0,false,false,pchar)
  122. Weld(pchar['Right Arm'],p,0,-0.41,0,0,0,0,p)
  123. local p=Part(1.01,2.01,1.01,'Nougat',0,false,false,pchar)
  124. Weld(pchar['Left Arm'],p,0,0,0,0,0,0,p)
  125. local p=Part(1.02,1.25,1.02,'Lavender',0,false,false,pchar)
  126. Weld(pchar['Left Arm'],p,0,-0.41,0,0,0,0,p)
  127. local p=Part(1.01,2.01,1.01,'Dark stone grey',0,false,false,pchar)
  128. Weld(pchar['Right Leg'],p,0,0,0,0,0,0,p)
  129. local p=Part(1.01,2.01,1.01,'Dark stone grey',0,false,false,pchar)
  130. Weld(pchar['Left Leg'],p,0,0,0,0,0,0,p)
  131. local p=Part(2,1,1,'Nougat',0,false,false,pchar)
  132. Weld(pchar.Head,p,0,0,0,0,0,0,p)
  133. h=Mesh(p,2,1.25,1.25,1.25)
  134. h.MeshType='Head'
  135. function face(id)
  136. pchar.Head.face.Texture='http://www.roblox.com/asset/?id='..id
  137. end
  138.  
  139. function addh(id,txt,s1,s2,s3,x,y,z)
  140. local hat=Part(1,1,1,'',0,false,false,pchar)
  141. table.insert(hats,hat)
  142. Weld(pchar.Head,hat,x,y,z,0,0,0,p)
  143. m=Mesh(hat,'http://www.roblox.com/asset/?id='..id,s1,s2,s3)
  144. m.TextureId='http://www.roblox.com/asset/?id='..txt
  145. return m
  146. end
  147.  
  148. function clearhats()
  149. for i=1,#hats do
  150. hats[i]:Destroy()
  151. end
  152. hats={}
  153. end
  154.  
  155. function so(id,pi)
  156. local s = Instance.new("Sound",torso)
  157. s.Looped=true
  158. s.Pitch=pi
  159. s.SoundId = "http://roblox.com/asset/?id="..id
  160. s.Volume=1
  161. table.insert(song,s)
  162. s:play()
  163. end
  164.  
  165. function killsong()
  166. for i=1,#song do
  167. song[i]:stop()
  168. song[i]:Destroy()
  169. end
  170. song={}
  171. end
  172.  
  173. local function newLerpTo(weld)
  174. return {
  175. Weld = weld; -- The weld that will lerp
  176. To = weld.C0; -- Where it will lerp to; a CFrame
  177. Cache = weld.C0; -- Cache of original position; it helps when making anim keyframes
  178. Speed = 0.1; -- Speed of lerp. 0.1 or 0.2 is best
  179. }
  180. end
  181. LerpTo = {
  182. Neck = newLerpTo(Neck);
  183. LeftArm = newLerpTo(LeftShoulder);
  184. RightArm = newLerpTo(RightShoulder);
  185. LeftLeg = newLerpTo(LeftHip);
  186. RightLeg = newLerpTo(RightHip);
  187. RootJoint = newLerpTo(RootJoint);
  188. }
  189. for _,v in pairs(pchar:GetChildren()) do
  190. if v.ClassName=="Hat" then
  191. v:remove()
  192. end
  193. end
  194.  
  195. pchar.Head.Transparency=.99
  196.  
  197.  
  198. mos.KeyDown:connect(function(key)
  199. if(key == "q")then--tunak
  200. q=not q
  201. if q==true then
  202. dnc=0
  203. face('22815795')
  204. addh('11380070','11380053',1,1,1,0,-.75,0)
  205. so('155279911',1)
  206. Spawn(function()
  207. while true do wait()
  208. dnc=1
  209. for i=1,5 do
  210. if q==false then dnc=0 break end
  211. wait(1)
  212. end
  213. dnc=2
  214. for i=1,5 do
  215. if q==false then dnc=0 break end
  216. wait(1)
  217. end
  218. dnc=3
  219. for i=1,5 do
  220. if q==false then dnc=0 break end
  221. wait(1)
  222. end
  223. end
  224. end)
  225. else
  226. killsong()
  227. clearhats()
  228. end
  229. end
  230. if(key == "t")then-- swing
  231. q=not q
  232. if q==true then
  233. dnc=0
  234. face('13079565')
  235. addh('1285237','63036639',1.1,1.1,1.1,0,-.6,0)
  236. so('498313348',0.333)
  237. Spawn(function()
  238. while true do wait()
  239. dnc=9
  240. for i=1,5 do
  241. if q==false then dnc=0 break end
  242. wait(1)
  243. end
  244. dnc=9
  245. for i=1,5 do
  246. if q==false then dnc=0 break end
  247. wait(1)
  248. end
  249. end
  250. end)
  251. else
  252. killsong()
  253. clearhats()
  254. end
  255. end
  256. if(key == "e")then-- touch
  257. q=not q
  258. if q==true then
  259. dnc=0
  260. face('114968735')
  261. addh('1577360','1577349',1,1,1,0,-.25,.2)
  262. addh('169415286','169415338',2.5,2.5,2.5,0,-.7,-.15)
  263. so('2195064661',1)
  264. Spawn(function()
  265. while true do wait()
  266. dnc=4
  267. for i=1,5 do
  268. if q==false then dnc=0 break end
  269. wait(1)
  270. end
  271. dnc=5
  272. for i=1,5 do
  273. if q==false then dnc=0 break end
  274. wait(1)
  275. end
  276. dnc=6
  277. for i=1,5 do
  278. if q==false then dnc=0 break end
  279. wait(1)
  280. end
  281. end
  282. end)
  283. else
  284. killsong()
  285. clearhats()
  286. end
  287. end
  288. if(key == "r")then-- op
  289. q=not q
  290. if q==true then
  291. dnc=0
  292. face('13079565')
  293. addh('13640868','18987684',1,1,1,0,-.8,0)
  294. addh('13332444','13332337',1,1,1,0,-.25,0)
  295. addh('68251147','67995474',1,1,1,0,-.2,0.17)
  296. so('2557427785',1)
  297. Spawn(function()
  298. while true do wait()
  299. dnc=7
  300. for i=1,5 do
  301. if q==false then dnc=0 break end
  302. wait(1)
  303. end
  304. dnc=8
  305. for i=1,5 do
  306. if q==false then dnc=0 break end
  307. wait(1)
  308. end
  309. end
  310. end)
  311. else
  312. killsong()
  313. clearhats()
  314. end
  315. end
  316. end)
  317.  
  318. local function updateanims()
  319. if dnc==0 then
  320. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  321. anglespeed = 1/2
  322. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(yeet)*0.05,0,0)
  323. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,0)
  324. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(sin(yeet)*0.1,0,0)
  325. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-sin(yeet)*0.1,0,0)
  326. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(yeet))*0.1)
  327. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(yeet))*0.1)
  328. end
  329. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  330. anglespeed = 4
  331. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,math.sin(yeet)*0.05)
  332. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-sin(yeet)*.8,0,rad(10))
  333. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(sin(yeet)*.8,0,-rad(10))
  334. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(sin(yeet)*.8,0,0)
  335. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(-sin(yeet)*.8,0,0)
  336. end
  337. end
  338. if dnc==1 then
  339. anglespeed = 5
  340. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0)
  341. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,sin(angle)*0.15,0) * CFrame.new(0,abs(sin(angle))*0.1,0)
  342. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80)-sin(yeet)*0.2,0,-rad(65))
  343. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(80)-sin(yeet)*0.2,0,rad(65))
  344. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(20)+sin(angle)*0.5,0,0)
  345. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(20)-sin(angle)*0.5,0,0)
  346. end
  347. if dnc==2 then
  348. anglespeed = 2
  349. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,-rad(20),0)
  350. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,abs(sin(angle))*0.1,0)
  351. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80)-sin(angle)*0.5,0,rad(20))
  352. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-abs(sin(angle))*0.3)
  353. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(yeet))*0.3)
  354. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(yeet))*0.3)
  355. end
  356. if dnc==3 then
  357. anglespeed = 3
  358. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0)
  359. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,abs(sin(angle))*0.3,0)
  360. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-rad(180),0,math.pi/30-math.sin(-angle)*0.2)
  361. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-rad(180),0,-math.pi/30-math.sin(-angle)*0.2)
  362. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(sin(yeet)*0.3,0,0)
  363. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(-sin(yeet)*0.3,0,0)
  364. end
  365. if dnc==4 then
  366. anglespeed = 3
  367. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,sin(yeet)*0.1)
  368. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,0)
  369. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(10),rad(30),rad(10)) * CFrame.new(0,-abs(sin(yeet))*0.2,0)
  370. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(10),-rad(30),-rad(10)) * CFrame.new(0,-abs(sin(yeet))*0.2,0)
  371. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(yeet))*0.1)
  372. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(yeet))*0.1)
  373. end
  374. if dnc==5 then
  375. anglespeed = 3
  376. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(10),0,sin(yeet)*0.1)
  377. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(20),sin(angle)*0.2,sin(angle)*0.5) * CFrame.new(0,-abs(sin(angle))*0.5,0)
  378. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)-sin(yeet)*0.5,0,-rad(10))
  379. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)-sin(yeet)*0.5,0,rad(10))
  380. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(20),0,abs(sin(yeet))*0.1)
  381. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(20),0,-abs(sin(yeet))*0.1)
  382. end
  383. if dnc==6 then
  384. anglespeed = 3
  385. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,sin(angle)*1,sin(yeet)*0.1)
  386. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(sin(angle)*1,0,0)
  387. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(10),rad(30),-rad(10)) * CFrame.new(0,-abs(sin(yeet))*0.2,0)
  388. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(10),-rad(30),rad(10)) * CFrame.new(0,-abs(sin(yeet))*0.2,0)
  389. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(yeet))*0.2)
  390. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(yeet))*0.2)
  391. end
  392. if dnc==7 then
  393. anglespeed = 4
  394. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-sin(yeet)*0.2,0)
  395. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,sin(yeet)*0.2) * CFrame.new(0,0,-abs(sin(yeet))*0.4)
  396. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80)+sin(yeet)*0.2,0,-rad(50)) *CFrame.new(0,-.5,0)
  397. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(yeet)*0.2,0,rad(50))*CFrame.new(0,-.5,0)
  398. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,rad(20)+sin(yeet)*0.5) *CFrame.new(0,abs(sin(yeet))*0.3,0)
  399. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-rad(20)+sin(yeet)*0.5) *CFrame.new(0,abs(sin(yeet))*0.3,0)
  400. end
  401. if dnc==8 then
  402. anglespeed = 4
  403. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-sin(yeet)*0.2,0)
  404. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,sin(yeet)*0.2) * CFrame.new(0,0,-abs(sin(yeet))*0.4)
  405. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(180)+sin(yeet)*.3,0,sin(yeet)*.3)
  406. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(yeet)*0.2,0,rad(50))*CFrame.new(0,-.5,0)
  407. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,rad(20)+sin(yeet)*0.5) *CFrame.new(0,abs(sin(yeet))*0.3,0)
  408. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-rad(20)+sin(yeet)*0.5) *CFrame.new(0,abs(sin(yeet))*0.3,0)
  409. end
  410. if dnc==9 then
  411. anglespeed = 4
  412. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-sin(yeet)*0.2,0)
  413. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,sin(yeet)*0.2)
  414. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80)+sin(yeet)*0.2,0,-rad(50)) *CFrame.new(0,-.5,0)
  415. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(yeet)*0.2,0,rad(50))*CFrame.new(0,-.5,0)
  416. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,rad(20)+sin(yeet)*0.5) *CFrame.new(0,abs(sin(yeet))*0.3,0)
  417. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-rad(20)+sin(yeet)*0.5) *CFrame.new(0,abs(sin(yeet))*0.3,0)
  418. end
  419. end
  420. Spawn(function()
  421. while wait()do
  422. count = (count%counttime)+countspeed
  423. angle = math.pi*math.sin((math.pi*2)/counttime*count)
  424. yeet = (yeet % 100) + anglespeed/10
  425. end
  426. end)
  427. game:service'RunService'.RenderStepped:connect(function()
  428. for _,v in pairs(LerpTo) do
  429. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  430. end
  431. updateanims()
  432. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement