copra50

my titan

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