pakin2549

Untitled

Jan 1st, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.87 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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
  5.  
  6. local plr = owner
  7. local sine = 0
  8. local change = 1
  9. local val = 0
  10. local idle = 0
  11. local donum = 0
  12. local donum2 = 0
  13. local char = plr.Character
  14. local mouse = plr:GetMouse()
  15. local torso = char.Torso
  16. local rs = torso["Right Shoulder"]
  17. local ls = torso["Left Shoulder"]
  18. local rh = torso["Right Hip"]
  19. local lh = torso["Left Hip"]
  20. local rj = char.HumanoidRootPart.RootJoint
  21. local neck = torso.Neck
  22. local animpose = "Idle"
  23. local attacking = false
  24. local cananim = true
  25. local rage = false
  26. local shield = nil
  27. local deb = false
  28. local sprint = false
  29. local RAC = char.Torso:WaitForChild("Right Shoulder")
  30. local LAC = char.Torso:WaitForChild("Left Shoulder")
  31. local RA = char:FindFirstChild("Right Arm")
  32. local LA = char:FindFirstChild("Left Arm")
  33. local Torso = char.Torso
  34. local Head = char.Head
  35. local RL = char:FindFirstChild("Right Leg")
  36. local LL = char:FindFirstChild("Left Leg")
  37. local Root = char.HumanoidRootPart
  38. local Humanoid = char.Humanoid
  39. local canrage = true
  40. local legs = false
  41. local powers = false
  42. local bc = char:WaitForChild("Body Colors")
  43. local multiplier = 1
  44. local lac = char["Body Colors"].LeftArmColor
  45. local rac = char["Body Colors"].RightArmColor
  46. local rlc = char["Body Colors"].RightArmColor
  47. local llc = char["Body Colors"].LeftLegColor
  48. local hc = char["Body Colors"].HeadColor
  49. local tc = char["Body Colors"].TorsoColor
  50. local humanoid = char:FindFirstChildOfClass("Humanoid")
  51. local huge = Vector3.new(math.huge,math.huge,math.huge)
  52. local mobs = Instance.new("Sound", Torso)
  53. mobs.SoundId = "rbxassetid://174437226"
  54. mobs.Looped = false
  55. mobs.Volume = 3
  56. mobs:Play()
  57. local naeeym2 = Instance.new("BillboardGui",char)
  58. naeeym2.AlwaysOnTop = true
  59. naeeym2.Size = UDim2.new(5,35,2,35)
  60. naeeym2.StudsOffset = Vector3.new(0,3,0)
  61. naeeym2.Adornee = char.Head
  62. naeeym2.Name = "Name"
  63. local tecks2 = Instance.new("TextLabel",naeeym2)
  64. tecks2.BackgroundTransparency = 1
  65. tecks2.TextScaled = true
  66. tecks2.BorderSizePixel = 0
  67. tecks2.Text = "Itz_Xord Have Some Gift For Skid boy"
  68. tecks2.Font = "Code"
  69. tecks2.TextSize = 35
  70. tecks2.TextTransparency = 0
  71. tecks2.TextStrokeTransparency = 1
  72. tecks2.TextColor3 = Color3.new(22,29,50)
  73. tecks2.Size = UDim2.new(1,0,0.5,0)
  74. tecks2.Parent = naeeym2
  75. Player = owner
  76. Character = Player.Character
  77. PlayerGui = Player.PlayerGui
  78. Backpack = Player.Backpack
  79. Torso = Character.Torso
  80. Head = Character.Head
  81. Humanoid = Character.Humanoid
  82. LeftArm = Character["Left Arm"]
  83. LeftLeg = Character["Left Leg"]
  84. RightArm = Character["Right Arm"]
  85. RightLeg = Character["Right Leg"]
  86. Character = Player.Character
  87. PlayerGui = Player.PlayerGui
  88. Backpack = Player.Backpack
  89. Torso = Character.Torso
  90. Head = Character.Head
  91. Humanoid = Character.Humanoid
  92. LS = Torso["Left Shoulder"]
  93. LH = Torso["Left Hip"]
  94. RS = Torso["Right Shoulder"]
  95. RH = Torso["Right Hip"]
  96. Neck = Torso.Neck
  97. attacktype = 1
  98. vt = Vector3.new
  99. cf = CFrame.new
  100. euler = CFrame.fromEulerAnglesXYZ
  101. angles = CFrame.Angles
  102. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  103. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  104. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  105. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  106. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  107. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  108. RootPart = Character.HumanoidRootPart
  109. RootJoint = RootPart.RootJoint
  110. RootCF = euler(-1.57, 0, 3.14)
  111. attack = false
  112. equipped = true
  113. local Anim = "Idle"
  114. local Effects = {}
  115. mouse = Player:GetMouse()
  116. RSH, LSH = nil, nil
  117. LH = Torso["Left Hip"]
  118. RH = Torso["Right Hip"]
  119. RSH = Torso["Right Shoulder"]
  120. LSH = Torso["Left Shoulder"]
  121. local RbxUtility = LoadLibrary("RbxUtility")
  122. local Create = RbxUtility.Create
  123. RW = Create("Weld"){
  124. Name = "Right Shoulder",
  125. Part0 = Torso ,
  126. C0 = cf(1.5, 0.5, 0),
  127. C1 = cf(0, 0.5, 0),
  128. Part1 = RightArm ,
  129. Parent = Torso ,
  130. }
  131. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  132. local fp = Create("Part"){
  133. formFactor = formfactor,
  134. Parent = parent,
  135. Reflectance = reflectance,
  136. Transparency = transparency,
  137. CanCollide = false,
  138. Locked = true,
  139. BrickColor = BrickColor.new(tostring(brickcolor)),
  140. Name = name,
  141. Size = size,
  142. Position = Character.Torso.Position,
  143. Material = material,
  144. }
  145. nooutline(fp)
  146. return fp
  147. end
  148. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  149. local Msh = Create(Mesh){
  150. Parent = part,
  151. Offset = offset,
  152. Scale = scale,
  153. }
  154. if Mesh == "SpecialMesh" then
  155. Msh.MeshType = meshtype
  156. Msh.MeshId = meshid
  157. end
  158. return Msh
  159. end
  160.  
  161. LW = Create("Weld"){
  162. Name = "Left Shoulder",
  163. Part0 = Torso ,
  164. C0 = cf(-1.5, 0.5, 0),
  165. C1 = cf(0, 0.5, 0) ,
  166. Part1 = LeftArm ,
  167. Parent = Torso ,
  168. }
  169. function clerp(a, b, t)
  170. return a:lerp(b, t)
  171. end
  172. function swait(t)
  173. if t == nil or t == 0 then
  174. game:service('RunService').Stepped:wait(0)
  175. return true
  176. else
  177. for i = 0, t do
  178. game:service('RunService').Stepped:wait(0)
  179. end
  180. return true
  181. end
  182. end
  183. function legsonly()
  184. spawn(function()
  185. for i = 0, 10 do
  186. wait(0.001)
  187. if attacking then break end
  188. end
  189. if not attacking then
  190. legs = false
  191. end
  192. end)
  193. end
  194. function swait(t)
  195. if t == nil or t == 0 then
  196. game:service('RunService').Stepped:wait(0)
  197. return true
  198. else
  199. for i = 0, t do
  200. game:service('RunService').Stepped:wait(0)
  201. end
  202. return true
  203. end
  204. end
  205.  
  206. function replacejoint(name)
  207. local j = torso:FindFirstChild(name)
  208. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  209. if j then
  210. if true then
  211. local new = Instance.new("Weld")
  212. new.Part0 = j.Part0
  213. j.Part0 = nil
  214. new.Name = j.Name.." Replacement"
  215. new.Parent = j.Parent
  216. new.Part1 = j.Part1
  217. new.C0 = j.C0
  218. new.C1 = j.C1
  219. return new
  220. end
  221. end
  222. end
  223. function rayCast(Pos, Dir, Max, Ignore)
  224. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  225. end
  226. function removejoint(name)
  227. local j = torso:FindFirstChild(name.." Replacement")
  228. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  229. if j then
  230. local p0 = j.Part0
  231. local c0 = j.C0
  232. local c1 = j.C1
  233. j:Destroy()
  234. local new = p0:FindFirstChild(name)
  235. local ac0 = new.C0
  236. local ac1 = new.C1
  237. new.Part0 = p0
  238. new.C0 = c0
  239. new.C1 = c1
  240. spawn(function()
  241. for i = 0, 1, 0.1 do
  242. new.C0 = new.C0:Lerp(ac0, 0.7)
  243. new.C1 = new.C1:lerp(ac1, 0.7)
  244. wait()
  245. end
  246. end)
  247. end
  248. end
  249. function fixalljoints()
  250. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  251. removejoint(v)
  252. end
  253. end
  254. function getnewjoints()
  255. local rs = replacejoint("Right Shoulder")
  256. local ls = replacejoint("Left Shoulder")
  257. local rh = replacejoint("Right Hip")
  258. local lh = replacejoint("Left Hip")
  259. local neck = replacejoint("Neck")
  260. local rj = replacejoint("RootJoint")
  261. return rs,ls,rh,lh,neck,rj
  262. end
  263. function weld(parent, part0, part1, c0, c1)
  264. local Weld = Create("Weld"){
  265. Parent = parent,
  266. Part0 = part0,
  267. Part1 = part1,
  268. C0 = c0,
  269. C1 = c1,
  270. }
  271. return Weld
  272. end
  273.  
  274.  
  275. ---Lucnher
  276.  
  277. local Driver = Instance.new("Part")
  278. Driver.Parent = Torso
  279. Driver.BrickColor = BrickColor.new("Really black")
  280. Driver.CanCollide = false
  281. Driver.Material = "Neon"
  282. local weld = Instance.new("Weld")
  283. weld.Part0 = RA
  284. weld.Part1 = Driver
  285. weld.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(-55,0,0)
  286. weld.Parent = Driver
  287. local BeyondDriver = Instance.new("SpecialMesh")
  288. BeyondDriver.MeshType = "FileMesh"
  289. BeyondDriver.MeshId = "rbxassetid://3714244535"
  290. BeyondDriver.Parent = Driver
  291. local skill = false
  292.  
  293. mouse.KeyDown:connect(function(key)
  294. if key == "f" then
  295. local lock = Instance.new("Sound", Torso)
  296. lock.SoundId = "rbxassetid://173966757"
  297. lock.Looped = true
  298. lock.Volume = 0.5
  299. lock:Play()
  300. wait(2)
  301. local fire = Instance.new("Sound", Torso)
  302. fire.SoundId = "rbxassetid://132456187"
  303. fire.Looped = false
  304. fire.Volume = 1
  305. fire:Play()
  306. lock:Destroy()
  307. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  308. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  309. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.3)
  310. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  311. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  312. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  313. wait()
  314.  
  315. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  316. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  317. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(-120), math.rad(0), math.rad(0)), 0.3)
  318. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  319. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  320. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  321. local Part = Instance.new('Part')
  322. Part.Shape = Enum.PartType.Ball
  323. Part.Anchored = false
  324. Part.CanCollide = false
  325. Part.Transparency = 0.5
  326. Part.Color = Color3.fromRGB(255,0,0)
  327. Part.Material = Enum.Material.Neon
  328. Part.Size = Vector3.new(0.5,0.5,0.5)
  329. Part.CFrame = RA.CFrame * CFrame.new(0,0,2) * CFrame.Angles(mouse.Hit.x,mouse.Hit.z,mouse.Hit.y)
  330. Part.Parent = workspace
  331. local Mash = Instance.new("SpecialMesh")
  332. Mash.Parent = Part
  333. Mash.MeshId = "rbxassetid://3714864565"
  334. Mash.TextureId = "rbxassetid://3714864630"
  335.  
  336. local BodyVelocity = Instance.new("BodyVelocity")
  337. BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  338. game:GetService('RunService').Stepped:Connect(function() wait()
  339. BodyVelocity.Velocity = mouse.Hit.lookVector*160
  340. end)
  341. BodyVelocity.Parent = Part
  342. local Debounce = true
  343. Part.Touched:Connect(function(h)
  344. if h.Parent:FindFirstChildOfClass('Part') then
  345. Debounce = false
  346. local rodah = Instance.new("Sound")
  347. rodah.Parent = game.workspace
  348. rodah.Volume = 2
  349. rodah.SoundId = "rbxassetid://315775189"
  350. rodah:Play()
  351. local x = Instance.new("Explosion")
  352. x.Parent = Part
  353. x.BlastRadius = 10
  354. x.BlastPressure = 10
  355. x.ExplosionType = Enum.ExplosionType.CratersAndDebris
  356. x.Position = Part.Position
  357. if h.Parent:FindFirstChildOfClass('Humanoid') then
  358. local Enemy = h.Parent.Humanoid
  359. Enemy:TakeDamage(100)
  360. Enemy:Destroy()
  361. end
  362. wait(1)
  363. Debounce = true
  364. x:Destroy()
  365. rodah:Destroy()
  366. end
  367. end)
  368. wait(1)
  369. fire:Destroy()
  370. end
  371. end)
  372.  
  373. local Force = Instance.new("ForceField")
  374. Force.Visible = false
  375. Force.Parent = plr.Character
  376.  
  377. game:GetService('RunService').Stepped:Connect(function() wait()
  378.  
  379.  
  380.  
  381. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  382. velderp = RootPart.Velocity.y
  383. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  384. swait()
  385. if torvel < 1 and hitfloor ~= nil and skill == false then
  386. Anim = "Idle"
  387. change = 1
  388. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  389. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  390. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  391. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  392. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  393. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  394.  
  395. elseif torvel > 2 and hitfloor ~= nil then
  396. Anim = "Walk"
  397. change = 1
  398. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  399. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  400. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  401. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  402. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  403. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  404. end
  405. end)
Add Comment
Please, Sign In to add comment