Advertisement
Godzillagamerzz10

Fe Purple Suit Dancer

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