Advertisement
cubanmixed2

Eren

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