Advertisement
lafur

Untitled

Sep 2nd, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.32 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 local Player = game:GetService("Players").LocalPlayer
  6. local Character = Player.Character
  7. local Head = Character.Head
  8. local Torso = Character.Torso
  9. local Right_Arm = Character["Right Arm"]
  10. local Right_Leg = Character["Right Leg"]
  11. local Left_Arm = Character["Left Arm"]
  12. local Left_Leg = Character["Left Leg"]
  13. local Humanoid = Character.Humanoid
  14. local Animation = "Idle"
  15. local Damage = 0
  16. local Mouse = Player:GetMouse()
  17. local LeftShoulder = Torso["Left Shoulder"]
  18. local Left_Hip = Torso["Left Hip"]
  19. local RightShoulder = Torso["Right Shoulder"]
  20. local Right_Hip = Torso["Right Hip"]
  21. local Root = Character.HumanoidRootPart
  22. local RootJoint = Root.RootJoint
  23. local Attacking = false
  24. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  25. local WakeMeUp = false
  26. local cf = CFrame.new
  27. local WalkForward = false
  28. local Effects = {}
  29. local Color = "White"
  30.  
  31. Necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. Necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  33. Right_Hip_C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  34. Left_Hip_C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  35.  
  36. Movemment = 1
  37. Walk = 0
  38.  
  39.  
  40. local Services = {
  41.  
  42. SoundService = game:GetService("SoundService");
  43. Players = game:GetService("Players");
  44. Debris = game:GetService("Debris");
  45. Workspace = game:GetService("Workspace");
  46. Lighting = game:GetService("Lighting");
  47. HttpService = game:GetService("HttpService");
  48. InsertService = game:GetService("InsertService");
  49.  
  50. }
  51.  
  52. MaxCooldown1 = 1
  53. MaxCooldown2 = 1
  54. MaxCooldown3 = 1
  55. MaxCooldown4 = 1
  56. MaxCooldownE = 1
  57.  
  58. Cooldown1 = MaxCooldown1
  59. Cooldown2 = MaxCooldown2
  60. Cooldown3 = MaxCooldown3
  61. Cooldown4 = MaxCooldown4
  62. CooldownE = MaxCooldownE
  63.  
  64. cf = CFrame.new
  65.  
  66. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  67. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  68. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  69. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  70. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  71.  
  72. Movemment = 1
  73. Walk = 0
  74.  
  75. Left_Shoulder = Instance.new("Weld", Torso)
  76. Left_Shoulder.Part0 = Torso
  77. Left_Shoulder.Part1 = Left_Arm
  78. Left_Shoulder.Name = "Left Shoulder"
  79. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  80.  
  81. Right_Shoulder = Instance.new("Weld", Torso)
  82. Right_Shoulder.Part0 = Torso
  83. Right_Shoulder.Part1 = Right_Arm
  84. Right_Shoulder.Name = "Right Shoulder"
  85. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  86. wait()
  87. LeftShoulder.Parent = nil
  88. RightShoulder.Parent = nil
  89.  
  90.  
  91. wait(0.1)
  92. local HealthBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  93. HealthBarGUI.Name = "HealthBarGUI"
  94.  
  95. local HealthBarP1 = Instance.new("Frame", HealthBarGUI)
  96. HealthBarP1.Name = "HealthBarPart1"
  97. HealthBarP1.Size = UDim2.new(0,300,0,40)
  98. HealthBarP1.Position = UDim2.new(0,350,0,550)
  99. HealthBarP1.Style = "RobloxRound"
  100.  
  101. local HealthBarP2 = Instance.new("Frame", HealthBarP1)
  102. HealthBarP2.Name = "HealthBarPart2"
  103. HealthBarP2.Size = UDim2.new(0,285,0,20)
  104. HealthBarP2.Position = UDim2.new(0,0,0,0)
  105.  
  106. local HealthBarText = Instance.new("TextLabel", HealthBarP1)
  107. HealthBarText.Name = "HealthBarText"
  108. HealthBarText.Size = UDim2.new(0,285,0,20)
  109. HealthBarText.Position = UDim2.new(0,0,0,0)
  110. HealthBarText.BackgroundColor3 = Color3.new(0,1,0)
  111. HealthBarText.TextScaled = true
  112. HealthBarText.Text = "Health"
  113. HealthBarText.TextTransparency = 0
  114. HealthBarText.TextStrokeTransparency = 0
  115. HealthBarText.BackgroundTransparency = 1
  116. HealthBarText.TextStrokeColor3 = Color3.new(1,1,1)
  117. HealthBarText.TextColor3 = Color3.new(0,0,0)
  118. HealthBarText.Font = "SciFi"
  119.  
  120. local CoolDownGUI = Instance.new("ScreenGui", Player.PlayerGui)
  121. CoolDownGUI.Name = "CoolDownGUI"
  122.  
  123. local CoolDowns = Instance.new("Frame", CoolDownGUI)
  124. CoolDowns.Name = "CoolDowns"
  125. CoolDowns.Size = UDim2.new(0,200,0,200)
  126. CoolDowns.Position = UDim2.new(0.81,0,0.68,0)
  127. CoolDowns.Style = "RobloxRound"
  128.  
  129. local CoolDown1Frame = Instance.new("Frame", CoolDowns)
  130. CoolDown1Frame.Name = "CoolDown1Frame"
  131. CoolDown1Frame.Size = UDim2.new(0,80,0,50)
  132. CoolDown1Frame.Position = UDim2.new(0,0,0,0)
  133. CoolDown1Frame.BackgroundTransparency = 0.5
  134. CoolDown1Frame.BackgroundColor3 = BrickColor.White().Color
  135.  
  136. local CoolDown1Bar = Instance.new("Frame", CoolDown1Frame)
  137. CoolDown1Bar.Name = "CoolDown1Bar"
  138. CoolDown1Bar.Size = UDim2.new(0,80,0,50)
  139. CoolDown1Bar.Position = UDim2.new(0,0,0,0)
  140. CoolDown1Bar.BackgroundColor3 = BrickColor.White().Color
  141.  
  142. local CoolDown1Text = Instance.new("TextLabel", CoolDown1Frame)
  143. CoolDown1Text.Name = "CoolDown1Text"
  144. CoolDown1Text.Size = UDim2.new(0,80,0,50)
  145. CoolDown1Text.Position = UDim2.new(0,0,0,0)
  146. CoolDown1Text.BackgroundTransparency = 1
  147. CoolDown1Text.TextScaled = true
  148. CoolDown1Text.Text = "z - WAKE ME UP INSIDE"
  149. CoolDown1Text.TextStrokeTransparency = 0
  150. CoolDown1Text.TextStrokeColor3 = Color3.new(1,1,1)
  151. CoolDown1Text.TextColor3 = Color3.new(0,0,0)
  152. CoolDown1Text.Font = "SciFi"
  153.  
  154. local CoolDown2Frame = Instance.new("Frame", CoolDowns)
  155. CoolDown2Frame.Name = "CoolDown2Frame"
  156. CoolDown2Frame.Size = UDim2.new(0,80,0,50)
  157. CoolDown2Frame.Position = UDim2.new(0.55,0,0,0)
  158. CoolDown2Frame.BackgroundTransparency = 0.5
  159. CoolDown2Frame.BackgroundColor3 = BrickColor.White().Color
  160.  
  161. local CoolDown2Bar = Instance.new("Frame", CoolDown2Frame)
  162. CoolDown2Bar.Name = "CoolDown2Bar"
  163. CoolDown2Bar.Size = UDim2.new(0,80,0,50)
  164. CoolDown2Bar.Position = UDim2.new(0,0,0,0)
  165. CoolDown2Bar.BackgroundColor3 = BrickColor.White().Color
  166.  
  167. local CoolDown2Text = Instance.new("TextLabel", CoolDown2Frame)
  168. CoolDown2Text.Name = "CoolDown2Text"
  169. CoolDown2Text.Size = UDim2.new(0,80,0,50)
  170. CoolDown2Text.Position = UDim2.new(0,0,0,0)
  171. CoolDown2Text.BackgroundTransparency = 1
  172. CoolDown2Text.TextScaled = true
  173. CoolDown2Text.Text = "x - meme launch"
  174. CoolDown2Text.TextStrokeTransparency = 0
  175. CoolDown2Text.TextStrokeColor3 = Color3.new(1,1,1)
  176. CoolDown2Text.TextColor3 = Color3.new(0,0,0)
  177. CoolDown2Text.Font = "SciFi"
  178.  
  179. local CoolDown3Frame = Instance.new("Frame", CoolDowns)
  180. CoolDown3Frame.Name = "CoolDown3Frame"
  181. CoolDown3Frame.Size = UDim2.new(0,80,0,50)
  182. CoolDown3Frame.Position = UDim2.new(0,0,0.4,0)
  183. CoolDown3Frame.BackgroundTransparency = 0.5
  184. CoolDown3Frame.BackgroundColor3 = BrickColor.White().Color
  185.  
  186. local CoolDown3Bar = Instance.new("Frame", CoolDown3Frame)
  187. CoolDown3Bar.Name = "CoolDown3Bar"
  188. CoolDown3Bar.Size = UDim2.new(0,80,0,50)
  189. CoolDown3Bar.Position = UDim2.new(0,0,0,0)
  190. CoolDown3Bar.BackgroundColor3 = BrickColor.White().Color
  191.  
  192. local CoolDown3Text = Instance.new("TextLabel", CoolDown3Frame)
  193. CoolDown3Text.Name = "CoolDown3Text"
  194. CoolDown3Text.Size = UDim2.new(0,80,0,50)
  195. CoolDown3Text.Position = UDim2.new(0,0,0,0)
  196. CoolDown3Text.BackgroundTransparency = 1
  197. CoolDown3Text.TextScaled = true
  198. CoolDown3Text.Text = "c - and his name is..."
  199. CoolDown3Text.TextStrokeTransparency = 0
  200. CoolDown3Text.TextStrokeColor3 = Color3.new(1,1,1)
  201. CoolDown3Text.TextColor3 = Color3.new(0,0,0)
  202. CoolDown3Text.Font = "SciFi"
  203.  
  204.  
  205. local CoolDown4Frame = Instance.new("Frame", CoolDowns)
  206. CoolDown4Frame.Name = "CoolDown4Frame"
  207. CoolDown4Frame.Size = UDim2.new(0,80,0,50)
  208. CoolDown4Frame.Position = UDim2.new(0.55,0,0.4,0)
  209. CoolDown4Frame.BackgroundTransparency = 0.5
  210. CoolDown4Frame.BackgroundColor3 = BrickColor.White().Color
  211.  
  212. local CoolDown4Bar = Instance.new("Frame", CoolDown4Frame)
  213. CoolDown4Bar.Name = "CoolDown4Bar"
  214. CoolDown4Bar.Size = UDim2.new(0,80,0,50)
  215. CoolDown4Bar.Position = UDim2.new(0,0,0,0)
  216. CoolDown4Bar.BackgroundColor3 = BrickColor.White().Color
  217.  
  218. local CoolDown4Text = Instance.new("TextLabel", CoolDown4Frame)
  219. CoolDown4Text.Name = "CoolDown4Text"
  220. CoolDown4Text.Size = UDim2.new(0,80,0,50)
  221. CoolDown4Text.Position = UDim2.new(0,0,0,0)
  222. CoolDown4Text.BackgroundTransparency = 1
  223. CoolDown4Text.TextScaled = true
  224. CoolDown4Text.Text = "v - allahuekber"
  225. CoolDown4Text.TextStrokeTransparency = 0
  226. CoolDown4Text.TextStrokeColor3 = Color3.new(1,1,1)
  227. CoolDown4Text.TextColor3 = Color3.new(0,0,0)
  228. CoolDown4Text.Font = "SciFi"
  229.  
  230. local CoolDownEFrame = Instance.new("Frame", CoolDowns)
  231. CoolDownEFrame.Name = "CoolDownEFrame"
  232. CoolDownEFrame.Size = UDim2.new(0,180,0,50)
  233. CoolDownEFrame.Position = UDim2.new(0,0,0.74,0)
  234. CoolDownEFrame.BackgroundTransparency = 0.5
  235. CoolDownEFrame.BackgroundColor3 = BrickColor.White().Color
  236.  
  237. local CoolDownEBar = Instance.new("Frame", CoolDownEFrame)
  238. CoolDownEBar.Name = "CoolDownEBar"
  239. CoolDownEBar.Size = UDim2.new(0,180,0,50)
  240. CoolDownEBar.Position = UDim2.new(0,0,0,0)
  241. CoolDownEBar.BackgroundColor3 = BrickColor.White().Color
  242.  
  243. local CoolDownEText = Instance.new("TextLabel", CoolDownEFrame)
  244. CoolDownEText.Name = "CoolDownEText"
  245. CoolDownEText.Size = UDim2.new(0,180,0,50)
  246. CoolDownEText.Position = UDim2.new(0,0,0,0)
  247. CoolDownEText.BackgroundTransparency = 1
  248. CoolDownEText.TextScaled = true
  249. CoolDownEText.Text = "e - aaaa"
  250. CoolDownEText.TextStrokeTransparency = 0
  251. CoolDownEText.TextStrokeColor3 = Color3.new(1,1,1)
  252. CoolDownEText.TextColor3 = Color3.new(0,0,0)
  253. CoolDownEText.Font = "SciFi"
  254.  
  255. --[[ transformixu ]]--
  256.  
  257. Head.face.Texture = "http://www.roblox.com/asset/?id=176699876"
  258.  
  259. for i,v in pairs(Character:children()) do
  260.  
  261. if v:IsA("Hat") then
  262.  
  263. v:Remove()
  264.  
  265. end
  266.  
  267. end
  268.  
  269.  
  270. --[[ perts andi effictiz fucktions ]]--
  271.  
  272. function NoOutlines(Part)
  273. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  274. end
  275.  
  276. local CreateVelocity = function(Parent,Velocity,Force)
  277.  
  278. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  279. BodyVelocity.Velocity = Velocity
  280. BodyVelocity.MaxForce = Force
  281.  
  282.  
  283.  
  284. return BodyVelocity
  285.  
  286. end
  287.  
  288. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  289.  
  290. local Part = Instance.new("Part", Parent)
  291. Part.Name = Name
  292. Part.BrickColor = BrickColor.new(Color)
  293. Part.Size = Size
  294. Part.Material = Material
  295. Part.Transparency = Transparency
  296. Part.Shape = Shape
  297. Part.CanCollide = false
  298. NoOutlines(Part)
  299.  
  300. return Part
  301.  
  302. end
  303.  
  304. local MakeSFX = function(Parent, Id, Volume, Pitch)
  305.  
  306. local SFX = Instance.new("Sound", Parent)
  307. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  308. SFX.Name = "SFX"
  309. SFX:Play()
  310. SFX.Volume = Volume
  311. SFX.Pitch = Pitch
  312. SFX.PlayOnRemove = true
  313. SFX:Remove()
  314.  
  315. end
  316.  
  317.  
  318. CircleEffect = function(Position, Parent, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  319.  
  320. local Part = Instance.new("Part", Parent)
  321. Part.Transparency = Transparency
  322. Part.Name = "CircleEffect"
  323. Part.Size = Vector3.new()
  324. Part.Anchored = true
  325. Part.CanCollide = false
  326. Part.Position = Position
  327. Part.BrickColor = BrickColor.new(Brickcolor)
  328. Part.Material = Material
  329. NoOutlines(Part)
  330.  
  331. local Mesh = Instance.new("SpecialMesh", Part)
  332. Mesh.MeshType = "Sphere"
  333. Mesh.Scale = Vector3.new(0,0,0)
  334.  
  335. Services.Debris:AddItem(Part, Time)
  336.  
  337.  
  338. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  339.  
  340.  
  341. end
  342.  
  343. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  344.  
  345. local Part = Instance.new("Part", Parent)
  346. Part.Transparency = Transparency
  347. Part.Name = "BlockEffect"
  348. Part.Size = Vector3.new()
  349. Part.Anchored = true
  350. Part.Position = Position
  351. Part.CanCollide = false
  352. Part.BrickColor = BrickColor.new(Brickcolor)
  353. Part.Material = Material
  354. NoOutlines(Part)
  355.  
  356. local Mesh = Instance.new("BlockMesh", Part)
  357. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  358.  
  359. Services.Debris:AddItem(Part, Time)
  360.  
  361. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  362.  
  363.  
  364. end
  365.  
  366. --[[ customiz ]]--
  367.  
  368.  
  369. if Player:FindFirstChild("Custom") and Player.Custom.Customized.Value == true then
  370.  
  371. CoolDown1Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  372. CoolDown2Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  373. CoolDown3Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  374. CoolDown4Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  375. CoolDownEBar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  376. Color = Player.Custom.Co1.Value
  377.  
  378. end
  379.  
  380.  
  381. --[[ soumdiz ]]--
  382.  
  383. WakeMeUpInside = Instance.new("Sound", Character)
  384. WakeMeUpInside.SoundId = "http://www.roblox.com/asset?id=326429386"
  385. WakeMeUpInside.Name = "WAKE ME UP INSIDE!111!"
  386. WakeMeUpInside.Looped = true
  387.  
  388. Sad = Instance.new("Sound", Character)
  389. Sad.SoundId = "http://www.roblox.com/asset?id=254352182"
  390. Sad.Name = "Sad"
  391. Sad.Looped = true
  392.  
  393. JOHNCENAh = Instance.new("Sound", Character)
  394. JOHNCENAh.SoundId = "http://www.roblox.com/asset?id=272322032"
  395. JOHNCENAh.Name = "JOHNCENAh"
  396.  
  397.  
  398.  
  399. --[[ crerp decaratius ]] --
  400. function clerp(a,b,t)
  401. local qa = {QuaternionFromCFrame(a)}
  402. local qb = {QuaternionFromCFrame(b)}
  403. local ax, ay, az = a.x, a.y, a.z
  404. local bx, by, bz = b.x, b.y, b.z
  405. local _t = 1-t
  406. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  407. end
  408.  
  409. function QuaternionFromCFrame(cf)
  410. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  411. local trace = m00 + m11 + m22
  412. if trace > 0 then
  413. local s = math.sqrt(1 + trace)
  414. local recip = 0.5/s
  415. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  416. else
  417. local i = 0
  418. if m11 > m00 then
  419. i = 1
  420. end
  421. if m22 > (i == 0 and m00 or m11) then
  422. i = 2
  423. end
  424. if i == 0 then
  425. local s = math.sqrt(m00-m11-m22+1)
  426. local recip = 0.5/s
  427. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  428. elseif i == 1 then
  429. local s = math.sqrt(m11-m22-m00+1)
  430. local recip = 0.5/s
  431. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  432. elseif i == 2 then
  433. local s = math.sqrt(m22-m00-m11+1)
  434. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  435. end
  436. end
  437. end
  438.  
  439. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  440. local xs, ys, zs = x + x, y + y, z + z
  441. local wx, wy, wz = w*xs, w*ys, w*zs
  442. local xx = x*xs
  443. local xy = x*ys
  444. local xz = x*zs
  445. local yy = y*ys
  446. local yz = y*zs
  447. local zz = z*zs
  448. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  449. end
  450.  
  451. function QuaternionSlerp(a, b, t)
  452. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  453. local startInterp, finishInterp;
  454. if cosTheta >= 0.0001 then
  455. if (1 - cosTheta) > 0.0001 then
  456. local theta = math.acos(cosTheta)
  457. local invSinTheta = 1/math.sin(theta)
  458. startInterp = math.sin((1-t)*theta)*invSinTheta
  459. finishInterp = math.sin(t*theta)*invSinTheta
  460. else
  461. startInterp = 1-t
  462. finishInterp = t
  463. end
  464. else
  465. if (1+cosTheta) > 0.0001 then
  466. local theta = math.acos(-cosTheta)
  467. local invSinTheta = 1/math.sin(theta)
  468. startInterp = math.sin((t-1)*theta)*invSinTheta
  469. finishInterp = math.sin(t*theta)*invSinTheta
  470. else
  471. startInterp = t-1
  472. finishInterp = t
  473. end
  474. end
  475. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  476. end
  477.  
  478. function RayCast(Pos, Dir, Max, Ignore)
  479. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  480. end
  481.  
  482. --[[ debeigi fucktion ]]--
  483.  
  484.  
  485.  
  486. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  487.  
  488. local HitHumanoid = Hit.Parent.Humanoid
  489.  
  490.  
  491. local Damage = math.random(Min, Max)
  492.  
  493.  
  494. coroutine.resume(coroutine.create(function()
  495. HitHumanoid:TakeDamage(Damage)
  496. end))
  497.  
  498. if Type == "Normal" then
  499.  
  500. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  501. Services.Debris:AddItem(Push, 0)
  502. DamageLabel(Hit.Parent, Damage)
  503.  
  504. elseif Type == "Ranged" then
  505. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  506. Services.Debris:AddItem(Push, 0)
  507. DamageLabel(Hit.Parent, Damage)
  508.  
  509. elseif Type == "Knockdown" then
  510.  
  511.  
  512. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  513. DamageLabel(Hit.Parent, Damage)
  514. Services.Debris:AddItem(Push, 0.3)
  515.  
  516. coroutine.resume(coroutine.create(function()
  517.  
  518. HitHumanoid.PlatformStand = true
  519. wait(1)
  520. HitHumanoid.PlatformStand = false
  521.  
  522.  
  523. end))
  524. end
  525.  
  526. if HitSFX == "Penetration" then
  527.  
  528. MakeSFX(Hit, 199149269, 1 , 1)
  529.  
  530. elseif HitSFX == "Punch" then
  531.  
  532. MakeSFX(Hit, 278062209, 1 , 1)
  533.  
  534.  
  535.  
  536.  
  537. end
  538. end
  539.  
  540. function DamageLabel(HitCharacter, DamageDealt)
  541.  
  542. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  543. DamageShowingPart.Position = HitCharacter.Head.Position
  544.  
  545. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  546. DamageGui.Name = "Damage"
  547. DamageGui.AlwaysOnTop = true
  548. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  549.  
  550. local DamageNumber = Instance.new("TextLabel", DamageGui)
  551. DamageNumber.Size = UDim2.new(1,0,1,0)
  552. DamageNumber.TextStrokeColor3 = BrickColor.White().Color
  553. DamageNumber.TextColor3 = BrickColor.Black().Color
  554. DamageNumber.TextStrokeTransparency = 0
  555. DamageNumber.BackgroundTransparency = 1
  556. DamageNumber.Font = "SciFi"
  557. DamageNumber.TextScaled = true
  558. DamageNumber.Text = DamageDealt
  559.  
  560. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  561. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  562. BodyVelocity.Velocity = Vector3.new(0,2,0)
  563.  
  564. Services.Debris:AddItem(DamageShowingPart, 3)
  565.  
  566.  
  567. end
  568. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  569. for _,WorkspaceChildren in pairs(workspace:children()) do
  570.  
  571. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  572.  
  573. if HitHumanoid ~= nil then
  574. local Hit = WorkspaceChildren:findFirstChild("Torso")
  575.  
  576. if Hit ~= nil then
  577.  
  578. local Target = Hit.Position - Part.Position
  579.  
  580. local Magnitude = Target.magnitude
  581.  
  582. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  583.  
  584. local HitBlock = Hit.Parent:FindFirstChild("Block")
  585.  
  586. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  587.  
  588. local HitBlock2 = Hit.Parent.Block.BlockDurability
  589.  
  590. if HitBlock2.Value > 15 then
  591.  
  592. local HitN = math.random(1,5)
  593.  
  594. HitBlock2.Value = HitBlock2.Value - 15
  595.  
  596.  
  597. if HitN == 1 then
  598. MakeSFX(Hit ,199148971, 0.5, 1)
  599. end
  600.  
  601. if HitN == 2 then
  602. MakeSFX(Hit ,199149025, 0.5, 1)
  603. end
  604.  
  605. if HitN == 3 then
  606. MakeSFX(Hit ,199149072, 0.5, 1)
  607. end
  608.  
  609. if HitN == 4 then
  610. MakeSFX(Hit ,199149109, 0.5, 1)
  611. end
  612.  
  613. if HitN == 5 then
  614. MakeSFX(Hit ,199149119, 0.5, 1)
  615. end
  616. return
  617. end
  618. end
  619.  
  620. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  621.  
  622.  
  623.  
  624. end
  625. end
  626. end
  627. end
  628. end
  629.  
  630.  
  631. function Bars()
  632.  
  633. --[[ Cooldowns Bars ]]--
  634.  
  635. if Cooldown1 ~= MaxCooldown1 then
  636.  
  637. Cooldown1 = Cooldown1 + 1
  638.  
  639. end
  640.  
  641. if Cooldown1 >= MaxCooldown1 then
  642.  
  643. Cooldown1 = MaxCooldown1
  644.  
  645. end
  646.  
  647.  
  648.  
  649. if Cooldown2 ~= MaxCooldown2 then
  650.  
  651. Cooldown2 = Cooldown2 + 0.1
  652. end
  653.  
  654.  
  655. if Cooldown2 >= MaxCooldown2 then
  656.  
  657. Cooldown2 = MaxCooldown2
  658.  
  659. end
  660.  
  661.  
  662.  
  663. if Cooldown3 ~= MaxCooldown3 then
  664. Cooldown3 = Cooldown3 + 0.1
  665. end
  666.  
  667. if Cooldown3 >= MaxCooldown3 then
  668.  
  669. Cooldown3 = MaxCooldown3
  670.  
  671. end
  672.  
  673.  
  674.  
  675. if Cooldown4 ~= MaxCooldown4 then
  676. Cooldown4 = Cooldown4 + 0.1
  677. end
  678.  
  679. if Cooldown4 >= MaxCooldown4 then
  680.  
  681. Cooldown4 = MaxCooldown4
  682.  
  683. end
  684.  
  685.  
  686.  
  687. if CooldownE ~= MaxCooldownE then
  688. CooldownE = CooldownE + 0.1
  689. end
  690.  
  691. if CooldownE >= MaxCooldownE then
  692.  
  693. CooldownE = MaxCooldownE
  694.  
  695. end
  696.  
  697. --[[ Health Bar ]]--
  698.  
  699. local YellowZone = Humanoid.MaxHealth / 2
  700. local RedZone = Humanoid.MaxHealth / 4
  701.  
  702. if Humanoid.Health <= YellowZone then
  703.  
  704. HealthBarP2.BackgroundColor3 = BrickColor.new("Gold").Color
  705.  
  706. end
  707.  
  708. if Humanoid.Health <= RedZone then
  709.  
  710. HealthBarP2.BackgroundColor3 = BrickColor.new("Bright red").Color
  711.  
  712. end
  713.  
  714. if Humanoid.Health >= YellowZone then
  715.  
  716. HealthBarP2.BackgroundColor3 = BrickColor.new("Lime green").Color
  717.  
  718. end
  719.  
  720.  
  721. --[[ Resize All Bars ]]--
  722.  
  723.  
  724. CoolDown1Bar.Size = UDim2.new(Cooldown1 / MaxCooldown1,0,0,50)
  725. CoolDown2Bar.Size = UDim2.new(Cooldown2 / MaxCooldown2,0,0,50)
  726. CoolDown3Bar.Size = UDim2.new(Cooldown3 / MaxCooldown3,0,0,50)
  727. CoolDown4Bar.Size = UDim2.new(Cooldown4 / MaxCooldown4,0,0,50)
  728. CoolDownEBar.Size = UDim2.new(CooldownE / MaxCooldownE,0,0,50)
  729. HealthBarP2.Size = UDim2.new(Humanoid.Health / Humanoid.MaxHealth,0,0,25)
  730.  
  731. end
  732.  
  733. --[[ attakis ]]--
  734.  
  735. function WAKEMEUPINSIDE()
  736.  
  737. for i = 1,3 do
  738. wait()
  739. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(3,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  740. Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(10,20,3) * CFrame.Angles(-0.5,0,0),0.3)
  741. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(3, 10, 0) * CFrame.Angles(-0.23,0.5,0.2), 0.3)
  742. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(3, 0.1, 0) * CFrame.Angles(0.3,0.2,2), 0.3)
  743. Right_Hip.C0=clerp(Right_Hip.C0,cf(3,-2,9)*CFrame.Angles(2,1.6,-0.2),0.2)
  744. Left_Hip.C0=clerp(Left_Hip.C0,cf(-0,-0,5)*CFrame.Angles(5,-1.6,0.2),0.2)
  745. end
  746.  
  747. ValidateDamage(Torso, 20, 1, 5, "Normal", "Punch", 50)
  748.  
  749. for i = 1,3 do
  750. wait()
  751. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(3,30,0)* CFrame.Angles(-0.3452,0,0),0.2)
  752. Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(12,56,5) * CFrame.Angles(-0.5,0,30),0.3)
  753. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(10, 30, 5) * CFrame.Angles(-0.23,0.5,0.2), 0.3)
  754. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(34, 1, 32) * CFrame.Angles(0.3,0.2,22), 0.3)
  755. Right_Hip.C0=clerp(Right_Hip.C0,cf(5,-3,3)*CFrame.Angles(2,1.6,-0.342),0.2)
  756. Left_Hip.C0=clerp(Left_Hip.C0,cf(-53,-0,25)*CFrame.Angles(5,-41.6,0.52),0.2)
  757. end
  758. ValidateDamage(Torso, 50, 1, 5, "Normal", "Punch", 50)
  759.  
  760. for i = 1,3 do
  761. wait()
  762. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(-3,-30,0)* CFrame.Angles(0.3452,-0,-0),0.2)
  763. Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(-12,-56,5) * CFrame.Angles(0.5,-0,-30),0.3)
  764. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(-10, -30, -5) * CFrame.Angles(0.23,-0.5,-0.2), 0.3)
  765. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-34, -1, -32) * CFrame.Angles(-0.3,-0.2,-22), 0.3)
  766. Right_Hip.C0=clerp(Right_Hip.C0,cf(-5,3,-3)*CFrame.Angles(-2,-1.6,0.342),0.2)
  767. Left_Hip.C0=clerp(Left_Hip.C0,cf(53,0,-25)*CFrame.Angles(-5,41.6,-0.52),0.2)
  768. end
  769. ValidateDamage(Torso, 50, 1, 5, "Normal", "Punch", 50)
  770.  
  771. end
  772.  
  773. function MemeLaunch()
  774.  
  775. memis = {294841732,474498947,474494834,519973850,291736664,513363123,94349155,379915109,331385631,387197836,304460548,196819764}
  776.  
  777. local meme = Instance.new("Part",game.Workspace)
  778. meme.Anchored = true
  779. meme.Position = Torso.Position + Vector3.new(0,5,0)
  780. meme.Rotation = Torso.Rotation + Vector3.new(0,-1,0)
  781. meme.Size = Vector3.new(5, 5, 0.2)
  782. meme.Transparency = 1
  783.  
  784.  
  785. meme.Touched:connect(function(hit)
  786.  
  787.  
  788. ValidateDamage(meme, 10, 1, 1, "Knockdown", "Punch", 130)
  789.  
  790.  
  791. end)
  792.  
  793.  
  794. game:GetService("Debris"):AddItem(meme, 30)
  795.  
  796. local memedecal = Instance.new("Decal", meme)
  797. memedecal.Texture = "http://www.roblox.com/asset?id=" .. memis[math.random(1, #memis)]
  798.  
  799.  
  800. local memedecal2 = memedecal:Clone()
  801. memedecal2.Parent = meme
  802. memedecal2.Face = "Back"
  803.  
  804.  
  805.  
  806. for i = 1,30 do
  807.  
  808. wait()
  809.  
  810.  
  811. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  812. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  813. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.1), 0.3)
  814. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.1), 0.3)
  815. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  816. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  817.  
  818.  
  819. end
  820.  
  821. meme.Anchored = false
  822.  
  823. meme.CFrame = CFrame.new(meme.Position, Mouse.Hit.p)
  824. local memevilocity = CreateVelocity(meme,meme.CFrame.lookVector * 250,Vector3.new(math.huge,math.huge,math.huge))
  825.  
  826.  
  827. for i = 1,30 do
  828.  
  829. wait()
  830.  
  831. ValidateDamage(meme, 1, 1, 33, "Knockdown", "Punch", 5)
  832.  
  833. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(0.8,0,0),0.2)
  834. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  835. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.1), 0.3)
  836. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.1), 0.3)
  837. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,0.8),0.2)
  838. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,-0.8),0.2)
  839.  
  840.  
  841. end
  842.  
  843. Attacking = false
  844. end
  845.  
  846. function JOHNCENA()
  847.  
  848. JOHNCENAh:Play()
  849.  
  850. Humanoid.WalkSpeed = 0
  851. Humanoid.JumpPower = 0
  852.  
  853.  
  854. for i = 1,60 do
  855.  
  856. wait()
  857. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,10)* CFrame.Angles(1.6,1.6,1.6),0.8)
  858. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.3)
  859. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,-0.5), 0.3)
  860. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,0.3), 0.3)
  861. Right_Hip.C0=clerp(Right_Hip.C0,cf(0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  862. Left_Hip.C0=clerp(Left_Hip.C0,cf(-0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  863.  
  864.  
  865. end
  866.  
  867. for i = 1,6 do
  868.  
  869. wait()
  870. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,-2)* CFrame.Angles(1.6,1.6,1.6),0.8)
  871. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.3)
  872. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,-0.5), 0.3)
  873. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,0.3), 0.3)
  874. Right_Hip.C0=clerp(Right_Hip.C0,cf(0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  875. Left_Hip.C0=clerp(Left_Hip.C0,cf(-0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  876.  
  877.  
  878. end
  879.  
  880. local Explosion = Instance.new("Explosion")
  881. Explosion.Parent = game.workspace.Terrain
  882. Explosion.Position = Right_Arm.Position
  883. Explosion.Name = "Boom!"
  884. Explosion.BlastRadius = 0
  885. Explosion.BlastPressure = 0
  886. Explosion.DestroyJointRadiusPercent = 0
  887. Explosion.ExplosionType = "NoCraters"
  888.  
  889. local dmgreference = Instance.new("Part", Services.Workspace)
  890. dmgreference.CFrame = Torso.CFrame
  891. dmgreference.Transparency = 1
  892. dmgreference.Size = Vector3.new()
  893. dmgreference.CanCollide = false
  894.  
  895.  
  896.  
  897. ValidateDamage(dmgreference, 1000, 10, 20, "Knockdown", "Penetration", 100)
  898.  
  899. Humanoid.WalkSpeed = 16
  900. Humanoid.JumpPower = 50
  901.  
  902. Attacking = false
  903.  
  904.  
  905. end
  906.  
  907. function allahuekber()
  908. Attacking = true
  909.  
  910. Sad:Remove()
  911. MakeSFX(Character,433848566, 1, 1)
  912.  
  913. Humanoid.WalkSpeed = 0
  914. Humanoid.JumpPower = 0
  915. wait(5)
  916. MakeSFX(Character, 134854740, 1 , 0.4)
  917. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  918. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  919. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  920. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  921. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  922. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  923. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  924. ValidateDamage(Torso, 1000, 77, 89, "Knockdown", "Penetration", 0)
  925. wait(5)
  926. Character:BreakJoints()
  927.  
  928. end
  929.  
  930. Mouse.KeyDown:connect(function(kei)
  931. if not Attacking then
  932.  
  933. if kei == "z" then
  934.  
  935.  
  936. WakeMeUp = true
  937.  
  938. if JOHNCENAh.IsPlaying == false then
  939. WakeMeUpInside:Resume()
  940. end
  941.  
  942. while WakeMeUp do
  943. WakeMeUp = true
  944. Attacking = true
  945. WAKEMEUPINSIDE()
  946. end
  947.  
  948.  
  949. end
  950. if kei == "x" then
  951.  
  952. Attacking = true
  953.  
  954.  
  955. MemeLaunch()
  956.  
  957.  
  958. end
  959.  
  960. if kei == "c" and JOHNCENAh.IsPlaying == false then
  961.  
  962. Attacking = true
  963.  
  964.  
  965. JOHNCENA()
  966.  
  967. end
  968.  
  969. if kei == "v" then
  970.  
  971. allahuekber()
  972.  
  973. end
  974. end
  975. end)
  976.  
  977. Mouse.KeyUp:connect(function(kei)
  978.  
  979.  
  980. if kei == "z" and WakeMeUp then
  981. Attacking = false
  982. WakeMeUp = false
  983. WakeMeUpInside:Pause()
  984.  
  985.  
  986. end
  987.  
  988. end)
  989.  
  990. Humanoid.Died:connect(function ()
  991.  
  992. Sad:Play()
  993.  
  994. end)
  995.  
  996. --[[ crerp animaxius ]]--
  997. while true do
  998.  
  999. wait()
  1000.  
  1001. Bars()
  1002.  
  1003. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  1004. local Velderp = Root.Velocity.y
  1005. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1006.  
  1007. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  1008. Anim = "Idle"
  1009.  
  1010. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1011. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1012. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  1013. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  1014. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1015. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1016.  
  1017. end
  1018.  
  1019.  
  1020. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  1021. Anim = "Walking"
  1022. WalkForward = true
  1023. Walk = Walk + 1
  1024. if 15 - 5 * Movemment <= Walk then
  1025. Walk = 0
  1026. if WalkForward == true then
  1027. WalkForward = false
  1028. else
  1029. if WalkForward == false then
  1030. WalkForward = true
  1031. end
  1032. end
  1033. end
  1034.  
  1035. if Attacking == false then
  1036. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1037. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1038. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 0.5, 0.6) * CFrame.Angles(-1.6,0,0.2), 0.3)
  1039. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 0.5, 0.6) * CFrame.Angles(-1.6,0,-0.2), 0.3)
  1040. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1041. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1042.  
  1043. end
  1044.  
  1045.  
  1046. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0) * CFrame.Angles(0,1.6,0),0.2)
  1047. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.2)
  1048. end
  1049.  
  1050. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  1051. Anim = "Jump"
  1052.  
  1053. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1054. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1055. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.2), 0.3)
  1056. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.2), 0.3)
  1057. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1058. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1059.  
  1060.  
  1061. end
  1062.  
  1063. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  1064. Anim = "Fall"
  1065.  
  1066. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1067. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  1068. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.2), 0.3)
  1069. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.2), 0.3)
  1070. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1071. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1072.  
  1073. end
  1074.  
  1075. if #Effects > 0 then
  1076. for E = 1, #Effects do
  1077. if Effects[E]~=nil then
  1078. local Effect = Effects[E]
  1079.  
  1080. if Effect ~= nil then
  1081.  
  1082. local Part = Effect[1]
  1083. local Mode = Effect[2]
  1084. local Time = Effect[3]
  1085. local SizeX = Effect[4]
  1086. local SizeY = Effect[5]
  1087. local SizeZ = Effect[6]
  1088.  
  1089. if Effect[1].Transparency <= 1 then
  1090. if Effect[2] == "Block" then
  1091. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1092.  
  1093. Mesh = Effect[1]:FindFirstChild("Mesh")
  1094. if Mesh ~= nil then
  1095. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1096. end
  1097.  
  1098. elseif Effect[2] == "Circle" then
  1099.  
  1100. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  1101. Mesh=Effect[1].Mesh
  1102. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1103. end
  1104.  
  1105. else
  1106.  
  1107. Part.Parent=nil
  1108.  
  1109. table.remove(Effects, E)
  1110.  
  1111. end
  1112. end
  1113. end
  1114. end
  1115. end
  1116. end
  1117. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement