Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.52 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. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. local plr = owner
  85. local char = plr.Character
  86. local torso = char.Torso
  87. local rs = torso["Right Shoulder"]
  88. local ls = torso["Left Shoulder"]
  89. local rh = torso["Right Hip"]
  90. local lh = torso["Left Hip"]
  91. local rj = char.HumanoidRootPart.RootJoint
  92. local neck = torso.Neck
  93. local animpose = "Idle"
  94. local attacking = false
  95. local cananim = true
  96. local rage = false
  97. local shield
  98. local sprint = false
  99. local canrage = true
  100. local legs = true
  101. local bc = char:WaitForChild("Body Colors")
  102. local multiplier = 1
  103. local lac = char["Body Colors"].LeftArmColor
  104. local rac = char["Body Colors"].RightArmColor
  105. local rlc = char["Body Colors"].RightArmColor
  106. local llc = char["Body Colors"].LeftLegColor
  107. local hc = char["Body Colors"].HeadColor
  108. local tc = char["Body Colors"].TorsoColor
  109. local humanoid = char:FindFirstChildOfClass("Humanoid")
  110. local huge = Vector3.new(math.huge, math.huge, math.huge)
  111. local mobs = Instance.new("Sound", char)
  112. mobs.SoundId = "rbxassetid://607042800"
  113. mobs.Looped = true
  114. mobs.Volume = 3
  115. humanoid.MaxHealth = math.huge
  116. wait()
  117. humanoid.Health = math.huge
  118. humanoid.Name = "DragonClawThe F3st Boi"
  119. mobs:Play()
  120. if char:FindFirstChild("Animate") then
  121. char.Animate:Destroy()
  122. end
  123. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then
  124. char:FindFirstChildOfClass("Humanoid").Animator:Destroy()
  125. end
  126. function legsonly()
  127. spawn(function()
  128. for i = 0, 10 do
  129. wait(0.001)
  130. if attacking then
  131. break
  132. end
  133. end
  134. if not attacking then
  135. legs = false
  136. end
  137. end)
  138. end
  139. function swait(t)
  140. if t == nil or t == 0 then
  141. game:service("RunService").Stepped:wait(0)
  142. else
  143. for i = 0, t do
  144. game:service("RunService").Stepped:wait(0)
  145. end
  146. end
  147. end
  148. function KICK(PLAYER)
  149. spawn(function()
  150. local function SKICK()
  151. if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") and PLAYER.Character:FindFirstChild("Torso") then
  152. PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  153. do
  154. local SP = Instance.new("SkateboardPlatform", PLAYER.Character)
  155. SP.Position = PLAYER.Character.HumanoidRootPart.Position
  156. SP.Transparency = 1
  157. spawn(function()
  158. repeat
  159. swait()
  160. if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") then
  161. SP.Position = PLAYER.Character.HumanoidRootPart.Position
  162. end
  163. until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  164. end)
  165. PLAYER.Character.Torso.Anchored = true
  166. end
  167. end
  168. end
  169. spawn(function()
  170. repeat
  171. wait()
  172. if PLAYER ~= nil then
  173. SKICK()
  174. end
  175. until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  176. if not game:GetService("Players"):FindFirstChild(PLAYER.Name) then
  177. print("REMOVED " .. PLAYER.Name)
  178. end
  179. end)
  180. end)
  181. end
  182. function hurt(hit, dmg)
  183. if hit.Parent then
  184. if hit.Parent:IsA("LocalScript") then
  185. print("bocks!11")
  186. hit.Parent:Destroy()
  187. end
  188. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  189. if hum and hum.Parent.Name ~= plr.Name then
  190. if dmg == "Kill" or hum.Health > 100000 then
  191. hit.Parent:BreakJoints()
  192. return true
  193. else
  194. if math.random(0, 100) == 50 then
  195. hum.Health = hum.Health - dmg * multiplier * 2.5
  196. else
  197. hum.Health = hum.Health - dmg * multiplier
  198. end
  199. return true
  200. end
  201. end
  202. end
  203. end
  204. function soundeffect(id, volume, speed, parent)
  205. spawn(function()
  206. local s = Instance.new("Sound")
  207. s.SoundId = id
  208. s.Volume = volume
  209. s.PlaybackSpeed = speed
  210. s.Parent = parent
  211. s:Play()
  212. repeat
  213. wait()
  214. until not s.Playing
  215. s:Destroy()
  216. end)
  217. end
  218. function gethum(obj)
  219. if obj.Parent and obj.Parent:FindFirstChild("Humanoid") and obj.Parent.Name ~= plr.Name then
  220. return obj.Parent:FindFirstChildOfClass("Humanoid")
  221. end
  222. end
  223. function smooth(obj)
  224. local sides = {
  225. "Left",
  226. "Right",
  227. "Top",
  228. "Bottom",
  229. "Front",
  230. "Back"
  231. }
  232. for i, v in pairs(sides) do
  233. obj[v .. "Surface"] = "SmoothNoOutlines"
  234. end
  235. end
  236. function fade(obj, dest, grow)
  237. spawn(function()
  238. local oldcf = obj.CFrame
  239. for i = 0, 10 do
  240. if grow then
  241. obj.Size = obj.Size + Vector3.new(1, 1, 1)
  242. obj.CFrame = oldcf
  243. end
  244. obj.Transparency = obj.Transparency + 0.1
  245. swait()
  246. end
  247. if dest then
  248. obj:Destroy()
  249. end
  250. end)
  251. end
  252. local keyamount = 0
  253. mouse.KeyDown:connect(function(key)
  254. if key == "w" or key == "a" or key == "s" or key == "d" then
  255. keyamount = keyamount + 1
  256. if animpose ~= "Falling" then
  257. if keyamount > 3 then
  258. keyamount = 0
  259. end
  260. animpose = "Walking"
  261. end
  262. end
  263. end)
  264. mouse.KeyUp:connect(function(key)
  265. if key == "w" or key == "a" or key == "s" or key == "d" then
  266. keyamount = keyamount - 1
  267. if keyamount < 0 then
  268. keyamount = 0
  269. end
  270. if keyamount == 0 then
  271. animpose = "Idle"
  272. end
  273. end
  274. end)
  275. local gun = Instance.new("Part")
  276. gun.Size = Vector3.new(3.175, 1.916, 0.465)
  277. gun.CanCollide = false
  278. local m = Instance.new("SpecialMesh", gun)
  279. m.MeshId = "rbxassetid://430054382"
  280. m.TextureId = "rbxassetid://1294644359"
  281. m.Scale = Vector3.new(0.1, 0.1, 0.1)
  282. gun.CFrame = char.Torso.CFrame
  283. gun.Parent = char
  284. local gunw = Instance.new("Weld", gun)
  285. gunw.Part0 = gun
  286. gunw.Part1 = char["Right Arm"]
  287. gunw.C0 = CFrame.new(-1.7838248, -0.410839319, 0, -0.0871557146, -0.996194541, 0, 0.996194541, -0.0871557146, 0, 0, 0, 1)
  288. mouse.Button1Down:connect(function()
  289. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  290. local mag = (gun.Position - mouse.Hit.p).magnitude
  291. local p = Instance.new("Part")
  292. p.CanCollide = false
  293. p.Anchored = false
  294. p.BrickColor = BrickColor.new("Institutional white")
  295. p.Size = Vector3.new(0.2, 0.2, mag)
  296. smooth(p)
  297. p.Material = "Neon"
  298. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  299. local m = Instance.new("SpecialMesh", p)
  300. m.MeshType = "Brick"
  301. p.Parent = workspace
  302. p.Touched:connect(function(hit)
  303. hurt(hit, "Kill")
  304. if hit.Size.X > 100 and 100 < hit.Size.Z and hit.Size.Y < 3 then
  305. elseif hit.Parent and hit.Parent.Name ~= plr.Name then
  306. fade(hit, true)
  307. end
  308. end)
  309. local bp = Instance.new("BodyPosition", p)
  310. bp.MaxForce = huge
  311. bp.Position = p.Position
  312. local saved = p.CFrame
  313. for i = 1, 10 do
  314. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  315. p.CFrame = saved
  316. p.Velocity = Vector3.new(0, 0, 100)
  317. p.Transparency = p.Transparency + 0.1
  318. wait()
  319. end
  320. p:Destroy()
  321. end)
  322. mouse.KeyDown:connect(function(key)
  323. if key == "l" then
  324. function a(b)
  325. pcall(function()
  326. for i, v in pairs(b:children()) do
  327. pcall(function()
  328. if v:IsA("BasePart") and v.Parent and v.Parent.Name == "WafflesAreVeryGood" and v.Anchored then
  329. v.Anchored = false
  330. end
  331. if v:IsA("Sound") and v.Parent.Name ~= "WafflesAreVeryGood" then
  332. v:Destroy()
  333. end
  334. if v:IsA("ParticleEmitter") then
  335. v:Destroy()
  336. end
  337. a(v)
  338. end)
  339. end
  340. end)
  341. end
  342. a(game)
  343. end
  344. if key == "q" then
  345. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  346. local mag = (gun.Position - mouse.Hit.p).magnitude
  347. local p = Instance.new("Part")
  348. p.CanCollide = false
  349. p.Anchored = false
  350. p.BrickColor = BrickColor.new("Really red")
  351. p.Size = Vector3.new(0.2, 0.2, mag)
  352. smooth(p)
  353. p.Material = "Neon"
  354. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  355. local m = Instance.new("SpecialMesh", p)
  356. m.MeshType = "Brick"
  357. p.Parent = workspace
  358. p.Touched:connect(function(hit)
  359. if gethum(hit) then
  360. for i, v in pairs(hit.Parent:children()) do
  361. if v:IsA("Model") then
  362. v:BreakJoints()
  363. end
  364. local ok = false
  365. for i, e in pairs({
  366. "Right Arm",
  367. "Left Arm",
  368. "Right Leg",
  369. "Left Leg",
  370. "Head",
  371. "Torso",
  372. "HumanoidRootPart"
  373. }) do
  374. if v.Name == e then
  375. ok = true
  376. end
  377. end
  378. if v:IsA("BasePart") and not ok then
  379. fade(v, true)
  380. end
  381. end
  382. end
  383. if hit:FindFirstChildOfClass("TouchTransmitter") then
  384. hit:FindFirstChildOfClass("TouchTransmitter"):Destroy()
  385. end
  386. end)
  387. local bp = Instance.new("BodyPosition", p)
  388. bp.MaxForce = huge
  389. bp.Position = p.Position
  390. local saved = p.CFrame
  391. for i = 1, 10 do
  392. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  393. p.CFrame = saved
  394. p.Velocity = Vector3.new(0, 0, 100)
  395. p.Transparency = p.Transparency + 0.1
  396. wait()
  397. end
  398. p:Destroy()
  399. end
  400. if key == "e" then
  401. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  402. local mag = (gun.Position - mouse.Hit.p).magnitude
  403. local p = Instance.new("Part")
  404. p.CanCollide = false
  405. p.Anchored = false
  406. p.BrickColor = BrickColor.new("New Yeller")
  407. p.Size = Vector3.new(0.2, 0.2, mag)
  408. smooth(p)
  409. p.Material = "Neon"
  410. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  411. local m = Instance.new("SpecialMesh", p)
  412. m.MeshType = "Brick"
  413. p.Parent = workspace
  414. p.Touched:connect(function(hit)
  415. if gethum(hit) then
  416. local target = game.Players:FindFirstChild(hit.Parent.Name)
  417. if target then
  418. KICK(target)
  419. end
  420. end
  421. end)
  422. local bp = Instance.new("BodyPosition", p)
  423. bp.MaxForce = huge
  424. bp.Position = p.Position
  425. local saved = p.CFrame
  426. for i = 1, 10 do
  427. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  428. p.CFrame = saved
  429. p.Velocity = Vector3.new(0, 0, 100)
  430. p.Transparency = p.Transparency + 0.1
  431. wait()
  432. end
  433. p:Destroy()
  434. end
  435. if key == "r" then
  436. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  437. local mag = (gun.Position - mouse.Hit.p).magnitude
  438. local p = Instance.new("Part")
  439. p.CanCollide = false
  440. p.Anchored = false
  441. p.BrickColor = BrickColor.new("Lime green")
  442. p.Size = Vector3.new(0.2, 0.2, mag)
  443. smooth(p)
  444. p.Material = "Neon"
  445. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  446. local m = Instance.new("SpecialMesh", p)
  447. m.MeshType = "Brick"
  448. p.Parent = workspace
  449. p.Touched:connect(function(hit)
  450. local hum = gethum(hit)
  451. if hum then
  452. hum.Health = hum.MaxHealth
  453. end
  454. end)
  455. local bp = Instance.new("BodyPosition", p)
  456. bp.MaxForce = huge
  457. bp.Position = p.Position
  458. local saved = p.CFrame
  459. for i = 1, 10 do
  460. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  461. p.CFrame = saved
  462. p.Velocity = Vector3.new(0, 0, 100)
  463. p.Transparency = p.Transparency + 0.1
  464. wait()
  465. end
  466. p:Destroy()
  467. end
  468. end)
  469. game:GetService("RunService").Stepped:connect(function()
  470. local x, z
  471. local dir = CFrame.new(char.HumanoidRootPart.Position, mouse.Hit.p).lookVector
  472. x = dir.X
  473. z = dir.Z
  474. local cf = CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position + Vector3.new(x, 0, z))
  475. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame:Lerp(cf, 0.5)
  476. humanoid.AutoRotate = false
  477. end)
  478. while wait() do
  479. if animpose == "Walking" and cananim and legs then
  480. for i = 0, 0.7, 0.1 do
  481. if animpose == "Walking" and cananim and legs then
  482. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  483. rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  484. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  485. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  486. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4)
  487. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4)
  488. wait()
  489. else
  490. break
  491. end
  492. end
  493. for i = 0, 0.7, 0.1 do
  494. if animpose == "Walking" and cananim and legs then
  495. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  496. rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  497. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  498. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  499. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4)
  500. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4)
  501. wait()
  502. else
  503. break
  504. end
  505. end
  506. end
  507. if animpose == "Idle" and cananim and legs then
  508. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  509. rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  510. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  511. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  512. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.5)
  513. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0523359627, 0.998629689, 0, 0.998629689, 0.0523359627, -1, 0, 0), 0.5)
  514. end
  515. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement