Advertisement
wamandnj

Untitled

Feb 28th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 123.00 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
  5. script.Parent = InternalData.RealOwner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7. local function createObject (connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22. Event.OnServerEvent:Connect(function(FiredBy,Input)
  23. if FiredBy ~= InternalData.RealOwner then return end
  24. if Input.MouseEvent then
  25. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26. elseif Input.Sound then
  27. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28. else
  29. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303.  
  304. Player=game:GetService("Players").LocalPlayer
  305. Character=Player.Character
  306. PlayerGui=Player.PlayerGui
  307. Backpack=Player.Backpack
  308. Torso=Character.Torso
  309. Head=Character.Head
  310. Humanoid=Character.Humanoid
  311. m=Instance.new('Model',Character)
  312. LeftArm=Character["Left Arm"]
  313. LeftLeg=Character["Left Leg"]
  314. RightArm=Character["Right Arm"]
  315. RightLeg=Character["Right Leg"]
  316. LS=Torso["Left Shoulder"]
  317. LH=Torso["Left Hip"]
  318. RS=Torso["Right Shoulder"]
  319. RH=Torso["Right Hip"]
  320. Face = Head.face
  321. Neck=Torso.Neck
  322. it=Instance.new
  323. attacktype=1
  324. vt=Vector3.new
  325. cf=CFrame.new
  326. euler=CFrame.fromEulerAnglesXYZ
  327. angles=CFrame.Angles
  328. cloaked=false
  329. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  330. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  331. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  332. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  333. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  334. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  335. RootPart=Character.HumanoidRootPart
  336. RootJoint=RootPart.RootJoint
  337. RootCF=euler(-1.57,0,3.14)
  338. attack = false
  339. attackdebounce = false
  340. deb=false
  341. equipped=true
  342. hand=false
  343. MMouse=nil
  344. combo=0
  345. mana=0
  346. trispeed=1
  347. pathtrans=.7
  348. attackmode='none'
  349. local idle=0
  350. local Anim="Idle"
  351. local Effects={}
  352. local gun=false
  353. local shoot=false
  354. player=nil
  355. cloak=false
  356. lightcolor='Bright blue'
  357.  
  358. local Color1=Torso.BrickColor
  359.  
  360.  
  361. mouse=Player:GetMouse()
  362. --save shoulders
  363. RSH, LSH=nil, nil
  364. --welds
  365. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  366. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  367. LH=Torso["Left Hip"]
  368. RH=Torso["Right Hip"]
  369. TorsoColor=Torso.BrickColor
  370. function NoOutline(Part)
  371. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  372. end
  373.  
  374.  
  375.  
  376. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  377. local fp=it("Part")
  378. fp.formFactor=formfactor
  379. fp.Parent=parent
  380. fp.Reflectance=reflectance
  381. fp.Transparency=transparency
  382. fp.CanCollide=false
  383. fp.Locked=true
  384. fp.BrickColor=brickcolor
  385. fp.Name=name
  386. fp.Size=size
  387. fp.Position=Torso.Position
  388. NoOutline(fp)
  389. fp.Material="SmoothPlastic"
  390. fp:BreakJoints()
  391. return fp
  392. end
  393.  
  394.  
  395.  
  396. function weld(parent,part0,part1,c0)
  397. local weld=it("Weld")
  398. weld.Parent=parent
  399. weld.Part0=part0
  400. weld.Part1=part1
  401. weld.C0=c0
  402. return weld
  403. end
  404.  
  405. local Color1=Torso.BrickColor
  406.  
  407.  
  408.  
  409.  
  410.  
  411. Player=game:GetService('Players').LocalPlayer
  412. Character=Player.Character
  413. Mouse=Player:GetMouse()
  414. m=Instance.new('Model',Character)
  415.  
  416.  
  417. local function weldBetween(a, b)
  418. local weldd = Instance.new("ManualWeld")
  419. weldd.Part0 = a
  420. weldd.Part1 = b
  421. weldd.C0 = CFrame.new()
  422. weldd.C1 = b.CFrame:inverse() * a.CFrame
  423. weldd.Parent = a
  424. return weldd
  425. end
  426.  
  427. it=Instance.new
  428.  
  429. function nooutline(part)
  430. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  431. end
  432.  
  433. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  434. local fp=it("Part")
  435. fp.formFactor=formfactor
  436. fp.Parent=parent
  437. fp.Reflectance=reflectance
  438. fp.Transparency=transparency
  439. fp.CanCollide=false
  440. fp.Locked=true
  441. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  442. fp.Name=name
  443. fp.Size=size
  444. fp.Position=Character.Torso.Position
  445. nooutline(fp)
  446. fp.Material=material
  447. fp:BreakJoints()
  448. return fp
  449. end
  450.  
  451. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  452. local mesh=it(Mesh)
  453. mesh.Parent=part
  454. if Mesh=="SpecialMesh" then
  455. mesh.MeshType=meshtype
  456. mesh.MeshId=meshid
  457. end
  458. mesh.Offset=offset
  459. mesh.Scale=scale
  460. return mesh
  461. end
  462.  
  463. function weld(parent,part0,part1,c0,c1)
  464. local weld=it("Weld")
  465. weld.Parent=parent
  466. weld.Part0=part0
  467. weld.Part1=part1
  468. weld.C0=c0
  469. weld.C1=c1
  470. return weld
  471. end
  472.  
  473.  
  474. --------------------------------------
  475. plr=game:service'Players'.LocalPlayer
  476. chr=plr.Character
  477. local ms = plr:GetMouse()
  478. CV="Bright red"
  479.  
  480. local txt = Instance.new("BillboardGui", chr)
  481. txt.Adornee = chr.Head
  482. txt.Name = "_status"
  483. txt.Size = UDim2.new(4, 0, 2.5, 0)
  484. txt.StudsOffset = Vector3.new(-4, 2, 0)
  485. local text = Instance.new("TextLabel", txt)
  486. text.Size = UDim2.new(3, 0, 0.5, 0)
  487. text.FontSize = "Size24"
  488. text.TextScaled = true
  489. text.TextTransparency = 0
  490. text.BackgroundTransparency = 1
  491. text.TextTransparency = 0
  492. text.TextStrokeTransparency = 0
  493. text.Font = "SciFi"
  494. text.TextStrokeColor3 = Color3.new(0,0,0)
  495. text.Text = "Tanso Hayaidesu"
  496. --------------------------------------
  497. plr=game:service'Players'.LocalPlayer
  498. chr=plr.Character
  499. local ms = plr:GetMouse()
  500. CV="Bright red"
  501.  
  502. local txt = Instance.new("BillboardGui", chr)
  503. txt.Adornee = chr.Head
  504. txt.Name = "_status"
  505. txt.Size = UDim2.new(4, 0, 2.5, 0)
  506. txt.StudsOffset = Vector3.new(-4, 1.5, 0)
  507. local text = Instance.new("TextLabel", txt)
  508. text.Size = UDim2.new(3, 0, 0.5, 0)
  509. text.FontSize = "Size24"
  510. text.TextScaled = false
  511. text.TextTransparency = 0
  512. text.BackgroundTransparency = 1
  513. text.TextTransparency = 0
  514. text.TextStrokeTransparency = 0
  515. text.Font = "SciFi"
  516. text.TextStrokeColor3 = Color3.new(128,128,128)
  517. text.Text = "anime"
  518.  
  519.  
  520.  
  521. --------------------------------
  522. local p = game.Players.LocalPlayer
  523. local char = p.Character
  524. local mouse = p:GetMouse()
  525. local larm = char["Left Arm"]
  526. local rarm = char["Right Arm"]
  527. local lleg = char["Left Leg"]
  528. local rleg = char["Right Leg"]
  529. local hed = char.Head
  530. local torso = char.Torso
  531. local hum = char.Humanoid
  532. local cam = game.Workspace.CurrentCamera
  533. local root = char.HumanoidRootPart
  534. local deb = false
  535. local shot = 0
  536. local debris=game:service"Debris"
  537. local l = game:GetService("Lighting")
  538. local rs = game:GetService("RunService").RenderStepped
  539. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  540. math.randomseed(os.time())
  541. for i,v in pairs(char:children()) do
  542. if v:IsA("Hat") then
  543. v:Destroy()
  544. end
  545. end
  546. for i,v in pairs (hed:GetChildren()) do
  547. if v:IsA("Sound") then
  548. v:Destroy()
  549. end
  550. end
  551. ----------------------------------------------------
  552. z = Instance.new("Sound", torso)
  553. z.SoundId = "rbxassetid://" -- Put Music ID Here.
  554. z.Looped = true
  555. z.Volume = 1
  556. wait(.1)
  557. z:Play()
  558. -----------------------------------------------------
  559. Debounces = {
  560. CanAttack = true;
  561. NoIdl = false;
  562. Slashing = false;
  563. Slashed = false;
  564. RPunch = false;
  565. RPunched = false;
  566. LPunch = false;
  567. LPunched = false;
  568. }
  569. local Touche = {char.Name, }
  570. ----------------------------------------------------h
  571. ----------------------------------------------------
  572. local LocalPlayer = game:GetService("Players").LocalPlayer
  573. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  574.  
  575.  
  576. ---------------------
  577. local LocalPlayer = game:GetService("Players").LocalPlayer
  578. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  579.  
  580.  
  581. ----------------------------------------
  582. local p = game.Players.LocalPlayer
  583. local char = p.Character
  584. local mouse = p:GetMouse()
  585. local larm = char["Left Arm"]
  586. local rarm = char["Right Arm"]
  587. local lleg = char["Left Leg"]
  588. local rleg = char["Right Leg"]
  589. local hed = char.Head
  590. local torso = char.Torso
  591. local hum = char.Humanoid
  592. local cam = game.Workspace.CurrentCamera
  593. local root = char.HumanoidRootPart
  594. local rj = root.RootJoint
  595. local deb = false
  596. local shot = 0
  597. local stanceToggle = "Idle1"
  598. local l = game:GetService("Lighting")
  599. local rs = game:GetService("RunService").RenderStepped
  600. local hb = game:GetService("RunService").Heartbeat
  601. local Stepped = game:GetService("RunService").Stepped
  602. math.randomseed(os.time())
  603. hum.JumpPower = 100
  604. hed.face:Remove()
  605. ----------------------------------------------------
  606. fat = Instance.new("BindableEvent",script)
  607. fat.Name = "Heartbeat"
  608.  
  609. script:WaitForChild("Heartbeat")
  610.  
  611. frame = 1/30
  612. tf = 0
  613. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  614. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  615. lastframe = tick()
  616. script.Heartbeat:Fire() --ayy lmao
  617.  
  618. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  619. tf = tf + s
  620. if tf >= frame then
  621. if allowframeloss then
  622. script.Heartbeat:Fire()
  623. lastframe=tick()
  624. else
  625. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  626. for i=1, math.floor(tf/frame) do
  627. script.Heartbeat:Fire()
  628. end
  629. lastframe=tick()
  630. end
  631. if tossremainder then
  632. tf = 0
  633. else
  634. tf = tf - frame * math.floor(tf/frame)
  635. end
  636. end
  637. end)
  638. ----------------------------------------------------
  639. for i,v in pairs(char:children()) do
  640. if v:IsA("Hat") then
  641. v:Destroy()
  642. end
  643. end
  644. for i,v in pairs (hed:GetChildren()) do
  645. if v:IsA("Sound") then
  646. v:Destroy()
  647. end
  648. end
  649. ----------------------------------------------------
  650. Debounces = {
  651. CanAttack = true;
  652. CanJoke = true;
  653. NoIdl = false;
  654. Slashing = false;
  655. Slashed = false;
  656. ks = false;
  657. }
  658. ----------------------------------------------------
  659. function weld5(part0, part1, c0, c1)
  660. weeld=Instance.new("Weld", part0)
  661. weeld.Part0=part0
  662. weeld.Part1=part1
  663. weeld.C0=c0
  664. weeld.C1=c1
  665. return weeld
  666. end
  667. ----------------------------------------------------
  668. function NewPart(prnt,siz,cf,trans,anc,mat,col)
  669. local prt=Instance.new("Part")
  670. prt.Parent=prnt
  671. prt.Name="Part"
  672. prt.Size=siz
  673. prt.CanCollide=false
  674. prt.Anchored=anc
  675. prt.Locked=true
  676. prt.Transparency = trans
  677. prt.TopSurface=10
  678. prt.BottomSurface=10
  679. prt.FrontSurface=10
  680. prt.BackSurface=10
  681. prt.LeftSurface=10
  682. prt.RightSurface=10
  683. prt:BreakJoints()
  684. prt.CFrame=cf or CFrame.new(30,10,30)
  685. prt.Material=mat
  686. prt.BrickColor=BrickColor.new(col)
  687. m=Instance.new("SpecialMesh",prt)
  688. m.MeshType=6
  689. return prt
  690. end
  691. ----------------------------------------------------
  692. function lerp(a, b, t) -- Linear interpolation
  693. return a + (b - a)*t
  694. end
  695.  
  696. function slerp(a, b, t) --Spherical interpolation
  697. dot = a:Dot(b)
  698. if dot > 0.99999 or dot < -0.99999 then
  699. return t <= 0.5 and a or b
  700. else
  701. r = math.acos(dot)
  702. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  703. end
  704. end
  705.  
  706. function matrixInterpolate(a, b, t)
  707. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  708. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  709. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  710. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  711. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  712. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  713. local t = v1:Dot(v2)
  714. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  715. return CFrame.new()
  716. end
  717. return CFrame.new(
  718. v0.x, v0.y, v0.z,
  719. v1.x, v1.y, v1.z,
  720. v2.x, v2.y, v2.z,
  721. v3.x, v3.y, v3.z)
  722. end
  723. ----------------------------------------------------
  724. function genWeld(a,b)
  725. local w = Instance.new("Weld",a)
  726. w.Part0 = a
  727. w.Part1 = b
  728. return w
  729. end
  730. function weld(a, b)
  731. local weld = Instance.new("Weld")
  732. weld.Name = "W"
  733. weld.Part0 = a
  734. weld.Part1 = b
  735. weld.C0 = a.CFrame:inverse() * b.CFrame
  736. weld.Parent = a
  737. return weld;
  738. end
  739. ----------------------------------------------------
  740. function Lerp(c1,c2,al)
  741. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  742. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  743. for i,v in pairs(com1) do
  744. com1[i] = v+(com2[i]-v)*al
  745. end
  746. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  747. end
  748. ----------------------------------------------------
  749. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  750. local wld = Instance.new("Weld", wp1)
  751. wld.Part0 = wp0
  752. wld.Part1 = wp1
  753. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  754. end
  755. ----------------------------------------------------
  756. newWeld(torso, larm, -1.5, 0.5, 0)
  757. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  758. newWeld(torso, rarm, 1.5, 0.5, 0)
  759. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  760. newWeld(torso, hed, 0, 1.5, 0)
  761. newWeld(torso, lleg, -0.5, -1, 0)
  762. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  763. newWeld(torso, rleg, 0.5, -1, 0)
  764. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  765. newWeld(root, torso, 0, -1, 0)
  766. torso.Weld.C1 = CFrame.new(0, -1, 0)
  767. ----------------------------------------------------
  768. z = Instance.new("Sound",char) --Smile: print("�?�?�?�??�?�? â�?��?��?�?â�?� �?¢â�??¬â�??¢�?�?�?�??�?¢â�??¬ �?�?�?¢�?¢â�?�š�?¬�?¢â�?�ž�?¢�?�?�?�??�?�? â�?��?��?�?�?¢�?¢â�?�š�?¬�?�?��?¡�?�?�?�??�?¢â�??¬�?¡�?�?â�?�š�?�??�?¢?�?�?�?�??�?�? â�?��?��?�?â�?� �?¢â�??¬â�??¢�?�?�?�??�?�??�?¢�?�?�?¢�?¢â�??¬�?¡�?�??�?¬�?�?â�?�¦�?�??�?¡�?�?�?�??�?�? â�?��?��?�?�?¢�?¢â�?�š�?¬�?�?��?¡�?�?�?�??�?¢â�??¬�?¡�?�?â�?�š�?�??�?º")
  769. z.SoundId = "rbxassetid://0"--410761150, 411368002
  770. z.Looped = true
  771. z.Pitch = 1
  772. z.Volume = 1
  773. wait(0.1)
  774. z:Play()
  775. ----------------------------------------------------
  776. New = function(Object, Parent, Name, Data)
  777. local Object = Instance.new(Object)
  778. for Index, Value in pairs(Data or {}) do
  779. Object[Index] = Value
  780. end
  781. Object.Parent = Parent
  782. Object.Name = Name
  783. return Object
  784. end
  785. ----------------------------------------------------
  786. --Left Arm
  787. m = Instance.new("Model")
  788. m.Name = "LeftArm"
  789.  
  790. p4 = Instance.new("Part", m)
  791. p4.BrickColor = BrickColor.new("Really black")
  792. p4.Material = Enum.Material.SmoothPlastic
  793. p4.Name = "LeftArmPlate"
  794. p4.Size = Vector3.new(1, 2, 1)
  795. p4.Transparency = 1
  796. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  797. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  798. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  799. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  800. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  801. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  802. b4 = Instance.new("SpecialMesh", p4)
  803. b4.MeshType = Enum.MeshType.Brick
  804. b4.Name = "Mesh"
  805. b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  806.  
  807.  
  808.  
  809.  
  810.  
  811. w1 = Instance.new("Weld", p1)
  812. w1.Name = "Part_Weld"
  813. w1.Part0 = p1
  814. w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  815. w1.Part1 = p2
  816. w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  817. w2 = Instance.new("Weld", p2)
  818. w2.Name = "Part_Weld"
  819. w2.Part0 = p2
  820. w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  821. w2.Part1 = p3
  822. w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  823. w3 = Instance.new("Weld", p3)
  824. w3.Name = "LeftArmPlate_Weld"
  825. w3.Part0 = p3
  826. w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  827. w3.Part1 = p4
  828. w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  829. w4 = Instance.new("Weld", p4)
  830. w4.Name = "Part_Weld"
  831. w4.Part0 = p4
  832. w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  833. w4.Part1 = p5
  834. w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  835. w5 = Instance.new("Weld", p5)
  836. w5.Name = "Part_Weld"
  837. w5.Part0 = p5
  838. w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  839. w5.Part1 = p6
  840. w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  841. w6 = Instance.new("Weld", p6)
  842. w6.Name = "Part_Weld"
  843. w6.Part0 = p6
  844. w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  845. w6.Part1 = p7
  846. w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  847. w7 = Instance.new("Weld", p7)
  848. w7.Name = "Part_Weld"
  849. w7.Part0 = p7
  850. w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  851. w7.Part1 = p8
  852. w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  853. w8 = Instance.new("Weld", p8)
  854. w8.Name = "Part_Weld"
  855. w8.Part0 = p8
  856. w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  857. w8.Part1 = p9
  858. w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  859. w9 = Instance.new("Weld", p9)
  860. w9.Name = "Part_Weld"
  861. w9.Part0 = p9
  862. w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  863. w9.Part1 = p10
  864. w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  865. w10 = Instance.new("Weld", p10)
  866. w10.Name = "Part_Weld"
  867. w10.Part0 = p10
  868. w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  869. w10.Part1 = p11
  870. w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  871. w11 = Instance.new("Weld", p11)
  872. w11.Name = "Part_Weld"
  873. w11.Part0 = p11
  874. w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  875. w11.Part1 = p12
  876. w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  877. w12 = Instance.new("Weld", p12)
  878. w12.Name = "Part_Weld"
  879. w12.Part0 = p12
  880. w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  881. w12.Part1 = p13
  882. w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  883. w13 = Instance.new("Weld", p13)
  884. w13.Name = "Part_Weld"
  885. w13.Part0 = p13
  886. w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  887. w13.Part1 = p14
  888. w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  889. w14 = Instance.new("Weld", p14)
  890. w14.Name = "Part_Weld"
  891. w14.Part0 = p14
  892. w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  893. w14.Part1 = p15
  894. w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  895. w15 = Instance.new("Weld", p15)
  896. w15.Name = "Part_Weld"
  897. w15.Part0 = p15
  898. w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  899. w15.Part1 = p16
  900. w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
  901.  
  902. m.Parent = larm
  903. m:MakeJoints()
  904. ----------------------------------------------------
  905. local cor = Instance.new("Part", larm.LeftArm)
  906. cor.Name = "Thingy"
  907. cor.Locked = true
  908. cor.BottomSurface = 0
  909. cor.CanCollide = false
  910. cor.Size = Vector3.new(1, 1, 1)
  911. cor.Transparency = 1
  912. cor.TopSurface = 0
  913. corw = Instance.new("Weld", cor)
  914. corw.Part0 = larm
  915. corw.Part1 = cor
  916. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  917. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  918. weld1 = Instance.new("Weld", larm.LeftArm)
  919. weld1.Part0 = cor
  920. weld1.Part1 = larm.LeftArm.LeftArmPlate
  921. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  922. --Right Arm
  923. m2 = Instance.new("Model")
  924. m2.Name = "RightArm"
  925.  
  926. p7 = Instance.new("Part", m2)
  927. p7.BrickColor = BrickColor.new("Institutional white")
  928. p7.Material = Enum.Material.SmoothPlastic
  929. p7.Transparency = 1
  930. p7.Name = "RightArmPlate"
  931. p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  932. p7.FormFactor = Enum.FormFactor.Symmetric
  933. p7.Size = Vector3.new(1, 2, 1)
  934. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  935. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  936. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  937. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  938. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  939. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  940. b7 = Instance.new("SpecialMesh", p7)
  941. b7.MeshType = Enum.MeshType.Brick
  942. b7.Name = "Mesh"
  943. b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  944.  
  945.  
  946. w1 = Instance.new("Weld", p1)
  947. w1.Name = "Part_Weld"
  948. w1.Part0 = p1
  949. w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  950. w1.Part1 = p2
  951. w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  952. w2 = Instance.new("Weld", p2)
  953. w2.Name = "Part_Weld"
  954. w2.Part0 = p2
  955. w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  956. w2.Part1 = p3
  957. w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  958. w3 = Instance.new("Weld", p3)
  959. w3.Name = "Part_Weld"
  960. w3.Part0 = p3
  961. w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  962. w3.Part1 = p4
  963. w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  964. w4 = Instance.new("Weld", p4)
  965. w4.Name = "Part_Weld"
  966. w4.Part0 = p4
  967. w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  968. w4.Part1 = p5
  969. w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  970. w5 = Instance.new("Weld", p5)
  971. w5.Name = "Part_Weld"
  972. w5.Part0 = p5
  973. w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  974. w5.Part1 = p6
  975. w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  976. w6 = Instance.new("Weld", p6)
  977. w6.Name = "RightArmPlate_Weld"
  978. w6.Part0 = p6
  979. w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  980. w6.Part1 = p7
  981. w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  982. w7 = Instance.new("Weld", p7)
  983. w7.Name = "Part_Weld"
  984. w7.Part0 = p7
  985. w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  986. w7.Part1 = p8
  987. w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  988. w8 = Instance.new("Weld", p8)
  989. w8.Name = "Part_Weld"
  990. w8.Part0 = p8
  991. w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  992. w8.Part1 = p9
  993. w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  994. w9 = Instance.new("Weld", p9)
  995. w9.Name = "Part_Weld"
  996. w9.Part0 = p9
  997. w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  998. w9.Part1 = p10
  999. w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1000. w10 = Instance.new("Weld", p10)
  1001. w10.Name = "Part_Weld"
  1002. w10.Part0 = p10
  1003. w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1004. w10.Part1 = p11
  1005. w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1006. w11 = Instance.new("Weld", p11)
  1007. w11.Name = "Part_Weld"
  1008. w11.Part0 = p11
  1009. w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1010. w11.Part1 = p12
  1011. w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1012. w12 = Instance.new("Weld", p12)
  1013. w12.Name = "Part_Weld"
  1014. w12.Part0 = p12
  1015. w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1016. w12.Part1 = p13
  1017. w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1018. w13 = Instance.new("Weld", p13)
  1019. w13.Name = "Part_Weld"
  1020. w13.Part0 = p13
  1021. w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1022. w13.Part1 = p14
  1023. w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1024. w14 = Instance.new("Weld", p14)
  1025. w14.Name = "Part_Weld"
  1026. w14.Part0 = p14
  1027. w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1028. w14.Part1 = p15
  1029. w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1030. w15 = Instance.new("Weld", p15)
  1031. w15.Name = "Part_Weld"
  1032. w15.Part0 = p15
  1033. w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1034. w15.Part1 = p16
  1035. w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1036. w16 = Instance.new("Weld", p16)
  1037. w16.Name = "Part_Weld"
  1038. w16.Part0 = p16
  1039. w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1040. w16.Part1 = p17
  1041. w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1042. w17 = Instance.new("Weld", p17)
  1043. w17.Name = "Part_Weld"
  1044. w17.Part0 = p17
  1045. w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1046. w17.Part1 = p18
  1047. w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1048. w18 = Instance.new("Weld", p18)
  1049. w18.Name = "Part_Weld"
  1050. w18.Part0 = p18
  1051. w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1052. w18.Part1 = p19
  1053. w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1054. m2.Parent = rarm
  1055. m2:MakeJoints()
  1056. ----------------------------------------------------
  1057. local cor2 = Instance.new("Part", rarm.RightArm)
  1058. cor2.Name = "Thingy"
  1059. cor2.Locked = true
  1060. cor2.BottomSurface = 0
  1061. cor2.CanCollide = false
  1062. cor2.Size = Vector3.new(1, 1, 1)
  1063. cor2.Transparency = 1
  1064. cor2.TopSurface = 0
  1065. corw2 = Instance.new("Weld", cor2)
  1066. corw2.Part0 = rarm
  1067. corw2.Part1 = cor2
  1068. corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1069. corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1070. weld2 = Instance.new("Weld", rarm.RightArm)
  1071. weld2.Part0 = cor2
  1072. weld2.Part1 = rarm.RightArm.RightArmPlate
  1073. weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1074.  
  1075.  
  1076. --Zyrodoxa
  1077. m8 = Instance.new("Model")
  1078. m8.Name = "Zyrodoxa"
  1079.  
  1080. p16 = Instance.new("Part", m8)
  1081. p16.BrickColor = BrickColor.new("Instutional white")
  1082. p16.Material = Enum.Material.Metal
  1083. p16.Name = "Handle"
  1084. p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
  1085. p16.CanCollide = false
  1086. p16.Locked = true
  1087. p16.FormFactor = Enum.FormFactor.Custom
  1088. p16.Size = Vector3.new(0, 0, 0)
  1089. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1090. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1091. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1092. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1093. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1094. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1095. b16 = Instance.new("BlockMesh", p16)
  1096. b16.Name = "Mesh"
  1097. b16.Scale = Vector3.new(0, 0, 0)
  1098.  
  1099. w16 = Instance.new("Weld", p16)
  1100. w16.Name = "Block_Weld"
  1101. w16.Part0 = p16
  1102. w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
  1103. w16.Part1 = p17
  1104. w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
  1105.  
  1106. m8.Parent = rarm
  1107. m8:MakeJoints()
  1108. ----------------------------------------------------
  1109. local cor8 = Instance.new("Part", rarm.Zyrodoxa)
  1110. cor8.Name = "Thingy"
  1111. cor8.Locked = true
  1112. cor8.BottomSurface = 0
  1113. cor8.CanCollide = false
  1114. cor8.Size = Vector3.new(1, 1, 1)
  1115. cor8.Transparency = 1
  1116. cor8.TopSurface = 0
  1117. corw8 = Instance.new("Weld", cor8)
  1118. corw8.Part0 = rarm
  1119. corw8.Part1 = cor8
  1120. corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
  1121. corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1122. weld8 = Instance.new("Weld", rarm.Zyrodoxa)
  1123. weld8.Part0 = cor8
  1124. weld8.Part1 = rarm.Zyrodoxa.Handle
  1125. weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1126. ----------------------------------------------------
  1127. models = {m,m2,m3,m4,m5,m6,m7,m8}
  1128. parts = {}
  1129. Stepped:connect(function()
  1130. for i,v in pairs(models) do
  1131. for _, a in pairs(v:GetChildren()) do
  1132. if v:IsA("Part") and v.Name ~= "Thingy" then
  1133. table.insert(parts, a)
  1134. for i,v in pairs(parts) do
  1135. v.CanCollide = false
  1136. end
  1137. end
  1138. end
  1139. end
  1140. end)
  1141. ----------------------------------------------------
  1142. local animpose = "Idle1"
  1143. local lastanimpose = "Idle1"
  1144. local grab = false
  1145. local Smooth = 1
  1146. local sine = 0
  1147. local change = 1
  1148. local val = 0
  1149. local ffing = false
  1150. ----------------------------------------------------
  1151. --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
  1152.  
  1153. function FindHumanoids()
  1154. local function c_region(Position, Size)
  1155. local SizeOffset = Size/2
  1156. local Point1 = Position - SizeOffset
  1157. local Point2 = Position + SizeOffset
  1158. local a = Instance.new("Part", workspace)
  1159. a.Anchored = true
  1160. a.Size = Size
  1161. a.Position = Position
  1162. print("Hey!, I'm making a part!")
  1163. return Region3.new(Point1, Point2)
  1164. end
  1165.  
  1166. local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1167. local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1168. local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1169. local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1170.  
  1171. local regions = {a, b, c, d}
  1172.  
  1173. local found_humanoids = {}
  1174. local already_found = {char.Name}
  1175.  
  1176. for _, region in pairs(regions) do
  1177. for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
  1178. print(part, part.Parent, part.Name) ---nope
  1179. if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  1180. local humanoid = part.Parent:FindFirstChild("Humanoid")
  1181. local name = humanoid.Parent.Name
  1182. local exists = false
  1183. for _, n in pairs(already_found) do
  1184. if n == name then
  1185. exists = true
  1186. end
  1187. end
  1188. if not exists then
  1189. table.insert(already_found, name)
  1190. table.insert(found_humanoids, humanoid)
  1191. end
  1192. elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  1193. local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  1194. local name = humanoid.Parent.Parent.Name
  1195. local exists = false
  1196. for _, n in pairs(already_found) do
  1197. if n == name then
  1198. exists = true
  1199. end
  1200. end
  1201. if not exists then
  1202. table.insert(already_found, name)
  1203. table.insert(found_humanoids, humanoid)
  1204. end
  1205. end
  1206. end
  1207. end
  1208. return found_humanoids
  1209. end
  1210.  
  1211. local humanoids = FindHumanoids()
  1212. if #humanoids == 0 then
  1213. for i, v in pairs(humanoids) do
  1214. print(v.Parent.Name)
  1215. if Debounces.Slashing == true then
  1216. v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
  1217. elseif Debounces.Slashing == false then
  1218. wait()
  1219. end
  1220. end
  1221. wait(0.3)
  1222. end]]--
  1223. ----------------------------------------------------
  1224. --[[mouse.KeyDown:connect(function(key)
  1225. if key == "f" then
  1226. if Debounces.CanAttack == true then
  1227. Debounces.CanAttack = false
  1228. Debounces.NoIdl = true
  1229. Debounces.on = true
  1230. for i = 1, 20 do
  1231. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1232. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1233. CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
  1234. CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1235. CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1236. CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1237. CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  1238. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
  1239. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1240. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
  1241. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1242. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
  1243. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
  1244. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
  1245. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
  1246. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1247. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
  1248. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1249. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
  1250. if Debounces.on == false then
  1251. break
  1252. end
  1253. fat.Event:wait()
  1254. end
  1255. end
  1256. end
  1257. end)]]--
  1258. ----------------------------------------------------
  1259. mod4 = Instance.new("Model",char)
  1260.  
  1261. ptez = {0.7, 0.8, 0.9, 1}
  1262.  
  1263. function FindNearestTorso(Position,Distance,SinglePlayer)
  1264. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1265. local List = {}
  1266. for i,v in pairs(workspace:GetChildren())do
  1267. if v:IsA("Model")then
  1268. if v:findFirstChild("Torso")then
  1269. if v ~= char then
  1270. if(v.Torso.Position -Position).magnitude <= Distance then
  1271. table.insert(List,v)
  1272. end
  1273. end
  1274. end
  1275. end
  1276. end
  1277. return List
  1278. end
  1279.  
  1280. function Slam()
  1281. local part=Instance.new('Part',mod4)
  1282. part.Anchored=true
  1283. part.CanCollide=false
  1284. part.FormFactor='Custom'
  1285. part.Size=Vector3.new(.2,.2,.2)
  1286. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  1287. part.Transparency=.7
  1288. part.BrickColor=BrickColor.new('Really black')
  1289. mesh=Instance.new('SpecialMesh',part)
  1290. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  1291. mesh.Scale=Vector3.new(3,3,3)
  1292. local part2=Instance.new('Part',mod4)
  1293. part2.Anchored=true
  1294. part2.CanCollide=false
  1295. part2.FormFactor='Custom'
  1296. part2.Size=Vector3.new(.2,.2,.2)
  1297. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  1298. part2.Transparency=.7
  1299. part2.BrickColor=BrickColor.new('Institutional white')
  1300. mesh2=Instance.new('SpecialMesh',part2)
  1301. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  1302. mesh2.Scale=Vector3.new(3,1.5,3)
  1303. x = Instance.new("Sound",larm)
  1304. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  1305. x.Pitch = ptez[math.random(1,#ptez)]
  1306. x.Volume = 1
  1307. wait(.1)
  1308. x1 = Instance.new("Sound",larm)
  1309. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  1310. x1.Pitch = ptez[math.random(1,#ptez)]
  1311. x1.Volume = 1
  1312. wait(.1)
  1313. x:Play()
  1314. x1:Play()
  1315. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  1316. if v:FindFirstChild('Humanoid') then
  1317. v.Humanoid:TakeDamage(math.random(30,45))
  1318. end
  1319. end
  1320. coroutine.resume(coroutine.create(function()
  1321. for i=0,0.62,0.13 do
  1322. wait()
  1323. part.CFrame=part.CFrame
  1324. part.Transparency=i
  1325. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  1326. part2.CFrame=part2.CFrame
  1327. part2.Transparency=i
  1328. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  1329. end
  1330. part.Parent=nil
  1331. part2.Parent=nil
  1332. x:Destroy()
  1333. end))
  1334. end
  1335. ----------------------------------------------------
  1336. wPart = function(x,y,z,color,tr,cc,an,parent)
  1337. local wp = Instance.new('WedgePart',parent or Weapon)
  1338. wp.formFactor = 'Custom'
  1339. wp.Size = Vector3.new(x,y,z)
  1340. wp.BrickColor = BrickColor.new(color)
  1341. wp.CanCollide = cc
  1342. wp.Transparency = tr
  1343. wp.Anchored = an
  1344. wp.TopSurface,wp.BottomSurface = 0,0
  1345. return wp
  1346. end
  1347.  
  1348. Mesh = function(par,num,x,y,z)
  1349. local msh = _
  1350. if num == 1 then
  1351. msh = Instance.new("CylinderMesh",par)
  1352. elseif num == 2 then
  1353. msh = Instance.new("SpecialMesh",par)
  1354. msh.MeshType = 3
  1355. elseif num == 3 then
  1356. msh = Instance.new("BlockMesh",par)
  1357. elseif num == 4 then
  1358. msh = Instance.new("SpecialMesh",par)
  1359. msh.MeshType = "Torso"
  1360. elseif type(num) == 'string' then
  1361. msh = Instance.new("SpecialMesh",par)
  1362. msh.MeshId = num
  1363. end
  1364. msh.Scale = Vector3.new(x,y,z)
  1365. return msh
  1366. end
  1367.  
  1368. local function CFrameFromTopBack(at, top, back)
  1369. local right = top:Cross(back)
  1370. return CFrame.new(at.x, at.y, at.z,
  1371. right.x, top.x, back.x,
  1372. right.y, top.y, back.y,
  1373. right.z, top.z, back.z)
  1374. end
  1375.  
  1376. function Triangle(a, b, c)
  1377. local edg1 = (c-a):Dot((b-a).unit)
  1378. local edg2 = (a-b):Dot((c-b).unit)
  1379. local edg3 = (b-c):Dot((a-c).unit)
  1380. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1381. a, b, c = a, b, c
  1382. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1383. a, b, c = b, c, a
  1384. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1385. a, b, c = c, a, b
  1386. else
  1387. print("unreachable")
  1388. end
  1389. local len1 = (c-a):Dot((b-a).unit)
  1390. local len2 = (b-a).magnitude - len1
  1391. local width = (a + (b-a).unit*len1 - c).magnitude
  1392. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1393. local list = {}
  1394. if len1 > 0.01 then
  1395. local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  1396. local sz = Vector3.new(0.2, width, len1)
  1397. w1.Size = sz
  1398. local sp = Mesh(w1,2,0,0,0)
  1399. sp.MeshType='Wedge'
  1400. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  1401. w1:BreakJoints()
  1402. w1.Anchored = true
  1403. w1.Transparency = 0.7
  1404. Spawn(function()
  1405. for i=0,1,0.1 do
  1406. fat.Event:wait()
  1407. w1.Transparency=w1.Transparency+0.03
  1408. end
  1409. end)
  1410. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1411. table.insert(list,w1)
  1412. end
  1413. if len2 > 0.01 then
  1414. local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  1415. local sz = Vector3.new(0.2, width, len2)
  1416. w2.Size = sz
  1417. local sp = Mesh(w2,2,0,0,0)
  1418. sp.MeshType='Wedge'
  1419. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  1420. w2:BreakJoints()
  1421. w2.Anchored = true
  1422. w2.Transparency = 0.7
  1423. Spawn(function()
  1424. for i=0,1,0.1 do
  1425. fat.Event:wait()
  1426. w2.Transparency=w2.Transparency+0.03
  1427. end
  1428. end)
  1429. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1430. table.insert(list,w2)
  1431. end
  1432. return unpack(list)
  1433. end
  1434.  
  1435. function trail(p,t,h)
  1436. Spawn(function()
  1437. local blcf = p.CFrame
  1438. local scfr = blcf
  1439. for i=1,t do
  1440. local blcf = p.CFrame
  1441. if scfr and (p.Position-scfr.p).magnitude > .1 then
  1442. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1443. if a then game.Debris:AddItem(a,1) end
  1444. if b then game.Debris:AddItem(b,1) end
  1445. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1446. if a then game.Debris:AddItem(a,1) end
  1447. if b then game.Debris:AddItem(b,1) end
  1448. scfr = blcf
  1449. elseif not scfr then
  1450. scfr = blcf
  1451. end
  1452. fat.Event:wait()
  1453. end
  1454. scfr=nil
  1455. end)
  1456. end
  1457. --trail(char.Sword.Blade,1e1000,5)
  1458. ----------------------------------------------------
  1459. function Dmg()
  1460. local partofdeath = rarm.Zyrodoxa.Hitbox
  1461. local function CreateRegion3FromLocAndSize(Position, Size)
  1462. local SizeOffset = Size/2
  1463. local Point1 = Position - SizeOffset
  1464. local Point2 = Position + SizeOffset
  1465. return Region3.new(Point1, Point2)
  1466. end
  1467. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  1468. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  1469. Spawn(function()
  1470. if Debounces.Slashing == true and Debounces.Slashed == false then
  1471. Debounces.Slashed = true
  1472. ypcall(function()
  1473. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  1474. humanoid:TakeDamage(math.random(10,18))
  1475. end)
  1476. wait(.4)
  1477. Debounces.Slashed = false
  1478. end
  1479. end)
  1480. end
  1481. end
  1482. ----------------------------------------------------
  1483. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  1484. ptz = {0.7, 0.8, 0.9, 1}
  1485. idz = {"161006212", "161006195"}
  1486. function attackone()
  1487. for i = 1, 13 do
  1488. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  1489. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
  1490. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
  1491. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  1492. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
  1493. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
  1494. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
  1495. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
  1496. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
  1497. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
  1498. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  1499. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
  1500. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  1501. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  1502. if Debounces.on == false then
  1503. break
  1504. end
  1505. fat.Event:wait()
  1506. end
  1507. trail(rarm.Zyrodoxa.Hitbox,20,2)
  1508. Debounces.Slashing = true
  1509. wait(0.2)
  1510. --[[z = Instance.new("Sound", hed)
  1511. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1512. z.Pitch = ptz[math.random(1,#ptz)]
  1513. z.Volume = 1
  1514. wait(.01)
  1515. z:Play()]]--
  1516. for i = 1, 14 do
  1517. Dmg()
  1518. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  1519. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
  1520. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
  1521. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
  1522. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
  1523. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
  1524. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
  1525. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1526. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
  1527. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1528. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  1529. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
  1530. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  1531. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
  1532. if Debounces.on == false then break end
  1533. rs:wait()
  1534. end
  1535. Debounces.Slashing = false
  1536. end
  1537. function attacktwo()
  1538. Debounces.Slashing = true
  1539. for i = 1, 14 do
  1540. Dmg()
  1541. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  1542. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
  1543. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
  1544. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1545. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
  1546. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1547. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
  1548. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  1549. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  1550. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1551. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
  1552. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1553. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
  1554. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1555. if Debounces.on == false then
  1556. break
  1557. end
  1558. rs:wait()
  1559. end
  1560. end
  1561. ----------------clothes-------------
  1562. local sick = Instance.new("Sound",Character)
  1563. sick.SoundId = "rbxassetid://408178043"
  1564. sick.Looped = true
  1565. sick.Pitch = 1
  1566. sick.Volume = 10
  1567. sick:Play()
  1568. local sick2 = Instance.new("Sound",Character)
  1569. sick2.SoundId = "rbxassetid://1143358136"
  1570. sick2.Looped = true
  1571. sick2.Pitch = 1
  1572. sick2.Volume = 10
  1573. -------------------Sprint-----------------8
  1574. local mouse = game.Players.LocalPlayer:GetMouse()
  1575. local running = false
  1576.  
  1577. function getTool()
  1578. for _, kid in ipairs(script.Parent:GetChildren()) do
  1579. if kid.className == "Tool" then return kid end
  1580. end
  1581. return nil
  1582. end
  1583.  
  1584.  
  1585. mouse.KeyDown:connect(function (key) -- Run function
  1586. key = string.lower(key)
  1587. if string.byte(key) == 48 then
  1588. running = true
  1589. local keyConnection = mouse.KeyUp:connect(function (key)
  1590. if string.byte(key) == 48 then
  1591. running = false
  1592. end
  1593. end)
  1594. for i = 1,5 do
  1595. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  1596. wait()
  1597. end
  1598. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
  1599. repeat wait () until running == false
  1600. keyConnection:disconnect()
  1601. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  1602. for i = 1,5 do
  1603. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  1604. wait()
  1605. end
  1606. end
  1607. end)
  1608. -------------------hepefully
  1609.  
  1610. -------------Head---------------------------------
  1611. char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
  1612.  
  1613. Head = Instance.new("Part", char)
  1614. Head.Size = Vector3.new(1,1,1)
  1615. Headmesh = Instance.new("SpecialMesh", Head)
  1616. Headmesh.MeshId = "rbxassetid://167549828"
  1617. Headmesh.Scale = Vector3.new(1,1,1)
  1618. Headmesh.TextureId = "rbxassetid://62509661"
  1619. Head.Transparency = 0
  1620. Head.CanCollide = false
  1621. Head.Name = "plrHead"
  1622. Head.Anchored = false
  1623. Head.BrickColor = BrickColor.new("Really black")
  1624. Weld = Instance.new("Weld", char)
  1625. Weld.Part0 = char["Head"]
  1626. Weld.Part1 = Head
  1627. Weld.C1 = CFrame.new(0,-.4,0)*CFrame.Angles(0,(0),0)
  1628. ---------------------------------------------------
  1629. ------------Shoe---------------------------------
  1630. char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  1631.  
  1632. lshoe = Instance.new("Part", char)
  1633. lshoe.Size = Vector3.new(1,1,1)
  1634. lshoemesh = Instance.new("SpecialMesh", lshoe)
  1635. lshoemesh.MeshId = "rbxassetid://108884514"
  1636. lshoemesh.Scale = Vector3.new(.85,.8,.6)
  1637. lshoemesh.TextureId = "rbxassetid://133573871"
  1638. lshoe.Transparency = 0
  1639. lshoe.CanCollide = false
  1640. lshoe.Name = "plrlshoe"
  1641. lshoe.Anchored = false
  1642. lshoe.BrickColor = BrickColor.new("Really black")
  1643. Weld = Instance.new("Weld", char)
  1644. Weld.Part0 = char["Left Leg"]
  1645. Weld.Part1 = lshoe
  1646. Weld.C1 = CFrame.new(0, .65, .1)*CFrame.Angles(0,(0),0)
  1647. ------------Shoe---------------------------------
  1648. char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  1649.  
  1650. rshoe = Instance.new("Part", char)
  1651. rshoe.Size = Vector3.new(1,1,1)
  1652. rshoemesh = Instance.new("SpecialMesh", rshoe)
  1653. rshoemesh.MeshId = "rbxassetid://108884514"
  1654. rshoemesh.Scale = Vector3.new(.85,.8,.6)
  1655. rshoemesh.TextureId = "rbxassetid://133573871"
  1656. rshoe.Transparency = 0
  1657. rshoe.CanCollide = false
  1658. rshoe.Name = "plrshoe"
  1659. rshoe.Anchored = false
  1660. rshoe.BrickColor = BrickColor.new("Really black")
  1661. Weld = Instance.new("Weld", char)
  1662. Weld.Part0 = char["Right Leg"]
  1663. Weld.Part1 = rshoe
  1664. Weld.C1 = CFrame.new(0, .65, .1)*CFrame.Angles(0,(0),0)
  1665. ------------lBand---------------------------------
  1666. --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  1667.  
  1668. lBand = Instance.new("Part", char)
  1669. lBand.Size = Vector3.new(1,1,1)
  1670. lBandmesh = Instance.new("SpecialMesh", lBand)
  1671. lBandmesh.MeshId = "rbxassetid://1133664332"
  1672. lBandmesh.Scale = Vector3.new(.27,.4,.27)
  1673. lBandmesh.TextureId = "rbxassetid://652553983"
  1674. lBand.Transparency = 0
  1675. lBand.CanCollide = false
  1676. lBand.Name = "plrBand"
  1677. lBand.Anchored = false
  1678. lBand.BrickColor = BrickColor.new("Really black")
  1679. reld = Instance.new("Weld", char)
  1680. reld.Part0 = char["Left Arm"]
  1681. reld.Part1 = lBand
  1682. reld.C1 = CFrame.new(0,0.3,0)*CFrame.Angles(0,0,0)
  1683. ------------rBand---------------------------------
  1684. --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  1685.  
  1686. rBand = Instance.new("Part", char)
  1687. rBand.Size = Vector3.new(1,1,1)
  1688. rBandmesh = Instance.new("SpecialMesh", rBand)
  1689. rBandmesh.MeshId = "rbxassetid://1133664332"
  1690. rBandmesh.Scale = Vector3.new(.27,.4,.27)
  1691. rBandmesh.TextureId = "rbxassetid://652553983"
  1692. rBand.Transparency = 0
  1693. rBand.CanCollide = false
  1694. rBand.Name = "plrBand"
  1695. rBand.Anchored = false
  1696. rBand.BrickColor = BrickColor.new("Really black")
  1697. reld = Instance.new("Weld", char)
  1698. reld.Part0 = char["Right Arm"]
  1699. reld.Part1 = rBand
  1700. reld.C1 = CFrame.new(0,0.3,0)*CFrame.Angles(0,0,0)
  1701. ------------lFist---------------------------------
  1702. --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  1703.  
  1704. rFist = Instance.new("Part", char)
  1705. rFist.Size = Vector3.new(1,1,1)
  1706. rFistmesh = Instance.new("SpecialMesh", rFist)
  1707. rFistmesh.MeshId = "rbxassetid://925545573"
  1708. rFistmesh.Scale = Vector3.new(.19,.17,.2)
  1709. rFistmesh.TextureId = "rbxassetid://542821899"
  1710. rFist.Transparency = 0
  1711. rFist.CanCollide = false
  1712. rFist.Name = "plrFist"
  1713. rFist.Anchored = false
  1714. rFist.BrickColor = BrickColor.new("Really black")
  1715. reld = Instance.new("Weld", char)
  1716. reld.Part0 = char["Torso"]
  1717. reld.Part1 = rFist
  1718. reld.C1 = CFrame.new(0,0,-.2)*CFrame.Angles(0,0,0)
  1719. -------------Head---------------------------------
  1720. char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
  1721.  
  1722. Head = Instance.new("Part", char)
  1723. Head.Size = Vector3.new(1,1,1)
  1724. Headmesh = Instance.new("SpecialMesh", Head)
  1725. Headmesh.MeshId = "rbxassetid://19380204"
  1726. Headmesh.Scale = Vector3.new(1,1,1)
  1727. Headmesh.TextureId = "rbxassetid://133573871"
  1728. Head.Transparency = 0
  1729. Head.CanCollide = false
  1730. Head.Name = "plrHead"
  1731. Head.Anchored = false
  1732. Head.BrickColor = BrickColor.new("Really black")
  1733. Weld = Instance.new("Weld", char)
  1734. Weld.Part0 = char["Head"]
  1735. Weld.Part1 = Head
  1736. Weld.C1 = CFrame.new(0,-0.2,0.3)*CFrame.Angles(0,(0),0)
  1737. for _, a in pairs(char:children()) do
  1738. if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Pants' or a:IsA'Shirt' then
  1739. a:Destroy()
  1740. end
  1741. end
  1742. ------------------------Trail----------------------------
  1743. --[[Nemessis.Inc]]--
  1744. --[[Nemessis.Inc Members]]--
  1745. --[[Ki_tchen [Owner] ]]--
  1746. --[[Mewy23 CO-OWNER]]--
  1747. --[[Unknown]]--
  1748. --[[Unknown]]--
  1749. --[[Unknown]]--
  1750. --[[Unknown]]--
  1751. --[[Unknown]]--
  1752. --[[Unknown]]--
  1753. --[[Unknown]]--
  1754.  
  1755. --[[Every Script we release a new member will be shown.]]--
  1756.  
  1757. --[[Nemessis.Inc Out.]]--
  1758.  
  1759. wait(1 / 60)
  1760. -- Trail Made by Gallizur
  1761. --R15 Compatible in TrailSettings
  1762. local Player = game:GetService('Players').LocalPlayer
  1763. repeat wait() until Player.Character
  1764. local Character = Player.Character
  1765.  
  1766. --All The Settings for Trails in this Script
  1767. TrailSettings = {
  1768. Lifetime = 0.5,
  1769. Texture = 'rbxassetid://242550536',
  1770. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  1771. Color1 = ColorSequence.new(BrickColor.new('White').Color,BrickColor.new('').Color),
  1772. Color2 = ColorSequence.new(BrickColor.new('White').Color,BrickColor.new('').Color),
  1773. AllBody = true,
  1774. UpperBodyOnly = false,
  1775. LowerBodyOnly = false,
  1776. Accessories = false,
  1777. Extras = true,
  1778. R15 = false, --Change to true if you're using R15
  1779. R15Parts = {
  1780. 'UpperTorso',
  1781. 'LowerTorso',
  1782. }
  1783. }
  1784.  
  1785. local Trail; --Making other Trails uses this in this Script
  1786.  
  1787. --UpperBody Function
  1788. UpperBody = function()
  1789. if TrailSettings.R15 == false then
  1790. A0 = Instance.new('Attachment',Character.Torso)
  1791. A1 = Instance.new('Attachment',Character.Head)
  1792. A2 = Instance.new('Attachment',Character['Right Arm'])
  1793. A3 = Instance.new('Attachment',Character['Left Arm'])
  1794. Trail = Instance.new('Trail',Character)
  1795. Trail.Attachment0 = A0
  1796. Trail.Attachment1 = A1
  1797. Trail.Texture = TrailSettings.Texture
  1798. Trail.Color = TrailSettings.Color1
  1799. Trail.Lifetime = TrailSettings.Lifetime
  1800. local Trail2 = Trail:Clone()
  1801. Trail2.Parent = Character
  1802. Trail2.Attachment1 = A2
  1803. local Trail3 = Trail:Clone()
  1804. Trail3.Parent = Character
  1805. Trail3.Attachment1 = A3
  1806. local Trail6 = Trail:Clone()
  1807. Trail6.Parent = Character
  1808. Trail6.Attachment0 = A1
  1809. Trail6.Attachment1 = A2
  1810. local Trail7 = Trail:Clone()
  1811. Trail7.Parent = Character
  1812. Trail7.Attachment0 = A1
  1813. Trail7.Attachment1 = A3
  1814. else
  1815. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  1816. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  1817. A1 = Instance.new('Attachment',Character.Head)
  1818. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  1819. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  1820. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  1821. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  1822. Trail = Instance.new('Trail',Character)
  1823. Trail.Attachment0 = A0
  1824. Trail.Attachment1 = A1
  1825. Trail.Texture = TrailSettings.Texture
  1826. Trail.Color = TrailSettings.Color1
  1827. Trail.Lifetime = TrailSettings.Lifetime
  1828. local Trail2 = Trail:Clone()
  1829. Trail2.Parent = Character
  1830. Trail2.Attachment1 = A2
  1831. local Trail3 = Trail:Clone()
  1832. Trail3.Parent = Character
  1833. Trail3.Attachment1 = A3
  1834. local Trail6 = Trail:Clone()
  1835. Trail6.Parent = Character
  1836. Trail6.Attachment0 = A1
  1837. Trail6.Attachment1 = A2
  1838. local Trail7 = Trail:Clone()
  1839. Trail7.Parent = Character
  1840. Trail7.Attachment0 = A1
  1841. Trail7.Attachment1 = A3
  1842. --R15 Trails
  1843. local Trail1R = Trail:Clone()
  1844. Trail1R.Parent = Character
  1845. Trail1R.Attachment1 = A2R
  1846. local Trail2R = Trail:Clone()
  1847. Trail2R.Parent = Character
  1848. Trail2R.Attachment1 = A3R
  1849. local Trail6R = Trail:Clone()
  1850. Trail6.Parent = Character
  1851. Trail6.Attachment0 = A1
  1852. Trail6.Attachment1 = A2R
  1853. local Trail7R = Trail:Clone()
  1854. Trail7.Parent = Character
  1855. Trail7.Attachment0 = A1
  1856. Trail7.Attachment1 = A3R
  1857. end
  1858. end
  1859.  
  1860. --Lower Body Function
  1861. LowerBody = function()
  1862. if TrailSettings.R15 == false then
  1863. A4 = Instance.new('Attachment',Character['Right Leg'])
  1864. A5 = Instance.new('Attachment',Character['Left Leg'])
  1865. local Trail4 = Trail:Clone()
  1866. Trail4.Parent = Character
  1867. Trail4.Attachment1 = A4
  1868. local Trail5 = Trail:Clone()
  1869. Trail5.Parent = Character
  1870. Trail5.Attachment1 = A5
  1871. local Trail8 = Trail:Clone()
  1872. Trail8.Parent = Character
  1873. Trail8.Attachment0 = A2
  1874. Trail8.Attachment1 = A4
  1875. Trail8.Color = TrailSettings.Color2
  1876. local Trail9 = Trail:Clone()
  1877. Trail9.Parent = Character
  1878. Trail9.Attachment0 = A3
  1879. Trail9.Attachment1 = A5
  1880. Trail9.Color = TrailSettings.Color2
  1881. local FT = Trail:Clone()
  1882. FT.Parent = Character
  1883. FT.Attachment0 = A4
  1884. FT.Attachment1 = A5
  1885. FT.Color = TrailSettings.Color2
  1886. else
  1887. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  1888. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  1889. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  1890. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  1891. local Trail4 = Trail:Clone()
  1892. Trail4.Parent = Character
  1893. Trail4.Attachment1 = A4
  1894. local Trail5 = Trail:Clone()
  1895. Trail5.Parent = Character
  1896. Trail5.Attachment1 = A5
  1897. local Trail8 = Trail:Clone()
  1898. Trail8.Parent = Character
  1899. Trail8.Attachment0 = A2
  1900. Trail8.Attachment1 = A4
  1901. Trail8.Color = TrailSettings.Color2
  1902. local Trail9 = Trail:Clone()
  1903. Trail9.Parent = Character
  1904. Trail9.Attachment0 = A3
  1905. Trail9.Attachment1 = A5
  1906. Trail9.Color = TrailSettings.Color2
  1907. local FT = Trail:Clone()
  1908. FT.Parent = Character
  1909. FT.Attachment0 = A4
  1910. FT.Attachment1 = A5
  1911. FT.Color = TrailSettings.Color2
  1912. --R15 Trails
  1913. local Trail3R = Trail:Clone()
  1914. Trail3R.Parent = Character
  1915. Trail3R.Attachment1 = A4R
  1916. local Trail4R = Trail:Clone()
  1917. Trail4R.Parent = Character
  1918. Trail4R.Attachment1 = A5R
  1919. local Trail8 = Trail:Clone()
  1920. Trail8.Parent = Character
  1921. Trail8.Attachment0 = A2R
  1922. Trail8.Attachment1 = A4R
  1923. Trail8.Color = TrailSettings.Color2
  1924. local Trail9 = Trail:Clone()
  1925. Trail9.Parent = Character
  1926. Trail9.Attachment0 = A3R
  1927. Trail9.Attachment1 = A5R
  1928. Trail9.Color = TrailSettings.Color2
  1929. local FT2R = Trail:Clone()
  1930. FT2R.Parent = Character
  1931. FT2R.Attachment0 = A4R
  1932. FT2R.Attachment1 = A5R
  1933. FT2R.Color = TrailSettings.Color2
  1934. end
  1935. end
  1936.  
  1937. --All Body Function calling Both Functions
  1938. AllBody = function()
  1939. UpperBody()
  1940. LowerBody()
  1941. end
  1942.  
  1943. --Checking to make sure that Only some Variables are Selected else do All Body
  1944. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  1945. TrailSettings.UpperBodyOnly = false
  1946. TrailSettings.LowerBodyOnly = false
  1947. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  1948. TrailSettings.UpperBodyOnly = false
  1949. TrailSettings.LowerBodyOnly = false
  1950. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  1951. TrailSettings.UpperBodyOnly = false
  1952. TrailSettings.LowerBodyOnly = false
  1953. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  1954. TrailSettings.AllBody = true
  1955. TrailSettings.UpperBodyOnly = false
  1956. TrailSettings.LowerBodyOnly = false
  1957. end
  1958.  
  1959. --Call Trail Functions
  1960. if TrailSettings.UpperBodyOnly == true then
  1961. UpperBody()
  1962. print('Called Upper Body Trail')
  1963. elseif TrailSettings.LowerBodyOnly == true then
  1964. LowerBody()
  1965. print('Called Lower Body Trail')
  1966. elseif TrailSettings.AllBody == true then
  1967. AllBody()
  1968. print('Called Full Body Trail')
  1969. end
  1970.  
  1971. --Trails for Accessories
  1972. if TrailSettings.Accessories == true then
  1973. for Index,Item in pairs(Character:GetChildren()) do
  1974. if Item:IsA'Accessory' then
  1975. local AA = Instance.new('Attachment',Item.Handle)
  1976. local ATrail = Trail:Clone()
  1977. ATrail.Parent = Character
  1978. ATrail.Attachment1 = AA
  1979. end
  1980. end
  1981. end
  1982.  
  1983. --Extras
  1984. if TrailSettings.Extras == true then
  1985. --Making an Invisible Platform Part
  1986. local a = Instance.new('Part',Character)
  1987. a.CanCollide = false
  1988. a.Size = Vector3.new(2,.2,2)
  1989. a.Transparency = 1
  1990.  
  1991. --Constantly putting it under your feet
  1992. if TrailSettings.R15 == false then
  1993. spawn(function()
  1994. game:GetService('RunService').RenderStepped:connect(function()
  1995. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  1996. end)
  1997. end)
  1998. else
  1999. spawn(function()
  2000. game:GetService('RunService').RenderStepped:connect(function()
  2001. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  2002. end)
  2003. end)
  2004. end
  2005.  
  2006. --Make a Trail from both feet to the Platform
  2007. spawn(function()
  2008. repeat wait() until Trail
  2009. local AB = Instance.new('Attachment',a)
  2010. local ABT = Trail:Clone()
  2011. ABT.Parent = Character
  2012. ABT.Attachment0 = A4
  2013. ABT.Attachment1 = AB
  2014. ABT.Color = TrailSettings.Color2
  2015. local ABT2 = Trail:Clone()
  2016. ABT2.Parent = Character
  2017. ABT2.Attachment0 = A5
  2018. ABT2.Attachment1 = AB
  2019. ABT2.Color = TrailSettings.Color2
  2020. end)
  2021. end
  2022.  
  2023. Effects = { }
  2024. local Player = game.Players.localPlayer
  2025. local Character = Player.Character
  2026. local Humanoid = Character.Humanoid
  2027. local Mouse = Player:GetMouse()
  2028. local LeftArm = Character["Left Arm"]
  2029. local RightArm = Character["Right Arm"]
  2030. local LeftLeg = Character["Left Leg"]
  2031. local RightLeg = Character["Right Leg"]
  2032. local Head = Character.Head
  2033. local Torso = Character.Torso
  2034. local Camera = game.Workspace.CurrentCamera
  2035. local RootPart = Character.HumanoidRootPart
  2036. local RootJoint = RootPart.RootJoint
  2037. local attack = false
  2038. local Anim = 'Idle'
  2039. local attacktype = 1
  2040. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2041. local velocity = RootPart.Velocity.y
  2042. local sine = 0
  2043. local change = 1
  2044. local Create = LoadLibrary("RbxUtility").Create
  2045. local sick = Instance.new("Sound",Character.Torso)
  2046. sick.SoundId = "rbxassetid://"
  2047. sick.Looped = true
  2048. sick.Pitch = 1
  2049. sick.Volume = 1
  2050. sick:Play()
  2051.  
  2052. local m = Create("Model"){
  2053. Parent = Character,
  2054. Name = "WeaponModel",
  2055. }
  2056.  
  2057. Humanoid.Animator.Parent = nil
  2058. Character.Animate.Parent = nil
  2059.  
  2060. local newMotor = function(part0, part1, c0, c1)
  2061. local w = Create('Motor'){
  2062. Parent = part0,
  2063. Part0 = part0,
  2064. Part1 = part1,
  2065. C0 = c0,
  2066. C1 = c1,
  2067. }
  2068. return w
  2069. end
  2070.  
  2071. function clerp(a, b, t)
  2072. return a:lerp(b, t)
  2073. end
  2074.  
  2075. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  2076. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2077.  
  2078. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  2079. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  2080. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  2081. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  2082. RootJoint.C1 = CFrame.new(0, 0, 0)
  2083. RootJoint.C0 = CFrame.new(0, 0, 0)
  2084. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  2085. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  2086.  
  2087. local rarmc1 = RW.C1
  2088. local larmc1 = LW.C1
  2089. local rlegc1 = RH.C1
  2090. local llegc1 = LH.C1
  2091.  
  2092. local resetc1 = false
  2093.  
  2094. function PlayAnimationFromTable(table, speed, bool)
  2095. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  2096. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  2097. RW.C0 = clerp(RW.C0, table[3], speed)
  2098. LW.C0 = clerp(LW.C0, table[4], speed)
  2099. RH.C0 = clerp(RH.C0, table[5], speed)
  2100. LH.C0 = clerp(LH.C0, table[6], speed)
  2101. if bool == true then
  2102. if resetc1 == false then
  2103. resetc1 = true
  2104. RootJoint.C1 = RootJoint.C1
  2105. Torso.Neck.C1 = Torso.Neck.C1
  2106. RW.C1 = rarmc1
  2107. LW.C1 = larmc1
  2108. RH.C1 = rlegc1
  2109. LH.C1 = llegc1
  2110. end
  2111. end
  2112. end
  2113.  
  2114. ArtificialHB = Create("BindableEvent", script){
  2115. Parent = script,
  2116. Name = "Heartbeat",
  2117. }
  2118.  
  2119. script:WaitForChild("Heartbeat")
  2120.  
  2121. frame = 1 / 30
  2122. tf = 0
  2123. allowframeloss = false
  2124. tossremainder = false
  2125. lastframe = tick()
  2126. script.Heartbeat:Fire()
  2127.  
  2128. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2129. tf = tf + s
  2130. if tf >= frame then
  2131. if allowframeloss then
  2132. script.Heartbeat:Fire()
  2133. lastframe = tick()
  2134. else
  2135. for i = 1, math.floor(tf / frame) do
  2136. script.Heartbeat:Fire()
  2137. end
  2138. lastframe = tick()
  2139. end
  2140. if tossremainder then
  2141. tf = 0
  2142. else
  2143. tf = tf - frame * math.floor(tf / frame)
  2144. end
  2145. end
  2146. end)
  2147.  
  2148. function swait(num)
  2149. if num == 0 or num == nil then
  2150. ArtificialHB.Event:wait()
  2151. else
  2152. for i = 0, num do
  2153. ArtificialHB.Event:wait()
  2154. end
  2155. end
  2156. end
  2157.  
  2158. function RemoveOutlines(part)
  2159. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2160. end
  2161.  
  2162. CFuncs = {
  2163. Part = {
  2164. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2165. local Part = Create("Part"){
  2166. Parent = Parent,
  2167. Reflectance = Reflectance,
  2168. Transparency = Transparency,
  2169. CanCollide = false,
  2170. Locked = true,
  2171. BrickColor = BrickColor.new(tostring(BColor)),
  2172. Name = Name,
  2173. Size = Size,
  2174. Material = Material,
  2175. }
  2176. RemoveOutlines(Part)
  2177. return Part
  2178. end;
  2179. };
  2180.  
  2181. Mesh = {
  2182. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2183. local Msh = Create(Mesh){
  2184. Parent = Part,
  2185. Offset = OffSet,
  2186. Scale = Scale,
  2187. }
  2188. if Mesh == "SpecialMesh" then
  2189. Msh.MeshType = MeshType
  2190. Msh.MeshId = MeshId
  2191. end
  2192. return Msh
  2193. end;
  2194. };
  2195.  
  2196. Weld = {
  2197. Create = function(Parent, Part0, Part1, C0, C1)
  2198. local Weld = Create("Weld"){
  2199. Parent = Parent,
  2200. Part0 = Part0,
  2201. Part1 = Part1,
  2202. C0 = C0,
  2203. C1 = C1,
  2204. }
  2205. return Weld
  2206. end;
  2207. };
  2208.  
  2209. Sound = {
  2210. Create = function(id, par, vol, pit)
  2211. coroutine.resume(coroutine.create(function()
  2212. local Sound = Create("Sound"){
  2213. Volume = vol,
  2214. Pitch = pit or 1,
  2215. SoundId = "rbxassetid://" .. id,
  2216. Parent = par or workspace,
  2217. }
  2218. Sound:play()
  2219. game:GetService("Debris"):AddItem(Sound, 10)
  2220. end))
  2221. end;
  2222. };
  2223.  
  2224. Decal = {
  2225. Create = function(Color, Texture, Transparency, Name, Parent)
  2226. local Decal = Create("Decal"){
  2227. Color3 = Color,
  2228. Texture = "rbxassetid://" .. Texture,
  2229. Transparency = Transparency,
  2230. Name = Name,
  2231. Parent = Parent,
  2232. }
  2233. return Decal
  2234. end;
  2235. };
  2236.  
  2237. BillboardGui = {
  2238. Create = function(Parent, Image, Position, Size)
  2239. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  2240. BillPar.CFrame = CFrame.new(Position)
  2241. local Bill = Create("BillboardGui"){
  2242. Parent = BillPar,
  2243. Adornee = BillPar,
  2244. Size = UDim2.new(1, 0, 1, 0),
  2245. SizeOffset = Vector2.new(Size, Size),
  2246. }
  2247. local d = Create("ImageLabel", Bill){
  2248. Parent = Bill,
  2249. BackgroundTransparency = 1,
  2250. Size = UDim2.new(1, 0, 1, 0),
  2251. Image = "rbxassetid://" .. Image,
  2252. }
  2253. return BillPar
  2254. end
  2255. };
  2256.  
  2257. ParticleEmitter = {
  2258. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  2259. local Particle = Create("ParticleEmitter"){
  2260. Parent = Parent,
  2261. Color = ColorSequence.new(Color1, Color2),
  2262. LightEmission = LightEmission,
  2263. Size = Size,
  2264. Texture = Texture,
  2265. Transparency = Transparency,
  2266. ZOffset = ZOffset,
  2267. Acceleration = Accel,
  2268. Drag = Drag,
  2269. LockedToPart = LockedToPart,
  2270. VelocityInheritance = VelocityInheritance,
  2271. EmissionDirection = EmissionDirection,
  2272. Enabled = Enabled,
  2273. Lifetime = LifeTime,
  2274. Rate = Rate,
  2275. Rotation = Rotation,
  2276. RotSpeed = RotSpeed,
  2277. Speed = Speed,
  2278. VelocitySpread = VelocitySpread,
  2279. }
  2280. return Particle
  2281. end;
  2282. };
  2283.  
  2284. CreateTemplate = {
  2285.  
  2286. };
  2287. }
  2288.  
  2289. function rayCast(Position, Direction, Range, Ignore)
  2290. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  2291. end
  2292.  
  2293. FindNearestTorso = function(pos)
  2294. local list = (game.Workspace:children())
  2295. local torso = nil
  2296. local dist = 1000
  2297. local temp, human, temp2 = nil, nil, nil
  2298. for x = 1, #list do
  2299. temp2 = list[x]
  2300. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  2301. temp = temp2:findFirstChild("Torso")
  2302. human = temp2:findFirstChild("Humanoid")
  2303. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2304. local dohit = true
  2305. if dohit == true then
  2306. torso = temp
  2307. dist = (temp.Position - pos).magnitude
  2308. end
  2309. end
  2310. end
  2311. end
  2312. return torso, dist
  2313. end
  2314.  
  2315. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2316. if hit.Parent == nil then
  2317. return
  2318. end
  2319. local h = hit.Parent:FindFirstChild("Humanoid")
  2320. for _, v in pairs(hit.Parent:children()) do
  2321. if v:IsA("Humanoid") then
  2322. h = v
  2323. end
  2324. end
  2325. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2326. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  2327. if hit.Parent.DebounceHit.Value == true then
  2328. return
  2329. end
  2330. end
  2331. local c = Create("ObjectValue"){
  2332. Name = "creator",
  2333. Value = game:service("Players").LocalPlayer,
  2334. Parent = h,
  2335. }
  2336. game:GetService("Debris"):AddItem(c, .5)
  2337. if HitSound ~= nil and HitPitch ~= nil then
  2338. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2339. end
  2340. local Damage = math.random(minim, maxim)
  2341. local blocked = false
  2342. local block = hit.Parent:findFirstChild("Block")
  2343. if block ~= nil then
  2344. if block.className == "IntValue" then
  2345. if block.Value > 0 then
  2346. blocked = true
  2347. block.Value = block.Value - 1
  2348. print(block.Value)
  2349. end
  2350. end
  2351. end
  2352. if blocked == false then
  2353. h.Health = h.Health - Damage
  2354. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  2355. else
  2356. h.Health = h.Health - (Damage / 2)
  2357. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  2358. end
  2359. if Type == "Knockdown" then
  2360. local hum = hit.Parent.Humanoid
  2361. hum.PlatformStand = true
  2362. coroutine.resume(coroutine.create(function(HHumanoid)
  2363. swait(1)
  2364. HHumanoid.PlatformStand = false
  2365. end), hum)
  2366. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  2367. local bodvol = Create("BodyVelocity"){
  2368. velocity = angle * knockback,
  2369. P = 5000,
  2370. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  2371. Parent = hit,
  2372. }
  2373. local rl = Create("BodyAngularVelocity"){
  2374. P = 3000,
  2375. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2376. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2377. Parent = hit,
  2378. }
  2379. game:GetService("Debris"):AddItem(bodvol, .5)
  2380. game:GetService("Debris"):AddItem(rl, .5)
  2381. elseif Type == "Normal" then
  2382. local vp = Create("BodyVelocity"){
  2383. P = 500,
  2384. maxForce = Vector3.new(math.huge, 0, math.huge),
  2385. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  2386. }
  2387. if knockback > 0 then
  2388. vp.Parent = hit.Parent.Torso
  2389. end
  2390. game:GetService("Debris"):AddItem(vp, .5)
  2391. elseif Type == "Up" then
  2392. local bodyVelocity = Create("BodyVelocity"){
  2393. velocity = Vector3.new(0, 20, 0),
  2394. P = 5000,
  2395. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  2396. Parent = hit,
  2397. }
  2398. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  2399. elseif Type == "DarkUp" then
  2400. coroutine.resume(coroutine.create(function()
  2401. for i = 0, 1, 0.1 do
  2402. swait()
  2403. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  2404. end
  2405. end))
  2406. local bodyVelocity = Create("BodyVelocity"){
  2407. velocity = Vector3.new(0, 20, 0),
  2408. P = 5000,
  2409. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  2410. Parent = hit,
  2411. }
  2412. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2413. elseif Type == "Snare" then
  2414. local bp = Create("BodyPosition"){
  2415. P = 2000,
  2416. D = 100,
  2417. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2418. position = hit.Parent.Torso.Position,
  2419. Parent = hit.Parent.Torso,
  2420. }
  2421. game:GetService("Debris"):AddItem(bp, 1)
  2422. elseif Type == "Freeze" then
  2423. local BodPos = Create("BodyPosition"){
  2424. P = 50000,
  2425. D = 1000,
  2426. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2427. position = hit.Parent.Torso.Position,
  2428. Parent = hit.Parent.Torso,
  2429. }
  2430. local BodGy = Create("BodyGyro") {
  2431. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  2432. P = 20e+003,
  2433. Parent = hit.Parent.Torso,
  2434. cframe = hit.Parent.Torso.CFrame,
  2435. }
  2436. hit.Parent.Torso.Anchored = true
  2437. coroutine.resume(coroutine.create(function(Part)
  2438. swait(1.5)
  2439. Part.Anchored = false
  2440. end), hit.Parent.Torso)
  2441. game:GetService("Debris"):AddItem(BodPos, 3)
  2442. game:GetService("Debris"):AddItem(BodGy, 3)
  2443. end
  2444. local debounce = Create("BoolValue"){
  2445. Name = "DebounceHit",
  2446. Parent = hit.Parent,
  2447. Value = true,
  2448. }
  2449. game:GetService("Debris"):AddItem(debounce, Delay)
  2450. c = Create("ObjectValue"){
  2451. Name = "creator",
  2452. Value = Player,
  2453. Parent = h,
  2454. }
  2455. game:GetService("Debris"):AddItem(c, .5)
  2456. end
  2457. end
  2458.  
  2459. function ShowDamage(Pos, Text, Time, Color)
  2460. local Rate = (1 / 30)
  2461. local Pos = (Pos or Vector3.new(0, 0, 0))
  2462. local Text = (Text or "")
  2463. local Time = (Time or 2)
  2464. local Color = (Color or Color3.new(1, 0, 1))
  2465. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2466. EffectPart.Anchored = true
  2467. local BillboardGui = Create("BillboardGui"){
  2468. Size = UDim2.new(3, 0, 3, 0),
  2469. Adornee = EffectPart,
  2470. Parent = EffectPart,
  2471. }
  2472. local TextLabel = Create("TextLabel"){
  2473. BackgroundTransparency = 1,
  2474. Size = UDim2.new(1, 0, 1, 0),
  2475. Text = Text,
  2476. Font = "SciFi",
  2477. TextColor3 = Color,
  2478. TextScaled = true,
  2479. Parent = BillboardGui,
  2480. }
  2481. game.Debris:AddItem(EffectPart, (Time))
  2482. EffectPart.Parent = game:GetService("Workspace")
  2483. delay(0, function()
  2484. local Frames = (Time / Rate)
  2485. for Frame = 1, Frames do
  2486. wait(Rate)
  2487. local Percent = (Frame / Frames)
  2488. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2489. TextLabel.TextTransparency = Percent
  2490. end
  2491. if EffectPart and EffectPart.Parent then
  2492. EffectPart:Destroy()
  2493. end
  2494. end)
  2495. end
  2496.  
  2497. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  2498. for _, c in pairs(workspace:children()) do
  2499. local hum = c:findFirstChild("Humanoid")
  2500. if hum ~= nil then
  2501. local head = c:findFirstChild("Torso")
  2502. if head ~= nil then
  2503. local targ = head.Position - Part.Position
  2504. local mag = targ.magnitude
  2505. if mag <= Magnitude and c.Name ~= Player.Name then
  2506. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  2507. end
  2508. end
  2509. end
  2510. end
  2511. end
  2512. local s = Instance.new('Shirt', char)
  2513. s.ShirtTemplate = "rbxassetid://520801898"
  2514. local p = Instance.new('Pants', char)
  2515. p.PantsTemplate = "rbxassetid://482320029"
  2516.  
  2517. ----------------------------------------------------
  2518. definition = 5
  2519. bc = {}
  2520. bezierparts = {}
  2521. function NoOutline(Part)
  2522. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2523. end
  2524. function draw(p,d)
  2525. for i=1,d do
  2526. local t = i/d
  2527. bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
  2528. end
  2529.  
  2530. Spawn(function() fat.Event:wait()
  2531. for i,v in pairs(bezierparts) do
  2532. v.Transparency = 1
  2533. end
  2534. end)
  2535. end
  2536. --local points = {larm.Position,rarn.Position,invisipart.Position}
  2537. --draw(points,definition)
  2538.  
  2539. fat.Event:wait()
  2540.  
  2541. rpart = Instance.new("Part",rarm)
  2542. NoOutline(rpart)
  2543. rpart.Anchored = false
  2544. rpart.Size = Vector3.new(1,1,1)
  2545. rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2546. rpart.Transparency = 1
  2547. newWeld(rarm, rpart, 0, 0, 0)
  2548. rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  2549. lpart = Instance.new("Part",larm)
  2550. NoOutline(lpart)
  2551. lpart.Anchored = false
  2552. lpart.Size = Vector3.new(1,1,1)
  2553. lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2554. lpart.Transparency = 1
  2555. newWeld(larm, lpart, 0, 0, 0)
  2556. lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  2557. invisipart = Instance.new("Part",torso)
  2558. NoOutline(invisipart)
  2559. invisipart.Anchored = false
  2560. invisipart.Size = Vector3.new(1,1,1)
  2561. invisipart.Transparency = 1
  2562. invisipart.CFrame = torso.CFrame
  2563. newWeld(torso, invisipart, 0, 0, 0)
  2564. invisipart.Weld.C1 = CFrame.new(0, 0, 6)
  2565. table.insert(bezierparts, rpart)
  2566. table.insert(bezierparts, lpart)
  2567. table.insert(bezierparts, invisipart)
  2568. for i = 1, 40 do
  2569. local points = {lpart.Position,invisipart.Position,rpart.Position}
  2570. draw(points,definition)
  2571. --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
  2572. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
  2573. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2574. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
  2575. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2576. 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)
  2577. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  2578. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2579. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2580. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
  2581. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  2582. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
  2583. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  2584. if Debounces.on == false then
  2585. break
  2586. end
  2587. fat.Event:wait()
  2588. end
  2589. for i,v in pairs(bezierparts) do
  2590. v:Destroy()
  2591. end
  2592. --draw(points,definition)
  2593. if Debounces.CanAttack == false then
  2594. Debounces.CanAttack = true
  2595. Debounces.NoIdl = false
  2596. Debounces.on = false
  2597. end
  2598.  
  2599. ----------------------------------------------------
  2600. ----------------------------------------------------
  2601.  
  2602. ----------------------------------------------------
  2603. ----------------------------------------------------
  2604. mouse.KeyDown:connect(function(key)
  2605. if key == "j" then
  2606. if Debounces.CanJoke == true then
  2607. Debounces.CanJoke = false
  2608. z = Instance.new("Sound",hed)
  2609. z.SoundId = "rbxassetid://415859013"
  2610. z.Pitch = pitches[math.random(1,#pitches)]
  2611. z.Volume = 1
  2612. wait()
  2613. z:Play()
  2614. wait(2)
  2615. z:Destroy()
  2616. if Debounces.CanJoke == false then
  2617. Debounces.CanJoke = true
  2618. end
  2619. end
  2620. end
  2621. end)
  2622.  
  2623. ----------------------------------------------------
  2624. Grab = false
  2625. mouse.KeyDown:connect(function(key)
  2626. if key == "e" then
  2627. Debounces.on = true
  2628. Debounces.NoIdl = true
  2629. Debounces.ks = true
  2630. if Grab == false then
  2631. gp = nil
  2632. for i = 1, 20 do
  2633. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  2634. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2635. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
  2636. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2637. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  2638. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2639. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  2640. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2641. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
  2642. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2643. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
  2644. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2645. if Debounces.on == false then break end
  2646. fat.Event:wait()
  2647. end
  2648. con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
  2649. ht = hit.Parent
  2650. for i,v in pairs(ht:GetChildren()) do
  2651. if v:IsA("Part") then
  2652. v.CanCollide = false
  2653. v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  2654. end
  2655. end
  2656. hum1=ht:FindFirstChild('Humanoid')
  2657. if hum1 ~= nil then
  2658. if Debounces.ks==true then
  2659. z = Instance.new("Sound",hed)
  2660. z.SoundId = "rbxassetid://169380525"
  2661. z.Volume = 1
  2662. z:Play()
  2663. Debounces.ks=false
  2664. end
  2665. hum1.PlatformStand=true
  2666. hum1:ChangeState'Physics'
  2667. gp = ht
  2668. Grab = true
  2669. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
  2670. asd.Parent = larm
  2671. asd.Name = "asd"
  2672. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  2673. stanceToggle = "Grabbed"
  2674. --[[elseif hum1 == nil then
  2675. con1:disconnect()
  2676. wait() return]]--
  2677. end
  2678. end)
  2679. for i = 1, 20 do
  2680. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  2681. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2682. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  2683. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2684. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
  2685. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2686. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  2687. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2688. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  2689. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2690. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
  2691. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2692. if Debounces.on == false then break end
  2693. fat.Event:wait()
  2694. end
  2695. con1:disconnect()
  2696. Debounces.on = false
  2697. Debounces.NoIdl = false
  2698. elseif Grab == true then
  2699. Grab = false
  2700. --[[for i = 1, 16 do
  2701. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
  2702. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
  2703. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  2704. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  2705. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  2706. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  2707. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  2708. if Debounces.on == false then end
  2709. rs:wait()
  2710. end]]--
  2711. for i = 1, 16 do
  2712. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
  2713. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
  2714. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
  2715. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
  2716. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  2717. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2718. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
  2719. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2720. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  2721. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  2722. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  2723. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2724. if Debounces.on == false then end
  2725. rs:wait()
  2726. end
  2727. for i = 1, 12 do
  2728. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
  2729. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2730. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
  2731. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2732. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
  2733. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2734. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
  2735. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
  2736. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
  2737. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  2738. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
  2739. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
  2740. if Debounces.on == false then end
  2741. rs:wait()
  2742. end
  2743. Slam()
  2744. if gp ~= nil then
  2745. for i,v in pairs(larm:GetChildren()) do
  2746. if v.Name == "asd" and v:IsA("Weld") then
  2747. v:Remove()
  2748. end
  2749. if v:IsA("Part") then
  2750. v.CanCollide = true
  2751. v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
  2752. end
  2753. end
  2754. end
  2755. stanceToggle = "Idle1"
  2756. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  2757. bv.maxForce = Vector3.new(400000, 400000, 400000)
  2758. bv.P = 125000
  2759. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  2760. ht=nil
  2761. Debounces.on = false
  2762. Debounces.NoIdl = false
  2763. elseif ht == nil then wait()
  2764. Grab = false
  2765. Debounces.on = false
  2766. Debounces.NoIdl = false
  2767. end
  2768. end
  2769. end)
  2770. ----------------------------------------------------
  2771. Change = false
  2772. mouse.KeyDown:connect(function(key)
  2773. if key == "n" then
  2774. if Change == false then
  2775. Change = true
  2776. stanceToggle = "Idle2"
  2777. elseif Change == true then
  2778. Change = false
  2779. stanceToggle = "Idle1"
  2780. end
  2781. end
  2782. end)
  2783. ----------------------------------------------------
  2784. mouse.KeyDown:connect(function(key)
  2785. if string.byte(key) == 52 then
  2786. Swing = 2
  2787. char.Humanoid.WalkSpeed = 28
  2788. end
  2789. end)
  2790. mouse.KeyUp:connect(function(key)
  2791. if string.byte(key) == 52 then
  2792. Swing = 1
  2793. char.Humanoid.WalkSpeed = 16
  2794. end
  2795. end)
  2796. ----------------------------------------------------
  2797.  
  2798. jump = false
  2799. rs:connect(function()
  2800. if char.Humanoid.Jump == true then
  2801. jump = true
  2802. else
  2803. jump = false
  2804. end
  2805. char.Humanoid.FreeFalling:connect(function(f)
  2806. if f then
  2807. ffing = true
  2808. else
  2809. ffing = false
  2810. end
  2811. end)
  2812. sine = sine + change
  2813. if jump == true then
  2814. animpose = "Jumping"
  2815. elseif ffing == true then
  2816. animpose = "Freefalling"
  2817. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  2818. animpose = "Idle"
  2819. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  2820. animpose = "Walking"
  2821. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  2822. animpose = "Running"
  2823. end
  2824. RightLeg = CFrame.new(0.5,-1,0)
  2825. LeftLeg = CFrame.new(-0.5,-1,0)
  2826.  
  2827. lefth = (torso.CFrame*LeftLeg)
  2828. righth = (torso.CFrame*RightLeg)
  2829.  
  2830. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  2831.  
  2832. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  2833.  
  2834. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  2835. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  2836. if animpose ~= lastanimpose then
  2837. sine = 0
  2838. if Debounces.NoIdl == false then
  2839. if stanceToggle == "Idle1" then
  2840. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
  2841. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
  2842. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
  2843. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
  2844. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
  2845. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
  2846. elseif stanceToggle == "Idle2" then
  2847. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
  2848. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
  2849. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
  2850. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
  2851. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
  2852. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
  2853. end
  2854. fat.Event:wait()
  2855. end
  2856. else
  2857. end
  2858. lastanimpose = animpose
  2859. if Debounces.NoIdl == false then
  2860. if animpose == "Idle" then
  2861. change = 0.5
  2862. if stanceToggle == "Idle1" then
  2863. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2864. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
  2865.  
  2866. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
  2867. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2868. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
  2869. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2870. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
  2871. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
  2872. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  2873. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
  2874. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  2875. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
  2876. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  2877. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
  2878. elseif stanceToggle == "Idle2" then
  2879.  
  2880. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2881. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
  2882. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  2883. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
  2884. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  2885. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
  2886. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  2887. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  2888. --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
  2889. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2890. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
  2891. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
  2892. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
  2893. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
  2894. elseif stanceToggle == "Grabbed" then
  2895. grab = true
  2896. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2897. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2898. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
  2899. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  2900. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
  2901. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  2902. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
  2903. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2904. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  2905. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  2906. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  2907. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2908. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  2909. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2910. end
  2911. elseif animpose == "Walking" then
  2912. if stanceToggle == "Grabbed" then
  2913. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2914. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2915. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  2916. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2917. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
  2918. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  2919. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  2920. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  2921. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  2922. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  2923. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  2924. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  2925. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2926. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  2927. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2928. elseif stanceToggle ~= "Grabbed" then
  2929. change = 1
  2930. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2931. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2932.  
  2933. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  2934. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2935. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  2936. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2937. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  2938. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  2939. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  2940. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  2941. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  2942. --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  2943. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  2944. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2945. --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  2946. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  2947. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2948. end
  2949. elseif animpose == "Running" then
  2950. change = 1
  2951. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2952. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2953.  
  2954. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
  2955. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  2956. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
  2957. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2958. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
  2959. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
  2960. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
  2961. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2962. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  2963. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2964. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  2965. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2966. elseif animpose == "Jumping" then
  2967.  
  2968. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2969. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2970. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
  2971. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  2972. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  2973. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2974. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  2975. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  2976. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2977. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2978. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2979. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2980. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2981. elseif animpose == "Freefalling" then
  2982.  
  2983. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2984. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2985. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
  2986. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  2987. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
  2988. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2989. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  2990. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  2991. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2992. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  2993. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2994. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
  2995. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2996. end
  2997. end
  2998. end)
  2999. hum.MaxHealth = math.huge
  3000. wait(3)
  3001. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement