Advertisement
OofeyDoofy

Deep Void vAlpha

Feb 8th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.52 KB | None | 0 0
  1.  
  2. screengui=Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)frame=Instance.new("Frame")
  3. mickey_mouse=Instance.new("TextBox")textbutton=Instance.new("TextButton")
  4. frame.BorderColor3=Color3.new(1,1,1)frame.Size=UDim2.new(0.143,0,0.438,0)
  5. frame.BorderSizePixel=5;frame.BackgroundColor3=Color3.new(0,0,0)
  6. frame.BackgroundTransparency=0.33;frame.Position=UDim2.new(0.845,0,0.322,0)
  7. frame.Parent=screengui;mickey_mouse.TextWrapped=true
  8. mickey_mouse.Position=UDim2.new(0.053,0,0.022,0)mickey_mouse.Name="MICKEY MOUSE"
  9. mickey_mouse.BorderColor3=Color3.new(0.309804,0.486275,0.611765)mickey_mouse.TextSize=14;mickey_mouse.TextScaled=true
  10. mickey_mouse.Font=3;mickey_mouse.Text="Deep Void Gui"
  11. mickey_mouse.BackgroundColor3=Color3.new(0.0901961,0.878431,1)mickey_mouse.TextColor3=Color3.new(0,0,0)
  12. mickey_mouse.Size=UDim2.new(0.888,0,0.098,0)mickey_mouse.Parent=frame
  13. textbutton.BackgroundColor3=Color3.new(0,0,0)textbutton.Text="Merasmus"textbutton.TextSize=30
  14. textbutton.Position=UDim2.new(0.086,0,0.165,0)textbutton.Size=UDim2.new(0.759,0,0.089,0)
  15. textbutton.TextColor3=Color3.new(1,1,1)textbutton.Font=3;textbutton.Parent=frame
  16.  
  17. function Clicked()
  18.  
  19. --Merasmus Script, by SlayKillerX66--
  20.  
  21. ----------
  22. wait(1/60)
  23. ----------
  24.  
  25. --Varibles--
  26. staffout = true
  27. command = false
  28. DeSummon = false
  29. local player = game.Players.LocalPlayer
  30. local C = player.Character
  31. local humanoid = C:WaitForChild("Humanoid")
  32. local mouse = player:GetMouse()
  33. -------------
  34.  
  35. --Starter Sound--
  36. local startsound = Instance.new("Sound")
  37. startsound.Name = "MerasmusIntro"
  38. startsound.SoundId = "http://www.roblox.com/asset/?id=130945622"
  39. startsound.Parent = C.Torso
  40. startsound.Volume = 10
  41. startsound:play()
  42. ---------
  43.  
  44. --Trail/Nametag/Hat--
  45. local trail = Instance.new("Beam")
  46. trail.Color = ColorSequence.new(Color3.new(0.0666667, 0.0666667, 0.0666667), Color3.new(0.0666667, 0.0666667, 0.0666667))
  47. trail.Parent = C.Torso
  48.  
  49. local billboardgui = Instance.new("BillboardGui")
  50. local textbox = Instance.new("TextBox")
  51.  
  52. billboardgui.LightInfluence = 0
  53. billboardgui.SizeOffset = Vector2.new(0, 1.8)
  54. billboardgui.Size = UDim2.new(0, 200, 0, 50)
  55. billboardgui.Parent = C.Head
  56. textbox.TextWrapped = true
  57. textbox.BackgroundTransparency = 1
  58. textbox.BackgroundColor3 = Color3.new(1, 1, 1)
  59. textbox.BorderColor3 = Color3.new(1, 1, 1)
  60. textbox.TextSize = 40
  61. textbox.Font = Enum.Font.SourceSans
  62. textbox.Size = UDim2.new(0, 200, 0, 50)
  63. textbox.Text = "Merasmus"
  64. textbox.Parent = billboardgui
  65.  
  66. local skullcap = Instance.new("Part")
  67. local mesh = Instance.new("SpecialMesh")
  68. local welde = Instance.new("Weld")
  69. skullcap.Size = Vector3.new(4, 2.4, 2)
  70. skullcap.BrickColor = BrickColor.new("Bright green")
  71. skullcap.Color = Color3.new(0.294118, 0.592157, 0.294118)
  72. skullcap.Name = "SkullCap"
  73. skullcap.Parent = workspace
  74. skullcap.CFrame = CFrame.new(0.26, 3.2, 44.85)
  75. mesh.TextureId = "http://www.roblox.com/asset/?id=14027832"
  76. mesh.MeshType = Enum.MeshType.FileMesh
  77. mesh.MeshId = "http://www.roblox.com/asset/?id=14028428"
  78. mesh.Parent = skullcap
  79. welde.Parent = C.Torso
  80. welde.Part0 = C.Head
  81. welde.Part1 = skullcap
  82. welde.C1 = CFrame.Angles(-0.2,0,0)
  83. welde.C0 = CFrame.new(0, 1, 0)
  84. skullcap.Parent=C
  85. -------------
  86.  
  87. --Change Clothes--
  88. function kill(nam, parent) if parent:FindFirstChild(nam) then
  89. parent[nam]:Destroy()
  90. end end
  91. kill("roblox", C.Torso)
  92. kill("Shirt", C)
  93. kill("Pants", C)
  94. local s=Instance.new("Shirt")
  95. s.Parent=C
  96. s.ShirtTemplate="http://www.roblox.com/asset/?id=388831708"
  97. local t=Instance.new("Pants")
  98. t.Parent=C
  99. t.PantsTemplate="http://www.roblox.com/asset/?id=203678568"
  100. --------------
  101.  
  102. --Animations--
  103. local Player = game.Players.localPlayer
  104. local Character = Player.Character
  105. local Humanoid = Character.Humanoid
  106. local mouse = Player:GetMouse()
  107. local LeftArm = Character["Left Arm"]
  108. local RightArm = Character["Right Arm"]
  109. local LeftLeg = Character["Left Leg"]
  110. local RightLeg = Character["Right Leg"]
  111. local Head = Character.Head
  112. local Torso = Character.Torso
  113. local cam = game.Workspace.CurrentCamera
  114. local RootPart = Character.HumanoidRootPart
  115. local RootJoint = RootPart.RootJoint
  116. local equipped = false
  117. local attack = false
  118. local Anim = 'Idle'
  119. local idle = 0
  120. local attacktype = 1
  121. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  122. local velocity = RootPart.Velocity.y
  123. local sine = 0
  124. local change = 1
  125. local grabbed = false
  126. local cn = CFrame.new
  127. local mr = math.rad
  128. local angles = CFrame.Angles
  129. local ud = UDim2.new
  130. local c3 = Color3.new
  131.  
  132. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  133.  
  134. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  135. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  136. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  137.  
  138. RSH, LSH = nil, nil
  139.  
  140. RW = Instance.new("Weld")
  141. LW = Instance.new("Weld")
  142.  
  143. RH = Torso["Right Hip"]
  144. LH = Torso["Left Hip"]
  145.  
  146. RSH = Torso["Right Shoulder"]
  147. LSH = Torso["Left Shoulder"]
  148.  
  149. RSH.Parent = nil
  150. LSH.Parent = nil
  151.  
  152. RW.Name = "RW"
  153. RW.Part0 = Torso
  154. RW.C0 = cn(1.5, 0.5, 0)
  155. RW.C1 = cn(0, 0.5, 0)
  156. RW.Part1 = RightArm
  157. RW.Parent = Torso
  158.  
  159. LW.Name = "LW"
  160. LW.Part0 = Torso
  161. LW.C0 = cn(-1.5, 0.5, 0)
  162. LW.C1 = cn(0, 0.5, 0)
  163. LW.Part1 = LeftArm
  164. LW.Parent = Torso
  165.  
  166. function clerp(a, b, t)
  167. local qa = {
  168. QuaternionFromCFrame(a)
  169. }
  170. local qb = {
  171. QuaternionFromCFrame(b)
  172. }
  173. local ax, ay, az = a.x, a.y, a.z
  174. local bx, by, bz = b.x, b.y, b.z
  175. local _t = 1 - t
  176. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  177. end
  178.  
  179. function QuaternionFromCFrame(cf)
  180. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  181. local trace = m00 + m11 + m22
  182. if trace > 0 then
  183. local s = math.sqrt(1 + trace)
  184. local recip = 0.5 / s
  185. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  186. else
  187. local i = 0
  188. if m11 > m00 then
  189. i = 1
  190. end
  191. if m22 > (i == 0 and m00 or m11) then
  192. i = 2
  193. end
  194. if i == 0 then
  195. local s = math.sqrt(m00 - m11 - m22 + 1)
  196. local recip = 0.5 / s
  197. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  198. elseif i == 1 then
  199. local s = math.sqrt(m11 - m22 - m00 + 1)
  200. local recip = 0.5 / s
  201. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  202. elseif i == 2 then
  203. local s = math.sqrt(m22 - m00 - m11 + 1)
  204. local recip = 0.5 / s
  205. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  206. end
  207. end
  208. end
  209.  
  210. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  211. local xs, ys, zs = x + x, y + y, z + z
  212. local wx, wy, wz = w * xs, w * ys, w * zs
  213. local xx = x * xs
  214. local xy = x * ys
  215. local xz = x * zs
  216. local yy = y * ys
  217. local yz = y * zs
  218. local zz = z * zs
  219. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  220. end
  221.  
  222. function QuaternionSlerp(a, b, t)
  223. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  224. local startInterp, finishInterp;
  225. if cosTheta >= 0.0001 then
  226. if (1 - cosTheta) > 0.0001 then
  227. local theta = math.acos(cosTheta)
  228. local invSinTheta = 1 / math.sin(theta)
  229. startInterp = math.sin((1 - t) * theta) * invSinTheta
  230. finishInterp = math.sin(t * theta) * invSinTheta
  231. else
  232. startInterp = 1 - t
  233. finishInterp = t
  234. end
  235. else
  236. if (1 + cosTheta) > 0.0001 then
  237. local theta = math.acos(-cosTheta)
  238. local invSinTheta = 1 / math.sin(theta)
  239. startInterp = math.sin((t - 1) * theta) * invSinTheta
  240. finishInterp = math.sin(t * theta) * invSinTheta
  241. else
  242. startInterp = t - 1
  243. finishInterp = t
  244. end
  245. end
  246. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  247. end
  248.  
  249. function swait(num)
  250. if num == 0 or num == nil then
  251. game:service'RunService'.RenderStepped:wait(0)
  252. else
  253. for i = 0, num do
  254. game:service'RunService'.RenderStepped:wait(0)
  255. end
  256. end
  257. end
  258.  
  259. function rayCast(Position, Direction, Range, Ignore)
  260. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  261. end
  262.  
  263. game:GetService'RunService'.Stepped:connect(function()
  264. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  265. velocity = RootPart.Velocity.y
  266. sine = sine + change
  267. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  268. if equipped == true or equipped == false then
  269. if RootPart.Velocity.y > 1 and hit == nil then
  270. Anim = "Jump"
  271. if attack == false then
  272. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  273. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  274. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  275. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  276. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  277. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  278. end
  279. elseif RootPart.Velocity.y < -1 and hit == nil then
  280. Anim = "Fall"
  281. if attack == false then
  282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  283. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  284. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  285. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  286. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  287. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  288. end
  289. elseif Torsovelocity < 1 and hit ~= nil then
  290. Anim = "Idle"
  291. if attack == false then
  292. change = 1
  293. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  294. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  295. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  296. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  297. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  298. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  299. end
  300. elseif Torsovelocity > 2 and hit ~= nil then
  301. Anim = "Walk"
  302. if attack == false then
  303. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  304. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  305. RW.C0 = clerp(RW.C0, CFrame.new(1.5 - -0 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(10 + -50 * math.cos(sine / 4)), math.rad(0 - .1 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
  306. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  307. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  308. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  309. end
  310. end
  311. end
  312. end)
  313. --Bug Fix--
  314.  
  315. C.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=0"
  316. C.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=0"
  317. C.Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=0"
  318. C.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=0"
  319. C.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=0"
  320.  
  321. -------------
  322.  
  323. --Keys--
  324. mouse.KeyDown:connect(function(key)
  325.  
  326. if key == "v" then
  327. local findit = workspace:FindFirstChild("Minion")
  328. if command == false then
  329. if findit then
  330. command = true
  331. local warp = Instance.new("Sound")
  332. warp.Name = "Control"
  333. warp.SoundId = "http://www.roblox.com/asset/?id=283839617"
  334. warp.Parent = C.Torso
  335. warp.Volume = 10
  336. warp:play()
  337. findit.Shooter.WalkSpeed = 14
  338. findit.Name = "Body Guard"
  339. findit.Torso.BrickColor = BrickColor.new("Black")
  340. repeat
  341. findit.Shooter:MoveTo(C.Torso.Position)
  342. wait(0.1)
  343. until command == false
  344. wait(0.1)
  345. findit.Name = "Minion"
  346. findit.Shooter.WalkSpeed = 16
  347. findit.Torso.BrickColor = BrickColor.new("Bright yellow")
  348. warp:remove()
  349. end
  350. end
  351. if command == true then
  352. command = false
  353. local dewarp = Instance.new("Sound")
  354. dewarp.Name = "Control"
  355. dewarp.SoundId = "http://www.roblox.com/asset/?id=136735170"
  356. dewarp.Parent = C.Torso
  357. dewarp.Volume = 10
  358. dewarp:play()
  359. wait(1)
  360. dewarp:remove()
  361. end
  362. end
  363.  
  364. if key == "c" then
  365. local schoolsound = Instance.new("Sound")
  366. schoolsound.Name = "KicksMusic"
  367. schoolsound.SoundId = "http://www.roblox.com/asset/?id=488429159"
  368. schoolsound.Parent = C.Torso
  369. schoolsound.Volume = 10
  370. schoolsound:play()
  371. end
  372.  
  373. if key == "l" then
  374. local lookfor = C.Torso:FindFirstChild("KicksMusic")
  375. local animateScript = C:WaitForChild("Animate")
  376. for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
  377. animationTrack:Stop(0.5)
  378. end
  379. if lookfor then
  380. lookfor:remove()
  381. end
  382. end
  383. if key == "x" then
  384. local ballsounds = Instance.new("Sound")
  385. ballsounds.Name = "MerasmusAttackBall"
  386. ballsounds.SoundId = "http://www.roblox.com/asset/?id=437846473"
  387. ballsounds.Parent = C.Torso
  388. ballsounds.Volume = 10
  389. ballsounds:play()
  390. wait(0.7)
  391. local animation=Instance.new("Animation",C)
  392. animation.Name="LocalAnimation"
  393. animation.AnimationId = "http://www.roblox.com/Asset?ID=32326246"
  394. local anim=humanoid:LoadAnimation(animation)
  395. anim:Play()
  396. C.LocalAnimation:remove()
  397. local landmine = Instance.new("Part",workspace)
  398. landmine.Transparency = 0.1
  399. landmine.Size = Vector3.new(0.1,0.1,0.1)
  400. landmine.CFrame = CFrame.new(C.Torso.Position)
  401. landmine.CFrame = C.Torso.CFrame * CFrame.new(0,0,-6)
  402. landmine.Anchored = true
  403. landmine.CanCollide = true
  404. landmine.Shape = Enum.PartType.Ball
  405. landmine.Material = Enum.Material.Glass
  406. landmine.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  407. wait(0.5)
  408. for i=1,8 do
  409. landmine.Size = landmine.Size + Vector3.new(0.5,0.5,0.5)
  410. wait(0.02)
  411. end
  412. landmine.Anchored = false
  413. local v = Instance.new("BodyVelocity",landmine)
  414. v.Velocity = C.Torso.CFrame.lookVector * 90
  415. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  416. for i=1,8 do
  417. landmine.Size = landmine.Size + Vector3.new(0.5,0.5,0.5)
  418. wait(0.02)
  419. end
  420. function onTouch(part)
  421. local humanoid = part.Parent:findFirstChild("Humanoid")
  422. if (humanoid ~=nil) then
  423. humanoid.Health = humanoid.Health - 25
  424. end
  425. end
  426. landmine.Touched:connect(onTouch)
  427. wait(2.5)
  428. ballsounds:remove()
  429. landmine:remove()
  430. end
  431.  
  432. if key == "q" then
  433. if staffout == true then
  434. local sounds = Instance.new("Sound")
  435. sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
  436. sounds.Parent = C.Torso
  437. sounds.Volume = 10
  438. sounds:play()
  439. staffout = false
  440. C.Staff.Transparency = 1
  441. C.Torso.Fire.Enabled = false
  442. local animateScript = C:WaitForChild("Animate")
  443. for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
  444. animationTrack:Stop(0.5)
  445. end
  446. elseif staffout == false then
  447. local sounds = Instance.new("Sound")
  448. sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
  449. sounds.Parent = C.Torso
  450. sounds.Volume = 10
  451. sounds:play()
  452. local animateScript = C:WaitForChild("Animate")
  453. for _, animationTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
  454. animationTrack:Stop(0.5)
  455. end
  456. staffout = true
  457. C.Torso.Fire.Enabled = true
  458. C.Staff.Transparency = 0
  459. end
  460. end
  461. if key == "r" then
  462. if staffout == true then
  463. local wrecksounds = Instance.new("Sound")
  464. wrecksounds.Name = "WreckSound"
  465. wrecksounds.SoundId = "http://www.roblox.com/asset/?id=130973839"
  466. wrecksounds.Parent = C.Torso
  467. wrecksounds.Volume = 10
  468. wrecksounds:play()
  469. local animation=Instance.new("Animation",C)
  470. animation.Name="LocalAnimation"
  471. animation.AnimationId = "http://www.roblox.com/Asset?ID=32326245"
  472. local anim=humanoid:LoadAnimation(animation)
  473. anim:Play()
  474. C.LocalAnimation:remove()
  475. wait(1.3)
  476. local animation=Instance.new("Animation",C)
  477. animation.Name="LocalAnimation"
  478. animation.AnimationId = "http://www.roblox.com/Asset?ID=27761123"
  479. local anim=humanoid:LoadAnimation(animation)
  480. anim:Play()
  481. C.LocalAnimation:remove()
  482. wait(0.5)
  483. local ball = Instance.new("Part")
  484. local mesh = Instance.new("SpecialMesh")
  485. ball.Parent = workspace
  486. ball.Color = Color3.new(0.458824, 0, 0)
  487. ball.Size = Vector3.new(1, 1, 1)
  488. ball.Shape = Enum.PartType.Ball
  489. ball.CanCollide = false
  490. ball.Anchored = true
  491. ball.Transparency = 0.1
  492. ball.CFrame = CFrame.new(C.Torso.Position)
  493. mesh.Parent = ball
  494. mesh.MeshId = "rbxassetid://689879827"
  495. mesh.Scale = Vector3.new(0.001, 0.001, 0.001)
  496. local Music = Instance.new("Sound")
  497. Music.SoundId = "http://www.roblox.com/asset/?id=280247455"
  498. Music.Parent = workspace
  499. Music.Volume = 10
  500. Music:play()
  501. function onTouch(part)
  502. local humanoid = part.Parent:findFirstChild("Humanoid")
  503. if (humanoid ~=nil) then
  504. humanoid.Health = humanoid.Health - 25
  505. end
  506. end
  507. ball.Touched:connect(onTouch)
  508. for i=1,100 do
  509. mesh.Scale = mesh.Scale + Vector3.new(0.2, 0.2, 0.2)
  510. ball.Size = ball.Size + Vector3.new(10, 10, 10)
  511. wait(0.015)
  512. end
  513. wrecksounds:remove()
  514. ball:Remove()
  515. Music:Remove()
  516. anim:remove()
  517. end
  518. end
  519.  
  520. function onButton1Down(mouse)
  521. if staffout == true then
  522. local mt = mouse.Target
  523. local hl = mt.Parent:findFirstChild("Humanoid")
  524. if mt then
  525. if hl == nil then return end
  526. local hit = Instance.new("Attachment")
  527. hit.Parent = mt.Parent:FindFirstChild("Torso")
  528. trail.Attachment1 = hit
  529. local explosivesound = Instance.new("Sound")
  530. explosivesound.Name = "ExplosionSound"
  531. explosivesound.SoundId = "http://www.roblox.com/asset/?id=169628396"
  532. explosivesound.Parent = C.Torso
  533. explosivesound.Volume = 10
  534. explosivesound:play()
  535. local boom = Instance.new("Explosion")
  536. boom.BlastRadius = 0
  537. boom.Parent = hit.Parent.Parent
  538. boom.Position = hit.Parent.Position
  539. hl.WalkSpeed = 3
  540. hl.Health = hl.Health - 55
  541. wait(1)
  542. trail.Attachment1 = nil
  543. wait(1.5)
  544. explosivesound:remove()
  545. boom:remove()
  546. hl.WalkSpeed = 16
  547. end
  548. end
  549. end
  550.  
  551. if key == "z" then
  552. local find = workspace:FindFirstChild("Minion")
  553. if find then
  554. local lol = Instance.new("Sound")
  555. lol.SoundId = "http://www.roblox.com/asset/?id=589394061"
  556. lol.Parent = C.Torso
  557. lol.Volume = 10
  558. lol:Play()
  559. find.Name = "Minion (Suicidal)"
  560. wait(0.4)
  561. find:BreakJoints()
  562. wait(0.4)
  563. DeSummon = true
  564. wait(0.33)
  565. if find then
  566. find:remove()
  567. end
  568. wait(0.67)
  569. DeSummon = false
  570. wait(0.5)
  571. lol:remove()
  572. end
  573. end
  574.  
  575.  
  576. if key == "f" then
  577. local thisissowrongsound = Instance.new("Sound")
  578. thisissowrongsound.Name = "WrongSound"
  579. thisissowrongsound.SoundId = "http://www.roblox.com/asset/?id=287614966"
  580. thisissowrongsound.Parent = workspace
  581. thisissowrongsound.Volume = 10
  582. thisissowrongsound:play()
  583. local animation=Instance.new("Animation",C)
  584. animation.Name="LocalAnimation"
  585. animation.AnimationId = "http://www.roblox.com/Asset?ID=52155728"
  586. local anim=humanoid:LoadAnimation(animation)
  587. anim:Play()
  588. C.LocalAnimation:remove()
  589. wait(2)
  590. thisissowrongsound:remove()
  591. anim:Stop()
  592. end
  593.  
  594. if key == "e" then
  595. if staffout == true then
  596. local summonsound = Instance.new("Sound")
  597. summonsound.Name = "SummonSound"
  598. summonsound.SoundId = "http://www.roblox.com/asset/?id=199607491"
  599. summonsound.Parent = C.Torso
  600. summonsound.Volume = 10
  601. summonsound:play()
  602. wait(0.1)
  603. local animation=Instance.new("Animation",C)
  604. animation.Name="LocalAnimation"
  605. animation.AnimationId = "http://www.roblox.com/Asset?ID=27741468"
  606. local anim=humanoid:LoadAnimation(animation)
  607. anim:Play()
  608. C.LocalAnimation:remove()
  609. wait(0.8)
  610. local drooling_zombie = Instance.new("Model")
  611. local humanoidrootpart = Instance.new("Part")
  612. local root_hip = Instance.new("Motor6D")
  613. local torso = Instance.new("Part")
  614. local left_hip = Instance.new("Motor6D")
  615. local right_hip = Instance.new("Motor6D")
  616. local left_shoulder = Instance.new("Motor6D")
  617. local right_shoulder = Instance.new("Motor6D")
  618. local neck = Instance.new("Motor6D")
  619. local repulsionforce = Instance.new("BodyForce")
  620. local left_leg = Instance.new("Part")
  621. local right_leg = Instance.new("Part")
  622. local left_arm = Instance.new("Part")
  623. local right_arm = Instance.new("Part")
  624. local head = Instance.new("Part")
  625. local face = Instance.new("Decal")
  626. local mesh = Instance.new("SpecialMesh")
  627. local humanoid = Instance.new("Humanoid")
  628. local body_colors = Instance.new("BodyColors")
  629.  
  630. drooling_zombie.Name = "Minion"
  631. drooling_zombie.Parent = workspace
  632. humanoidrootpart.Size = Vector3.new(2, 2, 1)
  633. humanoidrootpart.BottomSurface = Enum.SurfaceType.Smooth
  634. humanoidrootpart.Orientation = Vector3.new(0, -90, 0)
  635. humanoidrootpart.Color = Color3.new(0.152941, 0.27451, 0.176471)
  636. humanoidrootpart.Name = "HumanoidRootPart"
  637. humanoidrootpart.BrickColor = BrickColor.new("Earth green")
  638. humanoidrootpart.Transparency = 1
  639. humanoidrootpart.TopSurface = Enum.SurfaceType.Smooth
  640. humanoidrootpart.Parent = drooling_zombie
  641. humanoidrootpart.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0)
  642. root_hip.Part1 = torso
  643. root_hip.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142)
  644. root_hip.MaxVelocity = 0.1
  645. root_hip.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.571, 0, -3.142)
  646. root_hip.Name = "Root Hip"
  647. root_hip.Part0 = humanoidrootpart
  648. root_hip.Parent = humanoidrootpart
  649. torso.Size = Vector3.new(2, 2, 1)
  650. torso.BottomSurface = Enum.SurfaceType.Smooth
  651. torso.Orientation = Vector3.new(0, -90, 0)
  652. torso.Color = Color3.new(0.152941, 0.27451, 0.176471)
  653. torso.Name = "Torso"
  654. torso.TopSurface = Enum.SurfaceType.Smooth
  655. torso.BrickColor = BrickColor.new("Earth green")
  656. torso.Parent = drooling_zombie
  657. torso.CFrame = CFrame.new(-25.01, 5, 8.51) * CFrame.Angles(0, -1.571, 0)
  658. left_hip.Part1 = left_leg
  659. left_hip.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.571, 0)
  660. left_hip.MaxVelocity = 0.1
  661. left_hip.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(0, -1.571, 0)
  662. left_hip.Name = "Left Hip"
  663. left_hip.Part0 = torso
  664. left_hip.Parent = torso
  665. right_hip.Part1 = right_leg
  666. right_hip.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.571, 0)
  667. right_hip.MaxVelocity = 0.1
  668. right_hip.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(0, 1.571, 0)
  669. right_hip.Name = "Right Hip"
  670. right_hip.Part0 = torso
  671. right_hip.Parent = torso
  672. left_shoulder.Part1 = left_arm
  673. left_shoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -1.571, 0)
  674. left_shoulder.MaxVelocity = 0.1
  675. left_shoulder.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, -1.571, 0)
  676. left_shoulder.Name = "Left Shoulder"
  677. left_shoulder.Part0 = torso
  678. left_shoulder.Parent = torso
  679. right_shoulder.Part1 = right_arm
  680. right_shoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, 1.571, 0)
  681. right_shoulder.MaxVelocity = 0.1
  682. right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(0, 1.571, 0)
  683. right_shoulder.Name = "Right Shoulder"
  684. right_shoulder.Part0 = torso
  685. right_shoulder.Parent = torso
  686. neck.Part1 = head
  687. neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-1.571, 0, -3.142)
  688. neck.MaxVelocity = 0.1
  689. neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-1.571, 0, -3.142)
  690. neck.Name = "Neck"
  691. neck.Part0 = torso
  692. neck.Parent = torso
  693. repulsionforce.Name = "RepulsionForce"
  694. repulsionforce.Force = Vector3.new(0, 0, 0)
  695. repulsionforce.Parent = torso
  696. left_leg.CanCollide = false
  697. left_leg.Size = Vector3.new(1, 2, 1)
  698. left_leg.BottomSurface = Enum.SurfaceType.Smooth
  699. left_leg.Orientation = Vector3.new(0, -90, 0)
  700. left_leg.Color = Color3.new(0.152941, 0.27451, 0.176471)
  701. left_leg.Name = "Left Leg"
  702. left_leg.TopSurface = Enum.SurfaceType.Smooth
  703. left_leg.BrickColor = BrickColor.new("Earth green")
  704. left_leg.Parent = drooling_zombie
  705. left_leg.CFrame = CFrame.new(-25.01, 3, 8.01) * CFrame.Angles(0, -1.571, 0)
  706. right_leg.CanCollide = false
  707. right_leg.Size = Vector3.new(1, 2, 1)
  708. right_leg.BottomSurface = Enum.SurfaceType.Smooth
  709. right_leg.Orientation = Vector3.new(0, -90, 0)
  710. right_leg.Color = Color3.new(0.152941, 0.27451, 0.176471)
  711. right_leg.Name = "Right Leg"
  712. right_leg.TopSurface = Enum.SurfaceType.Smooth
  713. right_leg.BrickColor = BrickColor.new("Earth green")
  714. right_leg.Parent = drooling_zombie
  715. right_leg.CFrame = CFrame.new(-25.01, 3, 9.01) * CFrame.Angles(0, -1.571, 0)
  716. left_arm.CanCollide = false
  717. left_arm.Size = Vector3.new(1, 2, 1)
  718. left_arm.BottomSurface = Enum.SurfaceType.Smooth
  719. left_arm.Orientation = Vector3.new(0, -90, 0)
  720. left_arm.Color = Color3.new(0.152941, 0.27451, 0.176471)
  721. left_arm.Name = "Left Arm"
  722. left_arm.TopSurface = Enum.SurfaceType.Smooth
  723. left_arm.BrickColor = BrickColor.new("Earth green")
  724. left_arm.Parent = drooling_zombie
  725. left_arm.CFrame = CFrame.new(-25.01, 5, 7.01) * CFrame.Angles(0, -1.571, 0)
  726. right_arm.CanCollide = false
  727. right_arm.Size = Vector3.new(1, 2, 1)
  728. right_arm.BottomSurface = Enum.SurfaceType.Smooth
  729. right_arm.Orientation = Vector3.new(0, -90, 0)
  730. right_arm.Color = Color3.new(0.152941, 0.27451, 0.176471)
  731. right_arm.Name = "Right Arm"
  732. right_arm.TopSurface = Enum.SurfaceType.Smooth
  733. right_arm.BrickColor = BrickColor.new("Earth green")
  734. right_arm.Parent = drooling_zombie
  735. right_arm.CFrame = CFrame.new(-25.01, 5, 10.01) * CFrame.Angles(0, -1.571, 0)
  736. head.Size = Vector3.new(2, 1, 1)
  737. head.BottomSurface = Enum.SurfaceType.Smooth
  738. head.Orientation = Vector3.new(0, -90, 0)
  739. head.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  740. head.Name = "Head"
  741. head.TopSurface = Enum.SurfaceType.Smooth
  742. head.BrickColor = BrickColor.new("Camo")
  743. head.Parent = drooling_zombie
  744. head.CFrame = CFrame.new(-25.01, 6.5, 8.51) * CFrame.Angles(0, -1.571, 0)
  745. face.Texture = "http://www.roblox.com/asset/?id=14254691"
  746. face.Name = "Face"
  747. face.Parent = head
  748. mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  749. mesh.Parent = head
  750. humanoid.WalkSpeed = 16
  751. humanoid.Parent = drooling_zombie
  752. body_colors.HeadColor = BrickColor.new("Cool yellow")
  753. body_colors.LeftLegColor = BrickColor.new("Medium blue")
  754. body_colors.LeftArmColor = BrickColor.new("Cool yellow")
  755. body_colors.RightLegColor = BrickColor.new("Medium blue")
  756. body_colors.RightArmColor = BrickColor.new("Cool yellow")
  757. body_colors.TorsoColor = BrickColor.new("Bright yellow")
  758. body_colors.Parent = drooling_zombie
  759. drooling_zombie.Torso.CFrame = CFrame.new(C.Torso.Position)
  760. drooling_zombie.Torso.CFrame = C.Torso.CFrame * CFrame.new(0,0,-12)
  761. drooling_zombie.Humanoid.Name = "Shooter"
  762. local zsound = Instance.new("Sound")
  763. zsound.SoundId = "http://www.roblox.com/asset/?id=330704232"
  764. zsound.Parent = drooling_zombie
  765. zsound.Volume = 0.5
  766.  
  767. local ball = Instance.new("Part")
  768. local mesh = Instance.new("SpecialMesh")
  769. ball.Parent = workspace
  770. ball.Color = Color3.new(0.458824, 0, 0)
  771. ball.Size = Vector3.new(1, 1, 1)
  772. ball.Shape = Enum.PartType.Ball
  773. ball.CanCollide = false
  774. ball.Anchored = true
  775. ball.Transparency = 0.5
  776. ball.Material = Enum.Material.Neon
  777. ball.CFrame = CFrame.new(drooling_zombie.Torso.Position)
  778. mesh.Parent = ball
  779. mesh.MeshId = "rbxassetid://689879827"
  780. mesh.Scale = Vector3.new(0.05,0.05,0.05)
  781.  
  782. for i=1,22 do
  783. mesh.Scale = mesh.Scale + Vector3.new(0.01,0.01,0.01)
  784. wait(0.01)
  785. end
  786.  
  787. summonsound:remove()
  788. mesh:remove()
  789. ball:remove()
  790.  
  791. local arms = {drooling_zombie:FindFirstChild("Left Arm"), drooling_zombie:FindFirstChild("Right Arm")}
  792. local torso = drooling_zombie:FindFirstChild("Torso")
  793.  
  794. local weld1 = Instance.new("Weld")
  795. weld1.Part0 = torso
  796. weld1.Parent = torso
  797. weld1.Part1 = arms[1]
  798. weld1.C1 = CFrame.new(-0.4, 0.75, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(325), 0, math.rad(-90))
  799. local weld2 = Instance.new("Weld")
  800. weld2.Part0 = drooling_zombie.Torso
  801. weld2.Parent = drooling_zombie.Torso
  802. weld2.Part1 = arms[2]
  803. weld2.C1 = CFrame.new(-0.5, 0.5, -1.3) * CFrame.fromEulerAnglesXYZ(math.rad(270), 0, math.rad(-90)) --(-0.249, 1.35, 0.6)
  804.  
  805. local gun = Instance.new("Part")
  806. local weld = Instance.new("Weld")
  807. local sounds = Instance.new("Sound")
  808. sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
  809. sounds.Parent = drooling_zombie
  810. sounds.Volume = 10
  811. sounds:play()
  812. gun.Parent = drooling_zombie
  813. gun.Anchored = false
  814. gun.CanCollide = false
  815. weld.Parent = C.Torso
  816. weld.Part0 = gun
  817. weld.Part1 = drooling_zombie:FindFirstChild("Right Arm")
  818. weld.C1 = CFrame.fromEulerAnglesXYZ(-1.5, 3.2, 1.6)
  819. weld.C0 = CFrame.new(0, -0.25, -1.6)
  820. local mesh = Instance.new("SpecialMesh")
  821. mesh.MeshType = Enum.MeshType.FileMesh
  822. mesh.Scale = Vector3.new(0.002, 0.002, 0.002)
  823. mesh.MeshId = "rbxassetid://437259501"
  824. mesh.TextureId = "rbxassetid://437259505"
  825. mesh.Parent = gun
  826. wait(0.5)
  827.  
  828.  
  829.  
  830. function findNearestTorso(pos)
  831. local list = game.Workspace:children()
  832. local torso = nil
  833. local dist = 50
  834. local temp = nil
  835. local human = nil
  836. local temp2 = nil
  837. for x = 1, #list do
  838. temp2 = list[x]
  839. if (temp2.className == "Model") and (temp2 ~= drooling_zombie) then
  840. temp = temp2:findFirstChild("Torso")
  841. human = temp2:findFirstChild("Humanoid")
  842. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  843. if (temp.Position - pos).magnitude < dist then
  844. torso = temp
  845. dist = (temp.Position - pos).magnitude
  846. end
  847. end
  848. end
  849. end
  850. return torso
  851. end
  852.  
  853. local dance3 = Instance.new("Animation")
  854. dance3.Name = "Dance3"
  855. dance3.AnimationId = "rbxassetid://180426354"
  856. dance3.Parent = drooling_zombie.Head
  857.  
  858. local humanoid = drooling_zombie.Shooter
  859. local w = humanoid:LoadAnimation(drooling_zombie.Head.Dance3)
  860. w:Play()
  861.  
  862. while true do
  863. if DeSummon == true then
  864. break
  865. end
  866. while true do
  867. local MaxInc = 40
  868. local target = findNearestTorso(drooling_zombie.Torso.Position)
  869. wait(0.5)
  870. if target ~= nil then
  871. target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 9
  872. zsound:play()
  873. end
  874. drooling_zombie.Shooter:MoveTo(drooling_zombie.Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)))
  875. wait(0.5)
  876. end
  877. end
  878. end
  879. end
  880. end)
  881. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  882.  
  883. --Staff/Trail--
  884. local staff1 = Instance.new("Part")
  885. local weld = Instance.new("Weld")
  886. local sounds = Instance.new("Sound")
  887. sounds.SoundId = "http://www.roblox.com/asset/?id=169310310"
  888. sounds.Parent = C.Torso
  889. sounds.Volume = 10
  890. sounds:play()
  891. C.Animate.idle.Animation2:remove()
  892. staff1.Size = Vector3.new(1,5,1)
  893. staff1.Parent = C
  894. staff1.Anchored = false
  895. staff1.CanCollide = false
  896. staff1.Name = "Staff"
  897. local fire = Instance.new("Fire")
  898. fire.Heat = 25
  899. fire.Color = Color3.new(0, 0.560784, 0.129412)
  900. fire.Size = 2
  901. fire.SecondaryColor = Color3.new(0.0352941, 0.0666667, 0.545098)
  902. fire.Parent = C.Torso
  903. weld.Name = "staffweld"
  904. weld.Parent = C.Torso
  905. weld.Part0 = staff1
  906. weld.Part1 = C:FindFirstChild("Torso")
  907. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0.5)
  908. weld.C0 = CFrame.new(0, 0, -0.5)
  909. local mesh = Instance.new("SpecialMesh")
  910. mesh.MeshType = Enum.MeshType.FileMesh
  911. mesh.Scale = Vector3.new(0.02, 0.02, 0.02)
  912. mesh.MeshId = "rbxassetid://591079842"
  913. mesh.TextureId = "rbxassetid://591079849"
  914. mesh.Parent = staff1
  915. local staffattach = Instance.new("Attachment")
  916. staffattach.Parent = staff1
  917. staffattach.Position = Vector3.new(0,3.9,0)
  918. trail.Attachment0 = staff1.Attachment
  919. trail.Attachment1 = nil
  920. wait(0.5)
  921. ----------
  922. wait(2/2)
  923. --Miscellaneous--
  924. C.Humanoid.MaxHealth=math.huge
  925. C.Humanoid.Health=math.huge
  926. C.Humanoid.Name = "Merasmus"
  927. print("Merasmus.....")
  928.  
  929. end
  930. textbutton.MouseButton1Click:connect(Clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement