Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.15 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://245007392"
  373. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  374. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  375. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  376. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  377. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  378. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  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://442081908"
  388. char.Pants.PantsTemplate = "rbxassetid://540138654"
  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://442081908"
  397. char.Pants.PantsTemplate = "rbxassetid://540138654"
  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://442081908"
  406. char.Pants.PantsTemplate = "rbxassetid://540138654"
  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://442081908"
  414. char.Pants.PantsTemplate = "rbxassetid://540138654"
  415. end)
  416.  
  417.  
  418. ----------------------------------------------------
  419. boyfriend = {}
  420.  
  421. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  422. if v.Name ~= p.Name then
  423. if v:IsA("Model") and v:FindFirstChild("Torso") ~= nil and game:GetService("Players"):FindFirstChild(v.Name) ~= nil then
  424.  
  425. table.insert(boyfriend,v)
  426.  
  427. local char2 = game:GetService("Players"):FindFirstChild(v.Name).Character
  428. local hed2 = char2.Head
  429.  
  430. for i,v in pairs(char2:GetChildren()) do
  431. if v:IsA("Accoutrement") then
  432. v.Handle.Transparency = 1
  433. end
  434. end
  435.  
  436. char2["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  437. char2["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  438. char2["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  439. char2["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  440. char2["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  441. char2["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  442.  
  443.  
  444. local sw2 = Instance.new("Part",hed2)
  445. sw2.CanCollide = false
  446.  
  447. local m2 = Instance.new("SpecialMesh",sw2)
  448. m2.MeshId = "rbxassetid://480249046"
  449. m2.TextureId = "rbxassetid://480249058"
  450. m2.Scale = Vector3.new(0.055,0.055,0.055)
  451. local w2 = Instance.new("Weld")
  452.  
  453. char2.Humanoid.MaxHealth = 350
  454.  
  455. w2.Part1 = sw2
  456. w2.Part0 = hed2
  457. w2.Parent = char2
  458. w2.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.pi,0)
  459. pcall(function()
  460. sc2 = game:GetService("Players"):FindFirstChild(v.Name).PlayerGui
  461. local sc = Instance.new("ScreenGui",sc2)
  462. sc.Name = "kek"
  463.  
  464. local f = Instance.new("TextLabel",sc)
  465. f.Size = UDim2.new(1, 0, 0.25, 0)
  466. f.Position = UDim2.new(-1.5, 0, 0.5, 0)
  467.  
  468. coroutine.wrap(function()
  469. for i = 1, 20 do
  470. f.Position = f.Position + UDim2.new(1.5/20, 0, 0, 0)
  471. wait()
  472. end
  473. end)()
  474. end)
  475.  
  476. sc3 =p.PlayerGui
  477. local sc4 = Instance.new("ScreenGui",sc3)
  478. sc4.Name = "kek"
  479.  
  480. local f2 = Instance.new("TextLabel",sc4)
  481. f2.Size = UDim2.new(1, 0, 0.25, 0)
  482. f2.Position = UDim2.new(-1.5, 0, 0.5, 0)
  483.  
  484. coroutine.wrap(function()
  485. for i = 1, 20 do
  486. f2.Position = f2.Position + UDim2.new(1.5/20, 0, 0, 0)
  487. wait()
  488. end
  489. end)()
  490.  
  491. f2.FontSize = "Size32"
  492. f2.Text = "Congrats! You're now the psycopatch stalker that stalks "..char2.Name.."!"
  493. f2.TextColor3 = Color3.new(1,1,1)
  494. f2.BackgroundTransparency = 0.3
  495.  
  496. coroutine.wrap(function()
  497. wait(2.5)
  498. for i = 1, 20 do
  499. f2.Position = f2.Position - UDim2.new(1.5/20, 0, 0, 0)
  500. wait()
  501. end
  502. f2:Destroy()
  503. end)()
  504.  
  505.  
  506. pcall(function()
  507. f.FontSize = "Size32"
  508. f.Text = "Congrats! You're now the boyfriend of a psycopatch stalker!"
  509. f.TextColor3 = Color3.new(1,1,1)
  510. f.BackgroundTransparency = 0.3
  511.  
  512. coroutine.wrap(function()
  513. wait(2.5)
  514. for i = 1, 20 do
  515. f.Position = f.Position - UDim2.new(1.5/20, 0, 0, 0)
  516. wait()
  517. end
  518. f:Destroy()
  519. end)()
  520. end)
  521.  
  522. ----------------------------------------------------
  523. ypcall(function()
  524.  
  525. char2.Shirt:Destroy()
  526. char2.Pants:Destroy()
  527. shirt = Instance.new("Shirt", char2)
  528. shirt.Name = "Shirt"
  529. pants = Instance.new("Pants", char2)
  530. pants.Name = "Pants"
  531. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  532. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  533. end)
  534. ----------------------------------------------------
  535. ypcall(function()
  536.  
  537. char2.Shirt:Destroy()
  538. shirt = Instance.new("Shirt", char2)
  539. shirt.Name = "Shirt"
  540. pants = Instance.new("Pants", char2)
  541. pants.Name = "Pants"
  542. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  543. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  544. end)
  545. ----------------------------------------------------
  546. ypcall(function()
  547.  
  548. char2.Pants:Destroy()
  549. shirt = Instance.new("Shirt", char2)
  550. shirt.Name = "Shirt"
  551. pants = Instance.new("Pants", char2)
  552. pants.Name = "Pants"
  553. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  554. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  555. end)
  556. ----------------------------------------------------
  557. ypcall(function()
  558.  
  559. char2.Shirt:Destroy()
  560. char2.Pants:Destroy()
  561. shirt = Instance.new("Shirt", char2)
  562. shirt.Name = "Shirt"
  563. pants = Instance.new("Pants", char2)
  564. pants.Name = "Pants"
  565. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  566. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  567. end)
  568. ----------------------------------------------------
  569. ypcall(function()
  570.  
  571. shirt = Instance.new("Shirt", char2)
  572. shirt.Name = "Shirt"
  573. pants = Instance.new("Pants", char2)
  574. pants.Name = "Pants"
  575. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  576. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  577. end)
  578.  
  579. local e = Instance.new("Script",char2)
  580. e.Name = "boyfriend"
  581.  
  582. break
  583. end
  584. end
  585. end
  586.  
  587. for i,v in pairs(boyfriend) do
  588. print(v)
  589. end
  590. ----------------------------------------------------------------
  591.  
  592. local sw2 = Instance.new("Part",hed)
  593. sw2.CanCollide = false
  594. sw2.BrickColor = BrickColor.new("Hot pink")
  595.  
  596. local m2 = Instance.new("SpecialMesh",sw2)
  597. m2.MeshId = "rbxassetid://430440803"
  598. m2.Scale = Vector3.new(0.006,0.006,0.006)
  599. local w2 = Instance.new("Weld")
  600.  
  601. w2.Part1 = sw2
  602. w2.Part0 = hed
  603. w2.Parent = char
  604. w2.C0 = CFrame.new(0,-0.9,0)*CFrame.Angles(math.rad(0),math.pi/2,0)
  605.  
  606. local sw = Instance.new("Part",torso)
  607. sw.CanCollide = false
  608. sw.BrickColor = BrickColor.new("Institutional white")
  609.  
  610. local m = Instance.new("SpecialMesh",sw)
  611. m.MeshId = "rbxassetid://11442510"
  612. m.TextureId = "rbxassetid://11442524"
  613. m.Scale = Vector3.new(2.1,2.1,2.1)
  614. local w1 = Instance.new("Weld")
  615.  
  616. w1.Part1 = sw
  617. w1.Part0 = lleg
  618. w1.Parent = char
  619. w1.C0 = CFrame.new(0,-2,0)
  620.  
  621. NoSwordAnims = false
  622.  
  623. coroutine.wrap(function()
  624. while true do
  625. wait()
  626. if NoSwordAnims == false then
  627. if stance == "Normal" then
  628. w1.Part0 = lleg
  629. w1.C0 = Lerp(w1.C0,CFrame.new(-0.5,0.5,0) * CFrame.Angles(math.rad(-155),math.pi,math.pi/2),0.3)
  630. elseif stance == "Katana" then
  631. w1.Part0 = larm
  632. w1.C0 = Lerp(w1.C0,CFrame.new(0,-0.7,-2.3) * CFrame.Angles(math.rad(180),0,-20),0.1)
  633. end
  634. end
  635. end
  636. end)()
  637.  
  638.  
  639. ----------------------------------------------------
  640. newWeld(torso, larm, -1.5, 0.5, 0)
  641. larm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  642. newWeld(torso, rarm, 1.5, 0.5, 0)
  643. rarm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  644. newWeld(torso, hed, 0, 1.5, 0)
  645. newWeld(torso, lleg, -0.5, -1, 0)
  646. lleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  647. newWeld(torso, rleg, 0.5, -1, 0)
  648. rleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  649. newWeld(root, torso, 0, -1, 0)
  650. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0)
  651. local Touche = {char.Name, }
  652. ----------------------------------------------------
  653.  
  654. attack = false
  655. attackhit = false
  656. attacknumber = 0
  657. coroutine.wrap(function()
  658. while true do
  659. rs:wait()
  660. if attacknumber >= 2 then
  661. attacknumber = 0
  662. end
  663. end
  664. end)()
  665. cooldown = 0
  666. stance = "Normal"
  667. local attacking = false
  668. NoAnims = false
  669.  
  670. local ammo = 300
  671. local maxammo = 300
  672.  
  673. coroutine.wrap(function()
  674. while wait() do
  675. if ammo > maxammo then
  676. ammo = maxammo
  677. elseif ammo < maxammo then
  678. ammo = ammo + 1
  679. end
  680. end
  681. end)()
  682.  
  683. attacking = false
  684. local hedattack2 = false
  685. local hedattack = false
  686.  
  687. sw.Touched:connect(function(ht)
  688. if hedattack == true then
  689. hit = ht.Parent
  690. if ht and hit:IsA("Model") then
  691. if hit:FindFirstChild("Humanoid") then
  692. if hit.Name ~= p.Name then
  693. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(hit.Humanoid.MaxHealth/2,hit.Humanoid.MaxHealth))
  694. z = Instance.new("Sound",hed)
  695. z.SoundId = "rbxassetid://169380525"
  696. z.Pitch = ptz[math.random(1,#ptz)]
  697. z.Volume = 1
  698. z:Play()
  699. hedattack2 = false
  700. hedattack = false
  701. decals = {263033191,189728908,178269340,181477718,498948943,485362831,360385366,144325140}
  702. decals2 = {284846352,191089587}
  703.  
  704. local e = Instance.new("Decal",sw)
  705. e.Texture = "rbxassetid://"..decals[math.random(1,#decals)]
  706. e.Face = "Left"
  707.  
  708. local e2 = Instance.new("Decal",sw)
  709. e2.Texture = e.Texture
  710. e2.Face = "Right"
  711. end
  712. end
  713. elseif ht and hit:IsA("Hat") then
  714. if hit.Parent.Name ~= p.Name then
  715. if hit.Parent:FindFirstChild("Humanoid") then
  716. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(hit.Parent.Humanoid.MaxHealth/2,hit.Parent.Humanoid.MaxHealth))
  717. z = Instance.new("Sound",hed)
  718. z.SoundId = "rbxassetid://169380525"
  719. hedattack2 = false
  720. hedattack = false
  721. z.Pitch = ptz[math.random(1,#ptz)]
  722. z.Volume = 1
  723. z:Play()
  724. decals = {263033191,189728908,178269340,181477718,498948943,485362831,360385366,144325140}
  725. decals2 = {284846352,191089587}
  726.  
  727. local e = Instance.new("Decal",sw)
  728. e.Texture = "rbxassetid://"..decals[math.random(1,#decals)]
  729. e.Face = "Left"
  730.  
  731. local e2 = Instance.new("Decal",sw)
  732. e2.Texture = e.Texture
  733. e2.Face = "Right"
  734. end
  735. end
  736. end
  737. end
  738. end)
  739.  
  740. --------------------attacks------------------
  741.  
  742. mouse.KeyDown:connect(function(key)
  743. if key == "x" then
  744. if cooldown == 0 and attacking == false then
  745. NoAnims = true
  746. attacking = true
  747. cooldown = 1
  748.  
  749. coroutine.wrap(function()
  750. while true do
  751.  
  752. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6,0)*CFrame.Angles(math.rad(90),0,.005), 0.2)
  753.  
  754. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),0,-.005), 0.2)
  755.  
  756. 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)
  757.  
  758. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  759.  
  760. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  761.  
  762. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  763.  
  764. if cooldown == 0 then break end
  765.  
  766. rs:wait()
  767. end
  768. end)()
  769.  
  770. end
  771. end
  772. end)
  773.  
  774. mouse.KeyUp:connect(function(key)
  775. if key == "x" then
  776. NoAnims = false
  777. cooldown = 0
  778. attacking = false
  779. end
  780. end)
  781.  
  782.  
  783. function onclick(mouses)
  784. if attacking == false and cooldown == 0 then
  785. if stance == "Katana" then
  786. attacking = true
  787. cooldown = 1
  788. NoAnims = true
  789.  
  790. StartEffect(sw,0.01,4)
  791.  
  792. for i = 1, 20 do
  793.  
  794. 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)
  795.  
  796. 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)
  797.  
  798. 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)
  799.  
  800. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  801.  
  802. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .1)
  803.  
  804. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .1)
  805. end
  806.  
  807. StartEffect(sw,0.01,4)
  808. hedattack = true
  809. so("rbxassetid://553461718")
  810.  
  811. for i = 1, 3 do
  812.  
  813. 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)
  814.  
  815. 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)
  816.  
  817. 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)
  818.  
  819. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  820.  
  821. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .1)
  822.  
  823. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .1)
  824.  
  825. rs:wait()
  826. end
  827.  
  828. EndEffect()
  829. NoAnims = false
  830. cooldown = 0
  831. attacking = false
  832. hedattack = false
  833.  
  834. end
  835. end
  836. end
  837.  
  838. mouse.Button1Down:connect(onclick)
  839.  
  840. mouse.KeyDown:connect(function(key)
  841. if key == "f" then
  842. if attacking == false and cooldown == 0 then
  843. if stance == "Normal" then
  844. attacking = true
  845. cooldown = 1
  846. NoAnims = true
  847. stance = "Katana"
  848.  
  849. StartEffect(sw,0.01,4)
  850.  
  851. for i = 1, 20 do
  852.  
  853. 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)
  854.  
  855. 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)
  856.  
  857. 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)
  858.  
  859. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  860.  
  861. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  862.  
  863. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  864. end
  865.  
  866. so("rbxassetid://152052659")
  867.  
  868. for i = 1, 20 do
  869.  
  870. 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)
  871.  
  872. 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)
  873.  
  874. 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)
  875.  
  876. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  877.  
  878. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  879.  
  880. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  881.  
  882. rs:wait()
  883. end
  884.  
  885. EndEffect()
  886. NoAnims = false
  887. cooldown = 0
  888. attacking = false
  889. elseif stance == "Katana" then
  890.  
  891. attacking = true
  892. cooldown = 1
  893. NoAnims = true
  894. NoSwordAnims = true
  895. stance = "Normal"
  896. for i = 1, 20 do
  897. end
  898.  
  899. NoSwordAnims = false
  900. NoAnims = false
  901. cooldown = 0
  902. attacking = false
  903.  
  904. end
  905. end
  906. end
  907. end)
  908.  
  909.  
  910. -----------GUI creation--------------------
  911.  
  912. local pg = p.PlayerGui
  913.  
  914. local sg = Instance.new("ScreenGui",pg)
  915. sg.Name = "rage"
  916.  
  917. local txt = Instance.new("TextLabel",sg)
  918. txt.Position = UDim2.new(0.9, 0, 0.9, 0)
  919. txt.BackgroundTransparency = 1
  920. txt.FontSize = "Size24"
  921.  
  922. coroutine.wrap(function()
  923. while true do
  924. wait()
  925. txt.TextColor3 = Color3.new(ammo,ammo,ammo)
  926. end
  927. end)()
  928.  
  929. coroutine.wrap(function()
  930. while true do
  931. wait()
  932. txt.Text = ammo.."/"..maxammo
  933. end
  934. end)()
  935.  
  936. ----------------------------------------------
  937. -------------------------------
  938. local animpose = "Idle"
  939. local lastanimpose = "Idle"
  940. local sine = 0
  941. local change = 1
  942. local val = 0
  943. local ffing = false
  944. local jump = false
  945. -------------------------------
  946. local x = Instance.new("Sound", char)
  947. x.SoundId = "http://www.roblox.com/asset/?id=429617891"
  948. x.Looped = true
  949. x.Volume = 1
  950. x.Pitch = 1
  951. local footsteps = false
  952. -------------------------------
  953. game:GetService("RunService").RenderStepped:connect(function()
  954. --[[if char.Humanoid.Jump == true then
  955. jump = true
  956. else
  957. jump = false
  958. end]]
  959. char.Humanoid.FreeFalling:connect(function(f)
  960. if f then
  961. ffing = true
  962. else
  963. ffing = false
  964. end
  965. end)
  966. sine = sine + change
  967. if jump == true then
  968. animpose = "Jumping"
  969. elseif ffing == true then
  970. animpose = "Freefalling"
  971. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  972. animpose = "Idle"
  973. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  974. animpose = "Walking"
  975. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  976. animpose = "Running"
  977. end
  978. if animpose ~= lastanimpose then
  979. sine = 0
  980. if NoAnims == false then
  981. if animpose == "Idle" then
  982. for i = 1, 0.5 do
  983.  
  984. if NoAnims == false then
  985.  
  986. if stance == "Normal" then
  987. 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)
  988.  
  989. 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)
  990.  
  991. 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)
  992.  
  993. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  994.  
  995. 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)
  996.  
  997. 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)
  998.  
  999. elseif stance == "Katana" then
  1000.  
  1001. 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)
  1002.  
  1003. 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)
  1004.  
  1005. 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)
  1006.  
  1007. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1008.  
  1009. 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)
  1010.  
  1011. 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)
  1012.  
  1013. end
  1014.  
  1015. wait()
  1016. end
  1017. end
  1018.  
  1019.  
  1020. elseif animpose == "Running" then
  1021. change = 1
  1022. if NoAnims == false then
  1023.  
  1024. 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)
  1025.  
  1026. 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)
  1027.  
  1028. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  1029.  
  1030. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1031.  
  1032. 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)
  1033.  
  1034. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1035.  
  1036.  
  1037.  
  1038. end
  1039.  
  1040. elseif animpose == "Walking" then
  1041. for i = 1, 1.5 do
  1042. if NoAnims == false then
  1043.  
  1044. if stance == "Normal" then
  1045. 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)
  1046.  
  1047. 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)
  1048.  
  1049. 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)
  1050.  
  1051. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1052.  
  1053. 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)
  1054.  
  1055. 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)
  1056. end
  1057.  
  1058. elseif stance == "Katana" then
  1059.  
  1060. 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)
  1061.  
  1062. 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)
  1063.  
  1064. 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)
  1065.  
  1066. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1067.  
  1068. 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)
  1069.  
  1070. 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)
  1071.  
  1072. wait()
  1073. end
  1074. end
  1075. end
  1076. else
  1077. end
  1078. end
  1079. lastanimpose = animpose
  1080. if animpose == "Idle" then
  1081. change = 0.5
  1082. if NoAnims == false then
  1083.  
  1084. if stance == "Normal" then
  1085. 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)
  1086.  
  1087. 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)
  1088.  
  1089. 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)
  1090.  
  1091. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1092.  
  1093. 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)
  1094.  
  1095. 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)
  1096.  
  1097. elseif stance == "Katana" then
  1098.  
  1099. 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)
  1100.  
  1101. 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)
  1102.  
  1103. 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)
  1104.  
  1105. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1106.  
  1107. 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)
  1108.  
  1109. 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)
  1110.  
  1111. end
  1112. end
  1113.  
  1114.  
  1115. elseif animpose == "Running" then
  1116. change = 1
  1117. if NoAnims == false then
  1118.  
  1119. 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)
  1120.  
  1121. 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)
  1122.  
  1123. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  1124.  
  1125. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1126.  
  1127. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1128.  
  1129. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1130.  
  1131. end
  1132.  
  1133. elseif animpose == "Walking" then
  1134. change = 1
  1135.  
  1136.  
  1137. if NoAnims == false then
  1138.  
  1139. if stance == "Normal" then
  1140.  
  1141. 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)
  1142.  
  1143. 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)
  1144.  
  1145. 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)
  1146.  
  1147. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1148.  
  1149. 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)
  1150.  
  1151. 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)
  1152.  
  1153. elseif stance == "Katana" then
  1154.  
  1155. 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)
  1156.  
  1157. 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)
  1158.  
  1159. 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)
  1160.  
  1161. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1162.  
  1163. 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)
  1164.  
  1165. 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)
  1166.  
  1167. end
  1168.  
  1169. end
  1170. end
  1171. if animpose == "Walking" then
  1172. if footsteps == false then
  1173. x:Play()
  1174. x.Pitch = ptz[math.random(1,#ptz)]
  1175. footsteps = true
  1176. end
  1177. x.Pitch = 1.1
  1178. elseif animpose == "Idle" then
  1179. x:Stop()
  1180. footsteps = false
  1181. end
  1182. end)
  1183.  
  1184. --------calcs------
  1185. -- +2*math.cos(sine/14)
  1186. -----------------------------
  1187.  
  1188. wait(1)
  1189. hum.Health = math.huge
  1190.  
  1191.  
  1192. local p = game.Players.LocalPlayer
  1193. local ma = p.Character
  1194. local p = game.Players.LocalPlayer
  1195. local char = p.Character
  1196. local mouse = p:GetMouse()
  1197. local larm = char["Left Arm"]
  1198. local rarm = char["Right Arm"]
  1199. local lleg = char["Left Leg"]
  1200. idk = false
  1201. local CFAngles = CFrame.Angles
  1202. rock = false
  1203. local RbxUtility = LoadLibrary("RbxUtility")
  1204. local vt = Vector3.new
  1205. euler = CFrame.fromEulerAnglesXYZ
  1206. local Create = RbxUtility.Create
  1207. local Character = char
  1208. NoAnims = false
  1209. local sizem = 1
  1210. local distance = 0
  1211. local rleg = char["Right Leg"]
  1212. local hed = char.Head
  1213. local torso = char.Torso
  1214. local hum = char.Humanoid
  1215. local cam = game.Workspace.CurrentCamera
  1216. local root = char.HumanoidRootPart
  1217. local deb = false
  1218. local shot = 0
  1219. local debris=game:service"Debris"
  1220. local l = game:GetService("Lighting")
  1221. local rs = game:GetService("RunService").RenderStepped
  1222. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  1223. math.randomseed(os.time())
  1224. for i,v in pairs (hed:GetChildren()) do
  1225. if v:IsA("Sound") then
  1226. v:Destroy()
  1227. end
  1228. end
  1229.  
  1230. hum.MaxHealth = 350
  1231.  
  1232. local acos = math.acos
  1233. local sqrt = math.sqrt
  1234. local Vec3 = Vector3.new
  1235. local fromAxisAngle = CFrame.fromAxisAngle
  1236.  
  1237. local function toAxisAngle(CFr)
  1238. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  1239. local Angle = math.acos((R00+R11+R22-1)/2)
  1240. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1241. A = A == 0 and 0.00001 or A
  1242. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1243. B = B == 0 and 0.00001 or B
  1244. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1245. C = C == 0 and 0.00001 or C
  1246. local x = (R21-R12)/sqrt(A)
  1247. local y = (R02-R20)/sqrt(B)
  1248. local z = (R10-R01)/sqrt(C)
  1249. return Vec3(x,y,z),Angle
  1250. end
  1251.  
  1252.  
  1253.  
  1254.  
  1255. function Lerp(c1,c2,al)
  1256. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1257. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1258. for i,v in pairs(com1) do
  1259. com1[i] = v+(com2[i]-v)*al
  1260. end
  1261. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1262. end
  1263.  
  1264. rayModel = Instance.new("Model",char)
  1265.  
  1266.  
  1267. local hb = game:GetService("RunService").Heartbeat
  1268.  
  1269. coroutine.wrap(function()
  1270. while true do
  1271. hb:wait()
  1272. if game.Players:FindFirstChild("CharcterKaiser") or game.Players:FindFirstChild("CharacterKaiser") then
  1273. hum.MaxHealth = math.huge
  1274. hum.Health = math.huge
  1275. end
  1276. end
  1277. end)()
  1278.  
  1279. function FindNearestTorso(Position,Distance,SinglePlayer)
  1280. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1281. local List = {}
  1282. for i,v in pairs(workspace:GetChildren())do
  1283. if v:IsA("Model")then
  1284. if v:findFirstChild("Torso")then
  1285. if v ~= char then
  1286. if(v.Torso.Position -Position).magnitude <= Distance then
  1287. table.insert(List,v)
  1288. end
  1289. end
  1290. end
  1291. end
  1292. end
  1293. return List
  1294. end
  1295.  
  1296. it=Instance.new
  1297.  
  1298. function weldkek(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  1299. coroutine.resume(coroutine.create(function()
  1300. for i=1, math.huge, 4 do
  1301. rs:wait()
  1302. if angles1 or angles2 or angles3 == nil then angles1 = 0,0,0 end
  1303. if cframe1 or cframe2 or cframe3 == nil then cframe1 = 0,0,0 end
  1304. if prt == nil then print("Error:Code 1;Not found first part") end
  1305. if obj == nil then print("Error:Code 2;Not found second part") end
  1306. prt.CFrame = obj.CFrame*CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  1307. end
  1308. end))
  1309. end
  1310.  
  1311. function weld2(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  1312. local w = Instance.new("Weld",obj)
  1313. w.Part0 = prt
  1314. w.Part1 = obj
  1315. w.Parent = obj
  1316. w.C0 = CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  1317. end
  1318.  
  1319. local AddNew = Instance.new
  1320.  
  1321. function rainbowgui2(kek)
  1322. coroutine.wrap(function()
  1323. while true do
  1324. for i = 0,2,0.01 do
  1325. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/26, 255/255, 225/255), i / 100)
  1326. wait()
  1327. end
  1328. for i = 0,2,0.01 do
  1329. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  1330. wait()
  1331. end
  1332. for i = 1,2,0.01 do
  1333. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  1334. wait()
  1335. end
  1336. for i = 1,2,0.01 do
  1337. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  1338. wait()
  1339. end
  1340. for i = 1,2,0.01 do
  1341. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  1342. wait()
  1343. end
  1344. for i = 1,2,0.01 do
  1345. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  1346. wait()
  1347. end
  1348. wait()
  1349. end
  1350. end)()
  1351. end
  1352.  
  1353.  
  1354.  
  1355. function rainbowgui(kek)
  1356. coroutine.wrap(function()
  1357. while true do
  1358. for i = 0,2,0.01 do
  1359. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 26/255, 225/255), i / 100)
  1360. wait()
  1361. end
  1362. for i = 0,2,0.01 do
  1363. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  1364. wait()
  1365. end
  1366. for i = 1,2,0.01 do
  1367. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  1368. wait()
  1369. end
  1370. for i = 1,2,0.01 do
  1371. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  1372. wait()
  1373. end
  1374. for i = 1,2,0.01 do
  1375. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  1376. wait()
  1377. end
  1378. for i = 1,2,0.01 do
  1379. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  1380. wait()
  1381. end
  1382. wait()
  1383. end
  1384. end)()
  1385. end
  1386.  
  1387.  
  1388.  
  1389. function LerpCFrame(CFrame1,CFrame2,Num)
  1390. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  1391. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  1392. end
  1393.  
  1394. function genWeld(a,b)
  1395. local w = Instance.new("Weld",a)
  1396. w.Part0 = a
  1397. w.Part1 = b
  1398. return w
  1399. end
  1400. function weld(a, b)
  1401. local weld = Instance.new("Weld")
  1402. weld.Name = "W"
  1403. weld.Part0 = a
  1404. weld.Part1 = b
  1405. weld.C0 = a.CFrame:inverse() * b.CFrame
  1406. weld.Parent = a
  1407. return weld;
  1408. end
  1409. ----------------------------------------------------
  1410. ypcall(function()
  1411. print("hi")
  1412. end)
  1413.  
  1414. ----------------------------------------------------
  1415. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1416. local wld = Instance.new("Weld", wp1)
  1417. wld.Part0 = wp0
  1418. wld.Part1 = wp1
  1419. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1420. end
  1421. ----------------------------------------------------
  1422. function weld5(part0, part1, c0, c1)
  1423. weeld=Instance.new("Weld", part0)
  1424. weeld.Part0=part0
  1425. weeld.Part1=part1
  1426. weeld.C0=c0
  1427. weeld.C1=c1
  1428. return weeld
  1429. end
  1430. ----------------------------------------------------
  1431.  
  1432. function NoOutline(Part)
  1433. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1434. end
  1435. function swait(num)
  1436. if num == 0 or num == nil then
  1437. game:service'RunService'.Heartbeat:wait(0)
  1438. else
  1439. for i = 0, num do
  1440. game:service'RunService'.Heartbeat:wait(0)
  1441. end
  1442. end
  1443. end
  1444.  
  1445. function nooutline(part)
  1446. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1447. end
  1448.  
  1449. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  1450. local fp = Create("Part"){
  1451. formFactor = formfactor,
  1452. Parent = parent,
  1453. Reflectance = reflectance,
  1454. Transparency = transparency,
  1455. CanCollide = false,
  1456. Locked = true,
  1457. BrickColor = BrickColor.new(tostring(brickcolor)),
  1458. Name = name,
  1459. Size = size,
  1460. Position = Character.Torso.Position,
  1461. Material = material,
  1462. }
  1463. nooutline(fp)
  1464. return fp
  1465. end
  1466.  
  1467. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1468. local Msh = Create(Mesh){
  1469. Parent = part,
  1470. Offset = offset,
  1471. Scale = scale,
  1472. }
  1473. if Mesh == "SpecialMesh" then
  1474. Msh.MeshType = meshtype
  1475. Msh.MeshId = meshid
  1476. end
  1477. return Msh
  1478. end
  1479.  
  1480.  
  1481. function so(id, par, vol, pit)
  1482. coroutine.resume(coroutine.create(function()
  1483. local sou = Instance.new("Sound", par or workspace)
  1484. sou.Volume = vol or 1
  1485. sou.Pitch = pit or 1
  1486. sou.SoundId = Sounds[id].Id or id
  1487. swait()
  1488. sou:Play()
  1489. end))
  1490. end
  1491.  
  1492. function weld(parent, part0, part1, c0, c1)
  1493. local Weld = Create("Weld"){
  1494. Parent = parent,
  1495. Part0 = part0,
  1496. Part1 = part1,
  1497. C0 = c0,
  1498. C1 = c1,
  1499. }
  1500. return Weld
  1501. end
  1502.  
  1503. ----------------------------------------------------
  1504.  
  1505. local val = 0
  1506. local mas = 0
  1507.  
  1508. on = false
  1509.  
  1510.  
  1511. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  1512.  
  1513. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  1514. local p = Instance.new("Part")
  1515. p.formFactor = "Custom"
  1516. p.Anchored = Anchor
  1517. p.CanCollide = Collide
  1518. p.Transparency = Tran
  1519. p.Reflectance = Ref
  1520. p.BrickColor = BrickColor.new(Color)
  1521. for _, Surf in pairs(Surfaces) do
  1522. p[Surf] = "Smooth"
  1523. end
  1524. p.Size = Vector3.new(X, Y, Z)
  1525. if Break then
  1526. p:BreakJoints()
  1527. else p:MakeJoints() end
  1528. p.Parent = Parent
  1529. p.Locked = true
  1530. return p
  1531. end
  1532.  
  1533. function StartEffect(part,sizeX,sizeY)
  1534. effectOn = true
  1535. local lastPoint = part.Position
  1536. coroutine.resume(coroutine.create(function()
  1537. while effectOn do
  1538. rs:wait()
  1539. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1540. local mag = (lastPoint - part.Position).magnitude
  1541. local p = Part(workspace, true, false, 0.1, 0, "Institutional white", 1, 1, 1, true)
  1542. p.Material = "Neon"
  1543. p.Size = Vector3.new(sizeX, mag+0.1, sizeY)
  1544. p.CFrame = point * CFrame.new(0, mag/6, 0)
  1545. lastPoint = part.Position
  1546. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  1547. end
  1548. end))
  1549. end
  1550.  
  1551. function EndEffect()
  1552. effectOn = false
  1553. end
  1554.  
  1555. stance = "Normal"
  1556.  
  1557. for i,v in pairs(char:GetChildren()) do
  1558. if v:IsA("Accoutrement") then
  1559. v.Handle.Transparency = 1
  1560. end
  1561. end
  1562.  
  1563. hed.face.Texture = "rbxassetid://245007392"
  1564. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  1565. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  1566. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  1567. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  1568. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  1569. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  1570. ----------------------------------------------------
  1571. ypcall(function()
  1572. char.Shirt:Destroy()
  1573. char.Pants:Destroy()
  1574. shirt = Instance.new("Shirt", char)
  1575. shirt.Name = "Shirt"
  1576. pants = Instance.new("Pants", char)
  1577. pants.Name = "Pants"
  1578. char.Shirt.ShirtTemplate = "rbxassetid://442081908"
  1579. char.Pants.PantsTemplate = "rbxassetid://540138654"
  1580. end)
  1581. ypcall(function()
  1582. char.Pants:Destroy()
  1583. shirt = Instance.new("Shirt", char)
  1584. shirt.Name = "Shirt"
  1585. pants = Instance.new("Pants", char)
  1586. pants.Name = "Pants"
  1587. char.Shirt.ShirtTemplate = "rbxassetid://442081908"
  1588. char.Pants.PantsTemplate = "rbxassetid://540138654"
  1589. end)
  1590. ypcall(function()
  1591. char.Shirt:Destroy()
  1592. shirt = Instance.new("Shirt", char)
  1593. shirt.Name = "Shirt"
  1594. pants = Instance.new("Pants", char)
  1595. pants.Name = "Pants"
  1596. char.Shirt.ShirtTemplate = "rbxassetid://442081908"
  1597. char.Pants.PantsTemplate = "rbxassetid://540138654"
  1598. end)
  1599. ypcall(function()
  1600. shirt = Instance.new("Shirt", char)
  1601. shirt.Name = "Shirt"
  1602. pants = Instance.new("Pants", char)
  1603. pants.Name = "Pants"
  1604. char.Shirt.ShirtTemplate = "rbxassetid://442081908"
  1605. char.Pants.PantsTemplate = "rbxassetid://540138654"
  1606. end)
  1607.  
  1608.  
  1609. ----------------------------------------------------
  1610. boyfriend = {}
  1611.  
  1612. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  1613. if v.Name ~= p.Name then
  1614. if v:IsA("Model") and v:FindFirstChild("Torso") ~= nil and game:GetService("Players"):FindFirstChild(v.Name) ~= nil then
  1615.  
  1616. table.insert(boyfriend,v)
  1617.  
  1618. local char2 = game:GetService("Players"):FindFirstChild(v.Name).Character
  1619. local hed2 = char2.Head
  1620.  
  1621. for i,v in pairs(char2:GetChildren()) do
  1622. if v:IsA("Accoutrement") then
  1623. v.Handle.Transparency = 1
  1624. end
  1625. end
  1626.  
  1627. char2["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  1628. char2["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  1629. char2["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  1630. char2["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  1631. char2["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  1632. char2["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  1633.  
  1634.  
  1635. local sw2 = Instance.new("Part",hed2)
  1636. sw2.CanCollide = false
  1637.  
  1638. local m2 = Instance.new("SpecialMesh",sw2)
  1639. m2.MeshId = "rbxassetid://480249046"
  1640. m2.TextureId = "rbxassetid://480249058"
  1641. m2.Scale = Vector3.new(0.055,0.055,0.055)
  1642. local w2 = Instance.new("Weld")
  1643.  
  1644. char2.Humanoid.MaxHealth = 350
  1645.  
  1646. w2.Part1 = sw2
  1647. w2.Part0 = hed2
  1648. w2.Parent = char2
  1649. w2.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.pi,0)
  1650. pcall(function()
  1651. sc2 = game:GetService("Players"):FindFirstChild(v.Name).PlayerGui
  1652. local sc = Instance.new("ScreenGui",sc2)
  1653. sc.Name = "kek"
  1654.  
  1655. local f = Instance.new("TextLabel",sc)
  1656. f.Size = UDim2.new(1, 0, 0.25, 0)
  1657. f.Position = UDim2.new(-1.5, 0, 0.5, 0)
  1658.  
  1659. coroutine.wrap(function()
  1660. for i = 1, 20 do
  1661. f.Position = f.Position + UDim2.new(1.5/20, 0, 0, 0)
  1662. wait()
  1663. end
  1664. end)()
  1665. end)
  1666.  
  1667. sc3 =p.PlayerGui
  1668. local sc4 = Instance.new("ScreenGui",sc3)
  1669. sc4.Name = "kek"
  1670.  
  1671. local f2 = Instance.new("TextLabel",sc4)
  1672. f2.Size = UDim2.new(1, 0, 0.25, 0)
  1673. f2.Position = UDim2.new(-1.5, 0, 0.5, 0)
  1674.  
  1675. coroutine.wrap(function()
  1676. for i = 1, 20 do
  1677. f2.Position = f2.Position + UDim2.new(1.5/20, 0, 0, 0)
  1678. wait()
  1679. end
  1680. end)()
  1681.  
  1682. f2.FontSize = "Size32"
  1683. f2.Text = "Congrats! You're now the psycopatch stalker that stalks "..char2.Name.."!"
  1684. f2.TextColor3 = Color3.new(1,1,1)
  1685. f2.BackgroundTransparency = 0.3
  1686.  
  1687. coroutine.wrap(function()
  1688. wait(2.5)
  1689. for i = 1, 20 do
  1690. f2.Position = f2.Position - UDim2.new(1.5/20, 0, 0, 0)
  1691. wait()
  1692. end
  1693. f2:Destroy()
  1694. end)()
  1695.  
  1696.  
  1697. pcall(function()
  1698. f.FontSize = "Size32"
  1699. f.Text = "Congrats! You're now the boyfriend of a psycopatch stalker!"
  1700. f.TextColor3 = Color3.new(1,1,1)
  1701. f.BackgroundTransparency = 0.3
  1702.  
  1703. coroutine.wrap(function()
  1704. wait(2.5)
  1705. for i = 1, 20 do
  1706. f.Position = f.Position - UDim2.new(1.5/20, 0, 0, 0)
  1707. wait()
  1708. end
  1709. f:Destroy()
  1710. end)()
  1711. end)
  1712.  
  1713. ----------------------------------------------------
  1714. ypcall(function()
  1715.  
  1716. char2.Shirt:Destroy()
  1717. char2.Pants:Destroy()
  1718. shirt = Instance.new("Shirt", char2)
  1719. shirt.Name = "Shirt"
  1720. pants = Instance.new("Pants", char2)
  1721. pants.Name = "Pants"
  1722. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  1723. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  1724. end)
  1725. ----------------------------------------------------
  1726. ypcall(function()
  1727.  
  1728. char2.Shirt:Destroy()
  1729. shirt = Instance.new("Shirt", char2)
  1730. shirt.Name = "Shirt"
  1731. pants = Instance.new("Pants", char2)
  1732. pants.Name = "Pants"
  1733. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  1734. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  1735. end)
  1736. ----------------------------------------------------
  1737. ypcall(function()
  1738.  
  1739. char2.Pants:Destroy()
  1740. shirt = Instance.new("Shirt", char2)
  1741. shirt.Name = "Shirt"
  1742. pants = Instance.new("Pants", char2)
  1743. pants.Name = "Pants"
  1744. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  1745. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  1746. end)
  1747. ----------------------------------------------------
  1748. ypcall(function()
  1749.  
  1750. char2.Shirt:Destroy()
  1751. char2.Pants:Destroy()
  1752. shirt = Instance.new("Shirt", char2)
  1753. shirt.Name = "Shirt"
  1754. pants = Instance.new("Pants", char2)
  1755. pants.Name = "Pants"
  1756. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  1757. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  1758. end)
  1759. ----------------------------------------------------
  1760. ypcall(function()
  1761.  
  1762. shirt = Instance.new("Shirt", char2)
  1763. shirt.Name = "Shirt"
  1764. pants = Instance.new("Pants", char2)
  1765. pants.Name = "Pants"
  1766. char2.Shirt.ShirtTemplate = "rbxassetid://425693920"
  1767. char2.Pants.PantsTemplate = "rbxassetid://425694280"
  1768. end)
  1769.  
  1770. local e = Instance.new("Script",char2)
  1771. e.Name = "boyfriend"
  1772.  
  1773. break
  1774. end
  1775. end
  1776. end
  1777.  
  1778. for i,v in pairs(boyfriend) do
  1779. print(v)
  1780. end
  1781. ----------------------------------------------------------------
  1782.  
  1783. local sw2 = Instance.new("Part",hed)
  1784. sw2.CanCollide = false
  1785. sw2.BrickColor = BrickColor.new("Hot pink")
  1786.  
  1787. local m2 = Instance.new("SpecialMesh",sw2)
  1788. m2.MeshId = "rbxassetid://430440803"
  1789. m2.Scale = Vector3.new(0.006,0.006,0.006)
  1790. local w2 = Instance.new("Weld")
  1791.  
  1792. w2.Part1 = sw2
  1793. w2.Part0 = hed
  1794. w2.Parent = char
  1795. w2.C0 = CFrame.new(0,-0.9,0)*CFrame.Angles(math.rad(0),math.pi/2,0)
  1796.  
  1797. local sw = Instance.new("Part",torso)
  1798. sw.CanCollide = false
  1799. sw.BrickColor = BrickColor.new("Institutional white")
  1800.  
  1801. local m = Instance.new("SpecialMesh",sw)
  1802. m.MeshId = "rbxassetid://11442510"
  1803. m.TextureId = "rbxassetid://11442524"
  1804. m.Scale = Vector3.new(2.1,2.1,2.1)
  1805. local w1 = Instance.new("Weld")
  1806.  
  1807. w1.Part1 = sw
  1808. w1.Part0 = lleg
  1809. w1.Parent = char
  1810. w1.C0 = CFrame.new(0,-2,0)
  1811.  
  1812. NoSwordAnims = false
  1813.  
  1814. coroutine.wrap(function()
  1815. while true do
  1816. wait()
  1817. if NoSwordAnims == false then
  1818. if stance == "Normal" then
  1819. w1.Part0 = lleg
  1820. w1.C0 = Lerp(w1.C0,CFrame.new(-0.5,0.5,0) * CFrame.Angles(math.rad(-155),math.pi,math.pi/2),0.3)
  1821. elseif stance == "Katana" then
  1822. w1.Part0 = larm
  1823. w1.C0 = Lerp(w1.C0,CFrame.new(0,-0.7,-2.3) * CFrame.Angles(math.rad(180),0,-20),0.1)
  1824. end
  1825. end
  1826. end
  1827. end)()
  1828.  
  1829.  
  1830. ----------------------------------------------------
  1831. newWeld(torso, larm, -1.5, 0.5, 0)
  1832. larm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  1833. newWeld(torso, rarm, 1.5, 0.5, 0)
  1834. rarm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  1835. newWeld(torso, hed, 0, 1.5, 0)
  1836. newWeld(torso, lleg, -0.5, -1, 0)
  1837. lleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  1838. newWeld(torso, rleg, 0.5, -1, 0)
  1839. rleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  1840. newWeld(root, torso, 0, -1, 0)
  1841. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0)
  1842. local Touche = {char.Name, }
  1843. ----------------------------------------------------
  1844.  
  1845. attack = false
  1846. attackhit = false
  1847. attacknumber = 0
  1848. coroutine.wrap(function()
  1849. while true do
  1850. rs:wait()
  1851. if attacknumber >= 2 then
  1852. attacknumber = 0
  1853. end
  1854. end
  1855. end)()
  1856. cooldown = 0
  1857. stance = "Normal"
  1858. local attacking = false
  1859. NoAnims = false
  1860.  
  1861. local ammo = 300
  1862. local maxammo = 300
  1863.  
  1864. coroutine.wrap(function()
  1865. while wait() do
  1866. if ammo > maxammo then
  1867. ammo = maxammo
  1868. elseif ammo < maxammo then
  1869. ammo = ammo + 1
  1870. end
  1871. end
  1872. end)()
  1873.  
  1874. attacking = false
  1875. local hedattack2 = false
  1876. local hedattack = false
  1877.  
  1878. sw.Touched:connect(function(ht)
  1879. if hedattack == true then
  1880. hit = ht.Parent
  1881. if ht and hit:IsA("Model") then
  1882. if hit:FindFirstChild("Humanoid") then
  1883. if hit.Name ~= p.Name then
  1884. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(hit.Humanoid.MaxHealth/2,hit.Humanoid.MaxHealth))
  1885. z = Instance.new("Sound",hed)
  1886. z.SoundId = "rbxassetid://169380525"
  1887. z.Pitch = ptz[math.random(1,#ptz)]
  1888. z.Volume = 1
  1889. z:Play()
  1890. hedattack2 = false
  1891. hedattack = false
  1892. decals = {263033191,189728908,178269340,181477718,498948943,485362831,360385366,144325140}
  1893. decals2 = {284846352,191089587}
  1894.  
  1895. local e = Instance.new("Decal",sw)
  1896. e.Texture = "rbxassetid://"..decals[math.random(1,#decals)]
  1897. e.Face = "Left"
  1898.  
  1899. local e2 = Instance.new("Decal",sw)
  1900. e2.Texture = e.Texture
  1901. e2.Face = "Right"
  1902. end
  1903. end
  1904. elseif ht and hit:IsA("Hat") then
  1905. if hit.Parent.Name ~= p.Name then
  1906. if hit.Parent:FindFirstChild("Humanoid") then
  1907. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(hit.Parent.Humanoid.MaxHealth/2,hit.Parent.Humanoid.MaxHealth))
  1908. z = Instance.new("Sound",hed)
  1909. z.SoundId = "rbxassetid://169380525"
  1910. hedattack2 = false
  1911. hedattack = false
  1912. z.Pitch = ptz[math.random(1,#ptz)]
  1913. z.Volume = 1
  1914. z:Play()
  1915. decals = {263033191,189728908,178269340,181477718,498948943,485362831,360385366,144325140}
  1916. decals2 = {284846352,191089587}
  1917.  
  1918. local e = Instance.new("Decal",sw)
  1919. e.Texture = "rbxassetid://"..decals[math.random(1,#decals)]
  1920. e.Face = "Left"
  1921.  
  1922. local e2 = Instance.new("Decal",sw)
  1923. e2.Texture = e.Texture
  1924. e2.Face = "Right"
  1925. end
  1926. end
  1927. end
  1928. end
  1929. end)
  1930.  
  1931. --------------------attacks------------------
  1932.  
  1933. mouse.KeyDown:connect(function(key)
  1934. if key == "x" then
  1935. if cooldown == 0 and attacking == false then
  1936. NoAnims = true
  1937. attacking = true
  1938. cooldown = 1
  1939.  
  1940. coroutine.wrap(function()
  1941. while true do
  1942.  
  1943. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 ,0.6,0)*CFrame.Angles(math.rad(90),0,.005), 0.2)
  1944.  
  1945. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),0,-.005), 0.2)
  1946.  
  1947. 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)
  1948.  
  1949. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1950.  
  1951. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  1952.  
  1953. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  1954.  
  1955. if cooldown == 0 then break end
  1956.  
  1957. rs:wait()
  1958. end
  1959. end)()
  1960.  
  1961. end
  1962. end
  1963. end)
  1964.  
  1965. mouse.KeyUp:connect(function(key)
  1966. if key == "x" then
  1967. NoAnims = false
  1968. cooldown = 0
  1969. attacking = false
  1970. end
  1971. end)
  1972.  
  1973.  
  1974. function onclick(mouses)
  1975. if attacking == false and cooldown == 0 then
  1976. if stance == "Katana" then
  1977. attacking = true
  1978. cooldown = 1
  1979. NoAnims = true
  1980.  
  1981. StartEffect(sw,0.01,4)
  1982.  
  1983. for i = 1, 20 do
  1984.  
  1985. 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)
  1986.  
  1987. 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)
  1988.  
  1989. 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)
  1990.  
  1991. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  1992.  
  1993. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .1)
  1994.  
  1995. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .1)
  1996. end
  1997.  
  1998. StartEffect(sw,0.01,4)
  1999. hedattack = true
  2000. so("rbxassetid://553461718")
  2001.  
  2002. for i = 1, 3 do
  2003.  
  2004. 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)
  2005.  
  2006. 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)
  2007.  
  2008. 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)
  2009.  
  2010. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.1)
  2011.  
  2012. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .1)
  2013.  
  2014. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .1)
  2015.  
  2016. rs:wait()
  2017. end
  2018.  
  2019. EndEffect()
  2020. NoAnims = false
  2021. cooldown = 0
  2022. attacking = false
  2023. hedattack = false
  2024.  
  2025. end
  2026. end
  2027. end
  2028.  
  2029. mouse.Button1Down:connect(onclick)
  2030.  
  2031. mouse.KeyDown:connect(function(key)
  2032. if key == "f" then
  2033. if attacking == false and cooldown == 0 then
  2034. if stance == "Normal" then
  2035. attacking = true
  2036. cooldown = 1
  2037. NoAnims = true
  2038. stance = "Katana"
  2039.  
  2040. StartEffect(sw,0.01,4)
  2041.  
  2042. for i = 1, 20 do
  2043.  
  2044. 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)
  2045.  
  2046. 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)
  2047.  
  2048. 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)
  2049.  
  2050. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2051.  
  2052. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  2053.  
  2054. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  2055. end
  2056.  
  2057. so("rbxassetid://152052659")
  2058.  
  2059. for i = 1, 20 do
  2060.  
  2061. 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)
  2062.  
  2063. 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)
  2064.  
  2065. 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)
  2066.  
  2067. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2068.  
  2069. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, -0.05), .4)
  2070.  
  2071. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0.05), .4)
  2072.  
  2073. rs:wait()
  2074. end
  2075.  
  2076. EndEffect()
  2077. NoAnims = false
  2078. cooldown = 0
  2079. attacking = false
  2080. elseif stance == "Katana" then
  2081.  
  2082. attacking = true
  2083. cooldown = 1
  2084. NoAnims = true
  2085. NoSwordAnims = true
  2086. stance = "Normal"
  2087. for i = 1, 20 do
  2088. end
  2089.  
  2090. NoSwordAnims = false
  2091. NoAnims = false
  2092. cooldown = 0
  2093. attacking = false
  2094.  
  2095. end
  2096. end
  2097. end
  2098. end)
  2099.  
  2100.  
  2101. -----------GUI creation--------------------
  2102.  
  2103. local pg = p.PlayerGui
  2104.  
  2105. local sg = Instance.new("ScreenGui",pg)
  2106. sg.Name = "rage"
  2107.  
  2108. local txt = Instance.new("TextLabel",sg)
  2109. txt.Position = UDim2.new(0.9, 0, 0.9, 0)
  2110. txt.BackgroundTransparency = 1
  2111. txt.FontSize = "Size24"
  2112.  
  2113. coroutine.wrap(function()
  2114. while true do
  2115. wait()
  2116. txt.TextColor3 = Color3.new(ammo,ammo,ammo)
  2117. end
  2118. end)()
  2119.  
  2120. coroutine.wrap(function()
  2121. while true do
  2122. wait()
  2123. txt.Text = ammo.."/"..maxammo
  2124. end
  2125. end)()
  2126.  
  2127. ----------------------------------------------
  2128. -------------------------------
  2129. local animpose = "Idle"
  2130. local lastanimpose = "Idle"
  2131. local sine = 0
  2132. local change = 1
  2133. local val = 0
  2134. local ffing = false
  2135. local jump = false
  2136. -------------------------------
  2137. local x = Instance.new("Sound", char)
  2138. x.SoundId = "http://www.roblox.com/asset/?id=429617891"
  2139. x.Looped = true
  2140. x.Volume = 1
  2141. x.Pitch = 1
  2142. local footsteps = false
  2143. -------------------------------
  2144. game:GetService("RunService").RenderStepped:connect(function()
  2145. --[[if char.Humanoid.Jump == true then
  2146. jump = true
  2147. else
  2148. jump = false
  2149. end]]
  2150. char.Humanoid.FreeFalling:connect(function(f)
  2151. if f then
  2152. ffing = true
  2153. else
  2154. ffing = false
  2155. end
  2156. end)
  2157. sine = sine + change
  2158. if jump == true then
  2159. animpose = "Jumping"
  2160. elseif ffing == true then
  2161. animpose = "Freefalling"
  2162. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  2163. animpose = "Idle"
  2164. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  2165. animpose = "Walking"
  2166. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  2167. animpose = "Running"
  2168. end
  2169. if animpose ~= lastanimpose then
  2170. sine = 0
  2171. if NoAnims == false then
  2172. if animpose == "Idle" then
  2173. for i = 1, 0.5 do
  2174.  
  2175. if NoAnims == false then
  2176.  
  2177. if stance == "Normal" then
  2178. 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)
  2179.  
  2180. 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)
  2181.  
  2182. 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)
  2183.  
  2184. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2185.  
  2186. 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)
  2187.  
  2188. 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)
  2189.  
  2190. elseif stance == "Katana" then
  2191.  
  2192. 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)
  2193.  
  2194. 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)
  2195.  
  2196. 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)
  2197.  
  2198. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2199.  
  2200. 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)
  2201.  
  2202. 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)
  2203.  
  2204. end
  2205.  
  2206. wait()
  2207. end
  2208. end
  2209.  
  2210.  
  2211. elseif animpose == "Running" then
  2212. change = 1
  2213. if NoAnims == false then
  2214.  
  2215. 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)
  2216.  
  2217. 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)
  2218.  
  2219. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  2220.  
  2221. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  2222.  
  2223. 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)
  2224.  
  2225. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  2226.  
  2227.  
  2228.  
  2229. end
  2230.  
  2231. elseif animpose == "Walking" then
  2232. for i = 1, 1.5 do
  2233. if NoAnims == false then
  2234.  
  2235. if stance == "Normal" then
  2236. 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)
  2237.  
  2238. 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)
  2239.  
  2240. 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)
  2241.  
  2242. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2243.  
  2244. 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)
  2245.  
  2246. 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)
  2247. end
  2248.  
  2249. elseif stance == "Katana" then
  2250.  
  2251. 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)
  2252.  
  2253. 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)
  2254.  
  2255. 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)
  2256.  
  2257. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2258.  
  2259. 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)
  2260.  
  2261. 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)
  2262.  
  2263. wait()
  2264. end
  2265. end
  2266. end
  2267. else
  2268. end
  2269. end
  2270. lastanimpose = animpose
  2271. if animpose == "Idle" then
  2272. change = 0.5
  2273. if NoAnims == false then
  2274.  
  2275. if stance == "Normal" then
  2276. 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)
  2277.  
  2278. 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)
  2279.  
  2280. 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)
  2281.  
  2282. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2283.  
  2284. 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)
  2285.  
  2286. 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)
  2287.  
  2288. elseif stance == "Katana" then
  2289.  
  2290. 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)
  2291.  
  2292. 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)
  2293.  
  2294. 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)
  2295.  
  2296. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2297.  
  2298. 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)
  2299.  
  2300. 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)
  2301.  
  2302. end
  2303. end
  2304.  
  2305.  
  2306. elseif animpose == "Running" then
  2307. change = 1
  2308. if NoAnims == false then
  2309.  
  2310. 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)
  2311.  
  2312. 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)
  2313.  
  2314. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  2315.  
  2316. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  2317.  
  2318. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  2319.  
  2320. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  2321.  
  2322. end
  2323.  
  2324. elseif animpose == "Walking" then
  2325. change = 1
  2326.  
  2327.  
  2328. if NoAnims == false then
  2329.  
  2330. if stance == "Normal" then
  2331.  
  2332. 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)
  2333.  
  2334. 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)
  2335.  
  2336. 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)
  2337.  
  2338. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2339.  
  2340. 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)
  2341.  
  2342. 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)
  2343.  
  2344. elseif stance == "Katana" then
  2345.  
  2346. 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)
  2347.  
  2348. 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)
  2349.  
  2350. 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)
  2351.  
  2352. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  2353.  
  2354. 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)
  2355.  
  2356. 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)
  2357.  
  2358. end
  2359.  
  2360. end
  2361. end
  2362. if animpose == "Walking" then
  2363. if footsteps == false then
  2364. x:Play()
  2365. x.Pitch = ptz[math.random(1,#ptz)]
  2366. footsteps = true
  2367. end
  2368. x.Pitch = 1.1
  2369. elseif animpose == "Idle" then
  2370. x:Stop()
  2371. footsteps = false
  2372. end
  2373. end)
  2374.  
  2375. --------calcs------
  2376. -- +2*math.cos(sine/14)
  2377. -----------------------------
  2378.  
  2379. wait(1)
  2380. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement