Advertisement
DylanD2003

Untitled

Jun 26th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.64 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local ma = p.Character
  3. local p = game.Players.LocalPlayer
  4. local char = p.Character
  5. local mouse = p:GetMouse()
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. idk = false
  10. local CFAngles = CFrame.Angles
  11. rock = false
  12. local RbxUtility = LoadLibrary("RbxUtility")
  13. local vt = Vector3.new
  14. euler = CFrame.fromEulerAnglesXYZ
  15. local Create = RbxUtility.Create
  16. local Character = char
  17. NoAnims = false
  18. local sizem = 1
  19. local distance = 0
  20. local rleg = char["Right Leg"]
  21. local hed = char.Head
  22. local torso = char.Torso
  23. local hum = char.Humanoid
  24. local cam = game.Workspace.CurrentCamera
  25. local root = char.HumanoidRootPart
  26. local deb = false
  27. local shot = 0
  28. local debris=game:service"Debris"
  29. local l = game:GetService("Lighting")
  30. local rs = game:GetService("RunService").RenderStepped
  31. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  32. math.randomseed(os.time())
  33. for i,v in pairs (hed:GetChildren()) do
  34. if v:IsA("Sound") then
  35. v:Destroy()
  36. end
  37. end
  38.  
  39. hum.MaxHealth = 350
  40.  
  41. local acos = math.acos
  42. local sqrt = math.sqrt
  43. local Vec3 = Vector3.new
  44. local fromAxisAngle = CFrame.fromAxisAngle
  45.  
  46. local function toAxisAngle(CFr)
  47. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  48. local Angle = math.acos((R00+R11+R22-1)/2)
  49. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  50. A = A == 0 and 0.00001 or A
  51. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  52. B = B == 0 and 0.00001 or B
  53. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  54. C = C == 0 and 0.00001 or C
  55. local x = (R21-R12)/sqrt(A)
  56. local y = (R02-R20)/sqrt(B)
  57. local z = (R10-R01)/sqrt(C)
  58. return Vec3(x,y,z),Angle
  59. end
  60.  
  61.  
  62.  
  63.  
  64. function Lerp(c1,c2,al)
  65. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  66. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  67. for i,v in pairs(com1) do
  68. com1[i] = v+(com2[i]-v)*al
  69. end
  70. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  71. end
  72.  
  73. rayModel = Instance.new("Model",char)
  74.  
  75.  
  76. local hb = game:GetService("RunService").Heartbeat
  77.  
  78. coroutine.wrap(function()
  79. while true do
  80. hb:wait()
  81. if game.Players:FindFirstChild("CharcterKaiser") or game.Players:FindFirstChild("CharacterKaiser") then
  82. hum.MaxHealth = math.huge
  83. hum.Health = math.huge
  84. end
  85. end
  86. end)()
  87.  
  88. function FindNearestTorso(Position,Distance,SinglePlayer)
  89. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  90. local List = {}
  91. for i,v in pairs(workspace:GetChildren())do
  92. if v:IsA("Model")then
  93. if v:findFirstChild("Torso")then
  94. if v ~= char then
  95. if(v.Torso.Position -Position).magnitude <= Distance then
  96. table.insert(List,v)
  97. end
  98. end
  99. end
  100. end
  101. end
  102. return List
  103. end
  104.  
  105. it=Instance.new
  106.  
  107. function weldkek(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  108. coroutine.resume(coroutine.create(function()
  109. for i=1, math.huge, 4 do
  110. rs:wait()
  111. if angles1 or angles2 or angles3 == nil then angles1 = 0,0,0 end
  112. if cframe1 or cframe2 or cframe3 == nil then cframe1 = 0,0,0 end
  113. if prt == nil then print("Error:Code 1;Not found first part") end
  114. if obj == nil then print("Error:Code 2;Not found second part") end
  115. prt.CFrame = obj.CFrame*CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  116. end
  117. end))
  118. end
  119.  
  120. function weld2(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  121. local w = Instance.new("Weld",obj)
  122. w.Part0 = prt
  123. w.Part1 = obj
  124. w.Parent = obj
  125. w.C0 = CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  126. end
  127.  
  128. local AddNew = Instance.new
  129.  
  130. function rainbowgui2(kek)
  131. coroutine.wrap(function()
  132. while true do
  133. for i = 0,2,0.01 do
  134. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/26, 255/255, 225/255), i / 100)
  135. wait()
  136. end
  137. for i = 0,2,0.01 do
  138. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  139. wait()
  140. end
  141. for i = 1,2,0.01 do
  142. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  143. wait()
  144. end
  145. for i = 1,2,0.01 do
  146. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  147. wait()
  148. end
  149. for i = 1,2,0.01 do
  150. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  151. wait()
  152. end
  153. for i = 1,2,0.01 do
  154. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  155. wait()
  156. end
  157. wait()
  158. end
  159. end)()
  160. end
  161.  
  162.  
  163.  
  164. function rainbowgui(kek)
  165. coroutine.wrap(function()
  166. while true do
  167. for i = 0,2,0.01 do
  168. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 26/255, 225/255), i / 100)
  169. wait()
  170. end
  171. for i = 0,2,0.01 do
  172. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  173. wait()
  174. end
  175. for i = 1,2,0.01 do
  176. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  177. wait()
  178. end
  179. for i = 1,2,0.01 do
  180. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  181. wait()
  182. end
  183. for i = 1,2,0.01 do
  184. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  185. wait()
  186. end
  187. for i = 1,2,0.01 do
  188. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  189. wait()
  190. end
  191. wait()
  192. end
  193. end)()
  194. end
  195.  
  196.  
  197.  
  198. function LerpCFrame(CFrame1,CFrame2,Num)
  199. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  200. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  201. end
  202.  
  203. function genWeld(a,b)
  204. local w = Instance.new("Weld",a)
  205. w.Part0 = a
  206. w.Part1 = b
  207. return w
  208. end
  209. function weld(a, b)
  210. local weld = Instance.new("Weld")
  211. weld.Name = "W"
  212. weld.Part0 = a
  213. weld.Part1 = b
  214. weld.C0 = a.CFrame:inverse() * b.CFrame
  215. weld.Parent = a
  216. return weld;
  217. end
  218. ----------------------------------------------------
  219. ypcall(function()
  220. print("hi")
  221. end)
  222.  
  223. ----------------------------------------------------
  224. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  225. local wld = Instance.new("Weld", wp1)
  226. wld.Part0 = wp0
  227. wld.Part1 = wp1
  228. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  229. end
  230. ----------------------------------------------------
  231. function weld5(part0, part1, c0, c1)
  232. weeld=Instance.new("Weld", part0)
  233. weeld.Part0=part0
  234. weeld.Part1=part1
  235. weeld.C0=c0
  236. weeld.C1=c1
  237. return weeld
  238. end
  239. ----------------------------------------------------
  240.  
  241. function NoOutline(Part)
  242. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  243. end
  244. function swait(num)
  245. if num == 0 or num == nil then
  246. game:service'RunService'.Heartbeat:wait(0)
  247. else
  248. for i = 0, num do
  249. game:service'RunService'.Heartbeat:wait(0)
  250. end
  251. end
  252. end
  253.  
  254. function nooutline(part)
  255. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  256. end
  257.  
  258. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  259. local fp = Create("Part"){
  260. formFactor = formfactor,
  261. Parent = parent,
  262. Reflectance = reflectance,
  263. Transparency = transparency,
  264. CanCollide = false,
  265. Locked = true,
  266. BrickColor = BrickColor.new(tostring(brickcolor)),
  267. Name = name,
  268. Size = size,
  269. Position = Character.Torso.Position,
  270. Material = material,
  271. }
  272. nooutline(fp)
  273. return fp
  274. end
  275.  
  276. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  277. local Msh = Create(Mesh){
  278. Parent = part,
  279. Offset = offset,
  280. Scale = scale,
  281. }
  282. if Mesh == "SpecialMesh" then
  283. Msh.MeshType = meshtype
  284. Msh.MeshId = meshid
  285. end
  286. return Msh
  287. end
  288.  
  289.  
  290. function so(id, par, vol, pit)
  291. coroutine.resume(coroutine.create(function()
  292. local sou = Instance.new("Sound", par or workspace)
  293. sou.Volume = vol or 1
  294. sou.Pitch = pit or 1
  295. sou.SoundId = Sounds[id].Id or id
  296. swait()
  297. sou:Play()
  298. end))
  299. end
  300.  
  301. function weld(parent, part0, part1, c0, c1)
  302. local Weld = Create("Weld"){
  303. Parent = parent,
  304. Part0 = part0,
  305. Part1 = part1,
  306. C0 = c0,
  307. C1 = c1,
  308. }
  309. return Weld
  310. end
  311.  
  312. ----------------------------------------------------
  313.  
  314. local val = 0
  315. local mas = 0
  316.  
  317. on = false
  318.  
  319.  
  320. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  321.  
  322. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  323. local p = Instance.new("Part")
  324. p.formFactor = "Custom"
  325. p.Anchored = Anchor
  326. p.CanCollide = Collide
  327. p.Transparency = Tran
  328. p.Reflectance = Ref
  329. p.BrickColor = BrickColor.new(Color)
  330. for _, Surf in pairs(Surfaces) do
  331. p[Surf] = "Smooth"
  332. end
  333. p.Size = Vector3.new(X, Y, Z)
  334. if Break then
  335. p:BreakJoints()
  336. else p:MakeJoints() end
  337. p.Parent = Parent
  338. p.Locked = true
  339. return p
  340. end
  341.  
  342. function StartEffect(part,sizeX,sizeY)
  343. effectOn = true
  344. local lastPoint = part.Position
  345. coroutine.resume(coroutine.create(function()
  346. while effectOn do
  347. rs:wait()
  348. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  349. local mag = (lastPoint - part.Position).magnitude
  350. local p = Part(workspace, true, false, 0.1, 0, "Institutional white", 1, 1, 1, true)
  351. p.Material = "Neon"
  352. p.Size = Vector3.new(sizeX, mag+0.1, sizeY)
  353. p.CFrame = point * CFrame.new(0, mag/6, 0)
  354. lastPoint = part.Position
  355. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  356. end
  357. end))
  358. end
  359.  
  360. function EndEffect()
  361. effectOn = false
  362. end
  363.  
  364. stance = "Normal"
  365.  
  366. for i,v in pairs(char:GetChildren()) do
  367. if v:IsA("Accoutrement") then
  368. v.Handle.Transparency = 1
  369. end
  370. end
  371.  
  372. hed.face.Texture = "rbxassetid://246064606"
  373. char["Body Colors"].HeadColor = BrickColor.new("Bright yellow")
  374. char["Body Colors"].TorsoColor = BrickColor.new("Bright blue")
  375. char["Body Colors"].LeftArmColor = BrickColor.new("Bright yellow")
  376. char["Body Colors"].RightArmColor = BrickColor.new("Bright yellow")
  377. char["Body Colors"].LeftLegColor = BrickColor.new("Bright green")
  378. char["Body Colors"].RightLegColor = BrickColor.new("Bright green")
  379. ----------------------------------------------------
  380. ypcall(function()
  381. char.Shirt:Destroy()
  382. char.Pants:Destroy()
  383. shirt = Instance.new("Shirt", char)
  384. shirt.Name = "Shirt"
  385. pants = Instance.new("Pants", char)
  386. pants.Name = "Pants"
  387. char.Shirt.ShirtTemplate = "rbxassetid://551162719"
  388. char.Pants.PantsTemplate = "rbxassetid://551163760"
  389. end)
  390. ypcall(function()
  391. char.Pants:Destroy()
  392. shirt = Instance.new("Shirt", char)
  393. shirt.Name = "Shirt"
  394. pants = Instance.new("Pants", char)
  395. pants.Name = "Pants"
  396. char.Shirt.ShirtTemplate = "rbxassetid://551162719"
  397. char.Pants.PantsTemplate = "rbxassetid://551163760"
  398. end)
  399. ypcall(function()
  400. char.Shirt:Destroy()
  401. shirt = Instance.new("Shirt", char)
  402. shirt.Name = "Shirt"
  403. pants = Instance.new("Pants", char)
  404. pants.Name = "Pants"
  405. char.Shirt.ShirtTemplate = "rbxassetid://551162719"
  406. char.Pants.PantsTemplate = "rbxassetid://551163760"
  407. end)
  408. ypcall(function()
  409. shirt = Instance.new("Shirt", char)
  410. shirt.Name = "Shirt"
  411. pants = Instance.new("Pants", char)
  412. pants.Name = "Pants"
  413. char.Shirt.ShirtTemplate = "rbxassetid://551162719"
  414. char.Pants.PantsTemplate = "rbxassetid://551163760"
  415. end)
  416.  
  417. ----------------------------------------------------
  418.  
  419.  
  420. local sw2 = Instance.new("Part",hed)
  421. sw2.CanCollide = false
  422. sw2.BrickColor = BrickColor.new("Hot pink")
  423.  
  424. local m2 = Instance.new("SpecialMesh",sw2)
  425. m2.MeshId = "rbxassetid://46834172"
  426. m2.TextureId = "rbxassetid://47991609"
  427. m2.Scale = Vector3.new(0.006,0.006,0.006)
  428. local w2 = Instance.new("Weld")
  429.  
  430. w2.Part1 = sw2
  431. w2.Part0 = hed
  432. w2.Parent = char
  433. w2.C0 = CFrame.new(0,-0.9,0)*CFrame.Angles(math.rad(0),math.pi/2,0)
  434.  
  435. local sw = Instance.new("Part",torso)
  436. sw.CanCollide = false
  437. sw.BrickColor = BrickColor.new("Institutional white")
  438.  
  439. local m = Instance.new("SpecialMesh",sw)
  440. m.MeshId = "rbxassetid://11442510"
  441. m.TextureId = "rbxassetid://68366508"
  442. m.Scale = Vector3.new(2.1,2.1,2.1)
  443. local w1 = Instance.new("Weld")
  444.  
  445. w1.Part1 = sw
  446. w1.Part0 = lleg
  447. w1.Parent = char
  448. w1.C0 = CFrame.new(0,-2,0)
  449.  
  450. NoSwordAnims = false
  451.  
  452. coroutine.wrap(function()
  453. while true do
  454. wait()
  455. if NoSwordAnims == false then
  456. if stance == "Normal" then
  457. w1.Part0 = lleg
  458. w1.C0 = Lerp(w1.C0,CFrame.new(-0.5,0.5,0) * CFrame.Angles(math.rad(-155),math.pi,math.pi/2),0.3)
  459. elseif stance == "Katana" then
  460. w1.Part0 = larm
  461. w1.C0 = Lerp(w1.C0,CFrame.new(0,-0.7,-2.3) * CFrame.Angles(math.rad(180),0,-20),0.1)
  462. end
  463. end
  464. end
  465. end)()
  466.  
  467.  
  468. ----------------------------------------------------
  469. newWeld(torso, larm, -1.5, 0.5, 0)
  470. larm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  471. newWeld(torso, rarm, 1.5, 0.5, 0)
  472. rarm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  473. newWeld(torso, hed, 0, 1.5, 0)
  474. newWeld(torso, lleg, -0.5, -1, 0)
  475. lleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  476. newWeld(torso, rleg, 0.5, -1, 0)
  477. rleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  478. newWeld(root, torso, 0, -1, 0)
  479. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0)
  480. local Touche = {char.Name, }
  481. ----------------------------------------------------
  482.  
  483. attack = false
  484. attackhit = false
  485. attacknumber = 0
  486. coroutine.wrap(function()
  487. while true do
  488. rs:wait()
  489. if attacknumber >= 2 then
  490. attacknumber = 0
  491. end
  492. end
  493. end)()
  494. cooldown = 0
  495. stance = "Normal"
  496. local attacking = false
  497. NoAnims = false
  498.  
  499. local ammo = 300
  500. local maxammo = 300
  501.  
  502. coroutine.wrap(function()
  503. while wait() do
  504. if ammo > maxammo then
  505. ammo = maxammo
  506. elseif ammo < maxammo then
  507. ammo = ammo + 1
  508. end
  509. end
  510. end)()
  511.  
  512. attacking = false
  513. local hedattack2 = false
  514. local hedattack = false
  515.  
  516. sw.Touched:connect(function(ht)
  517. if hedattack == true then
  518. hit = ht.Parent
  519. if ht and hit:IsA("Model") then
  520. if hit:FindFirstChild("Humanoid") then
  521. if hit.Name ~= p.Name then
  522. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(hit.Humanoid.MaxHealth/2,hit.Humanoid.MaxHealth))
  523. z = Instance.new("Sound",hed)
  524. z.SoundId = "rbxassetid://330595293"
  525. z.Pitch = ptz[math.random(1,#ptz)]
  526. z.Volume = 1
  527. z:Play()
  528. hedattack2 = false
  529. hedattack = false
  530. decals = {263033191,189728908,178269340,181477718,498948943,485362831,360385366,144325140}
  531. decals2 = {284846352,191089587}
  532.  
  533. local e = Instance.new("Decal",sw)
  534. e.Texture = "rbxassetid://"..decals[math.random(1,#decals)]
  535. e.Face = "Left"
  536.  
  537. local e2 = Instance.new("Decal",sw)
  538. e2.Texture = e.Texture
  539. e2.Face = "Right"
  540. end
  541. end
  542. elseif ht and hit:IsA("Hat") then
  543. if hit.Parent.Name ~= p.Name then
  544. if hit.Parent:FindFirstChild("Humanoid") then
  545. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(hit.Parent.Humanoid.MaxHealth/2,hit.Parent.Humanoid.MaxHealth))
  546. z = Instance.new("Sound",hed)
  547. z.SoundId = "rbxassetid://330595293"
  548. hedattack2 = false
  549. hedattack = false
  550. z.Pitch = ptz[math.random(1,#ptz)]
  551. z.Volume = 1
  552. z:Play()
  553. decals = {263033191,189728908,178269340,181477718,498948943,485362831,360385366,144325140}
  554. decals2 = {284846352,191089587}
  555.  
  556. local e = Instance.new("Decal",sw)
  557. e.Texture = "rbxassetid://"..decals[math.random(1,#decals)]
  558. e.Face = "Left"
  559.  
  560. local e2 = Instance.new("Decal",sw)
  561. e2.Texture = e.Texture
  562. e2.Face = "Right"
  563. end
  564. end
  565. end
  566. end
  567. end)
  568.  
  569. --------------------attacks------------------
  570.  
  571. mouse.KeyDown:connect(function(key)
  572. if key == "x" then
  573. if cooldown == 0 and attacking == false then
  574. NoAnims = true
  575. attacking = true
  576. cooldown = 1
  577.  
  578. coroutine.wrap(function()
  579. while true do
  580.  
  581. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6,0)*CFrame.Angles(math.rad(90),0,.005), 0.2)
  582.  
  583. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),0,-.005), 0.2)
  584.  
  585. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  586.  
  587. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  588.  
  589. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  590.  
  591. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  592.  
  593. if cooldown == 0 then break end
  594.  
  595. rs:wait()
  596. end
  597. end)()
  598.  
  599. end
  600. end
  601. end)
  602.  
  603. mouse.KeyUp:connect(function(key)
  604. if key == "x" then
  605. NoAnims = false
  606. cooldown = 0
  607. attacking = false
  608. end
  609. end)
  610.  
  611.  
  612. function onclick(mouses)
  613. if attacking == false and cooldown == 0 then
  614. if stance == "Katana" then
  615. attacking = true
  616. cooldown = 1
  617. NoAnims = true
  618.  
  619. StartEffect(sw,0.01,4)
  620.  
  621. for i = 1, 20 do
  622.  
  623. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 ,0.6,-0.8)*CFrame.Angles(math.rad(240),0,-math.pi/3), 0.2)
  624.  
  625. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.6,-0.4)*CFrame.Angles(math.rad(240),0,math.pi/6), 0.1)
  626.  
  627. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.1)
  628.  
  629. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  630.  
  631. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .1)
  632.  
  633. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .1)
  634. end
  635.  
  636. StartEffect(sw,0.01,4)
  637. hedattack = true
  638. so("rbxassetid://553461718")
  639.  
  640. for i = 1, 3 do
  641.  
  642. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 ,0.3,-0.8)*CFrame.Angles(math.rad(20),0,-math.pi/3), 0.1)
  643.  
  644. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.3,-0.4)*CFrame.Angles(math.rad(20),0,math.pi/6), 0.1)
  645.  
  646. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  647.  
  648. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  649.  
  650. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .1)
  651.  
  652. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .1)
  653.  
  654. rs:wait()
  655. end
  656.  
  657. EndEffect()
  658. NoAnims = false
  659. cooldown = 0
  660. attacking = false
  661. hedattack = false
  662.  
  663. end
  664. end
  665. end
  666.  
  667. mouse.Button1Down:connect(onclick)
  668.  
  669. mouse.KeyDown:connect(function(key)
  670. if key == "f" then
  671. if attacking == false and cooldown == 0 then
  672. if stance == "Normal" then
  673. attacking = true
  674. cooldown = 1
  675. NoAnims = true
  676. stance = "Katana"
  677.  
  678. StartEffect(sw,0.01,4)
  679.  
  680. for i = 1, 20 do
  681.  
  682. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 ,0.3,-0.8)*CFrame.Angles(math.rad(60),0,-math.pi/3), 0.2)
  683.  
  684. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.3,-0.4)*CFrame.Angles(math.rad(60),0,math.pi/6), 0.2)
  685.  
  686. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  687.  
  688. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  689.  
  690. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  691.  
  692. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  693. end
  694.  
  695. so("rbxassetid://152052659")
  696.  
  697. for i = 1, 20 do
  698.  
  699. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 ,0.3,-0.8)*CFrame.Angles(math.rad(60),0,-math.pi/3), 0.2)
  700.  
  701. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.3,-0.4)*CFrame.Angles(math.rad(120),0,math.pi/6), 0.2)
  702.  
  703. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  704.  
  705. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  706.  
  707. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  708.  
  709. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  710.  
  711. rs:wait()
  712. end
  713.  
  714. EndEffect()
  715. NoAnims = false
  716. cooldown = 0
  717. attacking = false
  718. elseif stance == "Katana" then
  719.  
  720. attacking = true
  721. cooldown = 1
  722. NoAnims = true
  723. NoSwordAnims = true
  724. stance = "Normal"
  725. for i = 1, 20 do
  726. end
  727.  
  728. NoSwordAnims = false
  729. NoAnims = false
  730. cooldown = 0
  731. attacking = false
  732.  
  733. end
  734. end
  735. end
  736. end)
  737.  
  738.  
  739. -----------GUI creation--------------------
  740.  
  741. local pg = p.PlayerGui
  742.  
  743. local sg = Instance.new("ScreenGui",pg)
  744. sg.Name = "rage"
  745.  
  746. local txt = Instance.new("TextLabel",sg)
  747. txt.Position = UDim2.new(0.9, 0, 0.9, 0)
  748. txt.BackgroundTransparency = 1
  749. txt.FontSize = "Size24"
  750.  
  751. coroutine.wrap(function()
  752. while true do
  753. wait()
  754. txt.TextColor3 = Color3.new(ammo,ammo,ammo)
  755. end
  756. end)()
  757.  
  758. coroutine.wrap(function()
  759. while true do
  760. wait()
  761. txt.Text = ammo.."/"..maxammo
  762. end
  763. end)()
  764.  
  765. ----------------------------------------------
  766. -------------------------------
  767. local animpose = "Idle"
  768. local lastanimpose = "Idle"
  769. local sine = 0
  770. local change = 1
  771. local val = 0
  772. local ffing = false
  773. local jump = false
  774. -------------------------------
  775. local x = Instance.new("Sound", char)
  776. x.SoundId = "http://www.roblox.com/asset/?id=429617891"
  777. x.Looped = true
  778. x.Volume = 1
  779. x.Pitch = 1
  780. local footsteps = false
  781. -------------------------------
  782. game:GetService("RunService").RenderStepped:connect(function()
  783. --[[if char.Humanoid.Jump == true then
  784. jump = true
  785. else
  786. jump = false
  787. end]]
  788. char.Humanoid.FreeFalling:connect(function(f)
  789. if f then
  790. ffing = true
  791. else
  792. ffing = false
  793. end
  794. end)
  795. sine = sine + change
  796. if jump == true then
  797. animpose = "Jumping"
  798. elseif ffing == true then
  799. animpose = "Freefalling"
  800. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  801. animpose = "Idle"
  802. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  803. animpose = "Walking"
  804. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  805. animpose = "Running"
  806. end
  807. if animpose ~= lastanimpose then
  808. sine = 0
  809. if NoAnims == false then
  810. if animpose == "Idle" then
  811. for i = 1, 0.5 do
  812.  
  813. if NoAnims == false then
  814.  
  815. if stance == "Normal" then
  816. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0),0,.05+ math.sin(sine/7)/14), 0.2)
  817.  
  818. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0),0,-.05+ -math.sin(sine/7)/14), 0.2)
  819.  
  820. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  821.  
  822. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  823.  
  824. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05+ math.sin(sine/7)/30), .4)
  825.  
  826. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05+ -math.sin(sine/7)/30), .4)
  827.  
  828. elseif stance == "Katana" then
  829.  
  830. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0),0,.05+ math.sin(sine/7)/14), 0.2)
  831.  
  832. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0),math.pi,-.05+ -math.sin(sine/7)/14), 0.2)
  833.  
  834. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  835.  
  836. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  837.  
  838. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05+ math.sin(sine/7)/30), .4)
  839.  
  840. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05+ -math.sin(sine/7)/30), .4)
  841.  
  842. end
  843.  
  844. wait()
  845. end
  846. end
  847.  
  848.  
  849. elseif animpose == "Running" then
  850. change = 1
  851. if NoAnims == false then
  852.  
  853. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
  854.  
  855. larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  856.  
  857. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  858.  
  859. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  860.  
  861. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  862.  
  863. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  864.  
  865.  
  866.  
  867. end
  868.  
  869. elseif animpose == "Walking" then
  870. for i = 1, 1.5 do
  871. if NoAnims == false then
  872.  
  873. if stance == "Normal" then
  874. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2,0,.2+ -math.sin(sine/7)/9), 0.2)
  875.  
  876. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/2,0,-.2+ math.sin(sine/7)/9), 0.2)
  877.  
  878. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  879.  
  880. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  881.  
  882. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + math.sin(sine/5)/2, 0, 0+ math.sin(sine/7)/30), .4)
  883.  
  884. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2, 0, 0+ -math.sin(sine/7)/30), .4)
  885. end
  886.  
  887. elseif stance == "Katana" then
  888.  
  889. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2,0,.2+ -math.sin(sine/7)/9), 0.2)
  890.  
  891. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/2,0,-.2+ math.sin(sine/7)/9), 0.2)
  892.  
  893. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  894.  
  895. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  896.  
  897. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + math.sin(sine/5)/2, 0, 0+ math.sin(sine/7)/30), .4)
  898.  
  899. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2, 0, 0+ -math.sin(sine/7)/30), .4)
  900.  
  901. wait()
  902. end
  903. end
  904. end
  905. else
  906. end
  907. end
  908. lastanimpose = animpose
  909. if animpose == "Idle" then
  910. change = 0.5
  911. if NoAnims == false then
  912.  
  913. if stance == "Normal" then
  914. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0),0,.05+ math.sin(sine/7)/14), 0.2)
  915.  
  916. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0),0,-.05+ -math.sin(sine/7)/14), 0.2)
  917.  
  918. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  919.  
  920. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  921.  
  922. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05+ math.sin(sine/7)/30), .4)
  923.  
  924. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05+ -math.sin(sine/7)/30), .4)
  925.  
  926. elseif stance == "Katana" then
  927.  
  928. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 ,0.3+ -math.sin(sine/14)/15,-0.8)*CFrame.Angles(math.rad(60),0,-math.pi/3+ math.sin(sine/7)/25), 0.2)
  929.  
  930. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.3+ -math.sin(sine/14)/15,-0.4)*CFrame.Angles(math.rad(60),0,math.pi/6+ -math.sin(sine/7)/25), 0.2)
  931.  
  932. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  933.  
  934. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  935.  
  936. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05+ math.sin(sine/7)/30), .4)
  937.  
  938. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05+ -math.sin(sine/7)/30), .4)
  939.  
  940. end
  941. end
  942.  
  943.  
  944. elseif animpose == "Running" then
  945. change = 1
  946. if NoAnims == false then
  947.  
  948. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
  949.  
  950. larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  951.  
  952. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  953.  
  954. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  955.  
  956. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  957.  
  958. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  959.  
  960. end
  961.  
  962. elseif animpose == "Walking" then
  963. change = 1
  964.  
  965.  
  966. if NoAnims == false then
  967.  
  968. if stance == "Normal" then
  969.  
  970. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2,0,.2+ -math.sin(sine/7)/9), 0.2)
  971.  
  972. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+ -math.sin(sine/14)/30,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/2,0,-.2+ math.sin(sine/7)/9), 0.2)
  973.  
  974. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  975.  
  976. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  977.  
  978. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + math.sin(sine/5)/2, 0, 0+ math.sin(sine/7)/30), .4)
  979.  
  980. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2, 0, 0+ -math.sin(sine/7)/30), .4)
  981.  
  982. elseif stance == "Katana" then
  983.  
  984. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 ,0.3+ -math.sin(sine/14)/15,-0.8)*CFrame.Angles(math.rad(60),0,-math.pi/3+ math.sin(sine/7)/25), 0.2)
  985.  
  986. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.3+ -math.sin(sine/14)/15,-0.4)*CFrame.Angles(math.rad(60),0,math.pi/6+ -math.sin(sine/7)/25), 0.2)
  987.  
  988. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  989.  
  990. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  991.  
  992. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + math.sin(sine/5)/2, 0, 0+ math.sin(sine/7)/30), .4)
  993.  
  994. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(0) + -math.sin(sine/5)/2, 0, 0+ -math.sin(sine/7)/30), .4)
  995.  
  996. end
  997.  
  998. end
  999. end
  1000. if animpose == "Walking" then
  1001. if footsteps == false then
  1002. x:Play()
  1003. x.Pitch = ptz[math.random(1,#ptz)]
  1004. footsteps = true
  1005. end
  1006. x.Pitch = 1.1
  1007. elseif animpose == "Idle" then
  1008. x:Stop()
  1009. footsteps = false
  1010. end
  1011. end)
  1012.  
  1013. --------calcs------
  1014. -- +2*math.cos(sine/14)
  1015. -----------------------------
  1016.  
  1017. wait(1)
  1018. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement