Advertisement
The_God_M8

SWORD

May 6th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.64 KB | None | 0 0
  1. --]]
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. local rp = RealPlayer
  11. script.Parent = rp.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent then
  37. for _,f in pairs(t.Functions) do
  38. f(...)
  39. end
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=rp then return end
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. if not io.isMouse then
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then return s[k] end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end,
  103. __call = function(self,...)
  104. local s = rawget(self,"_RealService")
  105. if s then return s(...) end
  106. end
  107. }
  108. local function FakeService(t,RealService)
  109. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  110. return setmetatable(t,fsmt)
  111. end
  112.  
  113. --Fake game object
  114. local g = {
  115. GetService = function(self,s)
  116. return self[s]
  117. end,
  118. Players = FakeService({
  119. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  120. },"Players"),
  121. UserInputService = FakeService(UIS,"UserInputService"),
  122. ContextActionService = FakeService(CAS,"ContextActionService"),
  123. }
  124. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  125. g.service = g.GetService
  126.  
  127. g.RunService = FakeService({
  128. RenderStepped = _rg:GetService("RunService").Heartbeat,
  129. BindToRenderStep = function(self,name,_,fun)
  130.  
  131. end,
  132. UnbindFromRenderStep = function(self,name)
  133. self._btrs[name]:Disconnect()
  134. end,
  135. },"RunService")
  136.  
  137. setmetatable(g,{
  138. __index=function(self,s)
  139. return _rg:GetService(s) or typeof(_rg[s])=="function"
  140. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  141. end,
  142. __newindex = fsmt.__newindex,
  143. __call = fsmt.__call
  144. })
  145. --Changing owner to fake player object to support owner:GetMouse()
  146. game,owner = g,g.Players.LocalPlayer
  147. end
  148.  
  149. ----------------
  150. --Dual Ultima--
  151. ----------------------------------------------------------------
  152. --This edit is by CKbackup (Sugarie Saffron)--------------------
  153. --Credits to whoever the hell made the original Solaris---------
  154. ----------------------------------------------------------------
  155.  
  156. ---
  157. local p = owner
  158. local char = p.Character
  159. local mouse = owner:GetMouse()
  160. local larm = char["Left Arm"]
  161. local rarm = char["Right Arm"]
  162. local lleg = char["Left Leg"]
  163. local rleg = char["Right Leg"]
  164. local hed = char.Head
  165. local torso = char.Torso
  166. local ASD = BrickColor.new("Pastel brown")
  167. local hum = char.Humanoid
  168. local cam = game.Workspace.CurrentCamera
  169. local root = char.HumanoidRootPart
  170. local deb = false
  171. local shot = 0
  172. local l = game:GetService("Lighting")
  173. local rs = game:GetService("RunService").RenderStepped
  174. local stanceToggle = "Normal"
  175. math.randomseed(os.time())
  176. hum.WalkSpeed = 7
  177. char.Health:Destroy()
  178. hum.MaxHealth = 5000000
  179. wait(0.1)
  180. hum.Health = 5000000
  181. z = Instance.new("Sound", char.Torso)
  182. z.SoundId = "rbxassetid://719841541"
  183. z.Looped = true
  184. z.Pitch = 1
  185. z.Volume = 1
  186. ----------------------------------------------------
  187. local SM = Instance.new("Smoke",torso)
  188. SM.Size = 15
  189. local S = Instance.new("Part",char)
  190. S.Size = Vector3.new(1,1,1)
  191. S.Material = "Neon"
  192. S.BrickColor = BrickColor.new("Deep orange")
  193. S.Transparency = 0
  194. S.Anchored = true
  195. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  196. local Ring = Instance.new("Part",S)
  197. Ring.Size = Vector3.new(1,1,1)
  198. Ring.BrickColor = BrickColor.new("Deep orange")
  199. Ring.Anchored = true
  200. Ring.CanCollide = false
  201. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  202. local Ring2 = Instance.new("SpecialMesh",Ring)
  203. Ring2.MeshId = "rbxassetid://3270017"
  204. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  205. local S2 = Instance.new("SpecialMesh",S)
  206. S2.MeshType = "Sphere"
  207. S2.Scale = Vector3.new(1,1,1)
  208. v = Instance.new("Sound")
  209. v.SoundId = "rbxassetid://821439273"
  210. v.Parent = char.Torso
  211. v.Looped = false
  212. v.Pitch = 1
  213. v.Volume = 1
  214. wait(.01)
  215. v:Play()
  216. local partasdeff = Instance.new("ParticleEmitter",S)
  217. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
  218. partasdeff.LightEmission = .1
  219. partasdeff.Size = NumberSequence.new(0.2)
  220. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  221. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  222. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  223. partasdeff.Transparency = bbb
  224. partasdeff.Size = aaa
  225. partasdeff.ZOffset = .9
  226. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  227. partasdeff.LockedToPart = false
  228. partasdeff.EmissionDirection = "Top"
  229. partasdeff.Lifetime = NumberRange.new(1, 2)
  230. partasdeff.Rate = 1000
  231. partasdeff.Rotation = NumberRange.new(-100, 100)
  232. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  233. partasdeff.Speed = NumberRange.new(10)
  234. partasdeff.VelocitySpread = 300
  235. partasdeff.Enabled = true
  236. for i = 1,100 do
  237. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  238. Ring.Transparency = Ring.Transparency + 0.01
  239. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  240. S.Transparency = S.Transparency + 0.01
  241. game:GetService("RunService").RenderStepped:wait()
  242. end
  243. S:remove()
  244. wait(1)
  245. SM:remove()
  246. hed.face.Texture = "rbxassetid://141107361"
  247. char.Shirt.ShirtTemplate = "rbxassetid://270992313"
  248. char.Pants:remove()
  249. v = Instance.new("Sound")
  250. v.SoundId = "rbxassetid://181384451"
  251. v.Parent = torso
  252. v.Looped = false
  253. v.Pitch = 1.04
  254. v.Volume = 1
  255. wait(.01)
  256. v:Play()
  257. z:Play()
  258. ----------------------------------------------------
  259. Debounces = {
  260. on = false;
  261. ks = false;
  262. CanAttack = true;
  263. CanJoke = true;
  264. NoIdl = false;
  265. Slashing = false;
  266. Slashed = false;
  267. Grabbing = false;
  268. Grabbed = false;
  269. }
  270. local Touche = {char.Name, }
  271. ----------------------------------------------------
  272. function lerp(a, b, t) -- Linear interpolation
  273. return a + (b - a)*t
  274. end
  275.  
  276. function slerp(a, b, t) --Spherical interpolation
  277. dot = a:Dot(b)
  278. if dot > 0.99999 or dot < -0.99999 then
  279. return t <= 0.5 and a or b
  280. else
  281. r = math.acos(dot)
  282. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  283. end
  284. end
  285.  
  286. function matrixInterpolate(a, b, t)
  287. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  288. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  289. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  290. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  291. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  292. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  293. local t = v1:Dot(v2)
  294. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  295. return CFrame.new()
  296. end
  297. return CFrame.new(
  298. v0.x, v0.y, v0.z,
  299. v1.x, v1.y, v1.z,
  300. v2.x, v2.y, v2.z,
  301. v3.x, v3.y, v3.z)
  302. end
  303. ----------------------------------------------------
  304. function genWeld(a,b)
  305. local w = Instance.new("Weld",a)
  306. w.Part0 = a
  307. w.Part1 = b
  308. return w
  309. end
  310. function weld(a, b)
  311. local weld = Instance.new("Weld")
  312. weld.Name = "W"
  313. weld.Part0 = a
  314. weld.Part1 = b
  315. weld.C0 = a.CFrame:inverse() * b.CFrame
  316. weld.Parent = a
  317. return weld;
  318. end
  319. ----------------------------------------------------
  320. function Lerp(c1,c2,al)
  321. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  322. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  323. for i,v in pairs(com1) do
  324. com1[i] = v+(com2[i]-v)*al
  325. end
  326. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  327. end
  328. ----------------------------------------------------
  329. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  330. local wld = Instance.new("Weld", wp1)
  331. wld.Part0 = wp0
  332. wld.Part1 = wp1
  333. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  334. end
  335. ----------------------------------------------------
  336. for i,v in pairs(char:children()) do
  337. if v:IsA("Hat") then
  338. v:Destroy()
  339. end
  340. end
  341. for i,v in pairs(hed:children()) do
  342. if v:IsA("Sound") then
  343. v:Destroy()
  344. end
  345. end
  346. ----------------------------------------------------
  347. function HasntTouched(plrname)
  348. local ret = true
  349. for _, v in pairs(Touche) do
  350. if v == plrname then
  351. ret = false
  352. end
  353. end
  354. return ret
  355. end
  356. ----------------------------------------------------
  357. larm.Size = larm.Size * 5
  358. rarm.Size = rarm.Size * 5
  359. lleg.Size = lleg.Size * 5
  360. rleg.Size = rleg.Size * 5
  361. torso.Size = torso.Size * 5
  362. hed.Size = hed.Size * 5
  363. root.Size = root.Size * 5
  364. ----------------------------------------------------
  365. newWeld(torso, larm, -1.5, 0.5, 0)
  366. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  367. newWeld(torso, rarm, 1.5, 0.5, 0)
  368. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  369. newWeld(torso, hed, 0, 1.5, 0)
  370. newWeld(torso, lleg, -0.5, -1, 0)
  371. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  372. newWeld(torso, rleg, 0.5, -1, 0)
  373. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  374. newWeld(root, torso, 0, -1, 0)
  375. torso.Weld.C1 = CFrame.new(0, -1, 0)
  376. ----------------------------------------------------
  377. local Part = Instance.new("Part",hed)
  378. Part.BrickColor = BrickColor.new("Really black")
  379. Part.Size = Vector3.new(1,1,1)
  380. Part.CanCollide = false
  381. Part.Material = "Neon"
  382. local M = Instance.new("SpecialMesh",Part)
  383. M.MeshId = "rbxassetid://62246019"
  384. M.Scale = Vector3.new(5,5,5)
  385. local Part2 = Instance.new("Weld",Part)
  386. Part2.Part0 = hed
  387. Part2.Part1 = Part
  388. Part2.C0 = CFrame.new(-0.2,1.5,0.8)
  389. ----------------------------------------------------
  390. ----------------------------------------------------
  391. ----------------------------------------------------
  392.  
  393. ----------------------------------------------------
  394. function weld5(part0, part1, c0, c1)
  395. weeld=Instance.new("Weld", part0)
  396. weeld.Part0=part0
  397. weeld.Part1=part1
  398. weeld.C0=c0
  399. weeld.C1=c1
  400. return weeld
  401. end
  402. ----------------------------------------------------
  403. function newRay(start,face,range,wat)
  404. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  405. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  406. return rey,hit,pos
  407. end
  408. ----------------------------------------------------
  409. mod5 = Instance.new("Model",char)
  410.  
  411. function FindNearestTorso(Position,Distance,SinglePlayer)
  412. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  413. local List = {}
  414. for i,v in pairs(workspace:GetChildren())do
  415. if v:IsA("Model")then
  416. if v:findFirstChild("Torso")then
  417. if v ~= char then
  418. if(v.Torso.Position -Position).magnitude <= Distance then
  419. table.insert(List,v)
  420. end
  421. end
  422. end
  423. end
  424. end
  425. return List
  426. end
  427.  
  428. function Landing()
  429. part=Instance.new('Part',mod5)
  430. part.Anchored=true
  431. part.CanCollide=false
  432. part.FormFactor='Custom'
  433. part.Size=Vector3.new(.2,.2,.2)
  434. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  435. part.Transparency=.7
  436. part.BrickColor=BrickColor.new('Really black')
  437. mesh=Instance.new('SpecialMesh',part)
  438. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  439. mesh.Scale=Vector3.new(10,5,10)
  440.  
  441. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  442. if v:FindFirstChild('Humanoid') then
  443. v.Humanoid:TakeDamage(math.random(20,30))
  444. v.Humanoid.PlatformStand = true
  445. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  446. end
  447. end
  448.  
  449. coroutine.resume(coroutine.create(function()
  450. for i=0,3.8,0.05 do
  451. wait()
  452. part.CFrame=part.CFrame
  453. part.Transparency=i
  454. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  455. end
  456. part.Parent = nil
  457. end))
  458. end
  459. ----------------------------------------------------
  460. mod4 = Instance.new("Model",char)
  461.  
  462. ptez = {0.7, 0.8, 0.9, 1}
  463.  
  464. function FindNearestTorso(Position,Distance,SinglePlayer)
  465. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  466. local List = {}
  467. for i,v in pairs(workspace:GetChildren())do
  468. if v:IsA("Model")then
  469. if v:findFirstChild("Torso")then
  470. if v ~= char then
  471. if(v.Torso.Position -Position).magnitude <= Distance then
  472. table.insert(List,v)
  473. end
  474. end
  475. end
  476. end
  477. end
  478. return List
  479. end
  480.  
  481. ----------------------------------------------------
  482.  
  483. local acos = math.acos
  484. local sqrt = math.sqrt
  485. local Vec3 = Vector3.new
  486. local fromAxisAngle = CFrame.fromAxisAngle
  487.  
  488. local function toAxisAngle(CFr)
  489. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  490. local Angle = math.acos((R00+R11+R22-1)/2)
  491. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  492. A = A == 0 and 0.00001 or A
  493. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  494. B = B == 0 and 0.00001 or B
  495. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  496. C = C == 0 and 0.00001 or C
  497. local x = (R21-R12)/sqrt(A)
  498. local y = (R02-R20)/sqrt(B)
  499. local z = (R10-R01)/sqrt(C)
  500. return Vec3(x,y,z),Angle
  501. end
  502.  
  503. function ApplyTrig(Num,Func)
  504. local Min,Max = Func(0),Func(1)
  505. local i = Func(Num)
  506. return (i-Min)/(Max-Min)
  507. --[[if Func == "sin" then
  508. return (math.sin((1-Num)*math.pi)+1)/2
  509. elseif Func == "cos" then
  510. return (math.cos((1-Num)*math.pi)+1)/2
  511. end]]
  512. end
  513.  
  514. function LerpCFrame(CFrame1,CFrame2,Num)
  515. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  516. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  517. end
  518. mouse.KeyDown:connect(function(key)
  519. if key == "e" then
  520. if Debounces.CanAttack == true then
  521. Debounces.CanAttack = false
  522. Debounces.on = true
  523. Debounces.NoIdl = true
  524. for i = 1,20 do
  525. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  526. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  527. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  528. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  529. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  530. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  531. if Debounces.on == false then break end
  532. wait()
  533. end
  534. local HitBox = Instance.new("Part",char)
  535. HitBox.Size = Vector3.new(5,5,5)
  536. HitBox.CanCollide = false
  537. HitBox.Transparency = math.huge
  538. local HitBox2 = Instance.new("Weld",HitBox)
  539. HitBox2.Part0 = rarm
  540. HitBox2.Part1 = HitBox
  541. HitBox2.C0 = CFrame.new(0,-4.5,0)
  542. HitBox.Touched:connect(function(hit)
  543. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  544. if not DD then DD = true
  545. hit.Parent.Humanoid.PlatformStand = true
  546. local We = Instance.new("Weld",hit.Parent.Torso)
  547. We.Part0 = rarm
  548. We.Part1 = hit.Parent.Torso
  549. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  550. wait(1)
  551. for i = 1,20 do
  552. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  553. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  554. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  555. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  556. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  557. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  558. if Debounces.on == false then break end
  559. wait()
  560. end
  561. hit.Parent.Humanoid:TakeDamage(20)
  562. for i = 1,20 do
  563. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  564. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  565. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  566. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  567. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  568. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  569. if Debounces.on == false then break end
  570. wait()
  571. end
  572. for i = 1,20 do
  573. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  574. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  575. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  576. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  577. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  578. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  579. if Debounces.on == false then break end
  580. wait()
  581. end
  582. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  583. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  584. partasdeff.LightEmission = .1
  585. partasdeff.Size = NumberSequence.new(0.2)
  586. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  587. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  588. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  589. partasdeff.Transparency = bbb
  590. partasdeff.Size = aaa
  591. partasdeff.ZOffset = .9
  592. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  593. partasdeff.LockedToPart = false
  594. partasdeff.EmissionDirection = "Top"
  595. partasdeff.Lifetime = NumberRange.new(1, 2)
  596. partasdeff.Rate = 1000
  597. partasdeff.Rotation = NumberRange.new(-100, 100)
  598. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  599. partasdeff.Speed = NumberRange.new(10)
  600. partasdeff.VelocitySpread = 300
  601. partasdeff.Enabled = true
  602. wait(1.5)
  603. hit.Parent:BreakJoints()
  604. We:remove()
  605. partasdeff.Enabled = false
  606. if Debounces.CanAttack == false then
  607. Debounces.CanAttack = true
  608. Debounces.on = false
  609. Debounces.NoIdl = false
  610. end
  611. wait(1313)
  612. DD = false
  613. end
  614. end
  615. end)
  616. ---ANIMATION REPLAY
  617. end
  618. end
  619. end)
  620. mouse.KeyDown:connect(function(key)
  621. if key == "r" then
  622. if Debounces.CanAttack == true then
  623. Debounces.CanAttack = false
  624. Debounces.on = true
  625. Debounces.NoIdl = true
  626. for i = 1,20 do
  627. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  628. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  629. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  630. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  631. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  632. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  633. if Debounces.on == false then break end
  634. wait()
  635. end
  636. local HitBox = Instance.new("Part",char)
  637. HitBox.Size = Vector3.new(5,5,5)
  638. HitBox.CanCollide = false
  639. HitBox.Transparency = math.huge
  640. local HitBox2 = Instance.new("Weld",HitBox)
  641. HitBox2.Part0 = rleg
  642. HitBox2.Part1 = HitBox
  643. HitBox2.C0 = CFrame.new(0,-1.1,0)
  644. local SFXZ = Instance.new("Sound",torso)
  645. SFXZ.SoundId = "rbxassetid://169259383"
  646. SFXZ.Volume = math.huge
  647. SFXZ.Pitch = 0.5
  648. SFXZ.Looped = false
  649. wait(0.01)
  650. SFXZ:Play()
  651. HitBox.Touched:connect(function(hit)
  652. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  653. local SFXZ = Instance.new("Sound",torso)
  654. SFXZ.SoundId = "rbxassetid://743886825"
  655. SFXZ.Volume = 1
  656. SFXZ.Pitch = 0.5
  657. SFXZ.Looped = false
  658. SFXZ:Play()
  659. HitBox:remove()
  660. hit.Parent.Humanoid:TakeDamage(44)
  661. hit.Parent.Humanoid.PlatformStand = true
  662. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  663. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  664. Fl.velocity = rleg.CFrame.lookVector*350
  665. wait(0.1)
  666. Fl:remove()
  667. end
  668. end)
  669. for i = 1,20 do
  670. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  671. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  672. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  673. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  674. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  675. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  676. if Debounces.on == false then break end
  677. wait()
  678. end
  679. if Debounces.CanAttack == false then
  680. Debounces.CanAttack = true
  681. Debounces.on = false
  682. Debounces.NoIdl = false
  683. HitBox:remove()
  684. end
  685. end
  686. end
  687. end)
  688. ----------------------------------------------------
  689. mouse.KeyDown:connect(function(key)
  690. if string.byte(key) == 48 then
  691. char.Humanoid.WalkSpeed = 34
  692. end
  693. end)
  694. mouse.KeyUp:connect(function(key)
  695. if string.byte(key) == 48 then
  696. char.Humanoid.WalkSpeed = 5
  697. end
  698. end)
  699. ----------------------------------------------------
  700. local animpose = "Idle"
  701. local lastanimpose = "Idle"
  702. local sine = 0
  703. local change = 1
  704. local val = 0
  705. local ffing = false
  706. ----------------------------------------------------
  707. local x = Instance.new("Sound", char.Torso)
  708. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  709. x.Looped = true
  710. x.Volume = 1
  711. x.Pitch = 1
  712. local footsteps = false
  713. -------------------------------
  714. game:GetService("RunService").RenderStepped:connect(function()
  715. rarm.BrickColor = ASD
  716. larm.BrickColor = ASD
  717. rleg.BrickColor = ASD
  718. lleg.BrickColor = ASD
  719. hed.BrickColor = ASD
  720. torso.BrickColor = ASD
  721. --[[if char.Humanoid.Jump == true then
  722. jump = true
  723. else
  724. jump = false
  725. end]]
  726. char.Humanoid.FreeFalling:connect(function(f)
  727. if f then
  728. ffing = true
  729. else
  730. ffing = false
  731. end
  732. end)
  733. sine = sine + change
  734. if jumpn == true then
  735. animpose = "Jumping"
  736. elseif ffing == true then
  737. animpose = "Freefalling"
  738. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  739. animpose = "Idle"
  740. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  741. animpose = "Walking"
  742. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  743. animpose = "Running"
  744. end
  745. if animpose ~= lastanimpose then
  746. sine = 0
  747. if Debounces.NoIdl == false then
  748. if animpose == "Idle" then
  749. for i = 1, 2 do
  750. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  751. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  752. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  753. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  754. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  755. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  756. end
  757. elseif animpose == "Walking" then
  758. for i = 1, 2 do
  759. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  760. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  761. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  762. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  763. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  764. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  765. end
  766. elseif animpose == "Running" then
  767. for i = 1, 2 do
  768. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  769. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  770. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  771. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  772. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  773. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  774. end
  775. wait()
  776. end
  777. else
  778. end
  779. end
  780. lastanimpose = animpose
  781. if Debounces.NoIdl == false then
  782. if animpose == "Idle" then
  783. if stanceToggle == "Normal" then
  784. change = 0.5
  785. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.Angles(0,0,0-.1*math.sin(tick()*1))*CFrame.Angles(0,0,0.3),.2)
  786. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.Angles(0,0,0+.1*math.sin(tick()*1))*CFrame.Angles(0,0,-0.3),.2)
  787. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
  788. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
  789. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  790. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  791. elseif stanceToggle == "Sitting" then
  792. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  793. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  794. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  795. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  796. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  797. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  798. end
  799. elseif animpose == "Walking" then
  800. if stanceToggle == "Normal" then
  801. change = 1
  802. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3,0.8,0)*CFrame.Angles(0-.5*math.sin(tick()*2/0.7),0,0),.3)
  803. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3,0.8,0)*CFrame.Angles(0+.5*math.sin(tick()*2/0.7),0,0),.3)
  804. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  805. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-2.2,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  806. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/16)/4, -.05 + math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/16)/2.3, 0, 0), .4)
  807. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/16)/4, -.05 + -math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/16)/2.3, 0, 0), .4)
  808. end
  809. elseif animpose == "Running" then
  810. change = 1
  811. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  812. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  813. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  814. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  815. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  816. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8 )/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  817. end
  818. end
  819. if animpose == "Walking" then
  820. if footsteps == false then
  821. x:Play()
  822. footsteps = true
  823. end
  824. x.Pitch = 1.1
  825. elseif animpose == "Idle" then
  826. x:Stop()
  827. footsteps = false
  828. elseif animpose == "Running" then
  829. x.Pitch = 1.2
  830. if footsteps == false then
  831. x:Play()
  832. footsteps = true
  833. end
  834. end
  835. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement