Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local Orb = Instance.new("Part", Character)
- Orb.Material = "Glass"
- Orb.Name = "Orb"
- Orb.Shape = Enum.PartType.Ball
- Orb.CanCollide = true
- Orb.BrickColor = BrickColor.new("Pastel Blue")
- Orb.Transparency = 0.5
- Orb.Size = Vector3.new(7, 7, 7)
- Orb.TopSurface = Enum.SurfaceType.Smooth
- Orb.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Orb)
- Weld.Part0 = Character.Torso
- Weld.Part1 = Orb
- Weld.C1 = CFrame.new(0, 0, 0)
- Character.Humanoid.JumpPower = 175
- Character.Humanoid.WalkSpeed = 60
- Character.Humanoid.MaxHealth = math.huge
- Mouse.KeyDown:connect(function(Key)
- if Key == "z" then
- local WallOne = Instance.new("Part", Character)
- WallOne.Material = "Glass"
- WallOne.Name = "WallOne"
- WallOne.BrickColor = BrickColor.new("Pastel Blue")
- WallOne.CanCollide = true
- WallOne.Transparency = 0.5
- WallOne.Size = Vector3.new(2, 12, 14.05)
- WallOne.Anchored = true
- WallOne.CFrame = Character.Torso.CFrame * CFrame.new(5,0,0)
- local WallTwo = Instance.new("Part", Character)
- WallTwo.Material = "Glass"
- WallTwo.Name = "WallOne"
- WallTwo.BrickColor = BrickColor.new("Pastel Blue")
- WallTwo.CanCollide = true
- WallTwo.Transparency = 0.5
- WallTwo.Size = Vector3.new(2, 12, 14.05)
- WallTwo.Anchored = true
- WallTwo.CFrame = Character.Torso.CFrame * CFrame.new(-5,0,0)
- local WallThree = Instance.new("Part", Character)
- WallThree.Material = "Glass"
- WallThree.Name = "WallOne"
- WallThree.BrickColor = BrickColor.new("Pastel Blue")
- WallThree.CanCollide = true
- WallThree.Transparency = 0.5
- WallThree.Size = Vector3.new(12, 12, 1)
- WallThree.Anchored = true
- WallThree.CFrame = Character.Torso.CFrame * CFrame.new(0,0,7)
- local WallFour = Instance.new("Part", Character)
- WallFour.Material = "Glass"
- WallFour.Name = "WallOne"
- WallFour.BrickColor = BrickColor.new("Pastel Blue")
- WallFour.CanCollide = true
- WallFour.Transparency = 0.5
- WallFour.Size = Vector3.new(12, 12, 1)
- WallFour.Anchored = true
- WallFour.CFrame = Character.Torso.CFrame * CFrame.new(0,0,-7)
- local Roof = Instance.new("Part", Character)
- Roof.Material = "Glass"
- Roof.Name = "WallOne"
- Roof.BrickColor = BrickColor.new("Pastel Blue")
- Roof.CanCollide = true
- Roof.Transparency = 0.5
- Roof.Size = Vector3.new(11.5, 0.95, 14)
- Roof.Anchored = true
- Roof.CFrame = Character.Torso.CFrame * CFrame.new(0,6,0)
- wait(3)
- WallFour:Remove()
- WallThree:Remove()
- WallTwo:Remove()
- WallOne:Remove()
- Roof:Remove()
- end
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key == "x" then
- local WallThree = Instance.new("Part", Character)
- WallThree.Material = "Glass"
- WallThree.Name = "Wall"
- WallThree.BrickColor = BrickColor.new("Pastel Blue")
- WallThree.CanCollide = true
- WallThree.Transparency = 0.5
- WallThree.Size = Vector3.new(12, 12, 1)
- WallThree.Anchored = true
- WallThree.CFrame = Character.Torso.CFrame * CFrame.new(0,0,-7)
- wait(3)
- WallThree:Remove()
- end
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key == "c" then
- local Roof = Instance.new("Part", Character)
- Roof.Material = "Glass"
- Roof.Name = "Floor"
- Roof.BrickColor = BrickColor.new("Pastel Blue")
- Roof.CanCollide = true
- Roof.Transparency = 0.5
- Roof.Size = Vector3.new(11.5, 0.95, 14)
- Roof.Anchored = true
- Roof.CFrame = Character.Torso.CFrame * CFrame.new(0,-5,0)
- wait(3)
- Roof:Remove()
- end
- end)
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- mouse.Button1Down:connect(function()
- local mT = mouse.Target
- if mT.Parent.Humanoid then
- local hum = mT.Parent.Humanoid
- local head = mT.Parent.Humanoid.Parent.Head
- local Orb = Instance.new("Part", Character)
- Orb.Material = "Glass"
- Orb.Name = "Orb"
- Orb.Shape = Enum.PartType.Ball
- Orb.CanCollide = true
- Orb.BrickColor = BrickColor.new("Pastel Blue")
- Orb.Transparency = 0.5
- Orb.Size = Vector3.new(2, 2, 2)
- local force = Instance.new("BodyForce", mT.Parent.Humanoid.Parent.Torso)
- force.Force.Y = 2000
- local Weld = Instance.new("Weld", Orb)
- Weld.Part0 = mT.Parent.Humanoid.Parent.Head
- Weld.Part1 = Orb
- Weld.C1 = CFrame.new(0, 0, 0)
- wait(3)
- hum.Parent:BreakJoints()
- Orb:Remove()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement