Advertisement
Hizemack

Untitled

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