Advertisement
lafur

Untitled

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