Advertisement
Lukas17

Untitled

Feb 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.66 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = plr.Character
  3. local mouse = plr:GetMouse()
  4. local torso = char.Torso
  5. local rs = torso["Right Shoulder"]
  6. local ls = torso["Left Shoulder"]
  7. local rh = torso["Right Hip"]
  8. local lh = torso["Left Hip"]
  9. local rj = char.HumanoidRootPart.RootJoint
  10. local neck = torso.Neck
  11. local animpose = "Idle"
  12. local attacking = false
  13. local cananim = true
  14. local rage = false
  15. local shield
  16. local sprint = false
  17. local canrage = true
  18. local legs = true
  19. local bc = char:WaitForChild("Body Colors")
  20. local multiplier = 1
  21. local lac = char["Body Colors"].LeftArmColor
  22. local rac = char["Body Colors"].RightArmColor
  23. local rlc = char["Body Colors"].RightArmColor
  24. local llc = char["Body Colors"].LeftLegColor
  25. local hc = char["Body Colors"].HeadColor
  26. local tc = char["Body Colors"].TorsoColor
  27. local humanoid = char:FindFirstChildOfClass("Humanoid")
  28. local huge = Vector3.new(math.huge, math.huge, math.huge)
  29. local mobs = Instance.new("Sound", char)
  30. mobs.SoundId = "rbxassetid://463873039"
  31. mobs.Looped = true
  32. mobs.Volume = 5
  33. humanoid.MaxHealth = math.huge
  34. wait()
  35. humanoid.Health = math.huge
  36. humanoid.Name = "BOOM BOOM BOOOMMMM!"
  37. mobs:Play()
  38. if char:FindFirstChild("Animate") then
  39. char.Animate:Destroy()
  40. end
  41. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then
  42. char:FindFirstChildOfClass("Humanoid").Animator:Destroy()
  43. end
  44. function legsonly()
  45. spawn(function()
  46. for i = 0, 10 do
  47. wait(0.001)
  48. if attacking then
  49. break
  50. end
  51. end
  52. if not attacking then
  53. legs = false
  54. end
  55. end)
  56. end
  57. function swait(t)
  58. if t == nil or t == 0 then
  59. game:service("RunService").Stepped:wait(0)
  60. else
  61. for i = 0, t do
  62. game:service("RunService").Stepped:wait(0)
  63. end
  64. end
  65. end
  66. function KICK(PLAYER)
  67. spawn(function()
  68. local function SKICK()
  69. if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") and PLAYER.Character:FindFirstChild("Torso") then
  70. PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  71. do
  72. local SP = Instance.new("SkateboardPlatform", PLAYER.Character)
  73. SP.Position = PLAYER.Character.HumanoidRootPart.Position
  74. SP.Transparency = 1
  75. spawn(function()
  76. repeat
  77. swait()
  78. if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") then
  79. SP.Position = PLAYER.Character.HumanoidRootPart.Position
  80. end
  81. until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  82. end)
  83. PLAYER.Character.Torso.Anchored = true
  84. end
  85. end
  86. end
  87. spawn(function()
  88. repeat
  89. wait()
  90. if PLAYER ~= nil then
  91. SKICK()
  92. end
  93. until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  94. if not game:GetService("Players"):FindFirstChild(PLAYER.Name) then
  95. print("REMOVED " .. PLAYER.Name)
  96. end
  97. end)
  98. end)
  99. end
  100. function hurt(hit, dmg)
  101. if hit.Parent then
  102. if hit.Parent:IsA("LocalScript") then
  103. print("bocks!11")
  104. hit.Parent:Destroy()
  105. end
  106. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  107. if hum and hum.Parent.Name ~= plr.Name then
  108. if dmg == "Kill" or hum.Health > 100000 then
  109. hit.Parent:BreakJoints()
  110. return true
  111. else
  112. if math.random(0, 100) == 50 then
  113. hum.Health = hum.Health - dmg * multiplier * 2.5
  114. else
  115. hum.Health = hum.Health - dmg * multiplier
  116. end
  117. return true
  118. end
  119. end
  120. end
  121. end
  122. function soundeffect(id, volume, speed, parent)
  123. spawn(function()
  124. local s = Instance.new("Sound")
  125. s.SoundId = id
  126. s.Volume = volume
  127. s.PlaybackSpeed = speed
  128. s.Parent = parent
  129. s:Play()
  130. repeat
  131. wait()
  132. until not s.Playing
  133. s:Destroy()
  134. end)
  135. end
  136. function gethum(obj)
  137. if obj.Parent and obj.Parent:FindFirstChild("Humanoid") and obj.Parent.Name ~= plr.Name then
  138. return obj.Parent:FindFirstChildOfClass("Humanoid")
  139. end
  140. end
  141. function smooth(obj)
  142. local sides = {
  143. "Left",
  144. "Right",
  145. "Top",
  146. "Bottom",
  147. "Front",
  148. "Back"
  149. }
  150. for i, v in pairs(sides) do
  151. obj[v .. "Surface"] = "SmoothNoOutlines"
  152. end
  153. end
  154. function fade(obj, dest, grow)
  155. spawn(function()
  156. local oldcf = obj.CFrame
  157. for i = 0, 10 do
  158. if grow then
  159. obj.Size = obj.Size + Vector3.new(1, 1, 1)
  160. obj.CFrame = oldcf
  161. end
  162. obj.Transparency = obj.Transparency + 0.1
  163. swait()
  164. end
  165. if dest then
  166. obj:Destroy()
  167. end
  168. end)
  169. end
  170. local keyamount = 0
  171. mouse.KeyDown:connect(function(key)
  172. if key == "w" or key == "a" or key == "s" or key == "d" then
  173. keyamount = keyamount + 1
  174. if animpose ~= "Falling" then
  175. if keyamount > 3 then
  176. keyamount = 0
  177. end
  178. animpose = "Walking"
  179. end
  180. end
  181. end)
  182. mouse.KeyUp:connect(function(key)
  183. if key == "w" or key == "a" or key == "s" or key == "d" then
  184. keyamount = keyamount - 1
  185. if keyamount < 0 then
  186. keyamount = 0
  187. end
  188. if keyamount == 0 then
  189. animpose = "Idle"
  190. end
  191. end
  192. end)
  193. local gun = Instance.new("Part")
  194. gun.Size = Vector3.new(2.715, 3.532, 1.902)
  195. gun.CanCollide = false
  196. local m = Instance.new("SpecialMesh", gun)
  197. m.MeshId = "rbxassetid://483890463"
  198. m.TextureId = "rbxassetid://483890478"
  199. m.Scale = Vector3.new(0.1, 0.1, 0.1)
  200. gun.CFrame = char.Torso.CFrame
  201. gun.Orientation = 80, 0, 0
  202. gun.Parent = char
  203. local gunw = Instance.new("Weld", gun)
  204. gunw.Part0 = gun
  205. gunw.Part1 = char["Right Arm"]
  206. gunw.C0 = CFrame.new(-1.7838248, -0.410839319, 0, -0.0871557146, -0.996194541, 0, 0.996194541, -0.0871557146, 0, 0, 0, 1)
  207. mouse.Button1Down:connect(function()
  208. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  209. local mag = (gun.Position - mouse.Hit.p).magnitude
  210. local p = Instance.new("Part")
  211. p.CanCollide = false
  212. p.Anchored = false
  213. p.BrickColor = BrickColor.new("Institutional white")
  214. p.Size = Vector3.new(0.2, 0.2, mag)
  215. smooth(p)
  216. p.Material = "Neon"
  217. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  218. local m = Instance.new("SpecialMesh", p)
  219. m.MeshType = "Brick"
  220. p.Parent = workspace
  221. p.Touched:connect(function(hit)
  222. hurt(hit, "Kill")
  223. if hit.Size.X > 100 and 100 < hit.Size.Z and hit.Size.Y < 3 then
  224. elseif hit.Parent and hit.Parent.Name ~= plr.Name then
  225. fade(hit, true)
  226. end
  227. end)
  228. local bp = Instance.new("BodyPosition", p)
  229. bp.MaxForce = huge
  230. bp.Position = p.Position
  231. local saved = p.CFrame
  232. for i = 1, 10 do
  233. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  234. p.CFrame = saved
  235. p.Velocity = Vector3.new(0, 0, 100)
  236. p.Transparency = p.Transparency + 0.1
  237. wait()
  238. end
  239. p:Destroy()
  240. end)
  241. mouse.KeyDown:connect(function(key)
  242. if key == "l" then
  243. function a(b)
  244. pcall(function()
  245. for i, v in pairs(b:children()) do
  246. pcall(function()
  247. if v:IsA("BasePart") and v.Parent and v.Parent.Name == "WafflesAreVeryGood" and v.Anchored then
  248. v.Anchored = false
  249. end
  250. if v:IsA("Sound") and v.Parent.Name ~= "WafflesAreVeryGood" then
  251. v:Destroy()
  252. end
  253. if v:IsA("ParticleEmitter") then
  254. v:Destroy()
  255. end
  256. a(v)
  257. end)
  258. end
  259. end)
  260. end
  261. a(game)
  262. end
  263. if key == "q" then
  264. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  265. local mag = (gun.Position - mouse.Hit.p).magnitude
  266. local p = Instance.new("Part")
  267. p.CanCollide = false
  268. p.Anchored = false
  269. p.BrickColor = BrickColor.new("Really red")
  270. p.Size = Vector3.new(0.2, 0.2, mag)
  271. smooth(p)
  272. p.Material = "Neon"
  273. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  274. local m = Instance.new("SpecialMesh", p)
  275. m.MeshType = "Brick"
  276. p.Parent = workspace
  277. p.Touched:connect(function(hit)
  278. if gethum(hit) then
  279. for i, v in pairs(hit.Parent:children()) do
  280. if v:IsA("Model") then
  281. v:BreakJoints()
  282. end
  283. local ok = false
  284. for i, e in pairs({
  285. "Right Arm",
  286. "Left Arm",
  287. "Right Leg",
  288. "Left Leg",
  289. "Head",
  290. "Torso",
  291. "HumanoidRootPart"
  292. }) do
  293. if v.Name == e then
  294. ok = true
  295. end
  296. end
  297. if v:IsA("BasePart") and not ok then
  298. fade(v, true)
  299. end
  300. end
  301. end
  302. if hit:FindFirstChildOfClass("TouchTransmitter") then
  303. hit:FindFirstChildOfClass("TouchTransmitter"):Destroy()
  304. end
  305. end)
  306. local bp = Instance.new("BodyPosition", p)
  307. bp.MaxForce = huge
  308. bp.Position = p.Position
  309. local saved = p.CFrame
  310. for i = 1, 10 do
  311. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  312. p.CFrame = saved
  313. p.Velocity = Vector3.new(0, 0, 100)
  314. p.Transparency = p.Transparency + 0.1
  315. wait()
  316. end
  317. p:Destroy()
  318. end
  319. if key == "e" then
  320. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  321. local mag = (gun.Position - mouse.Hit.p).magnitude
  322. local p = Instance.new("Part")
  323. p.CanCollide = false
  324. p.Anchored = false
  325. p.BrickColor = BrickColor.new("New Yeller")
  326. p.Size = Vector3.new(0.2, 0.2, mag)
  327. smooth(p)
  328. p.Material = "Neon"
  329. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  330. local m = Instance.new("SpecialMesh", p)
  331. m.MeshType = "Brick"
  332. p.Parent = workspace
  333. p.Touched:connect(function(hit)
  334. if gethum(hit) then
  335. local target = game.Players:FindFirstChild(hit.Parent.Name)
  336. if target then
  337. KICK(target)
  338. end
  339. end
  340. end)
  341. local bp = Instance.new("BodyPosition", p)
  342. bp.MaxForce = huge
  343. bp.Position = p.Position
  344. local saved = p.CFrame
  345. for i = 1, 10 do
  346. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  347. p.CFrame = saved
  348. p.Velocity = Vector3.new(0, 0, 100)
  349. p.Transparency = p.Transparency + 0.1
  350. wait()
  351. end
  352. p:Destroy()
  353. end
  354. if key == "r" then
  355. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  356. local mag = (gun.Position - mouse.Hit.p).magnitude
  357. local p = Instance.new("Part")
  358. p.CanCollide = false
  359. p.Anchored = false
  360. p.BrickColor = BrickColor.new("Lime green")
  361. p.Size = Vector3.new(0.2, 0.2, mag)
  362. smooth(p)
  363. p.Material = "Neon"
  364. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  365. local m = Instance.new("SpecialMesh", p)
  366. m.MeshType = "Brick"
  367. p.Parent = workspace
  368. p.Touched:connect(function(hit)
  369. local hum = gethum(hit)
  370. if hum then
  371. hum.Health = hum.MaxHealth
  372. end
  373. end)
  374. local bp = Instance.new("BodyPosition", p)
  375. bp.MaxForce = huge
  376. bp.Position = p.Position
  377. local saved = p.CFrame
  378. for i = 1, 10 do
  379. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  380. p.CFrame = saved
  381. p.Velocity = Vector3.new(0, 0, 100)
  382. p.Transparency = p.Transparency + 0.1
  383. wait()
  384. end
  385. p:Destroy()
  386. end
  387. end)
  388. game:GetService("RunService").Stepped:connect(function()
  389. local x, z
  390. local dir = CFrame.new(char.HumanoidRootPart.Position, mouse.Hit.p).lookVector
  391. x = dir.X
  392. z = dir.Z
  393. local cf = CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position + Vector3.new(x, 0, z))
  394. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame:Lerp(cf, 0.5)
  395. humanoid.AutoRotate = false
  396. end)
  397. while wait() do
  398. if animpose == "Walking" and cananim and legs then
  399. for i = 0, 0.7, 0.1 do
  400. if animpose == "Walking" and cananim and legs then
  401. 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)
  402. 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)
  403. 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)
  404. 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)
  405. 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)
  406. 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)
  407. wait()
  408. else
  409. break
  410. end
  411. end
  412. for i = 0, 0.7, 0.1 do
  413. if animpose == "Walking" and cananim and legs then
  414. 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)
  415. 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)
  416. 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)
  417. 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)
  418. 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)
  419. 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)
  420. wait()
  421. else
  422. break
  423. end
  424. end
  425. end
  426. if animpose == "Idle" and cananim and legs then
  427. 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)
  428. 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)
  429. 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)
  430. 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)
  431. 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)
  432. 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)
  433. end
  434. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement