Advertisement
Lukas17

Untitled

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