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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Decal3 = Instance.new("Decal")
- ClickDetector4 = Instance.new("ClickDetector")
- Script5 = Instance.new("Script")
- WedgePart6 = Instance.new("WedgePart")
- Part7 = Instance.new("Part")
- Decal8 = Instance.new("Decal")
- Script9 = Instance.new("Script")
- ClickDetector10 = Instance.new("ClickDetector")
- Part11 = Instance.new("Part")
- Decal12 = Instance.new("Decal")
- ClickDetector13 = Instance.new("ClickDetector")
- Script14 = Instance.new("Script")
- Part15 = Instance.new("Part")
- IntValue16 = Instance.new("IntValue")
- Part17 = Instance.new("Part")
- Humanoid18 = Instance.new("Humanoid")
- Model0.Name = "Rock, Paper, Scissors"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.Anchored = true
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(16, 3, 1)
- Part1.CFrame = CFrame.new(-6, 2.70001101, -13.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-6, 2.70001101, -13.5)
- Part2.Name = "Paper"
- Part2.Parent = Model0
- Part2.BrickColor = BrickColor.new("Mid gray")
- Part2.Rotation = Vector3.new(-143.12999, 0, -180)
- Part2.Anchored = true
- Part2.FormFactor = Enum.FormFactor.Plate
- Part2.Size = Vector3.new(4, 0.400000006, 3)
- Part2.CFrame = CFrame.new(-6, 2.86001396, -10.8800001, -1, 0, 0, 0, 0.800000012, 0.600000024, 0, 0.600000024, -0.800000012)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part2.Position = Vector3.new(-6, 2.86001396, -10.8800001)
- Part2.Orientation = Vector3.new(-36.8699989, 180, 0)
- Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Decal3.Parent = Part2
- Decal3.Texture = "http://www.roblox.com/asset/?id=12285158"
- Decal3.Face = Enum.NormalId.Top
- ClickDetector4.Parent = Part2
- Script5.Parent = Part2
- table.insert(cors,sandbox(Script5,function()
- function Paper()
- if script.Parent.BrickColor == BrickColor.new(1002) then
- script.Parent.BrickColor = BrickColor.new(37)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(26)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(26)
- script.Parent.Parent.Opponent.Value = math.random(3)
- if script.Parent.Parent.Opponent.Value == 1 then
- script.Parent.Parent.Name = "Rock!"
- wait(3)
- script.Parent.Parent.Name = "You win!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- elseif script.Parent.Parent.Opponent.Value == 2 then
- script.Parent.Parent.Name = "Paper!"
- wait(3)
- script.Parent.Parent.Name = "It's a tie!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- elseif script.Parent.Parent.Opponent.Value == 3 then
- script.Parent.Parent.Name = "Scissors!"
- wait(3)
- script.Parent.Parent.Name = "You lose!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- else
- script.Parent.Parent.Name = "An unexpected error has occured."
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- end
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(Paper)
- end))
- WedgePart6.Parent = Model0
- WedgePart6.Rotation = Vector3.new(180, 0, -180)
- WedgePart6.Anchored = true
- WedgePart6.FormFactor = Enum.FormFactor.Symmetric
- WedgePart6.Size = Vector3.new(16, 3, 4)
- WedgePart6.CFrame = CFrame.new(-6, 2.70001101, -11, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- WedgePart6.Position = Vector3.new(-6, 2.70001101, -11)
- WedgePart6.Orientation = Vector3.new(0, -180, 0)
- Part7.Name = "Rock"
- Part7.Parent = Model0
- Part7.BrickColor = BrickColor.new("Mid gray")
- Part7.Rotation = Vector3.new(-143.12999, 0, -180)
- Part7.Anchored = true
- Part7.FormFactor = Enum.FormFactor.Plate
- Part7.Size = Vector3.new(4, 0.400000006, 3)
- Part7.CFrame = CFrame.new(-11, 2.86000991, -10.8800001, -1, 0, 0, 0, 0.800000012, 0.600000024, 0, 0.600000024, -0.800000012)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part7.Position = Vector3.new(-11, 2.86000991, -10.8800001)
- Part7.Orientation = Vector3.new(-36.8699989, 180, 0)
- Part7.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Decal8.Parent = Part7
- Decal8.Texture = "http://www.roblox.com/asset/?id=10954894"
- Decal8.Face = Enum.NormalId.Top
- Script9.Parent = Part7
- table.insert(cors,sandbox(Script9,function()
- function Rock()
- if script.Parent.BrickColor == BrickColor.new(1002) then
- script.Parent.BrickColor = BrickColor.new(37)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(26)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(26)
- script.Parent.Parent.Opponent.Value = math.random(3)
- if script.Parent.Parent.Opponent.Value == 1 then
- script.Parent.Parent.Name = "Rock!"
- wait(3)
- script.Parent.Parent.Name = "It's a tie!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- elseif script.Parent.Parent.Opponent.Value == 2 then
- script.Parent.Parent.Name = "Paper!"
- wait(3)
- script.Parent.Parent.Name = "You lose!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- elseif script.Parent.Parent.Opponent.Value == 3 then
- script.Parent.Parent.Name = "Scissors!"
- wait(3)
- script.Parent.Parent.Name = "You win!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- else
- script.Parent.Parent.Name = "An unexpected error has occured."
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Scissors.BrickColor = BrickColor.new(1002)
- end
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(Rock)
- end))
- ClickDetector10.Parent = Part7
- Part11.Name = "Scissors"
- Part11.Parent = Model0
- Part11.BrickColor = BrickColor.new("Mid gray")
- Part11.Rotation = Vector3.new(-143.12999, 0, -180)
- Part11.Anchored = true
- Part11.FormFactor = Enum.FormFactor.Plate
- Part11.Size = Vector3.new(4, 0.400000006, 3)
- Part11.CFrame = CFrame.new(-1, 2.86000991, -10.8800001, -1, 0, 0, 0, 0.800000012, 0.600000024, 0, 0.600000024, -0.800000012)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part11.Position = Vector3.new(-1, 2.86000991, -10.8800001)
- Part11.Orientation = Vector3.new(-36.8699989, 180, 0)
- Part11.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Decal12.Parent = Part11
- Decal12.Texture = "http://www.roblox.com/asset/?id=28625654"
- Decal12.Face = Enum.NormalId.Top
- ClickDetector13.Parent = Part11
- Script14.Parent = Part11
- table.insert(cors,sandbox(Script14,function()
- function Scissors()
- if script.Parent.BrickColor == BrickColor.new(1002) then
- script.Parent.BrickColor = BrickColor.new(37)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(26)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(26)
- script.Parent.Parent.Opponent.Value = math.random(3)
- if script.Parent.Parent.Opponent.Value == 1 then
- script.Parent.Parent.Name = "Rock!"
- wait(3)
- script.Parent.Parent.Name = "You lose!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- elseif script.Parent.Parent.Opponent.Value == 2 then
- script.Parent.Parent.Name = "Paper!"
- wait(3)
- script.Parent.Parent.Name = "You win!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- elseif script.Parent.Parent.Opponent.Value == 3 then
- script.Parent.Parent.Name = "Scissors!"
- wait(3)
- script.Parent.Parent.Name = "It's a tie!"
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- else
- script.Parent.Parent.Name = "An unexpected error has occured."
- wait(3)
- script.Parent.Parent.Name = "Rock, Paper, Scissors"
- script.Parent.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Rock.BrickColor = BrickColor.new(1002)
- script.Parent.Parent.Paper.BrickColor = BrickColor.new(1002)
- end
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(Scissors)
- end))
- Part15.Parent = Model0
- Part15.Anchored = true
- Part15.Size = Vector3.new(16, 1.20000005, 5)
- Part15.CFrame = CFrame.new(-6, 0.600012004, -11.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.Position = Vector3.new(-6, 0.600012004, -11.5)
- IntValue16.Name = "Opponent"
- IntValue16.Parent = Model0
- Part17.Name = "Head"
- Part17.Parent = Model0
- Part17.BrickColor = BrickColor.new("Black")
- Part17.Anchored = true
- Part17.FormFactor = Enum.FormFactor.Plate
- Part17.Size = Vector3.new(2, 0.400000006, 1)
- Part17.CFrame = CFrame.new(-6, 4.40000677, -13.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part17.Position = Vector3.new(-6, 4.40000677, -13.5)
- Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Humanoid18.Parent = Model0
- Humanoid18.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid18.Health = 0
- Humanoid18.MaxHealth = 0
- 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