Advertisement
Josemmoya

kill me

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