Oscar55555

Untitled

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