Advertisement
Lukas17

Untitled

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