Guest User

Gatekeeper Mario

a guest
Jan 13th, 2018
1,256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.33 KB | None | 0 0
  1. wait()
  2.  
  3.  
  4. --[[
  5.     Gatekeeper Mario script made by a Respectable Scripter (I wish to remain unnamed)
  6.  
  7. The controls are:
  8. R to pull a bunch of parts at once to you
  9. T is a abusive attack which might kill a LOT of people (Big radius)
  10. Q to summon a Luigi to attack a player
  11. E to time stop
  12. You kill people on touch, very useful (Especially if you use this ability with R)
  13.    
  14.    
  15.    
  16. This script is intended to be ran on Void script Builder
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. --]]
  24.  
  25. local players = game:GetService("Players")
  26.  
  27. local player = players.LocalPlayer
  28.  
  29. local plr = player.Character
  30.  
  31. if game.PlaceId == 843495510 then
  32.     warn("Wreak havoc everywhere")
  33. elseif game.PlaceId == 843468296 then
  34.     warn("Wreak havoc when the admins/mods aren't looking")
  35. end
  36.  
  37. local root = plr.HumanoidRootPart
  38.  
  39. local theme = Instance.new("Sound",plr)
  40. theme.SoundId = "rbxassetid://1305056692"
  41. theme.Looped = true
  42. theme.Volume = 1
  43. theme:Play()
  44.  
  45.  
  46.  
  47. for _,v in pairs(plr:GetDescendants()) do
  48.     if v:IsA("Accessory") then
  49.         v:Destroy()
  50.     end
  51. end
  52.  
  53. local hum = plr:FindFirstChildOfClass("Humanoid")
  54.  
  55.  
  56.  
  57. print()
  58.  
  59.  
  60.  
  61. warn("The controls are:")
  62. warn("R to pull a bunch of parts at once to you")
  63. warn("T is a abusive attack which might kill a LOT of people (Big radius)")
  64. warn("Q to summon a Luigi to attack a player")
  65. warn("E to time stop")
  66. warn("You kill people on touch, very useful")
  67.  
  68.  
  69. local mouse = player:GetMouse()
  70.  
  71. for _,v in pairs(plr:GetDescendants()) do
  72.     if v:IsA("BasePart") or v:IsA("Decal")  then
  73.         v.Transparency = 1
  74.     end
  75. end
  76.  
  77. function roar()
  78.     spawn(function()
  79.         local Roar = Instance.new("Sound",workspace)
  80.         Roar.SoundId = "rbxassetid://131172436"
  81.         Roar.Volume = 2
  82.         Roar.Looped = false
  83.         Roar:Play()
  84.     end)
  85. end
  86.  
  87.  
  88. hum.WalkSpeed = 45
  89.  
  90. function body()
  91.     spawn(function()
  92. local rot = root:Clone()
  93. rot:ClearAllChildren()
  94. rot.CFrame = root.CFrame * CFrame.fromEulerAnglesXYZ(0, 3.1, 0)
  95. rot.Transparency = 0
  96. rot.Anchored = false
  97. rot.Parent = root
  98.  
  99.  
  100. local mesh = Instance.new("SpecialMesh")
  101.  
  102. mesh.MeshId = "rbxassetid://554947956"
  103. mesh.TextureId = "rbxassetid://554947969"
  104. mesh.Scale = Vector3.new(10, 12, 10)
  105. mesh.Parent = rot
  106. mesh.Offset = Vector3.new(0, 3, 0)
  107. rot.Anchored = true
  108.  
  109. game:GetService("RunService").RenderStepped:Connect(function()
  110.     rot.CFrame = root.CFrame * CFrame.fromEulerAnglesXYZ(0, 3.1, 0)
  111. end)
  112.  
  113. end)
  114. end
  115.  
  116.  
  117. for _,v in pairs(plr:GetDescendants()) do
  118.     if v:IsA("BasePart") then
  119.         v.Touched:Connect(function(hit)
  120.             if hit == nil or hit.Parent == nil then
  121.                 else
  122.            
  123.             if hit.Parent == workspace or hit.Name == "HumanoidRootPart" and hit.Parent.Name == "HumanoidRootPart" then
  124.                 else
  125.            
  126.             if hit.Parent ~= nil then
  127.                 if hit.Name ~= "Base" and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= player.Name and hit ~= rot then
  128.                 hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  129.                 hit.Parent:BreakJoints()
  130.                 hit:Destroy()              
  131.                 elseif hit.Parent ~= nil then
  132.                     if hit.Name ~= "Base" and hit.Parent.Name ~= player.Name and hit ~= rot then
  133.                 hit:Destroy()
  134.                 roar()
  135.                             end
  136.                         end
  137.                     end
  138.                 end
  139.             end
  140.         end)
  141.     end
  142. end
  143.  
  144. function coin()
  145.     local  Coin = Instance.new("Sound",workspace)
  146.     Coin.SoundId = "rbxassetid://131323304"
  147.     Coin.Volume = 2
  148.         Coin:Play()
  149.  
  150. end
  151.  
  152. tdown = false
  153.  
  154. mouse.KeyDown:Connect(function(key)
  155.     if key == "t" and tdown == false then
  156.         tdown = true
  157.         local part = Instance.new("Part",plr)
  158.         part.Anchored = true
  159.         local smesh = Instance.new("SpecialMesh",part)
  160.         smesh.MeshId = "rbxassetid://710856280"
  161.         smesh.TextureId = "rbxassetid://710856291"
  162.         part.CanCollide = false
  163.         part.Touched:Connect(function(hit)
  164.             if hit == nil then
  165.                 else
  166.            
  167.             if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= player.Name then
  168.                 if hit.Parent:FindFirstChildOfClass("Humanoid").Health == 0 then
  169.                 else
  170.                     coin()
  171.                     hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  172.                     end
  173.                 end
  174.             end
  175.         end)
  176.         part.CFrame = root.CFrame
  177.         for i = 1,100 do
  178.             wait()
  179.             part.Size = part.Size + Vector3.new(5, 5, 5)
  180.             smesh.Scale = smesh.Scale + Vector3.new(0.25, 0.25,0.25)
  181.         end
  182.         for i = 1,100 do
  183.             wait()
  184.                     part.Size = part.Size - Vector3.new(5, 5, 5)
  185.             smesh.Scale = smesh.Scale - Vector3.new(0.25, 0.25,0.25)
  186.         end
  187.         for i = 1,20 do
  188.             wait()
  189.             part.Transparency = part.Transparency + 0.04
  190.         end
  191.         part:Destroy()
  192.         tdown = false
  193.     end
  194. end)
  195.  
  196. rdown = false
  197.  
  198. mouse.KeyDown:Connect(function(key)
  199.     if key == "r" and rdown == false then
  200.         rdown = true
  201.         spawn(function()
  202.             while rdown == true do
  203.                 wait()
  204.         for _,v in pairs(workspace:GetChildren()) do
  205.             if v.Name ~= player.Name then
  206.                 for _,x in pairs(v:GetDescendants()) do
  207.                     if x:IsA("BasePart") and not v:FindFirstChildOfClass("BodyPosition") then
  208.                         Instance.new("BodyPosition",x).Position = root.Position
  209.                     end
  210.                     end
  211.                 end
  212.             end
  213.         end
  214.         end)
  215. while rdown == true do
  216.     wait()
  217.     for _,v in pairs(workspace:GetDescendants()) do
  218.         if v:IsA("BodyPosition") then
  219.             v.Position = root.Position
  220.         end
  221.     end
  222. end
  223. for _,v in pairs(workspace:GetDescendants()) do
  224.     if v:IsA("BodyPosition") then
  225.         v:Destroy()
  226.     end
  227. end
  228.        
  229.     end
  230. end)
  231.  
  232. mouse.KeyUp:Connect(function(key)
  233.     if key == "r" then
  234.         rdown = false
  235.     end
  236. end)
  237.  
  238. plr.Archivable = true
  239.  
  240.  
  241.  
  242. mouse.KeyDown:Connect(function(key)
  243.     if key == "q" then
  244.                 local targ = mouse.Target
  245.         if targ.Parent:FindFirstChildOfClass("Humanoid") then
  246.             if targ.Parent:FindFirstChildOfClass("Humanoid").Health == 0 then
  247.                 else
  248.  
  249.         local pr = plr:Clone()
  250.         for _,v in pairs(pr:GetDescendants()) do
  251.             if v:IsA("Sound") then
  252.                 v.Volume = 0
  253.                 v:Destroy()
  254.             end
  255.         end
  256.         local apr = pr.HumanoidRootPart.HumanoidRootPart:FindFirstChildOfClass("SpecialMesh")
  257.         apr.MeshId = "rbxassetid://431330071"
  258.         local aps = apr.Parent
  259.         apr.TextureId = "rbxassetid://431330076"
  260.         apr.Scale = Vector3.new(0.3, 0.4, 0.3)
  261.  
  262. for _,v in pairs(pr:GetDescendants()) do
  263.     if v:IsA("BasePart") then
  264.         v.Touched:Connect(function(hit)
  265.             if hit == nil or hit.Parent == nil then
  266.                 else
  267.            
  268.             if hit.Parent == workspace or hit.Name == "HumanoidRootPart" and hit.Parent.Name == "HumanoidRootPart" then
  269.                 else
  270.            
  271.             if hit.Parent ~= nil then
  272.                 if hit.Name ~= "Base" and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= player.Name and hit ~= root.HumanoidRootPart and hit ~= aps then
  273.                 hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  274.                 hit.Parent:BreakJoints()
  275.                 hit:Destroy()              
  276.                 elseif hit.Parent ~= nil then
  277.                     if hit.Name ~= "Base" and hit.Parent.Name ~= player.Name and hit ~= root.HumanoidRootPart and hit ~= aps then
  278.                 hit:Destroy()
  279.                 roar()
  280.                             end
  281.                         end
  282.                     end
  283.                 end
  284.             end
  285.         end)
  286.     end
  287. end
  288.         apr.Offset = Vector3.new(0, 4, 0)
  289.         pr.HumanoidRootPart.CFrame = root.CFrame * CFrame.new(33, 2, 0)
  290.         pr.Parent = workspace
  291.         spawn(function()
  292.             game:GetService("RunService").RenderStepped:Connect(function()
  293.                 if pr.Parent ~= nil then
  294.                     aps.CFrame = pr.HumanoidRootPart.CFrame * CFrame.fromEulerAnglesXYZ(0, 1.7, 0)
  295.                 end
  296.             end)
  297.             while pr.Parent ~= nil do
  298.                 if targ.Parent == nil then
  299.                     pr.Parent = nil
  300.                 end
  301.                 pr:FindFirstChildOfClass("Humanoid").WalkToPoint = targ.Parent:FindFirstChildOfClass("Part").Position
  302.                 wait()
  303.             end
  304.         end)
  305.             end
  306.         end
  307.         end
  308. end)
  309.  
  310. ts = false
  311.  
  312. mouse.KeyDown:Connect(function(key)
  313. if key == "e" and ts == false then
  314.     ts = true
  315.     while ts == true do
  316.         wait()
  317.     for _,v in pairs(workspace:GetChildren()) do
  318.         if v:IsA("BasePart") and v.Name ~= "Base" then
  319.             v.Anchored = true
  320.         end
  321.         if v:IsA("Model") and v.Name ~= player.Name and v.Name ~= "Base" then
  322.             for _,x in pairs(v:GetDescendants()) do
  323.                 if x:IsA("BasePart") then
  324.                     x.Anchored = true
  325.                 end
  326.             end
  327.         end
  328.     end
  329.     end
  330. end
  331.  
  332. end)
  333.  
  334. mouse.KeyUp:Connect(function(key)
  335.     if key == "e" then
  336.         ts = false
  337.         wait(0.3)
  338. for _,v in pairs(workspace:GetChildren()) do
  339.         if v:IsA("BasePart") and v.Name ~= "Base" then
  340.             v.Anchored = false
  341.         end
  342.         if v:IsA("Model") and v.Name ~= player.Name and v.Name ~= "Base" then
  343.             for _,x in pairs(v:GetDescendants()) do
  344.                 if x:IsA("BasePart") then
  345.                     x.Anchored = false
  346.                 end
  347.             end
  348.         end
  349.     end
  350.     end
  351.    
  352. end)
  353.  
  354. hum.Died:Connect(function()
  355.     local ded = Instance.new("Sound",workspace)
  356.     ded.SoundId = "rbxassetid://1205895814"
  357.     ded.Volume = 3
  358.     ded:Play()
  359.     spawn(function()
  360.         while wait() do
  361.             for _,v in pairs(workspace:GetDescendants()) do
  362.                 if v:IsA("Model") then
  363.                     v:BreakJoints()
  364.                 end
  365.             end
  366.         end
  367.     end)
  368. end)
  369. plr.HumanoidRootPart.Transparency = 1
  370. spawn(function()
  371.     while wait() do
  372.         if root:FindFirstChild("HumanoidRootPart") then
  373.         else
  374.             body()
  375.         end
  376.     end
  377. end)
  378. spawn(function()
  379.     while wait() do
  380. spawn(function()
  381.     pcall(function()
  382.         while wait() do
  383.             if plr:FindFirstChildOfClass("Humanoid") then
  384.                 if plr:FindFirstChildOfClass("Humanoid").Health == 0 then
  385.                     plr:MakeJoints()
  386.                 else
  387.                     plr:FindFirstChildOfClass("Humanoid").DisplayDistanceType = "None"
  388.             plr:FindFirstChildOfClass("Humanoid").JumpPower = 75
  389.                 plr:FindFirstChildOfClass("Humanoid").WalkSpeed = 45
  390.  
  391.                 plr:FindFirstChildOfClass("Humanoid").Name = math.random()
  392.                 plr:FindFirstChildOfClass("Humanoid").MaxHealth = math.huge
  393.                 plr:FindFirstChildOfClass("Humanoid").Health = math.huge
  394.                 end
  395.             else
  396.                 Instance.new("Humanoid",plr)
  397.             end
  398.         end
  399.     end)
  400. end)
  401.     end
  402.     end)
Advertisement
Add Comment
Please, Sign In to add comment