Thot27Bits

Roblox Scripto Yandere Sword HAPPY HALLOWEEN!!!

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