Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- SurfaceGui4 = Instance.new("SurfaceGui")
- TextLabel5 = Instance.new("TextLabel")
- ClickDetector6 = Instance.new("ClickDetector")
- Model0.Name = "Stand"
- Model0.Parent = mas
- Part1.Name = "Post"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(0, 1.62499905, -14.1421356, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(0, 1.62499905, -14.1421356)
- Part1.Size = Vector3.new(0.5, 3.25, 0.5)
- Part1.Anchored = true
- Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.Name = "Pad"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(0, 2.96966076, -13.9653606, 1, 0, 0, 0, 0.707112968, 0.707112968, 0, -0.707112968, 0.707112968)
- Part2.Orientation = Vector3.new(-45, 0, 0)
- Part2.Position = Vector3.new(0, 2.96966076, -13.9653606)
- Part2.Rotation = Vector3.new(-45, 0, 0)
- Part2.Size = Vector3.new(1, 1, 0.5)
- Part2.Anchored = true
- Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.Name = "Button"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(0, 3.16424847, -13.7709675, 1, 0, 0, 0, 0.707112968, 0.707112968, 0, -0.707112968, 0.707112968)
- Part3.Orientation = Vector3.new(-45, 0, 0)
- Part3.Position = Vector3.new(0, 3.16424847, -13.7709675)
- Part3.Rotation = Vector3.new(-45, 0, 0)
- Part3.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part3.Size = Vector3.new(0.700000048, 0.700000048, 0.0500000045)
- Part3.Anchored = true
- Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.BrickColor = BrickColor.new("Bright red")
- Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.brickColor = BrickColor.new("Bright red")
- SurfaceGui4.Name = "Surface"
- SurfaceGui4.Parent = Part3
- SurfaceGui4.Face = Enum.NormalId.Back
- SurfaceGui4.ClipsDescendants = true
- SurfaceGui4.CanvasSize = Vector2.new(600, 400)
- TextLabel5.Name = "Text"
- TextLabel5.Parent = SurfaceGui4
- TextLabel5.Position = UDim2.new(0, 50, 0, 165)
- TextLabel5.Size = UDim2.new(0, 500, 0, 50)
- TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel5.BackgroundTransparency = 1
- TextLabel5.Font = Enum.Font.SourceSans
- TextLabel5.FontSize = Enum.FontSize.Size96
- TextLabel5.Text = "Don't Click Me"
- TextLabel5.TextColor = BrickColor.new("Really black")
- TextLabel5.TextColor3 = Color3.new(0, 0, 0)
- TextLabel5.TextSize = 100
- TextLabel5.TextStrokeTransparency = 0
- TextLabel5.TextWrap = true
- TextLabel5.TextWrapped = true
- ClickDetector6.Name = "Click"
- ClickDetector6.Parent = Part3
- 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
- script.Parent = Part3
- local d = false
- function onClick(player)
- if d == false then
- d = true
- if player.Character:FindFirstChild("Humanoid") then
- if player.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- if player.Character:FindFirstChild("Torso") then
- local e = Instance.new("Explosion")
- e.ExplosionType = Enum.ExplosionType.NoCraters
- e.BlastPressure = 1e10
- e.Visible = false
- e.Parent = player.Character.Torso
- e.Position = player.Character.Torso.Position
- end
- else
- if player.Character:FindFirstChild("UpperTorso") then
- local e = Instance.new("Explosion")
- e.ExplosionType = Enum.ExplosionType.NoCraters
- e.BlastPressure = 1e10
- e.Visible = false
- e.Parent = player.Character.UpperTorso
- e.Position = player.Character.UpperTorso.Position
- end
- end
- end
- d = false
- end
- end
- script.Parent.Click.MouseClick:Connect(onClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement