Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- Part1 = Instance.new("Part")
- ClickDetector2 = Instance.new("ClickDetector")
- Script3 = Instance.new("Script")
- Part0.Name = "The Button"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(2, 2.50999999, 12, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Part0.Orientation = Vector3.new(0, 0, -90)
- Part0.Position = Vector3.new(2, 2.50999999, 12)
- Part0.Rotation = Vector3.new(0, 0, -90)
- Part0.Size = Vector3.new(1, 11, 9)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Shape = Enum.PartType.Cylinder
- Part1.Name = "The Button"
- Part1.Parent = Part0
- Part1.CFrame = CFrame.new(2, 3.50999999, 12, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Part1.Orientation = Vector3.new(0, 0, -90)
- Part1.Position = Vector3.new(2, 3.50999999, 12)
- Part1.Rotation = Vector3.new(0, 0, -90)
- Part1.Color = Color3.new(1, 0, 0)
- Part1.Size = Vector3.new(1, 13, 7)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Really red")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Really red")
- Part1.Shape = Enum.PartType.Cylinder
- ClickDetector2.Parent = Part1
- Script3.Parent = ClickDetector2
- table.insert(cors,sandbox(Script3,function()
- local lol = math.random(1,2)
- script.Parent.MouseClick:Connect(function(plr)
- if lol == 1 then
- for i,v in pairs(game.Players:GetPlayers()) do
- v.Character.Humanoid.Health = 0
- end
- end
- if lol == 2 then
- for i,v in pairs(game.Players:GetPlayers()) do
- local chr = v.Character
- game.Lighting.ClockTime = 0
- chr["Left Arm"]:remove()
- chr["Right Arm"]:remove()
- chr["Left Leg"]:remove()
- chr["Right Leg"]:remove()
- workspace["Scary song"]:Play()
- wait(74)
- workspace["Scary song"]:Stop()
- v:LoadCharacter()
- game.Lighting.ClockTime=15
- end
- end
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement