Advertisement
Dark_EccentricYT

Untitled

Jul 3rd, 2018
2,642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.81 KB | None | 0 0
  1. --// Animation Base Created by SavageMunkey
  2. script.Name = 'gtfoh >_>'
  3. wait(.05)
  4. local Module_Id = 0 --// Not required, but I use modules somtimes to load union'd models
  5. local Player = game:service'Players'.LocalPlayer
  6. repeat wait() until Player.Character
  7. local Character = Player.Character
  8. local Char, Plr = Character, Player
  9. local Mouse = Player:GetMouse()
  10. local Landed = true
  11. local Walking = true
  12.  
  13. --// Settings
  14.  
  15. local CustomClothes = false
  16. local Pants, Shirt = 'rbxassetid://99312229','rbxassetid://99312212'
  17. local CustomColor = 'Eggplant'
  18. local CustomMaterial = 'Slate'
  19. local NotifyKeyPresses = false
  20. local CanRun = false
  21.  
  22. --// Limbs and what not
  23.  
  24. local Torso = Char:WaitForChild'Torso'
  25. local Head = Char:WaitForChild'Head'
  26. local Left_Arm = Char:WaitForChild'Left Arm'
  27. local Right_Arm = Char:WaitForChild'Right Arm'
  28. local Left_Leg = Char:WaitForChild'Left Leg'
  29. local Right_Leg = Char:WaitForChild'Right Leg'
  30. local HumanoidRootPart = Char:WaitForChild'HumanoidRootPart'
  31. local Humanoid = Char:WaitForChild'Humanoid'
  32.  
  33. --// Debounces
  34.  
  35. local DebounceKeyDown, DebounceState = false, false
  36. local DebounceAFKAnimations = false
  37.  
  38. --// Other Things
  39.  
  40. local State, LastState, Mode = 'Idle', 'Normal'
  41. Mode=LastState
  42. local AFKAnimSequenceCount,MaxSequenceCount = 0, 200
  43.  
  44. --// Abbreiviations
  45.  
  46. local rbx = 'rbxassetid://'
  47. local char,Char,plr,Plr = Character, Character, Player, Player
  48. local mouse,ms = Mouse, Mouse
  49. local cam,camera,Camera,Cam=workspace.CurrentCamera,workspace.CurrentCamera,workspace.CurrentCamera,workspace.CurrentCamera
  50. local dkd, debkd = DebounceKeyDown, DebounceKeyDown
  51. local dst, debst, ds, debs = DebounceState,DebounceState,DebounceState,DebounceState
  52. local daa,dafk,debafk = DebounceAFKAnimations,DebounceAFKAnimations,DebounceAFKAnimations
  53. local rs = game:service'RunService'
  54. local lrs = rs.Stepped
  55. local srs = rs.Heartbeat
  56. local lleg,rleg = Left_Leg, Right_Leg
  57. local larm,rarm = Left_Arm, Right_Arm
  58. local hed,torr,torso = Head, Torso, Torso
  59. local hum, root = Humanoid, HumanoidRootPart
  60. local vec3,vec2 = Vector3.new, Vector2.new
  61. local sin, cos, atan, rad, rand, rands = math.sin, math.cos, math.atan, math.rad, math.random, math.randomseed
  62. local cf, ang, eu = CFrame.new, CFrame.Angles, CFrame.fromEulerAnglesXYZ
  63. local bc,bcr,c3 = BrickColor.new,BrickColor.Random,Color3.new
  64.  
  65. --// Removals and error prevention
  66.  
  67. if hed:FindFirstChild'Running' then
  68. hed:WaitForChild'Running'.Volume = 0
  69. end
  70. if Char:FindFirstChild'Animate' then
  71. local Anim = Char:WaitForChild'Animate'
  72. local Anim_2 = Anim:Clone()
  73. Anim_2.Disabled = true
  74. Anim_2.Parent = Char
  75. Anim.Disabled = true
  76. Anim_2.Disabled = false
  77. end
  78. if Char:FindFirstChild'Health' then
  79. ypcall(game.Destroy, Char.Health)
  80. end
  81. if CustomClothes then
  82. if Char:FindFirstChild'Shirt' then
  83. Char.Shirt.ShirtTemplate=Shirt
  84. else
  85. Instance.new('Shirt',Character).ShirtTemplate=Shirt
  86. end
  87.  
  88. if Char:FindFirstChild'Pants' then
  89. Char.Pants.PantsTemplate=Pants
  90. else
  91. Instance.new('Pants',Character).PantsTemplate=Pants
  92. end
  93. end
  94.  
  95. --// Base Functions
  96.  
  97. Weld = function(to, from, c1)
  98. local New_Weld = Instance.new('Weld', to)
  99. New_Weld.Part0 = from
  100. New_Weld.Part1 = to
  101. New_Weld.C1 = c1
  102. return New_Weld
  103. end
  104.  
  105. clerp = function(c1,c2,al)
  106. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  107. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  108. for i,v in pairs(com1) do
  109. com1[i] = v+(com2[i]-v)*al
  110. end
  111. return cf(com1[1],com1[2],com1[3]) * ang(select(4,unpack(com1)))--]]
  112. end
  113.  
  114. lerp = function(c1,c2,al)
  115. return c1:lerp(c2,al)
  116. end
  117.  
  118. snd = function(Id, Parent)
  119. local Sound = Instance.new('Sound')
  120. Sound.Pitch = 1
  121. Sound.Volume = .5
  122. Sound.Looped = false
  123. Sound.SoundId=rbx..Id
  124. if Parent:IsA'BasePart' then
  125. local p=Instance.new('Part',Character)
  126. p.Anchored=true
  127. p.Transparency=1
  128. p.CanCollide=false
  129. p.Size=vec3(.2,.2,.2)
  130. p.CFrame=Parent.CFrame
  131. Sound.Parent = p
  132. Parent.Changed:connect(function()
  133. if Parent.Parent == nil then
  134. delay(4,function()
  135. p:Destroy()
  136. Sound:Destroy()
  137. end)
  138. end
  139. end)
  140. else
  141. Sound.Parent = Head
  142. end
  143. return Sound
  144. end
  145.  
  146. FacePos = function(pos)
  147. local torso, torsoPos = torso, HumanoidRootPart.CFrame.p
  148. local torso = Char:FindFirstChild'Torso'
  149. if pos == 'mouse' then
  150. pos = CFrame.new(torsoPos,Vector3.new(mouse.Hit.X,torsoPos.Y,mouse.Hit.Z))
  151. elseif not pos or pos==nil then
  152. pos = CFrame.new(torsoPos,Vector3.new(mouse.Hit.X,torsoPos.Y,mouse.Hit.Z))
  153. else
  154. pos = CFrame.new(torsoPos, pos.p)
  155. end
  156. if torso then
  157. HumanoidRootPart.CFrame = lerp(HumanoidRootPart.CFrame,pos,.3)
  158. end
  159. end
  160.  
  161. local sine, change = 0, 1
  162.  
  163. --// Model Optional
  164.  
  165. --// Welds
  166.  
  167. local llw = Weld(Left_Leg, Torso, cf(.5,2,0))
  168. local rlw = Weld(Right_Leg, Torso, cf(-.5,2,0))
  169. local raw = Weld(Right_Arm, Torso, cf(-1.5,0,0))
  170. local law = Weld(Left_Arm, Torso, cf(1.5,0,0))
  171. local torw = Weld(Torso, HumanoidRootPart, cf(0,0,0))
  172. local hedw = Weld(Head, Torso, cf(0,-1.5,0))
  173.  
  174. --[[ State Example: Arms Out
  175. raw.C0 = clerp(raw.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  176. law.C0 = clerp(law.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  177. --]]
  178.  
  179. local keyz={};
  180. local Used = {
  181. Executed={};
  182. Failed={};
  183. };
  184.  
  185. local BindKey = function(Name, Key, Function)
  186. local keydown
  187. keyz[Key:upper()]=Name
  188. keydown = mouse.KeyDown:connect(function(key)
  189. if Key:lower() == key:lower() then
  190. local detect=dkd
  191. if dkd then
  192. table.insert(Used.Failed, {Name, Key, Function})
  193. elseif not dkd and Walking then
  194. if NotifyKeyPresses then
  195. warn('executed('..Name..', "'..tostring(Key:upper())..'")')
  196. end
  197. Function(Name, Key)
  198. if NotifyKeyPresses then
  199. warn('ended('..Name..')')
  200. end
  201. table.insert(Used.Executed, {Name, Key, Function})
  202. elseif Walking then
  203. warn('You must Walking enabled to use this key')
  204. end
  205. end
  206. end)
  207. end
  208.  
  209. local pitches = {}
  210. for i = -.1,.1,.01 do table.insert(pitches,1.5+i) end
  211. function summonsound()
  212. local sfx = {588697230};
  213. local s = snd(sfx[rand(1,#sfx)],root)
  214. s.Pitch = pitches[rand(1,#pitches)]
  215. game.Debris:AddItem(s,2)
  216. s:Play()
  217. return s
  218. end
  219.  
  220. --[[
  221.  
  222. BindKey('Attack Name', 'Key{Not case sensative}', function(AttackName, Key)
  223. ds,dkd = true,true
  224. for i = 0,1,.05 do
  225. local animspd = .1
  226. local Right_Arm_ = cf(0,0,0)
  227. local Left_Arm_ = cf(0,0,0)
  228. local Right_Leg_ = cf(0,0,0)
  229. local Left_Leg_ = cf(0,0,0)
  230. local Head_ = cf(0,0,0)
  231. local Torso_ = cf(0,0,0)
  232.  
  233. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  234. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  235. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  236. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  237. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  238. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  239. lrs:wait()
  240. end
  241. for i = 0,1,.05 do
  242. local animspd = .1
  243. local Right_Arm_ = cf(0,0,0)
  244. local Left_Arm_ = cf(0,0,0)
  245. local Right_Leg_ = cf(0,0,0)
  246. local Left_Leg_ = cf(0,0,0)
  247. local Head_ = cf(0,0,0)
  248. local Torso_ = cf(0,0,0)
  249.  
  250. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  251. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  252. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  253. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  254. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  255. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  256. lrs:wait()
  257. end
  258. ds,dkd = false,false
  259. end)
  260.  
  261. --]]
  262.  
  263. function rainb(hue)
  264. local section = hue % 1 * 3
  265. local secondary = 0.5 * math.pi * (section % 1)
  266. if section < 1 then
  267. return c3(1, 1 - cos(secondary), 1 - sin(secondary))
  268. elseif section < 2 then
  269. return c3(1 - sin(secondary), 1, 1 - cos(secondary))
  270. else
  271. return c3(1 - cos(secondary), 1 - sin(secondary), 1)
  272. end
  273. end
  274.  
  275. showDmg = function(To, From, Txt, Others)
  276. local bc,c3=BrickColor.new,Color3.new
  277. local vec3,cf=Vector3.new,CFrame.new
  278. local rand=math.random
  279. local n = 2
  280. local lrs=game:service'RunService'.Stepped
  281. local Color = CustomColor
  282. local Clr_Raw = Color
  283. if Clr == nil then Clr = 'Pearl' end
  284. Clr = bc(Color).Color
  285. local Pert = Instance.new('Part', Character)
  286. Pert.Size = vec3(.2,.2,.2)
  287. Pert.Transparency = 1
  288. Pert.CanCollide = false
  289. Pert.Anchored = true
  290. Pert.CFrame = To:FindFirstChild'Head'.CFrame * cf(rand(-n,n),n,rand(-n,n))
  291. Pert.BrickColor = bc('Black')
  292. local Rod = nil
  293. if (Others.Rod ~= nil and Others.Rod == true) then
  294. Rod = Instance.new('Part', Character)
  295. local to,from = Pert.CFrame.p, From:WaitForChild'HumanoidRootPart'.CFrame.p
  296. local dist = (to-from).magnitude
  297. Rod.Size = vec3(.2,.2,dist)
  298. Instance.new('BlockMesh',Rod).Scale=vec3(.1,.1,1)
  299. Rod.CFrame = cf(to,from)*cf(0,0,-dist/2)
  300. Rod.Transparency = .5 or Rod.RodTrans
  301. Rod.CanCollide = false
  302. Rod.Anchored = true
  303. Rod.BrickColor = bc(Clr_Raw)
  304. end
  305. local Gui = Instance.new('BillboardGui',Pert)
  306. Gui.Adornee = Pert
  307. local n2 = 10
  308. Gui.Size = UDim2.new(n2,0,n2,0)
  309. local TextL = Instance.new('TextLabel', Gui)
  310. local r,g,b = Clr.r,Clr.g,Clr.b
  311. local clr = c3(r,g,b)
  312. TextL.BackgroundTransparency = 1
  313. TextL.Font = 'SciFi'
  314. TextL.Size = UDim2.new(1,0,1,0)
  315. TextL.TextTransparency = .1
  316. TextL.TextStrokeTransparency = .2
  317. TextL.TextStrokeColor3 = clr
  318. TextL.Position = UDim2.new(0,0,0,0)
  319. Txt=tostring(Txt):upper()
  320. if string.find(Txt:lower(),'critical') or (Others.Crit ~= nil and Others.Crit == true)then
  321. Txt='(CRITICAL) // '..Txt
  322. end
  323. TextL.Text=Txt
  324. TextL.TextScaled = false
  325. TextL.FontSize = 'Size18'
  326. TextL.TextColor3 = Color3.new(1,1,1)
  327. local sp = Pert.CFrame*cf(rand(n,n*2),rand(n,n*2),rand(n,n*2)) --Pert.CFrame * cf(rand(-n,n),n,rand(-n,n))
  328. delay(.1,function()
  329. repeat lrs:wait()
  330. TextL.TextTransparency=TextL.TextTransparency+.005
  331. TextL.TextStrokeTransparency=TextL.TextStrokeTransparency+.005
  332. if Rod ~= nil then
  333. Rod.Transparency = Rod.Transparency + .0025
  334. end
  335. Pert.CFrame = Pert.CFrame:lerp(sp,.01)
  336. clr = c3(r,g,b)
  337. if Rod ~= nil then
  338. local to,from = Pert.CFrame.p, From:WaitForChild'HumanoidRootPart'.CFrame.p
  339. local dist = (to-from).magnitude
  340. Rod.Size = vec3(.2,.2,dist)
  341. Rod.CFrame = cf(to,from)*cf(0,0,-dist/2)
  342. end
  343. --TextL.TextColor3 = clr
  344. until TextL.TextTransparency>=1
  345. Pert:Destroy()
  346. if Rod ~= nil then
  347. Rod:Destroy()
  348. end
  349. end)
  350. end
  351.  
  352. --// Example // showDmg(workspace.SavageMunkey, workspace.Base, 'Damage Dealt'..math.random(0,100), {Rod=false,RodTrans=0,Crit=false})
  353.  
  354. CheckIfLanded = function()
  355. local Ray = Ray.new(root.Position,vec3(0,-1,0)*3.5)
  356. local Ignore = {Char}
  357. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  358. if Hit == nil then return false,nil end
  359. return true, Hit
  360. end;
  361.  
  362. FindNearestTorso = function(Position, Distance, SinglePlayer)
  363. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  364. local List = {}
  365. for i,v in pairs(workspace:GetChildren())do
  366. if v:IsA("Model")then
  367. if v:findFirstChild("Torso")then
  368. if v ~= Char then
  369. if(v.Torso.Position -Position).magnitude <= Distance then
  370. table.insert(List,v)
  371. end
  372. end
  373. end
  374. end
  375. end
  376. return List
  377. end
  378.  
  379. DebounceHit = false
  380.  
  381. NewFXBox = function(name,prnt)
  382. if prnt == nil then
  383. prnt = Character
  384. end
  385. local FXBox = Instance.new('Model', prnt)
  386. FXBox.Name = 'FXBox'
  387. if name then
  388. FXBox.Name = name
  389. end
  390. local Count = 0
  391. local Check
  392. Check = FXBox.ChildAdded:connect(function(Object)
  393. if Object:IsA'BasePart' then
  394. FXBox.PrimaryPart = Object
  395. Check:disconnect()
  396. end
  397. end)
  398. return FXBox
  399. end
  400.  
  401. ReSurface = function(Part, Integer)
  402. if Part ~= nil and Part:IsA'BasePart' then
  403. Part.TopSurface = Integer
  404. Part.BottomSurface = Integer
  405. Part.LeftSurface = Integer
  406. Part.RightSurface = Integer
  407. Part.FrontSurface = Integer
  408. Part.BackSurface = Integer
  409. end
  410. end
  411.  
  412. function ni(name,prnt)
  413. return Instance.new(tostring(name),prnt)
  414. end
  415.  
  416. local FX = NewFXBox('FXBox', Character)
  417. function NewObject(Type, prnt, others)
  418. if not prnt then prnt = workspace end
  419. local New = ni(Type)
  420. if New:IsA'BasePart' then
  421. ReSurface(New,10)
  422. New.Anchored = true
  423. New.Size = vec3(1,1,1)
  424. New.CanCollide = false
  425. end
  426. for i,v in next, others do
  427. local suc,err = pcall(function()
  428. New[i] = v
  429. end)
  430. if not suc then
  431. print(err)
  432. end
  433. end
  434. New.Parent = prnt
  435. return New
  436. end
  437.  
  438. function OnHumanoidFind(Detector, Offset, Function, Range, Multi) --// R15 Support
  439. spawn(function()
  440. if not Multi then Multi = false end
  441. local PlayerModels={};
  442. local SearchAndStuff
  443. local First = true
  444. SearchAndStuff=function(Parent)
  445. for Index, Obj in next, Parent:children() do
  446. if Obj:IsA'Model' and Obj:FindFirstChild'Humanoid' then
  447. if Obj:FindFirstChild'HumanoidRootPart' and (Obj.HumanoidRootPart.CFrame.p-(Detector.CFrame*Offset).p).magnitude <= Range and Obj~=char then
  448. --print'derp'
  449. table.insert(PlayerModels, Obj)
  450. if First then
  451. if not Multi then
  452. First = false
  453. end
  454. pcall(function()
  455. Obj.Health.Disabled = true
  456. end)
  457. spawn(function()
  458. Function(Obj:WaitForChild'HumanoidRootPart', Obj:WaitForChild'Humanoid', Obj)
  459. end)
  460. end
  461. end
  462. end
  463. SearchAndStuff(Obj)
  464. end
  465. end
  466. SearchAndStuff(workspace)
  467. return PlayerModels
  468. end)
  469. end
  470.  
  471. function debri(item,time)
  472. return game:service'Debris':AddItem(item,time)
  473. end
  474.  
  475. local effects={MagicCircles={};};
  476. local trans={};
  477. local grows={}
  478.  
  479. function effects:MagicCircle(waitt, id, Offset)
  480. local mcPart=NewObject('Part', FX,{Transparency=1,Size=vec3(4.5,4.5,.2)})
  481. debri(mcPart,40)
  482. local mesh=NewObject('BlockMesh',mcPart,{Scale=vec3(1,1,0)})
  483. summonsound()
  484. local backDecal=NewObject('Decal',mcPart,{Color3=bc(CustomColor).Color,Face='Back',Texture=rbx..id})
  485. local frontDecal=NewObject('Decal',mcPart,{Color3=bc(CustomColor).Color,Face='Front',Texture=rbx..id})
  486. local r=rand()
  487. local dir=5
  488. if r>.5 then dir=-5 end
  489. spawn(function()
  490. repeat wait() until frontDecal.Parent==nil mcPart:Destroy()
  491. end)
  492. table.insert(effects.MagicCircles, {mcPart,backDecal,frontDecal,dir})
  493. mcPart.CFrame = Offset
  494. delay(waitt,function() trans[backDecal]={.05,1} trans[frontDecal]={.05,1}end)
  495. return mcPart
  496. end
  497.  
  498. function effects:particle(waitt,mx,num, shape,Offset, clrz,cancollide)
  499. local sz={};
  500. if not clrz or #clrz < 1 then
  501. clrz={'Royal purple','Pearl',CustomColor}
  502. end
  503. for i = .4,mx,.025 do table.insert(sz,i) end
  504. local tings={};
  505. for i = 1,num do
  506. local val = sz[rand(1,#sz)]
  507. local part=NewObject('Part', FX,{Material=CustomMaterial, CanCollide=cancollide,Shape=shape, Transparency=.6,Size=vec3(val,val,val),Color = bc(clrz[rand(1,#clrz)]).Color, CFrame = Offset*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))})
  508. tings[i]=part
  509. delay(waitt,function() trans[part]={.05,1} end)
  510. end
  511. return tings
  512. end
  513.  
  514. function effects:Debris(cancollide, radius, mx, num, pos, waitt,velocitymax)
  515. local Ray = Ray.new(pos+vec3(0,1,0),vec3(0,-1,0)*5)
  516. local Ignore = {FX,Character}
  517. local Hit, Pos, SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  518. local tings={};
  519. if Hit then
  520. local sz={};
  521. for i = .2,mx,.025 do table.insert(sz,i) end
  522. for i = 1,num do
  523. local val = sz[rand(1,#sz)]
  524. local y = 45
  525. if not cancollide then y = 65 end
  526. local top,bottom=velocitymax[1],velocitymax[2]
  527. local x,z=rand(bottom,top),rand(bottom,top)
  528. local part=NewObject('Part', FX,{Anchored=false, Velocity = vec3(rand(-x,x),y,rand(-z,z)), Material=Hit.Material, CanCollide=cancollide, Transparency=Hit.Transparency,Size=vec3(val,val,val),Color = Hit.Color, CFrame = cf(pos)*cf(rand(-radius,radius),0,rand(-radius,radius))*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))})
  529. tings[i]=part
  530. if cancollide then
  531. delay(waitt,function() trans[part]={.05,1} end)
  532. end
  533. end
  534. return tings
  535. else
  536. --// Derp
  537. end
  538. end
  539.  
  540. function effects:BlastRad(cancollide, radius, num, mx, pos, waitt)
  541. local Ray = Ray.new(pos+vec3(0,1,0),vec3(0,-1,0)*5)
  542. local Ignore = {FX,Character}
  543. local Hit, Pos, SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  544. local tings={};
  545. local org=mx/4
  546. mx=mx
  547. if Hit then
  548. local sz={};
  549. for i = .2,num,.025 do table.insert(sz,i) end
  550. for i = 1,360,mx do
  551. local val = sz[rand(1,#sz)]
  552. local function rr()
  553. local vlz={}
  554. for i = .45,1,.025 do table.insert(vlz,i) end
  555. return vlz[rand(1,#vlz)]
  556. end
  557. local part=NewObject('Part', FX,{Material=Hit.Material, CanCollide=cancollide, Transparency=Hit.Transparency,Size=vec3(val/rr(),val/rr(),val/rr()),Color = Hit.Color, CFrame = cf(pos) * ang(0,rad(i),0)*cf(radius,(Hit.CFrame.Y+(Hit.Size.Y/2))-val,0)*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))})
  558. tings[i]=part
  559. if cancollide then
  560. delay(waitt,function() trans[part]={.05,1} end)
  561. end
  562. end
  563. return tings
  564. else
  565. --// Derp
  566. end
  567. end
  568.  
  569. --[[ examples
  570. effects:BlastRad(true, 15, 2, 18, pos, .5)
  571.  
  572. effects:Debris(true, 2.5, 2, rand(10,20), pos, .5,{50,25})
  573.  
  574. effects:MagicCircle(.15,124339738, cf(0,-1.5,0))
  575.  
  576. effects:particle(.5,1.2,rand(2,5),'Ball',cf(0,-1.5,0),{CustomColor,'Pearl'})
  577. --]]
  578.  
  579. BindKey('Ion Beam', 'e', function(AttackName, Key)
  580. ds,dkd = true,true
  581. for i = 0,1,.05 do
  582. FacePos'mouse'
  583. local animspd = .5
  584. Right_Arm_ = CFrame.new(1.63944244, -1.00000119, -0.438468933, 0, -0.866025388, 0.500000238, 1, 0, 0, 0, 0.500000238, 0.866025388)
  585. Left_Arm_ = CFrame.new(-0.21706295, -0.303030014, -0.0192867965, 0.939692855, 0.342019916, -2.08616257e-007, -0.342019856, 0.939692736, 1.5155652e-007, 2.08616257e-007, -8.94069672e-008, 1.00000024)
  586. Right_Leg_ = CFrame.new(0.0669910312, 0, -0.249992311, 0.866025567, 0, -0.499999881, 0, 1, 0, 0.499999881, 0, 0.866025567)
  587. Left_Leg_ = CFrame.new(-3.69548798e-006, 0, -7.62939453e-006, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)
  588. Head_ = CFrame.new(0, 0, 0, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)
  589. Torso_ = CFrame.new(-0.349983215, 0, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)
  590.  
  591. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  592. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  593. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  594. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  595. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  596. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  597. lrs:wait()
  598. end
  599. local mc=effects:MagicCircle(.15,127817121, rarm.CFrame * cf(0,-1.5,0)*ang(rad(90),0,0))
  600. local particles = effects:particle(.5,1.2,rand(2,5),'Ball',rarm.CFrame*cf(0,-1.5,0),{CustomColor,'Pearl'})
  601. spawn(function()
  602. local start=(rarm.CFrame*cf(0,-1.65,0))
  603. local endp = mouse.Hit.p
  604. local dir = cf(start.p,endp)
  605. local dist
  606. local beam = NewObject('Part',FX,{Material=CustomMaterial,Size = vec3(1,1,1), Transparency=.5,BrickColor=bcCustomColor,CFrame=dir*start})
  607. local i,maxi,up=0,800,15
  608. while i<maxi and lrs:wait() do
  609. if beam.Transparency >= 1 then
  610. beam:Destroy()
  611. break
  612. end
  613. i=i+up
  614. beam.Transparency=beam.Transparency+(1/(maxi/up))
  615. local bcf=(beam.CFrame*cf(0,0,-(i/2)))
  616. local Ray = Ray.new(start.p,(start.p-(cf(start.p,endp)*cf(0,0,1)).p).unit*i)
  617. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,{Char,FX})
  618. if Hit then
  619. local particles = effects:particle(.001,6,rand(3,7),'Block',cf(Pos),{'Pearl',CustomColor})
  620. spawn(function()
  621. table.insert(grows,{particles,.5})
  622. end)
  623. local hsnd=snd(233856130,particles[1])
  624. hsnd.Volume=4
  625. hsnd.Pitch=pitches[rand(1,#pitches)]
  626. hsnd:Play()
  627. local hsnd2=snd(471882019,particles[1])
  628. hsnd2.Volume=4
  629. hsnd2.Pitch=pitches[rand(1,#pitches)]
  630. hsnd2:Play()
  631. effects:Debris(true, 2.5, 2, rand(10,20), Pos, .5,{50,25})
  632. effects:BlastRad(true, 3, 2, 18, Pos, .5)
  633. OnHumanoidFind(particles[1], cf(0,0,0), function(rootp,human,model)
  634. local Hum = human
  635. local dmg=rand(17,25)
  636. Hum.Health = Hum.Health - dmg
  637. local num=rand()
  638. local derp=false
  639. if num>.45 then
  640. derp=true
  641. dmg=dmg
  642. Hum.PlatformStand = true
  643. end
  644. showDmg(Hum.Parent, Character, dmg, {Rod=true,RodTrans=0,Crit=derp})
  645. end, 15, true)
  646. break
  647. else
  648. beam.Size=beam.Size:lerp(vec3(1,1,i),.5)
  649. beam.CFrame = dir*cf(0,0,-i/2)*ang(0,0,rad(i)) --// cf((beam.CFrame*cf(0,0,-i/2)).p,(beam.CFrame*cf(0,0,-(i/2)+4)).p)
  650. end
  651. lrs:wait()
  652. end
  653. beam:Destroy()
  654.  
  655. end)
  656. ds,dkd = false,false
  657. end)
  658.  
  659. BindKey('Spike Barrage Rise', 'q', function(AttackName, Key)
  660. ds,dkd = true,true
  661. for i = 0,1,.05 do
  662. FacePos'mouse'
  663. local animspd = .4
  664. Right_Arm_ = CFrame.new(0.370960236, 0.770703673, -1.29712296, 0.866025269, -0.500000298, 1.35973167e-007, -0.0950751901, -0.164675236, -0.981755078, 0.490877777, 0.850224674, -0.190150529)
  665. Left_Arm_ = CFrame.new(-0.370960236, 0.770703673, -1.2971077, 0.866025269, 0.500000298, -1.35973167e-007, 0.0950751901, -0.164675236, -0.981755078, -0.490877777, 0.850224674, -0.190150529)
  666. Right_Leg_ = CFrame.new(0, 0.117139697, -0.42620942, 1, 0, 0, 0, 0.990105569, -0.140325084, 0, 0.140325084, 0.990105569)
  667. Left_Leg_ = CFrame.new(0, 0.00440132618, -0.339604199, 1, 0, 0, 0, 0.992687285, 0.120714575, 0, -0.120714575, 0.992687285)
  668. Head_ = CFrame.new(0, 0.0041718483, -0.112817012, 1, 0, 0, 0, 0.997167885, -0.0752087981, 0, 0.0752087981, 0.997167885)
  669. Torso_ = CFrame.new(0, -0.0968499184, -0.0671653748, 1, 0, 0, 0, 0.990105569, 0.140325084, 0, -0.140325084, 0.990105569)
  670.  
  671. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  672. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  673. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  674. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  675. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  676. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  677. lrs:wait()
  678. end
  679. local pos
  680. hum.WalkSpeed=0
  681. hum.JumpPower=0
  682. for i = 0,1,.05 do
  683. local animspd = .4
  684. Right_Arm_ = CFrame.new(0, 1.00624561, -0.619987488, 1, 0, 0, 0, -0.655552566, -0.755149782, 0, 0.755149782, -0.655552566)
  685. Left_Arm_ = CFrame.new(0, 1.00623989, -0.619972229, 1, 0, 0, 0, -0.655552566, -0.755149782, 0, 0.755149782, -0.655552566)
  686. Right_Leg_ = CFrame.new(0, 0.0947320461, -0.297110081, 1, 0, 0, 0, 0.981755137, -0.190150023, 0, 0.190150023, 0.981755137)
  687. Left_Leg_ = CFrame.new(0, -0.0276720524, -0.331606507, 1, 0, 0, 0, 0.986158729, 0.165805161, 0, -0.165805161, 0.986158729)
  688. Head_ = CFrame.new(0, 0.00417375565, -0.112819031, 1, 0, 0, 0, 0.997167945, -0.0752075911, 0, 0.0752075985, 0.997167945)
  689. Torso_ = CFrame.new(0, -0.0691239834, -0.0950775146, 1, 0, 0, 0, 0.981755137, 0.190150023, 0, -0.190150023, 0.981755137)
  690.  
  691. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  692. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  693. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  694. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  695. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  696. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  697. lrs:wait()
  698. end
  699. ds,dkd = false,false
  700. end)
  701.  
  702. local mh = 1500
  703. hum.MaxHealth = mh
  704. wait(.1)
  705. hum.Health = mh
  706. HumanoidRootPart.Transparency = .9
  707.  
  708. local debvals={};
  709. debvals['CLEAN']=0
  710. debvals['walkparticles']=0
  711. local Handle = function()
  712. spawn(function()
  713. for i,v in next, effects.MagicCircles do
  714. if v[1].Parent ~= nil then
  715. v[1].CFrame = lerp(v[1].CFrame, v[1].CFrame * CFrame.Angles(0,0,rad(v[4])), .9)
  716. else
  717. --table.remove(effects.MagicCircles,i)
  718. effects.MagicCircles[i]=nil
  719. end
  720. end
  721. end)
  722. spawn(function()
  723. for ting,data in next, trans do
  724. if ting.Transparency~=nil and ting.Transparency < data[2] then
  725. --print(ting.Transparency,data[2])
  726. ting.Transparency=ting.Transparency+data[1]
  727. elseif ting.Transparency >= tonumber(data[2]) and ting.Parent ~= nil then
  728. --print'ded'
  729. trans[ting]=nil
  730. ting:Destroy()
  731. end
  732. end
  733. end)
  734. spawn(function()
  735. for a,b in next, grows do
  736. if a==grows[15] then
  737. grows={};
  738. for i,v in next, grows do
  739. grows[i]=v
  740. end
  741. print'ded'
  742. else
  743. if #b > 1 then
  744. for __,v in next, b[1] do
  745. if v.Parent ~= nil then
  746. if v.Transparency > 8 then
  747. v:Destroy()
  748. else
  749. local c=v.CFrame
  750. v.Size=v.Size+vec3(b[2],b[2],b[2])
  751. v.CFrame=c*ang(rad(2),rad(2/2),rad(2*3))
  752. end
  753. else
  754. b[1][__]=nil
  755. end
  756. end
  757. else
  758. grows[a]=nil
  759. end
  760. end
  761. end
  762. end)
  763. if not Walking and debvals['walkparticles']>.09 then
  764. debvals['walkparticles']=0
  765. local particles = effects:particle(.1,2.2,1,'Block',torso.CFrame,{CustomColor,'Pearl'})
  766. table.insert(grows,{particles,.5})
  767. else
  768. --print(debvals['walkparticles'])
  769. end
  770. if debvals['CLEAN'] > 40 then
  771. debvals['CLEAN']=0
  772. grows={};
  773. trans={};
  774. effects.MagicCircles={};
  775. FX:ClearAllChildren()
  776. end
  777. for i,v in next,debvals do
  778. debvals[i]=v+.1
  779. --print(i,v)
  780. end
  781. end
  782.  
  783. Mouse.KeyDown:connect(function(Key)
  784. if Key:byte() == 48 then
  785. Walking = false
  786. end
  787. end)
  788.  
  789. Mouse.KeyUp:connect(function(Key)
  790. if Key:byte() == 48 then
  791. Walking = true
  792. end
  793. end)
  794.  
  795. local upv=0
  796. lrs:connect(function()
  797. Handle()
  798. Landed = CheckIfLanded()
  799. sine = sine+change/2
  800. hum.PlatformStand = false
  801. if ds then
  802. return
  803. end
  804. hum.JumpPower = 150
  805. hum.WalkSpeed = 9
  806. if Walking then
  807. hum.WalkSpeed=12
  808. else
  809. hum.WalkSpeed = 48
  810. end
  811. local tmag_xz = (torso.Velocity*vec3(1, 0, 1)).magnitude
  812. local tmag_y = torso.Velocity.Y
  813. local trot = torso.RotVelocity.Y/50
  814. local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z)
  815. local TiltOnAxis = (root.CFrame-root.CFrame.p):inverse()*speed/200
  816. local Tilt = ang(TiltOnAxis.Z,-TiltOnAxis.X,-TiltOnAxis.X)
  817. if Landed == false then
  818. State, Mode = 'Falling', 'Normal'
  819. elseif tmag_xz < 7 then
  820. State, Mode = 'Idle', 'Normal'
  821. elseif tmag_xz >= 10 then
  822. State = 'Walking'
  823. if tmag_xz > 23 then
  824. Mode = 'Running'
  825. else
  826. Mode = 'Normal'
  827. end
  828. end
  829. local RestoreDefault = function(Current)
  830. Current = Current or State
  831. if LastState ~= Current then
  832. LastState = Current
  833. sine = 0
  834. end
  835. end
  836. local Default_Anims = function()
  837. local animspd = .1
  838. local Right_Arm_ = cf(0,0,0)
  839. local Left_Arm_ = cf(0,0,0)
  840. local Right_Leg_ = cf(0,0,0)
  841. local Left_Leg_ = cf(0,0,0)
  842. local Head_ = cf(0,0,0)
  843. local Torso_ = cf(0,0,0)
  844.  
  845. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  846. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  847. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  848. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  849. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  850. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  851. end
  852. if State == 'Falling' and ds == false then
  853. local animspd = .3
  854. change=1
  855. Right_Arm_ = CFrame.new(0.309095025, -0.285505116, -0.0270642117, 0.920238733, -0.384522766, -0.0728211105, 0.386343509, 0.922273397, 0.0122654885, 0.0624446124, -0.0394211262, 0.99726963)
  856. Left_Arm_ = CFrame.new(-0.340406179, -0.299129426, 0.0357903093, 0.920238614, 0.384522349, -0.0728249624, -0.384691834, 0.922963858, 0.0122471973, 0.0719241202, 0.0167448297, 0.99726963)
  857. Right_Leg_ = CFrame.new(-6.10351563e-005, 3.81469727e-005, -1.90734863e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  858. Left_Leg_ = CFrame.new(-6.10351563e-005, 0.361884952, -0.74763912, 1, 0, 0, 0, 0.965925157, 0.258821696, 0, -0.258821696, 0.965925157)
  859. Head_ = CFrame.new(0, 0.200837851, 0.559991479, 1, 0, 0, 0, 0.866024137, 0.500002325, 0, -0.500002325, 0.866024137)
  860. Torso_ = CFrame.new(0, 0.0190048218, 0.0427560806, 1, 0, 0, 0, 0.992914736, -0.118828967, 0, 0.118828967, 0.992914736)
  861.  
  862. torw.C0 = clerp(torw.C0, cf(-sin(sine/rand(2,8))/15,sin(sine/rand(2,8))/15,0)*Torso_*ang(0,0,0),animspd)
  863. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  864. law.C0 = lerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  865. raw.C0 = lerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  866. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  867. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  868. elseif State == 'Idle' and ds == false then
  869. RestoreDefault()
  870. if Mode == 'Normal' and ds == false then
  871. local animspd = .2
  872. change=1
  873. torw.C0 = lerp(torw.C0, cf(0,-sin(sine/6)/15,.1-sin(sine/6)/41)*CFrame.new(0, 0, 0, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)*ang(-rad(5)+sin(sine/6)/41,-rad(16),0),animspd)
  874. hedw.C0 = clerp(hedw.C0, cf(0,0,-cos(sine/6)/24)*CFrame.new(0.0443366542, 0.0183815956, 0.154620528, 0.965866625, -0.0431191772, 0.25542587, 0.00273020566, 0.987688363, 0.15641053, -0.259025425, -0.150374338, 0.95409292)*ang(cos(sine/6)/24,0,0),animspd)
  875. law.C0 = clerp(law.C0, cf(-cos(sine/6)/24,0,0)*CFrame.new(-0.17305398, -0.4023332, -0.290585816, 0.933187842, 0.329444826, -0.143619344, -0.358558774, 0.826312661, -0.434330463, -0.0244134665, 0.456807911, 0.889230251)*ang(0,0,-cos(sine/6)/15),animspd)
  876. raw.C0 = clerp(raw.C0, cf(cos(sine/6)/24,0,0)*CFrame.new(0.352661252, -0.465409994, 0, 0.866025329, -0.49999997, 0, 0.5, 0.866025388, 0, 0, 0, 0.99999994)*ang(0,0,cos(sine/6)/15),animspd)
  877. rlw.C0 = clerp(rlw.C0, cf(sin(sine/6)/41,sin(sine/6)/15,-.1+sin(sine/6)/41)*CFrame.new(-0.148569882, -0.0734579563, 0.0426014438, 0.993112504, -0.117148325, 0.0019749701, 0.117148332, 0.992546141, -0.0335917622, 0.0019749403, 0.0335917659, 0.999433637)*ang(-sin(sine/6)/41,0,0),animspd)
  878. llw.C0 = clerp(llw.C0, cf(sin(sine/6)/41,sin(sine/6)/15,-.1+sin(sine/6)/41)*CFrame.new(0.18119061, -0.113829255, -0.0519562438, 0.985961914, 0.166921332, 0.00402534008, -0.166921332, 0.98480773, 0.0478639491, 0.00402531028, -0.0478639565, 0.998845637)*ang(-sin(sine/6)/41,0,0),animspd)
  879. else
  880. Default_Anims()
  881. warn'Idle: Unknown Mode Used'
  882. end
  883. elseif State == 'Walking' and ds == false then
  884. RestoreDefault()
  885. if Mode == 'Normal' and ds == false then
  886. local animspd = .225
  887. local Right_Arm_ = cf(0,0,0)
  888. local Left_Arm_ = cf(0,0,0)
  889. local Right_Leg_ = cf(0,0,0)
  890. local Left_Leg_ = cf(0,0,0)
  891. local Head_ = cf(0,0,0)
  892. local Torso_ = cf(0,0,0)
  893.  
  894. local animspd = .2
  895. change=1.55
  896. torw.C0 = lerp(torw.C0, cf(0,cos(sine/3)/8,0)*ang(-rad(10)+cos(sine/3)/8,cos(sine/6)/8,0),animspd)
  897. hedw.C0 = clerp(hedw.C0, cf(0,0,-.2+cos(sine/3)/8)*ang(rad(10)+-cos(sine/3)/8,trot+-cos(sine/6)/8,0),animspd)
  898. law.C0 = clerp(law.C0, cf(0,0,-cos(sine/6)/2)*CFrame.new(-0.201123714, -0.238223612, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)*ang(cos(sine/6)/2,0,0),animspd)
  899. raw.C0 = clerp(raw.C0, cf(0,0,cos(sine/6)/2)*CFrame.new(0.201123714, -0.238223612, 0, 0.965925872, -0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)*ang(-cos(sine/6)/2,0,0),animspd)
  900. rlw.C0 = clerp(rlw.C0, cf(-.034,-sin(sine/6)/4,-.4+-cos(sine/6)/2+sin(sine/6)/2)*ang(-rad(5)+sin(sine/6)/3,-cos(sine/6)/8,rad(2)),animspd)
  901. llw.C0 = clerp(llw.C0, cf(.0340,sin(sine/6)/4,-.4+cos(sine/6)/2+-sin(sine/6)/2)*ang(-rad(5)+-sin(sine/6)/3,-cos(sine/6)/8,-rad(2)),animspd)
  902. elseif Mode == 'Running' and ds == false then
  903. local animspd = .1
  904. local Right_Arm_ = cf(0,0,0)
  905. local Left_Arm_ = cf(0,0,0)
  906. local Right_Leg_ = cf(0,0,0)
  907. local Left_Leg_ = cf(0,0,0)
  908. local Head_ = cf(0,0,0)
  909. local Torso_ = cf(0,0,0)
  910. upv=upv+25
  911. torw.C0 = lerp(torw.C0, cf(cos(sine/3)/8,sin(sine/6)/5,trot)*Torso_*ang(-rad(90),rad(upv),0),.3)
  912. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  913. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  914. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  915. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  916. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  917. else
  918. Default_Anims()
  919. warn'Walking: Unknown Mode Used'
  920. end
  921. else --// New Animation Test Stage
  922. local animspd = .1
  923. local Right_Arm_ = cf(0,0,0)
  924. local Left_Arm_ = cf(0,0,0)
  925. local Right_Leg_ = cf(0,0,0)
  926. local Left_Leg_ = cf(0,0,0)
  927. local Head_ = cf(0,0,0)
  928. local Torso_ = cf(0,0,0)
  929.  
  930. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  931. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  932. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  933. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  934. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  935. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  936. end
  937.  
  938. end)
  939.  
  940. --[[ Default Welds
  941. local animspd = .3
  942.  
  943. local Right_Arm_ = cf(0,0,0)
  944. local Left_Arm_ = cf(0,0,0)
  945. local Right_Leg_ = cf(0,0,0)
  946. local Left_Leg_ = cf(0,0,0)
  947. local Head_ = cf(0,0,0)
  948. local Torso_ = cf(0,0,0)
  949.  
  950. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  951. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  952. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  953. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  954. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  955. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  956. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement