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")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Model12 = Instance.new("Model")
- Part13 = Instance.new("Part")
- Part14 = Instance.new("Part")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Part17 = Instance.new("Part")
- Script18 = Instance.new("Script")
- Script19 = Instance.new("Script")
- Model20 = Instance.new("Model")
- Part21 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Part23 = Instance.new("Part")
- Part24 = Instance.new("Part")
- Part25 = Instance.new("Part")
- Part26 = Instance.new("Part")
- Part27 = Instance.new("Part")
- Part28 = Instance.new("Part")
- Part29 = Instance.new("Part")
- Part30 = Instance.new("Part")
- Model31 = Instance.new("Model")
- Part32 = Instance.new("Part")
- Part33 = Instance.new("Part")
- Part34 = Instance.new("Part")
- Part35 = Instance.new("Part")
- Part36 = Instance.new("Part")
- Script37 = Instance.new("Script")
- Script38 = Instance.new("Script")
- Model39 = Instance.new("Model")
- Part40 = Instance.new("Part")
- Part41 = Instance.new("Part")
- Part42 = Instance.new("Part")
- Part43 = Instance.new("Part")
- Part44 = Instance.new("Part")
- Part45 = Instance.new("Part")
- Part46 = Instance.new("Part")
- Part47 = Instance.new("Part")
- Part48 = Instance.new("Part")
- Part49 = Instance.new("Part")
- Model50 = Instance.new("Model")
- Part51 = Instance.new("Part")
- Part52 = Instance.new("Part")
- Part53 = Instance.new("Part")
- Part54 = Instance.new("Part")
- Part55 = Instance.new("Part")
- Script56 = Instance.new("Script")
- Script57 = Instance.new("Script")
- Model58 = Instance.new("Model")
- Part59 = Instance.new("Part")
- Part60 = Instance.new("Part")
- Part61 = Instance.new("Part")
- Part62 = Instance.new("Part")
- Part63 = Instance.new("Part")
- Part64 = Instance.new("Part")
- Part65 = Instance.new("Part")
- Part66 = Instance.new("Part")
- Part67 = Instance.new("Part")
- Part68 = Instance.new("Part")
- Model69 = Instance.new("Model")
- Part70 = Instance.new("Part")
- Part71 = Instance.new("Part")
- Part72 = Instance.new("Part")
- Part73 = Instance.new("Part")
- Part74 = Instance.new("Part")
- Script75 = Instance.new("Script")
- Script76 = Instance.new("Script")
- Model77 = Instance.new("Model")
- Part78 = Instance.new("Part")
- Part79 = Instance.new("Part")
- Part80 = Instance.new("Part")
- Part81 = Instance.new("Part")
- Part82 = Instance.new("Part")
- Part83 = Instance.new("Part")
- Part84 = Instance.new("Part")
- Part85 = Instance.new("Part")
- Part86 = Instance.new("Part")
- Part87 = Instance.new("Part")
- Model88 = Instance.new("Model")
- Part89 = Instance.new("Part")
- Part90 = Instance.new("Part")
- Part91 = Instance.new("Part")
- Part92 = Instance.new("Part")
- Part93 = Instance.new("Part")
- Script94 = Instance.new("Script")
- Script95 = Instance.new("Script")
- Part96 = Instance.new("Part")
- Part97 = Instance.new("Part")
- Model98 = Instance.new("Model")
- Part99 = Instance.new("Part")
- Part100 = Instance.new("Part")
- Part101 = Instance.new("Part")
- Part102 = Instance.new("Part")
- Part103 = Instance.new("Part")
- Part104 = Instance.new("Part")
- Part105 = Instance.new("Part")
- Part106 = Instance.new("Part")
- Part107 = Instance.new("Part")
- Part108 = Instance.new("Part")
- Model109 = Instance.new("Model")
- Part110 = Instance.new("Part")
- Part111 = Instance.new("Part")
- Part112 = Instance.new("Part")
- Part113 = Instance.new("Part")
- Part114 = Instance.new("Part")
- Script115 = Instance.new("Script")
- Script116 = Instance.new("Script")
- Model117 = Instance.new("Model")
- Part118 = Instance.new("Part")
- Part119 = Instance.new("Part")
- Part120 = Instance.new("Part")
- Part121 = Instance.new("Part")
- Part122 = Instance.new("Part")
- Part123 = Instance.new("Part")
- Part124 = Instance.new("Part")
- Part125 = Instance.new("Part")
- Part126 = Instance.new("Part")
- Part127 = Instance.new("Part")
- Model128 = Instance.new("Model")
- Part129 = Instance.new("Part")
- Part130 = Instance.new("Part")
- Part131 = Instance.new("Part")
- Part132 = Instance.new("Part")
- Part133 = Instance.new("Part")
- Script134 = Instance.new("Script")
- Script135 = Instance.new("Script")
- Model136 = Instance.new("Model")
- Part137 = Instance.new("Part")
- Part138 = Instance.new("Part")
- Part139 = Instance.new("Part")
- Part140 = Instance.new("Part")
- Part141 = Instance.new("Part")
- Part142 = Instance.new("Part")
- Part143 = Instance.new("Part")
- Part144 = Instance.new("Part")
- Part145 = Instance.new("Part")
- Part146 = Instance.new("Part")
- Model147 = Instance.new("Model")
- Part148 = Instance.new("Part")
- Part149 = Instance.new("Part")
- Part150 = Instance.new("Part")
- Part151 = Instance.new("Part")
- Part152 = Instance.new("Part")
- Script153 = Instance.new("Script")
- Script154 = Instance.new("Script")
- Model155 = Instance.new("Model")
- Part156 = Instance.new("Part")
- Part157 = Instance.new("Part")
- Part158 = Instance.new("Part")
- Part159 = Instance.new("Part")
- Part160 = Instance.new("Part")
- Part161 = Instance.new("Part")
- Part162 = Instance.new("Part")
- Part163 = Instance.new("Part")
- Part164 = Instance.new("Part")
- Part165 = Instance.new("Part")
- Model166 = Instance.new("Model")
- Part167 = Instance.new("Part")
- Part168 = Instance.new("Part")
- Part169 = Instance.new("Part")
- Part170 = Instance.new("Part")
- Part171 = Instance.new("Part")
- Script172 = Instance.new("Script")
- Script173 = Instance.new("Script")
- Model174 = Instance.new("Model")
- Part175 = Instance.new("Part")
- Part176 = Instance.new("Part")
- Part177 = Instance.new("Part")
- Part178 = Instance.new("Part")
- Part179 = Instance.new("Part")
- Part180 = Instance.new("Part")
- Part181 = Instance.new("Part")
- Part182 = Instance.new("Part")
- Part183 = Instance.new("Part")
- Part184 = Instance.new("Part")
- Model185 = Instance.new("Model")
- Part186 = Instance.new("Part")
- Part187 = Instance.new("Part")
- Part188 = Instance.new("Part")
- Part189 = Instance.new("Part")
- Part190 = Instance.new("Part")
- Script191 = Instance.new("Script")
- Script192 = Instance.new("Script")
- Model0.Parent = mas
- Model0.PrimaryPart = Part97
- Model1.Parent = Model0
- Model1.PrimaryPart = Part3
- Part2.Parent = Model1
- Part2.BrickColor = BrickColor.new("Dark stone grey")
- Part2.Rotation = Vector3.new(0, -90, 0)
- Part2.Anchored = true
- Part2.FormFactor = Enum.FormFactor.Plate
- Part2.Size = Vector3.new(1, 3.20000005, 1)
- Part2.CFrame = CFrame.new(8, 4.80049658, -79, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
- Part2.BackSurface = Enum.SurfaceType.Weld
- Part2.FrontSurface = Enum.SurfaceType.Weld
- Part2.LeftSurface = Enum.SurfaceType.Weld
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part2.Position = Vector3.new(8, 4.80049658, -79)
- Part2.Orientation = Vector3.new(0, -90, 0)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part3.Parent = Model1
- Part3.BrickColor = BrickColor.new("Dark stone grey")
- Part3.Rotation = Vector3.new(0, -90, 0)
- Part3.Anchored = true
- Part3.FormFactor = Enum.FormFactor.Plate
- Part3.Size = Vector3.new(4, 3.20000005, 5)
- Part3.CFrame = CFrame.new(5.99993896, 1.60046911, -77.5, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
- Part3.BackSurface = Enum.SurfaceType.Weld
- Part3.FrontSurface = Enum.SurfaceType.Weld
- Part3.LeftSurface = Enum.SurfaceType.Weld
- Part3.RightSurface = Enum.SurfaceType.Weld
- Part3.TopSurface = Enum.SurfaceType.Weld
- Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part3.Position = Vector3.new(5.99993896, 1.60046911, -77.5)
- Part3.Orientation = Vector3.new(0, -90, 0)
- Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part4.Parent = Model1
- Part4.BrickColor = BrickColor.new("Dark stone grey")
- Part4.Rotation = Vector3.new(0, -90, 0)
- Part4.Anchored = true
- Part4.FormFactor = Enum.FormFactor.Plate
- Part4.Size = Vector3.new(3, 3.20000005, 5)
- Part4.CFrame = CFrame.new(6, 4.80046797, -77, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
- Part4.BackSurface = Enum.SurfaceType.Weld
- Part4.FrontSurface = Enum.SurfaceType.Weld
- Part4.LeftSurface = Enum.SurfaceType.Weld
- Part4.RightSurface = Enum.SurfaceType.Weld
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part4.Position = Vector3.new(6, 4.80046797, -77)
- Part4.Orientation = Vector3.new(0, -90, 0)
- Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part5.Parent = Model1
- Part5.BrickColor = BrickColor.new("Dark stone grey")
- Part5.Rotation = Vector3.new(0, -90, 0)
- Part5.Anchored = true
- Part5.FormFactor = Enum.FormFactor.Plate
- Part5.Size = Vector3.new(1, 3.20000005, 1)
- Part5.CFrame = CFrame.new(4, 4.80040216, -79, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part5.BackSurface = Enum.SurfaceType.Weld
- Part5.FrontSurface = Enum.SurfaceType.Weld
- Part5.LeftSurface = Enum.SurfaceType.Weld
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part5.Position = Vector3.new(4, 4.80040216, -79)
- Part5.Orientation = Vector3.new(0, -90, 0)
- Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part6.Parent = Model1
- Part6.BrickColor = BrickColor.new("Dark stone grey")
- Part6.Rotation = Vector3.new(0, -90, 0)
- Part6.Anchored = true
- Part6.FormFactor = Enum.FormFactor.Plate
- Part6.Size = Vector3.new(4, 0.400000006, 5)
- Part6.CFrame = CFrame.new(6, 6.60039473, -77.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part6.BackSurface = Enum.SurfaceType.Weld
- Part6.BottomSurface = Enum.SurfaceType.Weld
- Part6.FrontSurface = Enum.SurfaceType.Weld
- Part6.LeftSurface = Enum.SurfaceType.Weld
- Part6.RightSurface = Enum.SurfaceType.Weld
- Part6.TopSurface = Enum.SurfaceType.Weld
- Part6.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part6.Position = Vector3.new(6, 6.60039473, -77.5)
- Part6.Orientation = Vector3.new(0, -90, 0)
- Part6.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part7.Parent = Model1
- Part7.Rotation = Vector3.new(0, 0, 90)
- Part7.Anchored = true
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.Shape = Enum.PartType.Ball
- Part7.Size = Vector3.new(1, 1, 1)
- Part7.CFrame = CFrame.new(3.00003052, 6.50049257, -78, 1.0273372e-05, -1, -7.22158859e-07, 1, 8.12765211e-06, -7.56428744e-06, 1.84225667e-06, -1.57145882e-06, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Position = Vector3.new(3.00003052, 6.50049257, -78)
- Part7.Orientation = Vector3.new(0, 0, 90)
- Part8.Parent = Model1
- Part8.Rotation = Vector3.new(-180, 0, -180)
- Part8.Anchored = true
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.Shape = Enum.PartType.Cylinder
- Part8.Size = Vector3.new(1, 1, 1)
- Part8.CFrame = CFrame.new(3, 3.50040197, -78, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Position = Vector3.new(3, 3.50040197, -78)
- Part8.Orientation = Vector3.new(0, 180, 0)
- Part9.Parent = Model1
- Part9.Rotation = Vector3.new(0, 0, 90)
- Part9.Anchored = true
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.Shape = Enum.PartType.Cylinder
- Part9.Size = Vector3.new(1, 1, 1)
- Part9.CFrame = CFrame.new(3, 4.50049257, -78, 1.0273372e-05, -1, -7.22158859e-07, 1, 8.12765211e-06, -7.56428744e-06, 1.84225667e-06, -1.57145882e-06, 1)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Position = Vector3.new(3, 4.50049257, -78)
- Part9.Orientation = Vector3.new(0, 0, 90)
- Part10.Parent = Model1
- Part10.Rotation = Vector3.new(0, 0, 90)
- Part10.Anchored = true
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.Shape = Enum.PartType.Cylinder
- Part10.Size = Vector3.new(1, 1, 1)
- Part10.CFrame = CFrame.new(3, 5.50047827, -78, 1.0273372e-05, -1, -7.22158859e-07, 1, 8.12765211e-06, -7.56428744e-06, 1.84225667e-06, -1.57145882e-06, 1)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.Position = Vector3.new(3, 5.50047827, -78)
- Part10.Orientation = Vector3.new(0, 0, 90)
- Part11.Parent = Model1
- Part11.Rotation = Vector3.new(0, -90, 0)
- Part11.Anchored = true
- Part11.FormFactor = Enum.FormFactor.Plate
- Part11.Size = Vector3.new(1, 0.400000006, 3)
- Part11.CFrame = CFrame.new(6.00003052, 7.00044966, -77, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.Position = Vector3.new(6.00003052, 7.00044966, -77)
- Part11.Orientation = Vector3.new(0, -90, 0)
- Model12.Name = "Slots"
- Model12.Parent = Model1
- Model12.PrimaryPart = Part14
- Part13.Name = "Digit3"
- Part13.Parent = Model12
- Part13.BrickColor = BrickColor.new("White")
- Part13.Rotation = Vector3.new(-90, -90, 0)
- Part13.Anchored = true
- Part13.FormFactor = Enum.FormFactor.Plate
- Part13.Size = Vector3.new(3, 0.400000006, 1)
- Part13.CFrame = CFrame.new(5, 4.70039988, -78.6999817, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part13.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part13.Position = Vector3.new(5, 4.70039988, -78.6999817)
- Part13.Orientation = Vector3.new(0, -90, 90)
- Part13.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part14.Name = "Light"
- Part14.Parent = Model12
- Part14.BrickColor = BrickColor.new("Bright red")
- Part14.Transparency = 0.5
- Part14.Rotation = Vector3.new(90, 90, 0)
- Part14.Anchored = true
- Part14.FormFactor = Enum.FormFactor.Symmetric
- Part14.Shape = Enum.PartType.Cylinder
- Part14.Size = Vector3.new(1, 1, 1)
- Part14.CFrame = CFrame.new(6, 7.70043135, -76.9999695, 1.0273372e-05, 1.8108841e-06, 1, 1, -7.56430791e-06, -8.12763392e-06, 1.84225667e-06, 1, -9.61584192e-07)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.RightSurface = Enum.SurfaceType.Weld
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part14.Position = Vector3.new(6, 7.70043135, -76.9999695)
- Part14.Orientation = Vector3.new(0, 90, 90)
- Part14.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part15.Name = "Digit1"
- Part15.Parent = Model12
- Part15.BrickColor = BrickColor.new("White")
- Part15.Rotation = Vector3.new(-90, -90, 0)
- Part15.Anchored = true
- Part15.FormFactor = Enum.FormFactor.Plate
- Part15.Size = Vector3.new(3, 0.400000006, 1)
- Part15.CFrame = CFrame.new(7, 4.70049238, -78.7000122, 1.0273372e-05, -1.8108841e-06, -1, 1, 7.56430791e-06, 8.12763392e-06, 1.84225667e-06, -1, 9.61584192e-07)
- Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part15.Position = Vector3.new(7, 4.70049238, -78.7000122)
- Part15.Orientation = Vector3.new(0, -90, 90)
- Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part16.Name = "Digit2"
- Part16.Parent = Model12
- Part16.BrickColor = BrickColor.new("White")
- Part16.Rotation = Vector3.new(-90, 90, 0)
- Part16.Anchored = true
- Part16.FormFactor = Enum.FormFactor.Plate
- Part16.Size = Vector3.new(3, 0.400000006, 1)
- Part16.CFrame = CFrame.new(6, 4.70039988, -78.6999817, 0, 0, 1, -1, 0, 0, 0, -1, 0)
- Part16.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part16.Position = Vector3.new(6, 4.70039988, -78.6999817)
- Part16.Orientation = Vector3.new(0, 90, -90)
- Part16.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part17.Name = "Button"
- Part17.Parent = Model12
- Part17.BrickColor = BrickColor.new("Dark green")
- Part17.Rotation = Vector3.new(-90, -90, 0)
- Part17.Anchored = true
- Part17.FormFactor = Enum.FormFactor.Plate
- Part17.Size = Vector3.new(1, 0.400000006, 1)
- Part17.CFrame = CFrame.new(6, 1.50040197, -79.6999817, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part17.Position = Vector3.new(6, 1.50040197, -79.6999817)
- Part17.Orientation = Vector3.new(0, -90, 90)
- Part17.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script18.Parent = Part17
- table.insert(cors,sandbox(Script18,function()
- print("Hello world!")
- end))
- Script19.Name = "SlotGame"
- Script19.Parent = Model12
- table.insert(cors,sandbox(Script19,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model20.Parent = Model0
- Model20.PrimaryPart = Part22
- Part21.Parent = Model20
- Part21.BrickColor = BrickColor.new("Dark stone grey")
- Part21.Anchored = true
- Part21.FormFactor = Enum.FormFactor.Plate
- Part21.Size = Vector3.new(1, 3.20000005, 1)
- Part21.CFrame = CFrame.new(0, 4.80040216, -75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part21.BackSurface = Enum.SurfaceType.Weld
- Part21.FrontSurface = Enum.SurfaceType.Weld
- Part21.LeftSurface = Enum.SurfaceType.Weld
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part21.Position = Vector3.new(0, 4.80040216, -75)
- Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part22.Parent = Model20
- Part22.BrickColor = BrickColor.new("Dark stone grey")
- Part22.Anchored = true
- Part22.FormFactor = Enum.FormFactor.Plate
- Part22.Size = Vector3.new(4, 3.20000005, 5)
- Part22.CFrame = CFrame.new(1.5, 1.60039473, -73, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part22.BackSurface = Enum.SurfaceType.Weld
- Part22.FrontSurface = Enum.SurfaceType.Weld
- Part22.LeftSurface = Enum.SurfaceType.Weld
- Part22.RightSurface = Enum.SurfaceType.Weld
- Part22.TopSurface = Enum.SurfaceType.Weld
- Part22.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part22.Position = Vector3.new(1.5, 1.60039473, -73)
- Part22.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part23.Parent = Model20
- Part23.BrickColor = BrickColor.new("Dark stone grey")
- Part23.Anchored = true
- Part23.FormFactor = Enum.FormFactor.Plate
- Part23.Size = Vector3.new(3, 3.20000005, 5)
- Part23.CFrame = CFrame.new(2, 4.80040216, -73, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part23.BackSurface = Enum.SurfaceType.Weld
- Part23.FrontSurface = Enum.SurfaceType.Weld
- Part23.LeftSurface = Enum.SurfaceType.Weld
- Part23.RightSurface = Enum.SurfaceType.Weld
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part23.Position = Vector3.new(2, 4.80040216, -73)
- Part23.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part24.Parent = Model20
- Part24.BrickColor = BrickColor.new("Dark stone grey")
- Part24.Anchored = true
- Part24.FormFactor = Enum.FormFactor.Plate
- Part24.Size = Vector3.new(1, 3.20000005, 1)
- Part24.CFrame = CFrame.new(-6.10351563e-05, 4.80025434, -71, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part24.BackSurface = Enum.SurfaceType.Weld
- Part24.FrontSurface = Enum.SurfaceType.Weld
- Part24.LeftSurface = Enum.SurfaceType.Weld
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part24.Position = Vector3.new(-6.10351563e-05, 4.80025434, -71)
- Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part25.Parent = Model20
- Part25.BrickColor = BrickColor.new("Dark stone grey")
- Part25.Anchored = true
- Part25.FormFactor = Enum.FormFactor.Plate
- Part25.Size = Vector3.new(4, 0.400000006, 5)
- Part25.CFrame = CFrame.new(1.49993896, 6.60028601, -73, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part25.BackSurface = Enum.SurfaceType.Weld
- Part25.BottomSurface = Enum.SurfaceType.Weld
- Part25.FrontSurface = Enum.SurfaceType.Weld
- Part25.LeftSurface = Enum.SurfaceType.Weld
- Part25.RightSurface = Enum.SurfaceType.Weld
- Part25.TopSurface = Enum.SurfaceType.Weld
- Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part25.Position = Vector3.new(1.49993896, 6.60028601, -73)
- Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part26.Parent = Model20
- Part26.Rotation = Vector3.new(90, 90, 0)
- Part26.Anchored = true
- Part26.FormFactor = Enum.FormFactor.Symmetric
- Part26.Shape = Enum.PartType.Ball
- Part26.Size = Vector3.new(1, 1, 1)
- Part26.CFrame = CFrame.new(1, 6.50040197, -70, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.Position = Vector3.new(1, 6.50040197, -70)
- Part26.Orientation = Vector3.new(0, 90, 90)
- Part27.Parent = Model20
- Part27.Rotation = Vector3.new(0, -90, 0)
- Part27.Anchored = true
- Part27.FormFactor = Enum.FormFactor.Symmetric
- Part27.Shape = Enum.PartType.Cylinder
- Part27.Size = Vector3.new(1, 1, 1)
- Part27.CFrame = CFrame.new(1, 3.50040197, -70, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Part27.Position = Vector3.new(1, 3.50040197, -70)
- Part27.Orientation = Vector3.new(0, -90, 0)
- Part28.Parent = Model20
- Part28.Rotation = Vector3.new(90, 90, 0)
- Part28.Anchored = true
- Part28.FormFactor = Enum.FormFactor.Symmetric
- Part28.Shape = Enum.PartType.Cylinder
- Part28.Size = Vector3.new(1, 1, 1)
- Part28.CFrame = CFrame.new(1, 4.50040197, -70, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.Position = Vector3.new(1, 4.50040197, -70)
- Part28.Orientation = Vector3.new(0, 90, 90)
- Part29.Parent = Model20
- Part29.Rotation = Vector3.new(90, 90, 0)
- Part29.Anchored = true
- Part29.FormFactor = Enum.FormFactor.Symmetric
- Part29.Shape = Enum.PartType.Cylinder
- Part29.Size = Vector3.new(1, 1, 1)
- Part29.CFrame = CFrame.new(1, 5.50040197, -70, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.Position = Vector3.new(1, 5.50040197, -70)
- Part29.Orientation = Vector3.new(0, 90, 90)
- Part30.Parent = Model20
- Part30.Anchored = true
- Part30.FormFactor = Enum.FormFactor.Plate
- Part30.Size = Vector3.new(1, 0.400000006, 3)
- Part30.CFrame = CFrame.new(2, 7.00040197, -73, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part30.BottomSurface = Enum.SurfaceType.Smooth
- Part30.TopSurface = Enum.SurfaceType.Smooth
- Part30.Position = Vector3.new(2, 7.00040197, -73)
- Model31.Name = "Slots"
- Model31.Parent = Model20
- Model31.PrimaryPart = Part33
- Part32.Name = "Digit3"
- Part32.Parent = Model31
- Part32.BrickColor = BrickColor.new("White")
- Part32.Rotation = Vector3.new(0, 0, 90)
- Part32.Anchored = true
- Part32.FormFactor = Enum.FormFactor.Plate
- Part32.Size = Vector3.new(3, 0.400000006, 1)
- Part32.CFrame = CFrame.new(0.299957275, 4.70026255, -72, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part32.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part32.Position = Vector3.new(0.299957275, 4.70026255, -72)
- Part32.Orientation = Vector3.new(0, 0, 90)
- Part32.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part33.Name = "Light"
- Part33.Parent = Model31
- Part33.BrickColor = BrickColor.new("Bright red")
- Part33.Transparency = 0.5
- Part33.Rotation = Vector3.new(-180, 0, -90)
- Part33.Anchored = true
- Part33.FormFactor = Enum.FormFactor.Symmetric
- Part33.Shape = Enum.PartType.Cylinder
- Part33.Size = Vector3.new(1, 1, 1)
- Part33.CFrame = CFrame.new(2, 7.70040083, -73, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.RightSurface = Enum.SurfaceType.Weld
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part33.Position = Vector3.new(2, 7.70040083, -73)
- Part33.Orientation = Vector3.new(0, 180, 90)
- Part33.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part34.Name = "Digit1"
- Part34.Parent = Model31
- Part34.BrickColor = BrickColor.new("White")
- Part34.Rotation = Vector3.new(0, 0, 90)
- Part34.Anchored = true
- Part34.FormFactor = Enum.FormFactor.Plate
- Part34.Size = Vector3.new(3, 0.400000006, 1)
- Part34.CFrame = CFrame.new(0.300003052, 4.70039988, -74, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part34.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part34.Position = Vector3.new(0.300003052, 4.70039988, -74)
- Part34.Orientation = Vector3.new(0, 0, 90)
- Part34.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part35.Name = "Digit2"
- Part35.Parent = Model31
- Part35.BrickColor = BrickColor.new("White")
- Part35.Rotation = Vector3.new(-180, 0, 90)
- Part35.Anchored = true
- Part35.FormFactor = Enum.FormFactor.Plate
- Part35.Size = Vector3.new(3, 0.400000006, 1)
- Part35.CFrame = CFrame.new(0.299957275, 4.70026255, -73, 8.86863836e-06, -1, -5.44383852e-07, -1, -1.10143674e-05, 9.55792802e-06, -3.83588122e-06, -3.04969149e-07, -1)
- Part35.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part35.Position = Vector3.new(0.299957275, 4.70026255, -73)
- Part35.Orientation = Vector3.new(0, -180, -90)
- Part35.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part36.Name = "Button"
- Part36.Parent = Model31
- Part36.BrickColor = BrickColor.new("Dark green")
- Part36.Rotation = Vector3.new(0, 0, 90)
- Part36.Anchored = true
- Part36.FormFactor = Enum.FormFactor.Plate
- Part36.Size = Vector3.new(1, 0.400000006, 1)
- Part36.CFrame = CFrame.new(-0.700012207, 1.50023603, -73, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part36.TopSurface = Enum.SurfaceType.Smooth
- Part36.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part36.Position = Vector3.new(-0.700012207, 1.50023603, -73)
- Part36.Orientation = Vector3.new(0, 0, 90)
- Part36.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script37.Parent = Part36
- table.insert(cors,sandbox(Script37,function()
- print("Hello world!")
- end))
- Script38.Name = "SlotGame"
- Script38.Parent = Model31
- table.insert(cors,sandbox(Script38,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model39.Parent = Model0
- Model39.PrimaryPart = Part44
- Part40.Parent = Model39
- Part40.BrickColor = BrickColor.new("Dark stone grey")
- Part40.Rotation = Vector3.new(-180, 0, -180)
- Part40.Anchored = true
- Part40.FormFactor = Enum.FormFactor.Plate
- Part40.Size = Vector3.new(1, 3.20000005, 1)
- Part40.CFrame = CFrame.new(12, 4.80040216, -71, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part40.BackSurface = Enum.SurfaceType.Weld
- Part40.FrontSurface = Enum.SurfaceType.Weld
- Part40.LeftSurface = Enum.SurfaceType.Weld
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part40.Position = Vector3.new(12, 4.80040216, -71)
- Part40.Orientation = Vector3.new(0, 180, 0)
- Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part41.Parent = Model39
- Part41.BrickColor = BrickColor.new("Dark stone grey")
- Part41.Rotation = Vector3.new(-180, 0, -180)
- Part41.Anchored = true
- Part41.FormFactor = Enum.FormFactor.Plate
- Part41.Size = Vector3.new(4, 3.20000005, 5)
- Part41.CFrame = CFrame.new(10.5, 1.60039473, -73, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part41.BackSurface = Enum.SurfaceType.Weld
- Part41.FrontSurface = Enum.SurfaceType.Weld
- Part41.LeftSurface = Enum.SurfaceType.Weld
- Part41.RightSurface = Enum.SurfaceType.Weld
- Part41.TopSurface = Enum.SurfaceType.Weld
- Part41.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part41.Position = Vector3.new(10.5, 1.60039473, -73)
- Part41.Orientation = Vector3.new(0, 180, 0)
- Part41.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part42.Parent = Model39
- Part42.BrickColor = BrickColor.new("Dark stone grey")
- Part42.Rotation = Vector3.new(-180, 0, -180)
- Part42.Anchored = true
- Part42.FormFactor = Enum.FormFactor.Plate
- Part42.Size = Vector3.new(3, 3.20000005, 5)
- Part42.CFrame = CFrame.new(10, 4.80040216, -73, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part42.BackSurface = Enum.SurfaceType.Weld
- Part42.FrontSurface = Enum.SurfaceType.Weld
- Part42.LeftSurface = Enum.SurfaceType.Weld
- Part42.RightSurface = Enum.SurfaceType.Weld
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Part42.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part42.Position = Vector3.new(10, 4.80040216, -73)
- Part42.Orientation = Vector3.new(0, 180, 0)
- Part42.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part43.Parent = Model39
- Part43.BrickColor = BrickColor.new("Dark stone grey")
- Part43.Rotation = Vector3.new(180, 0, -180)
- Part43.Anchored = true
- Part43.FormFactor = Enum.FormFactor.Plate
- Part43.Size = Vector3.new(1, 3.20000005, 1)
- Part43.CFrame = CFrame.new(12, 4.80043459, -75, -1, 1.56635924e-05, 3.09238453e-06, 1.35178389e-05, 1, -9.55787891e-06, -3.94194285e-06, -1.52798693e-05, -1)
- Part43.BackSurface = Enum.SurfaceType.Weld
- Part43.FrontSurface = Enum.SurfaceType.Weld
- Part43.LeftSurface = Enum.SurfaceType.Weld
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part43.Position = Vector3.new(12, 4.80043459, -75)
- Part43.Orientation = Vector3.new(0, 180, 0)
- Part43.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part44.Parent = Model39
- Part44.BrickColor = BrickColor.new("Dark stone grey")
- Part44.Rotation = Vector3.new(180, 0, -180)
- Part44.Anchored = true
- Part44.FormFactor = Enum.FormFactor.Plate
- Part44.Size = Vector3.new(4, 0.400000006, 5)
- Part44.CFrame = CFrame.new(10.500061, 6.60046816, -73.000061, -1, 1.56039914e-05, 3.09238135e-06, 1.34582378e-05, 1, -9.55787891e-06, -3.94193876e-06, -1.52798693e-05, -1)
- Part44.BackSurface = Enum.SurfaceType.Weld
- Part44.BottomSurface = Enum.SurfaceType.Weld
- Part44.FrontSurface = Enum.SurfaceType.Weld
- Part44.LeftSurface = Enum.SurfaceType.Weld
- Part44.RightSurface = Enum.SurfaceType.Weld
- Part44.TopSurface = Enum.SurfaceType.Weld
- Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part44.Position = Vector3.new(10.500061, 6.60046816, -73.000061)
- Part44.Orientation = Vector3.new(0, 180, 0)
- Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part45.Parent = Model39
- Part45.Rotation = Vector3.new(-90, -90, 0)
- Part45.Anchored = true
- Part45.FormFactor = Enum.FormFactor.Symmetric
- Part45.Shape = Enum.PartType.Ball
- Part45.Size = Vector3.new(1, 1, 1)
- Part45.CFrame = CFrame.new(11, 6.50040197, -76, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part45.BottomSurface = Enum.SurfaceType.Smooth
- Part45.TopSurface = Enum.SurfaceType.Smooth
- Part45.Position = Vector3.new(11, 6.50040197, -76)
- Part45.Orientation = Vector3.new(0, -90, 90)
- Part46.Parent = Model39
- Part46.Rotation = Vector3.new(0, 90, 0)
- Part46.Anchored = true
- Part46.FormFactor = Enum.FormFactor.Symmetric
- Part46.Shape = Enum.PartType.Cylinder
- Part46.Size = Vector3.new(1, 1, 1)
- Part46.CFrame = CFrame.new(11, 3.50040197, -76, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.Position = Vector3.new(11, 3.50040197, -76)
- Part46.Orientation = Vector3.new(0, 90, 0)
- Part47.Parent = Model39
- Part47.Rotation = Vector3.new(-90, -90, 0)
- Part47.Anchored = true
- Part47.FormFactor = Enum.FormFactor.Symmetric
- Part47.Shape = Enum.PartType.Cylinder
- Part47.Size = Vector3.new(1, 1, 1)
- Part47.CFrame = CFrame.new(11, 4.50040197, -76, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.TopSurface = Enum.SurfaceType.Smooth
- Part47.Position = Vector3.new(11, 4.50040197, -76)
- Part47.Orientation = Vector3.new(0, -90, 90)
- Part48.Parent = Model39
- Part48.Rotation = Vector3.new(-90, -90, 0)
- Part48.Anchored = true
- Part48.FormFactor = Enum.FormFactor.Symmetric
- Part48.Shape = Enum.PartType.Cylinder
- Part48.Size = Vector3.new(1, 1, 1)
- Part48.CFrame = CFrame.new(11, 5.50040197, -76, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part48.Position = Vector3.new(11, 5.50040197, -76)
- Part48.Orientation = Vector3.new(0, -90, 90)
- Part49.Parent = Model39
- Part49.Rotation = Vector3.new(-180, 0, -180)
- Part49.Anchored = true
- Part49.FormFactor = Enum.FormFactor.Plate
- Part49.Size = Vector3.new(1, 0.400000006, 3)
- Part49.CFrame = CFrame.new(10, 7.00040197, -73, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.Position = Vector3.new(10, 7.00040197, -73)
- Part49.Orientation = Vector3.new(0, 180, 0)
- Model50.Name = "Slots"
- Model50.Parent = Model39
- Model50.PrimaryPart = Part52
- Part51.Name = "Digit3"
- Part51.Parent = Model50
- Part51.BrickColor = BrickColor.new("White")
- Part51.Rotation = Vector3.new(180, 0, -90)
- Part51.Anchored = true
- Part51.FormFactor = Enum.FormFactor.Plate
- Part51.Size = Vector3.new(3, 0.400000006, 1)
- Part51.CFrame = CFrame.new(11.7000122, 4.70044661, -74, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
- Part51.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part51.Position = Vector3.new(11.7000122, 4.70044661, -74)
- Part51.Orientation = Vector3.new(0, 180, 90)
- Part51.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part52.Name = "Light"
- Part52.Parent = Model50
- Part52.BrickColor = BrickColor.new("Bright red")
- Part52.Transparency = 0.5
- Part52.Rotation = Vector3.new(0, 0, 90)
- Part52.Anchored = true
- Part52.FormFactor = Enum.FormFactor.Symmetric
- Part52.Shape = Enum.PartType.Cylinder
- Part52.Size = Vector3.new(1, 1, 1)
- Part52.CFrame = CFrame.new(10, 7.70040083, -73, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part52.BottomSurface = Enum.SurfaceType.Smooth
- Part52.RightSurface = Enum.SurfaceType.Weld
- Part52.TopSurface = Enum.SurfaceType.Smooth
- Part52.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part52.Position = Vector3.new(10, 7.70040083, -73)
- Part52.Orientation = Vector3.new(0, 0, 90)
- Part52.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part53.Name = "Digit1"
- Part53.Parent = Model50
- Part53.BrickColor = BrickColor.new("White")
- Part53.Rotation = Vector3.new(-180, 0, -90)
- Part53.Anchored = true
- Part53.FormFactor = Enum.FormFactor.Plate
- Part53.Size = Vector3.new(3, 0.400000006, 1)
- Part53.CFrame = CFrame.new(11.6999969, 4.70039988, -72, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part53.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part53.Position = Vector3.new(11.6999969, 4.70039988, -72)
- Part53.Orientation = Vector3.new(0, 180, 90)
- Part53.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part54.Name = "Digit2"
- Part54.Parent = Model50
- Part54.BrickColor = BrickColor.new("White")
- Part54.Rotation = Vector3.new(0, 0, -90)
- Part54.Anchored = true
- Part54.FormFactor = Enum.FormFactor.Plate
- Part54.Size = Vector3.new(3, 0.400000006, 1)
- Part54.CFrame = CFrame.new(11.7000122, 4.70044661, -73, -1.30338958e-05, 1, -9.76510591e-07, -1, -1.08881623e-05, 9.55769883e-06, 1.5279722e-05, 1.82602889e-06, 1)
- Part54.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part54.Position = Vector3.new(11.7000122, 4.70044661, -73)
- Part54.Orientation = Vector3.new(0, 0, -90)
- Part54.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part55.Name = "Button"
- Part55.Parent = Model50
- Part55.BrickColor = BrickColor.new("Dark green")
- Part55.Rotation = Vector3.new(180, 0, -90)
- Part55.Anchored = true
- Part55.FormFactor = Enum.FormFactor.Plate
- Part55.Size = Vector3.new(1, 0.400000006, 1)
- Part55.CFrame = CFrame.new(12.7000122, 1.5004344, -73, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
- Part55.TopSurface = Enum.SurfaceType.Smooth
- Part55.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part55.Position = Vector3.new(12.7000122, 1.5004344, -73)
- Part55.Orientation = Vector3.new(0, 180, 90)
- Part55.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script56.Parent = Part55
- table.insert(cors,sandbox(Script56,function()
- print("Hello world!")
- end))
- Script57.Name = "SlotGame"
- Script57.Parent = Model50
- table.insert(cors,sandbox(Script57,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model58.Parent = Model0
- Model58.PrimaryPart = Part60
- Part59.Parent = Model58
- Part59.BrickColor = BrickColor.new("Dark stone grey")
- Part59.Anchored = true
- Part59.FormFactor = Enum.FormFactor.Plate
- Part59.Size = Vector3.new(1, 3.20000005, 1)
- Part59.CFrame = CFrame.new(-6.10351563e-05, 4.80022192, -68, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part59.BackSurface = Enum.SurfaceType.Weld
- Part59.FrontSurface = Enum.SurfaceType.Weld
- Part59.LeftSurface = Enum.SurfaceType.Weld
- Part59.TopSurface = Enum.SurfaceType.Smooth
- Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part59.Position = Vector3.new(-6.10351563e-05, 4.80022192, -68)
- Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part60.Parent = Model58
- Part60.BrickColor = BrickColor.new("Dark stone grey")
- Part60.Anchored = true
- Part60.FormFactor = Enum.FormFactor.Plate
- Part60.Size = Vector3.new(4, 3.20000005, 5)
- Part60.CFrame = CFrame.new(1.5, 1.60019636, -66, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part60.BackSurface = Enum.SurfaceType.Weld
- Part60.FrontSurface = Enum.SurfaceType.Weld
- Part60.LeftSurface = Enum.SurfaceType.Weld
- Part60.RightSurface = Enum.SurfaceType.Weld
- Part60.TopSurface = Enum.SurfaceType.Weld
- Part60.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part60.Position = Vector3.new(1.5, 1.60019636, -66)
- Part60.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part61.Parent = Model58
- Part61.BrickColor = BrickColor.new("Dark stone grey")
- Part61.Anchored = true
- Part61.FormFactor = Enum.FormFactor.Plate
- Part61.Size = Vector3.new(3, 3.20000005, 5)
- Part61.CFrame = CFrame.new(1.99993896, 4.80022192, -66, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part61.BackSurface = Enum.SurfaceType.Weld
- Part61.FrontSurface = Enum.SurfaceType.Weld
- Part61.LeftSurface = Enum.SurfaceType.Weld
- Part61.RightSurface = Enum.SurfaceType.Weld
- Part61.TopSurface = Enum.SurfaceType.Smooth
- Part61.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part61.Position = Vector3.new(1.99993896, 4.80022192, -66)
- Part61.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part62.Parent = Model58
- Part62.BrickColor = BrickColor.new("Dark stone grey")
- Part62.Anchored = true
- Part62.FormFactor = Enum.FormFactor.Plate
- Part62.Size = Vector3.new(1, 3.20000005, 1)
- Part62.CFrame = CFrame.new(-6.10351563e-05, 4.80024004, -63.999939, 1, -2.22671715e-05, -1.37169297e-06, 2.44128805e-05, 1, -1.05327845e-05, 2.22111908e-06, 4.81068719e-06, 1)
- Part62.BackSurface = Enum.SurfaceType.Weld
- Part62.FrontSurface = Enum.SurfaceType.Weld
- Part62.LeftSurface = Enum.SurfaceType.Weld
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part62.Position = Vector3.new(-6.10351563e-05, 4.80024004, -63.999939)
- Part62.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part63.Parent = Model58
- Part63.BrickColor = BrickColor.new("Dark stone grey")
- Part63.Anchored = true
- Part63.FormFactor = Enum.FormFactor.Plate
- Part63.Size = Vector3.new(4, 0.400000006, 5)
- Part63.CFrame = CFrame.new(1.49987793, 6.60030222, -65.999939, 1, -2.22671715e-05, -1.37169297e-06, 2.44128805e-05, 1, -1.05327845e-05, 2.22111908e-06, 4.81068719e-06, 1)
- Part63.BackSurface = Enum.SurfaceType.Weld
- Part63.BottomSurface = Enum.SurfaceType.Weld
- Part63.FrontSurface = Enum.SurfaceType.Weld
- Part63.LeftSurface = Enum.SurfaceType.Weld
- Part63.RightSurface = Enum.SurfaceType.Weld
- Part63.TopSurface = Enum.SurfaceType.Weld
- Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part63.Position = Vector3.new(1.49987793, 6.60030222, -65.999939)
- Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part64.Parent = Model58
- Part64.Rotation = Vector3.new(90, 90, 0)
- Part64.Anchored = true
- Part64.FormFactor = Enum.FormFactor.Symmetric
- Part64.Shape = Enum.PartType.Ball
- Part64.Size = Vector3.new(1, 1, 1)
- Part64.CFrame = CFrame.new(0.999938965, 6.50017881, -63, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.TopSurface = Enum.SurfaceType.Smooth
- Part64.Position = Vector3.new(0.999938965, 6.50017881, -63)
- Part64.Orientation = Vector3.new(0, 90, 90)
- Part65.Parent = Model58
- Part65.Rotation = Vector3.new(0, -90, 0)
- Part65.Anchored = true
- Part65.FormFactor = Enum.FormFactor.Symmetric
- Part65.Shape = Enum.PartType.Cylinder
- Part65.Size = Vector3.new(1, 1, 1)
- Part65.CFrame = CFrame.new(0.999969482, 3.50017881, -63, 5.44383852e-07, -8.86863836e-06, -1, -9.55792802e-06, 1, -1.10143674e-05, 1, 3.83588122e-06, -3.04969149e-07)
- Part65.BottomSurface = Enum.SurfaceType.Smooth
- Part65.TopSurface = Enum.SurfaceType.Smooth
- Part65.Position = Vector3.new(0.999969482, 3.50017881, -63)
- Part65.Orientation = Vector3.new(0, -90, 0)
- Part66.Parent = Model58
- Part66.Rotation = Vector3.new(90, 90, 0)
- Part66.Anchored = true
- Part66.FormFactor = Enum.FormFactor.Symmetric
- Part66.Shape = Enum.PartType.Cylinder
- Part66.Size = Vector3.new(1, 1, 1)
- Part66.CFrame = CFrame.new(0.999938965, 4.50017881, -63, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.Position = Vector3.new(0.999938965, 4.50017881, -63)
- Part66.Orientation = Vector3.new(0, 90, 90)
- Part67.Parent = Model58
- Part67.Rotation = Vector3.new(90, 90, 0)
- Part67.Anchored = true
- Part67.FormFactor = Enum.FormFactor.Symmetric
- Part67.Shape = Enum.PartType.Cylinder
- Part67.Size = Vector3.new(1, 1, 1)
- Part67.CFrame = CFrame.new(0.999938965, 5.50017881, -63, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
- Part67.BottomSurface = Enum.SurfaceType.Smooth
- Part67.TopSurface = Enum.SurfaceType.Smooth
- Part67.Position = Vector3.new(0.999938965, 5.50017881, -63)
- Part67.Orientation = Vector3.new(0, 90, 90)
- Part68.Parent = Model58
- Part68.Anchored = true
- Part68.FormFactor = Enum.FormFactor.Plate
- Part68.Size = Vector3.new(1, 0.400000006, 3)
- Part68.CFrame = CFrame.new(1.99993896, 7.00021791, -66, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part68.BottomSurface = Enum.SurfaceType.Smooth
- Part68.TopSurface = Enum.SurfaceType.Smooth
- Part68.Position = Vector3.new(1.99993896, 7.00021791, -66)
- Model69.Name = "Slots"
- Model69.Parent = Model58
- Model69.PrimaryPart = Part71
- Part70.Name = "Digit3"
- Part70.Parent = Model69
- Part70.BrickColor = BrickColor.new("White")
- Part70.Rotation = Vector3.new(0, 0, 90)
- Part70.Anchored = true
- Part70.FormFactor = Enum.FormFactor.Plate
- Part70.Size = Vector3.new(3, 0.400000006, 1)
- Part70.CFrame = CFrame.new(0.299957275, 4.70018625, -65, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part70.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part70.Position = Vector3.new(0.299957275, 4.70018625, -65)
- Part70.Orientation = Vector3.new(0, 0, 90)
- Part70.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part71.Name = "Light"
- Part71.Parent = Model69
- Part71.BrickColor = BrickColor.new("Bright red")
- Part71.Transparency = 0.5
- Part71.Rotation = Vector3.new(-180, 0, -90)
- Part71.Anchored = true
- Part71.FormFactor = Enum.FormFactor.Symmetric
- Part71.Shape = Enum.PartType.Cylinder
- Part71.Size = Vector3.new(1, 1, 1)
- Part71.CFrame = CFrame.new(1.99993896, 7.70021772, -66, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.RightSurface = Enum.SurfaceType.Weld
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part71.Position = Vector3.new(1.99993896, 7.70021772, -66)
- Part71.Orientation = Vector3.new(0, -180, 90)
- Part71.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part72.Name = "Digit1"
- Part72.Parent = Model69
- Part72.BrickColor = BrickColor.new("White")
- Part72.Rotation = Vector3.new(0, 0, 90)
- Part72.Anchored = true
- Part72.FormFactor = Enum.FormFactor.Plate
- Part72.Size = Vector3.new(3, 0.400000006, 1)
- Part72.CFrame = CFrame.new(0.299957275, 4.70021677, -67, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part72.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part72.Position = Vector3.new(0.299957275, 4.70021677, -67)
- Part72.Orientation = Vector3.new(0, 0, 90)
- Part72.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part73.Name = "Digit2"
- Part73.Parent = Model69
- Part73.BrickColor = BrickColor.new("White")
- Part73.Rotation = Vector3.new(-180, 0, 90)
- Part73.Anchored = true
- Part73.FormFactor = Enum.FormFactor.Plate
- Part73.Size = Vector3.new(3, 0.400000006, 1)
- Part73.CFrame = CFrame.new(0.299957275, 4.70020056, -66, 8.86863836e-06, -1, -5.44383852e-07, -1, -1.10143674e-05, 9.55792802e-06, -3.83588122e-06, -3.04969149e-07, -1)
- Part73.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part73.Position = Vector3.new(0.299957275, 4.70020056, -66)
- Part73.Orientation = Vector3.new(0, -180, -90)
- Part73.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part74.Name = "Button"
- Part74.Parent = Model69
- Part74.BrickColor = BrickColor.new("Dark green")
- Part74.Rotation = Vector3.new(0, 0, 90)
- Part74.Anchored = true
- Part74.FormFactor = Enum.FormFactor.Plate
- Part74.Size = Vector3.new(1, 0.400000006, 1)
- Part74.CFrame = CFrame.new(-0.700012207, 1.50017881, -66, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part74.Position = Vector3.new(-0.700012207, 1.50017881, -66)
- Part74.Orientation = Vector3.new(0, 0, 90)
- Part74.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script75.Parent = Part74
- table.insert(cors,sandbox(Script75,function()
- print("Hello world!")
- end))
- Script76.Name = "SlotGame"
- Script76.Parent = Model69
- table.insert(cors,sandbox(Script76,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model77.Parent = Model0
- Model77.PrimaryPart = Part79
- Part78.Parent = Model77
- Part78.BrickColor = BrickColor.new("Dark stone grey")
- Part78.Rotation = Vector3.new(-180, 0, 180)
- Part78.Anchored = true
- Part78.FormFactor = Enum.FormFactor.Plate
- Part78.Size = Vector3.new(1, 3.20000005, 1)
- Part78.CFrame = CFrame.new(11.9999695, 4.80031443, -64, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part78.BackSurface = Enum.SurfaceType.Weld
- Part78.FrontSurface = Enum.SurfaceType.Weld
- Part78.LeftSurface = Enum.SurfaceType.Weld
- Part78.TopSurface = Enum.SurfaceType.Smooth
- Part78.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part78.Position = Vector3.new(11.9999695, 4.80031443, -64)
- Part78.Orientation = Vector3.new(0, -180, 0)
- Part78.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part79.Parent = Model77
- Part79.BrickColor = BrickColor.new("Dark stone grey")
- Part79.Rotation = Vector3.new(-180, 0, 180)
- Part79.Anchored = true
- Part79.FormFactor = Enum.FormFactor.Plate
- Part79.Size = Vector3.new(4, 3.20000005, 5)
- Part79.CFrame = CFrame.new(10.5, 1.60028601, -66, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part79.BackSurface = Enum.SurfaceType.Weld
- Part79.FrontSurface = Enum.SurfaceType.Weld
- Part79.LeftSurface = Enum.SurfaceType.Weld
- Part79.RightSurface = Enum.SurfaceType.Weld
- Part79.TopSurface = Enum.SurfaceType.Weld
- Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part79.Position = Vector3.new(10.5, 1.60028601, -66)
- Part79.Orientation = Vector3.new(0, -180, 0)
- Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part80.Parent = Model77
- Part80.BrickColor = BrickColor.new("Dark stone grey")
- Part80.Rotation = Vector3.new(-180, 0, 180)
- Part80.Anchored = true
- Part80.FormFactor = Enum.FormFactor.Plate
- Part80.Size = Vector3.new(3, 3.20000005, 5)
- Part80.CFrame = CFrame.new(9.99993896, 4.80031443, -66, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part80.BackSurface = Enum.SurfaceType.Weld
- Part80.FrontSurface = Enum.SurfaceType.Weld
- Part80.LeftSurface = Enum.SurfaceType.Weld
- Part80.RightSurface = Enum.SurfaceType.Weld
- Part80.TopSurface = Enum.SurfaceType.Smooth
- Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part80.Position = Vector3.new(9.99993896, 4.80031443, -66)
- Part80.Orientation = Vector3.new(0, -180, 0)
- Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part81.Parent = Model77
- Part81.BrickColor = BrickColor.new("Dark stone grey")
- Part81.Rotation = Vector3.new(-180, 0, -180)
- Part81.Anchored = true
- Part81.FormFactor = Enum.FormFactor.Plate
- Part81.Size = Vector3.new(1, 3.20000005, 1)
- Part81.CFrame = CFrame.new(12, 4.80040216, -68, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part81.BackSurface = Enum.SurfaceType.Weld
- Part81.FrontSurface = Enum.SurfaceType.Weld
- Part81.LeftSurface = Enum.SurfaceType.Weld
- Part81.TopSurface = Enum.SurfaceType.Smooth
- Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part81.Position = Vector3.new(12, 4.80040216, -68)
- Part81.Orientation = Vector3.new(0, 180, 0)
- Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part82.Parent = Model77
- Part82.BrickColor = BrickColor.new("Dark stone grey")
- Part82.Rotation = Vector3.new(-180, 0, -180)
- Part82.Anchored = true
- Part82.FormFactor = Enum.FormFactor.Plate
- Part82.Size = Vector3.new(4, 0.400000006, 5)
- Part82.CFrame = CFrame.new(10.5, 6.60039473, -66, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part82.BackSurface = Enum.SurfaceType.Weld
- Part82.BottomSurface = Enum.SurfaceType.Weld
- Part82.FrontSurface = Enum.SurfaceType.Weld
- Part82.LeftSurface = Enum.SurfaceType.Weld
- Part82.RightSurface = Enum.SurfaceType.Weld
- Part82.TopSurface = Enum.SurfaceType.Weld
- Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part82.Position = Vector3.new(10.5, 6.60039473, -66)
- Part82.Orientation = Vector3.new(0, 180, 0)
- Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part83.Parent = Model77
- Part83.Rotation = Vector3.new(-90, -90, 0)
- Part83.Anchored = true
- Part83.FormFactor = Enum.FormFactor.Symmetric
- Part83.Shape = Enum.PartType.Ball
- Part83.Size = Vector3.new(1, 1, 1)
- Part83.CFrame = CFrame.new(10.999939, 6.50034189, -69, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
- Part83.BottomSurface = Enum.SurfaceType.Smooth
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.Position = Vector3.new(10.999939, 6.50034189, -69)
- Part83.Orientation = Vector3.new(0, -90, 90)
- Part84.Parent = Model77
- Part84.Rotation = Vector3.new(0, 90, 0)
- Part84.Anchored = true
- Part84.FormFactor = Enum.FormFactor.Symmetric
- Part84.Shape = Enum.PartType.Cylinder
- Part84.Size = Vector3.new(1, 1, 1)
- Part84.CFrame = CFrame.new(10.9999695, 3.50034094, -69, -5.44383852e-07, -8.86863836e-06, 1, 9.55792802e-06, 1, 1.10143674e-05, -1, 3.83588122e-06, 3.04969149e-07)
- Part84.BottomSurface = Enum.SurfaceType.Smooth
- Part84.TopSurface = Enum.SurfaceType.Smooth
- Part84.Position = Vector3.new(10.9999695, 3.50034094, -69)
- Part84.Orientation = Vector3.new(0, 90, 0)
- Part85.Parent = Model77
- Part85.Rotation = Vector3.new(-90, -90, 0)
- Part85.Anchored = true
- Part85.FormFactor = Enum.FormFactor.Symmetric
- Part85.Shape = Enum.PartType.Cylinder
- Part85.Size = Vector3.new(1, 1, 1)
- Part85.CFrame = CFrame.new(10.9999695, 4.50034189, -69, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
- Part85.BottomSurface = Enum.SurfaceType.Smooth
- Part85.TopSurface = Enum.SurfaceType.Smooth
- Part85.Position = Vector3.new(10.9999695, 4.50034189, -69)
- Part85.Orientation = Vector3.new(0, -90, 90)
- Part86.Parent = Model77
- Part86.Rotation = Vector3.new(-90, -90, 0)
- Part86.Anchored = true
- Part86.FormFactor = Enum.FormFactor.Symmetric
- Part86.Shape = Enum.PartType.Cylinder
- Part86.Size = Vector3.new(1, 1, 1)
- Part86.CFrame = CFrame.new(10.999939, 5.50034189, -69, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
- Part86.BottomSurface = Enum.SurfaceType.Smooth
- Part86.TopSurface = Enum.SurfaceType.Smooth
- Part86.Position = Vector3.new(10.999939, 5.50034189, -69)
- Part86.Orientation = Vector3.new(0, -90, 90)
- Part87.Parent = Model77
- Part87.Rotation = Vector3.new(-180, 0, 180)
- Part87.Anchored = true
- Part87.FormFactor = Enum.FormFactor.Plate
- Part87.Size = Vector3.new(1, 0.400000006, 3)
- Part87.CFrame = CFrame.new(9.99993896, 7.00031233, -66, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part87.BottomSurface = Enum.SurfaceType.Smooth
- Part87.TopSurface = Enum.SurfaceType.Smooth
- Part87.Position = Vector3.new(9.99993896, 7.00031233, -66)
- Part87.Orientation = Vector3.new(0, -180, 0)
- Model88.Name = "Slots"
- Model88.Parent = Model77
- Model88.PrimaryPart = Part90
- Part89.Name = "Digit3"
- Part89.Parent = Model88
- Part89.BrickColor = BrickColor.new("White")
- Part89.Rotation = Vector3.new(-180, 0, -90)
- Part89.Anchored = true
- Part89.FormFactor = Enum.FormFactor.Plate
- Part89.Size = Vector3.new(3, 0.400000006, 1)
- Part89.CFrame = CFrame.new(11.6999969, 4.70039988, -67, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part89.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part89.Position = Vector3.new(11.6999969, 4.70039988, -67)
- Part89.Orientation = Vector3.new(0, 180, 90)
- Part89.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part90.Name = "Light"
- Part90.Parent = Model88
- Part90.BrickColor = BrickColor.new("Bright red")
- Part90.Transparency = 0.5
- Part90.Rotation = Vector3.new(0, 0, 90)
- Part90.Anchored = true
- Part90.FormFactor = Enum.FormFactor.Symmetric
- Part90.Shape = Enum.PartType.Cylinder
- Part90.Size = Vector3.new(1, 1, 1)
- Part90.CFrame = CFrame.new(9.99993896, 7.70030928, -66, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.RightSurface = Enum.SurfaceType.Weld
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part90.Position = Vector3.new(9.99993896, 7.70030928, -66)
- Part90.Orientation = Vector3.new(0, 0, 90)
- Part90.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part91.Name = "Digit1"
- Part91.Parent = Model88
- Part91.BrickColor = BrickColor.new("White")
- Part91.Rotation = Vector3.new(-180, 0, -90)
- Part91.Anchored = true
- Part91.FormFactor = Enum.FormFactor.Plate
- Part91.Size = Vector3.new(3, 0.400000006, 1)
- Part91.CFrame = CFrame.new(11.6999512, 4.70032454, -65, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
- Part91.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part91.Position = Vector3.new(11.6999512, 4.70032454, -65)
- Part91.Orientation = Vector3.new(0, -180, 90)
- Part91.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part92.Name = "Digit2"
- Part92.Parent = Model88
- Part92.BrickColor = BrickColor.new("White")
- Part92.Rotation = Vector3.new(0, 0, -90)
- Part92.Anchored = true
- Part92.FormFactor = Enum.FormFactor.Plate
- Part92.Size = Vector3.new(3, 0.400000006, 1)
- Part92.CFrame = CFrame.new(11.6999969, 4.70039988, -66, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part92.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part92.Position = Vector3.new(11.6999969, 4.70039988, -66)
- Part92.Orientation = Vector3.new(0, 0, -90)
- Part92.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part93.Name = "Button"
- Part93.Parent = Model88
- Part93.BrickColor = BrickColor.new("Dark green")
- Part93.Rotation = Vector3.new(-180, 0, -90)
- Part93.Anchored = true
- Part93.FormFactor = Enum.FormFactor.Plate
- Part93.Size = Vector3.new(1, 0.400000006, 1)
- Part93.CFrame = CFrame.new(12.6999969, 1.50040197, -66, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part93.TopSurface = Enum.SurfaceType.Smooth
- Part93.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part93.Position = Vector3.new(12.6999969, 1.50040197, -66)
- Part93.Orientation = Vector3.new(0, 180, 90)
- Part93.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script94.Parent = Part93
- table.insert(cors,sandbox(Script94,function()
- print("Hello world!")
- end))
- Script95.Name = "SlotGame"
- Script95.Parent = Model88
- table.insert(cors,sandbox(Script95,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Part96.Name = "YellowTeamDoor"
- Part96.Parent = Model0
- Part96.BrickColor = BrickColor.new("White")
- Part96.Anchored = true
- Part96.Size = Vector3.new(1, 4.80000019, 26)
- Part96.CFrame = CFrame.new(6, 13.2004023, -62.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part96.TopSurface = Enum.SurfaceType.Smooth
- Part96.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part96.Position = Vector3.new(6, 13.2004023, -62.5)
- Part96.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part97.Name = "YellowTeamDoor"
- Part97.Parent = Model0
- Part97.BrickColor = BrickColor.new("Black")
- Part97.Anchored = true
- Part97.Size = Vector3.new(5, 10.8000002, 26)
- Part97.CFrame = CFrame.new(6, 5.40039587, -62.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part97.TopSurface = Enum.SurfaceType.Smooth
- Part97.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part97.Position = Vector3.new(6, 5.40039587, -62.5)
- Part97.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Model98.Parent = Model0
- Model98.PrimaryPart = Part103
- Part99.Parent = Model98
- Part99.BrickColor = BrickColor.new("Dark stone grey")
- Part99.Rotation = Vector3.new(-180, 0, -180)
- Part99.Anchored = true
- Part99.FormFactor = Enum.FormFactor.Plate
- Part99.Size = Vector3.new(1, 3.20000005, 1)
- Part99.CFrame = CFrame.new(12, 4.80040216, -57, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part99.BackSurface = Enum.SurfaceType.Weld
- Part99.FrontSurface = Enum.SurfaceType.Weld
- Part99.LeftSurface = Enum.SurfaceType.Weld
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part99.Position = Vector3.new(12, 4.80040216, -57)
- Part99.Orientation = Vector3.new(0, 180, 0)
- Part99.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part100.Parent = Model98
- Part100.BrickColor = BrickColor.new("Dark stone grey")
- Part100.Rotation = Vector3.new(-180, 0, -180)
- Part100.Anchored = true
- Part100.FormFactor = Enum.FormFactor.Plate
- Part100.Size = Vector3.new(4, 3.20000005, 5)
- Part100.CFrame = CFrame.new(10.5, 1.60039473, -59, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part100.BackSurface = Enum.SurfaceType.Weld
- Part100.FrontSurface = Enum.SurfaceType.Weld
- Part100.LeftSurface = Enum.SurfaceType.Weld
- Part100.RightSurface = Enum.SurfaceType.Weld
- Part100.TopSurface = Enum.SurfaceType.Weld
- Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part100.Position = Vector3.new(10.5, 1.60039473, -59)
- Part100.Orientation = Vector3.new(0, 180, 0)
- Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part101.Parent = Model98
- Part101.BrickColor = BrickColor.new("Dark stone grey")
- Part101.Rotation = Vector3.new(-180, 0, -180)
- Part101.Anchored = true
- Part101.FormFactor = Enum.FormFactor.Plate
- Part101.Size = Vector3.new(3, 3.20000005, 5)
- Part101.CFrame = CFrame.new(10, 4.80040216, -59, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part101.BackSurface = Enum.SurfaceType.Weld
- Part101.FrontSurface = Enum.SurfaceType.Weld
- Part101.LeftSurface = Enum.SurfaceType.Weld
- Part101.RightSurface = Enum.SurfaceType.Weld
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part101.Position = Vector3.new(10, 4.80040216, -59)
- Part101.Orientation = Vector3.new(0, 180, 0)
- Part101.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part102.Parent = Model98
- Part102.BrickColor = BrickColor.new("Dark stone grey")
- Part102.Rotation = Vector3.new(180, 0, -180)
- Part102.Anchored = true
- Part102.FormFactor = Enum.FormFactor.Plate
- Part102.Size = Vector3.new(1, 3.20000005, 1)
- Part102.CFrame = CFrame.new(12.0000687, 4.80033064, -61.000061, -1, 8.98786493e-06, 1.11056943e-06, 6.84213092e-06, 1, -9.55792802e-06, -1.96002566e-06, -1.52799585e-05, -1)
- Part102.BackSurface = Enum.SurfaceType.Weld
- Part102.FrontSurface = Enum.SurfaceType.Weld
- Part102.LeftSurface = Enum.SurfaceType.Weld
- Part102.TopSurface = Enum.SurfaceType.Smooth
- Part102.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part102.Position = Vector3.new(12.0000687, 4.80033064, -61.000061)
- Part102.Orientation = Vector3.new(0, 180, 0)
- Part102.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part103.Parent = Model98
- Part103.BrickColor = BrickColor.new("Dark stone grey")
- Part103.Rotation = Vector3.new(180, 0, -180)
- Part103.Anchored = true
- Part103.FormFactor = Enum.FormFactor.Plate
- Part103.Size = Vector3.new(4, 0.400000006, 5)
- Part103.CFrame = CFrame.new(10.500061, 6.60033274, -59.000061, -1, 8.98786493e-06, 1.11056943e-06, 6.84213092e-06, 1, -9.55792802e-06, -1.96002566e-06, -1.52799585e-05, -1)
- Part103.BackSurface = Enum.SurfaceType.Weld
- Part103.BottomSurface = Enum.SurfaceType.Weld
- Part103.FrontSurface = Enum.SurfaceType.Weld
- Part103.LeftSurface = Enum.SurfaceType.Weld
- Part103.RightSurface = Enum.SurfaceType.Weld
- Part103.TopSurface = Enum.SurfaceType.Weld
- Part103.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part103.Position = Vector3.new(10.500061, 6.60033274, -59.000061)
- Part103.Orientation = Vector3.new(0, 180, 0)
- Part103.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part104.Parent = Model98
- Part104.Rotation = Vector3.new(-90, -90, 0)
- Part104.Anchored = true
- Part104.FormFactor = Enum.FormFactor.Symmetric
- Part104.Shape = Enum.PartType.Ball
- Part104.Size = Vector3.new(1, 1, 1)
- Part104.CFrame = CFrame.new(11, 6.50040197, -62, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part104.BottomSurface = Enum.SurfaceType.Smooth
- Part104.TopSurface = Enum.SurfaceType.Smooth
- Part104.Position = Vector3.new(11, 6.50040197, -62)
- Part104.Orientation = Vector3.new(0, -90, 90)
- Part105.Parent = Model98
- Part105.Rotation = Vector3.new(0, 90, 0)
- Part105.Anchored = true
- Part105.FormFactor = Enum.FormFactor.Symmetric
- Part105.Shape = Enum.PartType.Cylinder
- Part105.Size = Vector3.new(1, 1, 1)
- Part105.CFrame = CFrame.new(11, 3.50040197, -62, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part105.BottomSurface = Enum.SurfaceType.Smooth
- Part105.TopSurface = Enum.SurfaceType.Smooth
- Part105.Position = Vector3.new(11, 3.50040197, -62)
- Part105.Orientation = Vector3.new(0, 90, 0)
- Part106.Parent = Model98
- Part106.Rotation = Vector3.new(-90, -90, 0)
- Part106.Anchored = true
- Part106.FormFactor = Enum.FormFactor.Symmetric
- Part106.Shape = Enum.PartType.Cylinder
- Part106.Size = Vector3.new(1, 1, 1)
- Part106.CFrame = CFrame.new(11, 4.50040197, -62, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part106.BottomSurface = Enum.SurfaceType.Smooth
- Part106.TopSurface = Enum.SurfaceType.Smooth
- Part106.Position = Vector3.new(11, 4.50040197, -62)
- Part106.Orientation = Vector3.new(0, -90, 90)
- Part107.Parent = Model98
- Part107.Rotation = Vector3.new(-90, -90, 0)
- Part107.Anchored = true
- Part107.FormFactor = Enum.FormFactor.Symmetric
- Part107.Shape = Enum.PartType.Cylinder
- Part107.Size = Vector3.new(1, 1, 1)
- Part107.CFrame = CFrame.new(11, 5.50040197, -62, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part107.BottomSurface = Enum.SurfaceType.Smooth
- Part107.TopSurface = Enum.SurfaceType.Smooth
- Part107.Position = Vector3.new(11, 5.50040197, -62)
- Part107.Orientation = Vector3.new(0, -90, 90)
- Part108.Parent = Model98
- Part108.Rotation = Vector3.new(-180, 0, -180)
- Part108.Anchored = true
- Part108.FormFactor = Enum.FormFactor.Plate
- Part108.Size = Vector3.new(1, 0.400000006, 3)
- Part108.CFrame = CFrame.new(10, 7.00040197, -59, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part108.BottomSurface = Enum.SurfaceType.Smooth
- Part108.TopSurface = Enum.SurfaceType.Smooth
- Part108.Position = Vector3.new(10, 7.00040197, -59)
- Part108.Orientation = Vector3.new(0, 180, 0)
- Model109.Name = "Slots"
- Model109.Parent = Model98
- Model109.PrimaryPart = Part111
- Part110.Name = "Digit3"
- Part110.Parent = Model109
- Part110.BrickColor = BrickColor.new("White")
- Part110.Rotation = Vector3.new(180, 0, -90)
- Part110.Anchored = true
- Part110.FormFactor = Enum.FormFactor.Plate
- Part110.Size = Vector3.new(3, 0.400000006, 1)
- Part110.CFrame = CFrame.new(11.7000732, 4.70032454, -60, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
- Part110.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part110.Position = Vector3.new(11.7000732, 4.70032454, -60)
- Part110.Orientation = Vector3.new(0, 180, 90)
- Part110.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part111.Name = "Light"
- Part111.Parent = Model109
- Part111.BrickColor = BrickColor.new("Bright red")
- Part111.Transparency = 0.5
- Part111.Rotation = Vector3.new(0, 0, 90)
- Part111.Anchored = true
- Part111.FormFactor = Enum.FormFactor.Symmetric
- Part111.Shape = Enum.PartType.Cylinder
- Part111.Size = Vector3.new(1, 1, 1)
- Part111.CFrame = CFrame.new(10, 7.70040083, -59, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part111.BottomSurface = Enum.SurfaceType.Smooth
- Part111.RightSurface = Enum.SurfaceType.Weld
- Part111.TopSurface = Enum.SurfaceType.Smooth
- Part111.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part111.Position = Vector3.new(10, 7.70040083, -59)
- Part111.Orientation = Vector3.new(0, 0, 90)
- Part111.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part112.Name = "Digit1"
- Part112.Parent = Model109
- Part112.BrickColor = BrickColor.new("White")
- Part112.Rotation = Vector3.new(-180, 0, -90)
- Part112.Anchored = true
- Part112.FormFactor = Enum.FormFactor.Plate
- Part112.Size = Vector3.new(3, 0.400000006, 1)
- Part112.CFrame = CFrame.new(11.6999969, 4.70039988, -58, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part112.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part112.Position = Vector3.new(11.6999969, 4.70039988, -58)
- Part112.Orientation = Vector3.new(0, 180, 90)
- Part112.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part113.Name = "Digit2"
- Part113.Parent = Model109
- Part113.BrickColor = BrickColor.new("White")
- Part113.Rotation = Vector3.new(0, 0, -90)
- Part113.Anchored = true
- Part113.FormFactor = Enum.FormFactor.Plate
- Part113.Size = Vector3.new(3, 0.400000006, 1)
- Part113.CFrame = CFrame.new(11.7000732, 4.70032454, -59, -1.30408662e-05, 1, -1.1105692e-06, -1, -1.08951317e-05, 9.55792802e-06, 1.52799494e-05, 1.9600875e-06, 1)
- Part113.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part113.Position = Vector3.new(11.7000732, 4.70032454, -59)
- Part113.Orientation = Vector3.new(0, 0, -90)
- Part113.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part114.Name = "Button"
- Part114.Parent = Model109
- Part114.BrickColor = BrickColor.new("Dark green")
- Part114.Rotation = Vector3.new(180, 0, -90)
- Part114.Anchored = true
- Part114.FormFactor = Enum.FormFactor.Plate
- Part114.Size = Vector3.new(1, 0.400000006, 1)
- Part114.CFrame = CFrame.new(12.7000122, 1.50031233, -59, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
- Part114.TopSurface = Enum.SurfaceType.Smooth
- Part114.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part114.Position = Vector3.new(12.7000122, 1.50031233, -59)
- Part114.Orientation = Vector3.new(0, 180, 90)
- Part114.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script115.Parent = Part114
- table.insert(cors,sandbox(Script115,function()
- print("Hello world!")
- end))
- Script116.Name = "SlotGame"
- Script116.Parent = Model109
- table.insert(cors,sandbox(Script116,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model117.Parent = Model0
- Model117.PrimaryPart = Part119
- Part118.Parent = Model117
- Part118.BrickColor = BrickColor.new("Dark stone grey")
- Part118.Rotation = Vector3.new(-180, 0, 180)
- Part118.Anchored = true
- Part118.FormFactor = Enum.FormFactor.Plate
- Part118.Size = Vector3.new(1, 3.20000005, 1)
- Part118.CFrame = CFrame.new(11.9999695, 4.80017805, -50, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part118.BackSurface = Enum.SurfaceType.Weld
- Part118.FrontSurface = Enum.SurfaceType.Weld
- Part118.LeftSurface = Enum.SurfaceType.Weld
- Part118.TopSurface = Enum.SurfaceType.Smooth
- Part118.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part118.Position = Vector3.new(11.9999695, 4.80017805, -50)
- Part118.Orientation = Vector3.new(0, -180, 0)
- Part118.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part119.Parent = Model117
- Part119.BrickColor = BrickColor.new("Dark stone grey")
- Part119.Rotation = Vector3.new(-180, 0, 180)
- Part119.Anchored = true
- Part119.FormFactor = Enum.FormFactor.Plate
- Part119.Size = Vector3.new(4, 3.20000005, 5)
- Part119.CFrame = CFrame.new(10.5, 1.60016394, -52, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part119.BackSurface = Enum.SurfaceType.Weld
- Part119.FrontSurface = Enum.SurfaceType.Weld
- Part119.LeftSurface = Enum.SurfaceType.Weld
- Part119.RightSurface = Enum.SurfaceType.Weld
- Part119.TopSurface = Enum.SurfaceType.Weld
- Part119.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part119.Position = Vector3.new(10.5, 1.60016394, -52)
- Part119.Orientation = Vector3.new(0, -180, 0)
- Part119.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part120.Parent = Model117
- Part120.BrickColor = BrickColor.new("Dark stone grey")
- Part120.Rotation = Vector3.new(-180, 0, 180)
- Part120.Anchored = true
- Part120.FormFactor = Enum.FormFactor.Plate
- Part120.Size = Vector3.new(3, 3.20000005, 5)
- Part120.CFrame = CFrame.new(9.99996948, 4.80017805, -52, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part120.BackSurface = Enum.SurfaceType.Weld
- Part120.FrontSurface = Enum.SurfaceType.Weld
- Part120.LeftSurface = Enum.SurfaceType.Weld
- Part120.RightSurface = Enum.SurfaceType.Weld
- Part120.TopSurface = Enum.SurfaceType.Smooth
- Part120.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part120.Position = Vector3.new(9.99996948, 4.80017805, -52)
- Part120.Orientation = Vector3.new(0, -180, 0)
- Part120.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part121.Parent = Model117
- Part121.BrickColor = BrickColor.new("Dark stone grey")
- Part121.Rotation = Vector3.new(-180, 0, -180)
- Part121.Anchored = true
- Part121.FormFactor = Enum.FormFactor.Plate
- Part121.Size = Vector3.new(1, 3.20000005, 1)
- Part121.CFrame = CFrame.new(12, 4.80040216, -54, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part121.BackSurface = Enum.SurfaceType.Weld
- Part121.FrontSurface = Enum.SurfaceType.Weld
- Part121.LeftSurface = Enum.SurfaceType.Weld
- Part121.TopSurface = Enum.SurfaceType.Smooth
- Part121.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part121.Position = Vector3.new(12, 4.80040216, -54)
- Part121.Orientation = Vector3.new(0, 180, 0)
- Part121.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part122.Parent = Model117
- Part122.BrickColor = BrickColor.new("Dark stone grey")
- Part122.Rotation = Vector3.new(-180, 0, -180)
- Part122.Anchored = true
- Part122.FormFactor = Enum.FormFactor.Plate
- Part122.Size = Vector3.new(4, 0.400000006, 5)
- Part122.CFrame = CFrame.new(10.5, 6.60039473, -52, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part122.BackSurface = Enum.SurfaceType.Weld
- Part122.BottomSurface = Enum.SurfaceType.Weld
- Part122.FrontSurface = Enum.SurfaceType.Weld
- Part122.LeftSurface = Enum.SurfaceType.Weld
- Part122.RightSurface = Enum.SurfaceType.Weld
- Part122.TopSurface = Enum.SurfaceType.Weld
- Part122.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part122.Position = Vector3.new(10.5, 6.60039473, -52)
- Part122.Orientation = Vector3.new(0, 180, 0)
- Part122.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part123.Parent = Model117
- Part123.Rotation = Vector3.new(-90, -90, 0)
- Part123.Anchored = true
- Part123.FormFactor = Enum.FormFactor.Symmetric
- Part123.Shape = Enum.PartType.Ball
- Part123.Size = Vector3.new(1, 1, 1)
- Part123.CFrame = CFrame.new(10.999939, 6.50021791, -55, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
- Part123.BottomSurface = Enum.SurfaceType.Smooth
- Part123.TopSurface = Enum.SurfaceType.Smooth
- Part123.Position = Vector3.new(10.999939, 6.50021791, -55)
- Part123.Orientation = Vector3.new(0, -90, 90)
- Part124.Parent = Model117
- Part124.Rotation = Vector3.new(0, 90, 0)
- Part124.Anchored = true
- Part124.FormFactor = Enum.FormFactor.Symmetric
- Part124.Shape = Enum.PartType.Cylinder
- Part124.Size = Vector3.new(1, 1, 1)
- Part124.CFrame = CFrame.new(10.9999695, 3.50020361, -55, -5.44383852e-07, -8.86863836e-06, 1, 9.55792802e-06, 1, 1.10143674e-05, -1, 3.83588122e-06, 3.04969149e-07)
- Part124.BottomSurface = Enum.SurfaceType.Smooth
- Part124.TopSurface = Enum.SurfaceType.Smooth
- Part124.Position = Vector3.new(10.9999695, 3.50020361, -55)
- Part124.Orientation = Vector3.new(0, 90, 0)
- Part125.Parent = Model117
- Part125.Rotation = Vector3.new(-90, -90, 0)
- Part125.Anchored = true
- Part125.FormFactor = Enum.FormFactor.Symmetric
- Part125.Shape = Enum.PartType.Cylinder
- Part125.Size = Vector3.new(1, 1, 1)
- Part125.CFrame = CFrame.new(10.9999695, 4.50021791, -55, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
- Part125.BottomSurface = Enum.SurfaceType.Smooth
- Part125.TopSurface = Enum.SurfaceType.Smooth
- Part125.Position = Vector3.new(10.9999695, 4.50021791, -55)
- Part125.Orientation = Vector3.new(0, -90, 90)
- Part126.Parent = Model117
- Part126.Rotation = Vector3.new(-90, -90, 0)
- Part126.Anchored = true
- Part126.FormFactor = Enum.FormFactor.Symmetric
- Part126.Shape = Enum.PartType.Cylinder
- Part126.Size = Vector3.new(1, 1, 1)
- Part126.CFrame = CFrame.new(10.999939, 5.50020456, -55, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
- Part126.BottomSurface = Enum.SurfaceType.Smooth
- Part126.TopSurface = Enum.SurfaceType.Smooth
- Part126.Position = Vector3.new(10.999939, 5.50020456, -55)
- Part126.Orientation = Vector3.new(0, -90, 90)
- Part127.Parent = Model117
- Part127.Rotation = Vector3.new(-180, 0, 180)
- Part127.Anchored = true
- Part127.FormFactor = Enum.FormFactor.Plate
- Part127.Size = Vector3.new(1, 0.400000006, 3)
- Part127.CFrame = CFrame.new(9.99993896, 7.00017881, -52, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
- Part127.BottomSurface = Enum.SurfaceType.Smooth
- Part127.TopSurface = Enum.SurfaceType.Smooth
- Part127.Position = Vector3.new(9.99993896, 7.00017881, -52)
- Part127.Orientation = Vector3.new(0, -180, 0)
- Model128.Name = "Slots"
- Model128.Parent = Model117
- Model128.PrimaryPart = Part130
- Part129.Name = "Digit3"
- Part129.Parent = Model128
- Part129.BrickColor = BrickColor.new("White")
- Part129.Rotation = Vector3.new(-180, 0, -90)
- Part129.Anchored = true
- Part129.FormFactor = Enum.FormFactor.Plate
- Part129.Size = Vector3.new(3, 0.400000006, 1)
- Part129.CFrame = CFrame.new(11.6999969, 4.70039988, -53, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part129.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part129.Position = Vector3.new(11.6999969, 4.70039988, -53)
- Part129.Orientation = Vector3.new(0, 180, 90)
- Part129.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part130.Name = "Light"
- Part130.Parent = Model128
- Part130.BrickColor = BrickColor.new("Bright red")
- Part130.Transparency = 0.5
- Part130.Rotation = Vector3.new(0, 0, 90)
- Part130.Anchored = true
- Part130.FormFactor = Enum.FormFactor.Symmetric
- Part130.Shape = Enum.PartType.Cylinder
- Part130.Size = Vector3.new(1, 1, 1)
- Part130.CFrame = CFrame.new(9.99993896, 7.70017576, -52, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part130.BottomSurface = Enum.SurfaceType.Smooth
- Part130.RightSurface = Enum.SurfaceType.Weld
- Part130.TopSurface = Enum.SurfaceType.Smooth
- Part130.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part130.Position = Vector3.new(9.99993896, 7.70017576, -52)
- Part130.Orientation = Vector3.new(0, 0, 90)
- Part130.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part131.Name = "Digit1"
- Part131.Parent = Model128
- Part131.BrickColor = BrickColor.new("White")
- Part131.Rotation = Vector3.new(-180, 0, -90)
- Part131.Anchored = true
- Part131.FormFactor = Enum.FormFactor.Plate
- Part131.Size = Vector3.new(3, 0.400000006, 1)
- Part131.CFrame = CFrame.new(11.6999512, 4.70018625, -51, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
- Part131.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part131.Position = Vector3.new(11.6999512, 4.70018625, -51)
- Part131.Orientation = Vector3.new(0, -180, 90)
- Part131.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part132.Name = "Digit2"
- Part132.Parent = Model128
- Part132.BrickColor = BrickColor.new("White")
- Part132.Rotation = Vector3.new(0, 0, -90)
- Part132.Anchored = true
- Part132.FormFactor = Enum.FormFactor.Plate
- Part132.Size = Vector3.new(3, 0.400000006, 1)
- Part132.CFrame = CFrame.new(11.6999969, 4.70039988, -52, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part132.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part132.Position = Vector3.new(11.6999969, 4.70039988, -52)
- Part132.Orientation = Vector3.new(0, 0, -90)
- Part132.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part133.Name = "Button"
- Part133.Parent = Model128
- Part133.BrickColor = BrickColor.new("Dark green")
- Part133.Rotation = Vector3.new(-180, 0, -90)
- Part133.Anchored = true
- Part133.FormFactor = Enum.FormFactor.Plate
- Part133.Size = Vector3.new(1, 0.400000006, 1)
- Part133.CFrame = CFrame.new(12.6999969, 1.50040197, -52, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part133.TopSurface = Enum.SurfaceType.Smooth
- Part133.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part133.Position = Vector3.new(12.6999969, 1.50040197, -52)
- Part133.Orientation = Vector3.new(0, 180, 90)
- Part133.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script134.Parent = Part133
- table.insert(cors,sandbox(Script134,function()
- print("Hello world!")
- end))
- Script135.Name = "SlotGame"
- Script135.Parent = Model128
- table.insert(cors,sandbox(Script135,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model136.Parent = Model0
- Model136.PrimaryPart = Part138
- Part137.Parent = Model136
- Part137.BrickColor = BrickColor.new("Dark stone grey")
- Part137.Anchored = true
- Part137.FormFactor = Enum.FormFactor.Plate
- Part137.Size = Vector3.new(1, 3.20000005, 1)
- Part137.CFrame = CFrame.new(0, 4.80040216, -61, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part137.BackSurface = Enum.SurfaceType.Weld
- Part137.FrontSurface = Enum.SurfaceType.Weld
- Part137.LeftSurface = Enum.SurfaceType.Weld
- Part137.TopSurface = Enum.SurfaceType.Smooth
- Part137.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part137.Position = Vector3.new(0, 4.80040216, -61)
- Part137.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part138.Parent = Model136
- Part138.BrickColor = BrickColor.new("Dark stone grey")
- Part138.Anchored = true
- Part138.FormFactor = Enum.FormFactor.Plate
- Part138.Size = Vector3.new(4, 3.20000005, 5)
- Part138.CFrame = CFrame.new(1.5, 1.60039473, -59, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part138.BackSurface = Enum.SurfaceType.Weld
- Part138.FrontSurface = Enum.SurfaceType.Weld
- Part138.LeftSurface = Enum.SurfaceType.Weld
- Part138.RightSurface = Enum.SurfaceType.Weld
- Part138.TopSurface = Enum.SurfaceType.Weld
- Part138.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part138.Position = Vector3.new(1.5, 1.60039473, -59)
- Part138.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part139.Parent = Model136
- Part139.BrickColor = BrickColor.new("Dark stone grey")
- Part139.Anchored = true
- Part139.FormFactor = Enum.FormFactor.Plate
- Part139.Size = Vector3.new(3, 3.20000005, 5)
- Part139.CFrame = CFrame.new(2, 4.80040216, -59, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part139.BackSurface = Enum.SurfaceType.Weld
- Part139.FrontSurface = Enum.SurfaceType.Weld
- Part139.LeftSurface = Enum.SurfaceType.Weld
- Part139.RightSurface = Enum.SurfaceType.Weld
- Part139.TopSurface = Enum.SurfaceType.Smooth
- Part139.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part139.Position = Vector3.new(2, 4.80040216, -59)
- Part139.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part140.Parent = Model136
- Part140.BrickColor = BrickColor.new("Dark stone grey")
- Part140.Anchored = true
- Part140.FormFactor = Enum.FormFactor.Plate
- Part140.Size = Vector3.new(1, 3.20000005, 1)
- Part140.CFrame = CFrame.new(-3.05175781e-05, 4.80011415, -57, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part140.BackSurface = Enum.SurfaceType.Weld
- Part140.FrontSurface = Enum.SurfaceType.Weld
- Part140.LeftSurface = Enum.SurfaceType.Weld
- Part140.TopSurface = Enum.SurfaceType.Smooth
- Part140.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part140.Position = Vector3.new(-3.05175781e-05, 4.80011415, -57)
- Part140.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part141.Parent = Model136
- Part141.BrickColor = BrickColor.new("Dark stone grey")
- Part141.Anchored = true
- Part141.FormFactor = Enum.FormFactor.Plate
- Part141.Size = Vector3.new(4, 0.400000006, 5)
- Part141.CFrame = CFrame.new(1.49993896, 6.60015059, -59, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part141.BackSurface = Enum.SurfaceType.Weld
- Part141.BottomSurface = Enum.SurfaceType.Weld
- Part141.FrontSurface = Enum.SurfaceType.Weld
- Part141.LeftSurface = Enum.SurfaceType.Weld
- Part141.RightSurface = Enum.SurfaceType.Weld
- Part141.TopSurface = Enum.SurfaceType.Weld
- Part141.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part141.Position = Vector3.new(1.49993896, 6.60015059, -59)
- Part141.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part142.Parent = Model136
- Part142.Rotation = Vector3.new(90, 90, 0)
- Part142.Anchored = true
- Part142.FormFactor = Enum.FormFactor.Symmetric
- Part142.Shape = Enum.PartType.Ball
- Part142.Size = Vector3.new(1, 1, 1)
- Part142.CFrame = CFrame.new(1, 6.50040197, -56, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part142.BottomSurface = Enum.SurfaceType.Smooth
- Part142.TopSurface = Enum.SurfaceType.Smooth
- Part142.Position = Vector3.new(1, 6.50040197, -56)
- Part142.Orientation = Vector3.new(0, 90, 90)
- Part143.Parent = Model136
- Part143.Rotation = Vector3.new(0, -90, 0)
- Part143.Anchored = true
- Part143.FormFactor = Enum.FormFactor.Symmetric
- Part143.Shape = Enum.PartType.Cylinder
- Part143.Size = Vector3.new(1, 1, 1)
- Part143.CFrame = CFrame.new(1, 3.50040197, -56, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part143.BottomSurface = Enum.SurfaceType.Smooth
- Part143.TopSurface = Enum.SurfaceType.Smooth
- Part143.Position = Vector3.new(1, 3.50040197, -56)
- Part143.Orientation = Vector3.new(0, -90, 0)
- Part144.Parent = Model136
- Part144.Rotation = Vector3.new(90, 90, 0)
- Part144.Anchored = true
- Part144.FormFactor = Enum.FormFactor.Symmetric
- Part144.Shape = Enum.PartType.Cylinder
- Part144.Size = Vector3.new(1, 1, 1)
- Part144.CFrame = CFrame.new(1, 4.50040197, -56, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part144.BottomSurface = Enum.SurfaceType.Smooth
- Part144.TopSurface = Enum.SurfaceType.Smooth
- Part144.Position = Vector3.new(1, 4.50040197, -56)
- Part144.Orientation = Vector3.new(0, 90, 90)
- Part145.Parent = Model136
- Part145.Rotation = Vector3.new(90, 90, 0)
- Part145.Anchored = true
- Part145.FormFactor = Enum.FormFactor.Symmetric
- Part145.Shape = Enum.PartType.Cylinder
- Part145.Size = Vector3.new(1, 1, 1)
- Part145.CFrame = CFrame.new(1, 5.50040197, -56, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part145.BottomSurface = Enum.SurfaceType.Smooth
- Part145.TopSurface = Enum.SurfaceType.Smooth
- Part145.Position = Vector3.new(1, 5.50040197, -56)
- Part145.Orientation = Vector3.new(0, 90, 90)
- Part146.Parent = Model136
- Part146.Anchored = true
- Part146.FormFactor = Enum.FormFactor.Plate
- Part146.Size = Vector3.new(1, 0.400000006, 3)
- Part146.CFrame = CFrame.new(2, 7.00040197, -59, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part146.BottomSurface = Enum.SurfaceType.Smooth
- Part146.TopSurface = Enum.SurfaceType.Smooth
- Part146.Position = Vector3.new(2, 7.00040197, -59)
- Model147.Name = "Slots"
- Model147.Parent = Model136
- Model147.PrimaryPart = Part149
- Part148.Name = "Digit3"
- Part148.Parent = Model147
- Part148.BrickColor = BrickColor.new("White")
- Part148.Rotation = Vector3.new(0, 0, 90)
- Part148.Anchored = true
- Part148.FormFactor = Enum.FormFactor.Plate
- Part148.Size = Vector3.new(3, 0.400000006, 1)
- Part148.CFrame = CFrame.new(0.299987793, 4.70012426, -58, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part148.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part148.Position = Vector3.new(0.299987793, 4.70012426, -58)
- Part148.Orientation = Vector3.new(0, 0, 90)
- Part148.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part149.Name = "Light"
- Part149.Parent = Model147
- Part149.BrickColor = BrickColor.new("Bright red")
- Part149.Transparency = 0.5
- Part149.Rotation = Vector3.new(-180, 0, -90)
- Part149.Anchored = true
- Part149.FormFactor = Enum.FormFactor.Symmetric
- Part149.Shape = Enum.PartType.Cylinder
- Part149.Size = Vector3.new(1, 1, 1)
- Part149.CFrame = CFrame.new(2, 7.70040083, -59, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part149.BottomSurface = Enum.SurfaceType.Smooth
- Part149.RightSurface = Enum.SurfaceType.Weld
- Part149.TopSurface = Enum.SurfaceType.Smooth
- Part149.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part149.Position = Vector3.new(2, 7.70040083, -59)
- Part149.Orientation = Vector3.new(0, 180, 90)
- Part149.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part150.Name = "Digit1"
- Part150.Parent = Model147
- Part150.BrickColor = BrickColor.new("White")
- Part150.Rotation = Vector3.new(0, 0, 90)
- Part150.Anchored = true
- Part150.FormFactor = Enum.FormFactor.Plate
- Part150.Size = Vector3.new(3, 0.400000006, 1)
- Part150.CFrame = CFrame.new(0.300003052, 4.70039988, -60, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part150.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part150.Position = Vector3.new(0.300003052, 4.70039988, -60)
- Part150.Orientation = Vector3.new(0, 0, 90)
- Part150.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part151.Name = "Digit2"
- Part151.Parent = Model147
- Part151.BrickColor = BrickColor.new("White")
- Part151.Rotation = Vector3.new(-180, 0, 90)
- Part151.Anchored = true
- Part151.FormFactor = Enum.FormFactor.Plate
- Part151.Size = Vector3.new(3, 0.400000006, 1)
- Part151.CFrame = CFrame.new(0.299957275, 4.70013857, -59, 8.86863836e-06, -1, -5.44383852e-07, -1, -1.10143674e-05, 9.55792802e-06, -3.83588122e-06, -3.04969149e-07, -1)
- Part151.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part151.Position = Vector3.new(0.299957275, 4.70013857, -59)
- Part151.Orientation = Vector3.new(0, -180, -90)
- Part151.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part152.Name = "Button"
- Part152.Parent = Model147
- Part152.BrickColor = BrickColor.new("Dark green")
- Part152.Rotation = Vector3.new(0, 0, 90)
- Part152.Anchored = true
- Part152.FormFactor = Enum.FormFactor.Plate
- Part152.Size = Vector3.new(1, 0.400000006, 1)
- Part152.CFrame = CFrame.new(-0.700012207, 1.50009871, -59, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part152.TopSurface = Enum.SurfaceType.Smooth
- Part152.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part152.Position = Vector3.new(-0.700012207, 1.50009871, -59)
- Part152.Orientation = Vector3.new(0, 0, 90)
- Part152.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script153.Parent = Part152
- table.insert(cors,sandbox(Script153,function()
- print("Hello world!")
- end))
- Script154.Name = "SlotGame"
- Script154.Parent = Model147
- table.insert(cors,sandbox(Script154,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model155.Parent = Model0
- Model155.PrimaryPart = Part157
- Part156.Parent = Model155
- Part156.BrickColor = BrickColor.new("Dark stone grey")
- Part156.Anchored = true
- Part156.FormFactor = Enum.FormFactor.Plate
- Part156.Size = Vector3.new(1, 3.20000005, 1)
- Part156.CFrame = CFrame.new(-3.05175781e-05, 4.80008459, -54, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part156.BackSurface = Enum.SurfaceType.Weld
- Part156.FrontSurface = Enum.SurfaceType.Weld
- Part156.LeftSurface = Enum.SurfaceType.Weld
- Part156.TopSurface = Enum.SurfaceType.Smooth
- Part156.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part156.Position = Vector3.new(-3.05175781e-05, 4.80008459, -54)
- Part156.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part157.Parent = Model155
- Part157.BrickColor = BrickColor.new("Dark stone grey")
- Part157.Anchored = true
- Part157.FormFactor = Enum.FormFactor.Plate
- Part157.Size = Vector3.new(4, 3.20000005, 5)
- Part157.CFrame = CFrame.new(1.5, 1.60005713, -52, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part157.BackSurface = Enum.SurfaceType.Weld
- Part157.FrontSurface = Enum.SurfaceType.Weld
- Part157.LeftSurface = Enum.SurfaceType.Weld
- Part157.RightSurface = Enum.SurfaceType.Weld
- Part157.TopSurface = Enum.SurfaceType.Weld
- Part157.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part157.Position = Vector3.new(1.5, 1.60005713, -52)
- Part157.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part158.Parent = Model155
- Part158.BrickColor = BrickColor.new("Dark stone grey")
- Part158.Anchored = true
- Part158.FormFactor = Enum.FormFactor.Plate
- Part158.Size = Vector3.new(3, 3.20000005, 5)
- Part158.CFrame = CFrame.new(1.99996948, 4.80008459, -52, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part158.BackSurface = Enum.SurfaceType.Weld
- Part158.FrontSurface = Enum.SurfaceType.Weld
- Part158.LeftSurface = Enum.SurfaceType.Weld
- Part158.RightSurface = Enum.SurfaceType.Weld
- Part158.TopSurface = Enum.SurfaceType.Smooth
- Part158.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part158.Position = Vector3.new(1.99996948, 4.80008459, -52)
- Part158.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part159.Parent = Model155
- Part159.BrickColor = BrickColor.new("Dark stone grey")
- Part159.Anchored = true
- Part159.FormFactor = Enum.FormFactor.Plate
- Part159.Size = Vector3.new(1, 3.20000005, 1)
- Part159.CFrame = CFrame.new(-3.05175781e-05, 4.80002642, -50, 1, -2.80487857e-05, -3.07040136e-06, 3.01944783e-05, 1, -1.0532759e-05, 3.91985532e-06, 4.81059715e-06, 1)
- Part159.BackSurface = Enum.SurfaceType.Weld
- Part159.FrontSurface = Enum.SurfaceType.Weld
- Part159.LeftSurface = Enum.SurfaceType.Weld
- Part159.TopSurface = Enum.SurfaceType.Smooth
- Part159.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part159.Position = Vector3.new(-3.05175781e-05, 4.80002642, -50)
- Part159.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part160.Parent = Model155
- Part160.BrickColor = BrickColor.new("Dark stone grey")
- Part160.Anchored = true
- Part160.FormFactor = Enum.FormFactor.Plate
- Part160.Size = Vector3.new(4, 0.400000006, 5)
- Part160.CFrame = CFrame.new(1.49993896, 6.60010672, -51.999939, 1, -2.80487857e-05, -3.07040136e-06, 3.01944783e-05, 1, -1.0532759e-05, 3.91985532e-06, 4.81059715e-06, 1)
- Part160.BackSurface = Enum.SurfaceType.Weld
- Part160.BottomSurface = Enum.SurfaceType.Weld
- Part160.FrontSurface = Enum.SurfaceType.Weld
- Part160.LeftSurface = Enum.SurfaceType.Weld
- Part160.RightSurface = Enum.SurfaceType.Weld
- Part160.TopSurface = Enum.SurfaceType.Weld
- Part160.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part160.Position = Vector3.new(1.49993896, 6.60010672, -51.999939)
- Part160.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part161.Parent = Model155
- Part161.Rotation = Vector3.new(90, 90, 0)
- Part161.Anchored = true
- Part161.FormFactor = Enum.FormFactor.Symmetric
- Part161.Shape = Enum.PartType.Ball
- Part161.Size = Vector3.new(1, 1, 1)
- Part161.CFrame = CFrame.new(0.999938965, 6.50004816, -49, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
- Part161.BottomSurface = Enum.SurfaceType.Smooth
- Part161.TopSurface = Enum.SurfaceType.Smooth
- Part161.Position = Vector3.new(0.999938965, 6.50004816, -49)
- Part161.Orientation = Vector3.new(0, 90, 90)
- Part162.Parent = Model155
- Part162.Rotation = Vector3.new(0, -90, 0)
- Part162.Anchored = true
- Part162.FormFactor = Enum.FormFactor.Symmetric
- Part162.Shape = Enum.PartType.Cylinder
- Part162.Size = Vector3.new(1, 1, 1)
- Part162.CFrame = CFrame.new(1, 3.50003576, -49, 5.44383852e-07, -8.86863836e-06, -1, -9.55792802e-06, 1, -1.10143674e-05, 1, 3.83588122e-06, -3.04969149e-07)
- Part162.BottomSurface = Enum.SurfaceType.Smooth
- Part162.TopSurface = Enum.SurfaceType.Smooth
- Part162.Position = Vector3.new(1, 3.50003576, -49)
- Part162.Orientation = Vector3.new(0, -90, 0)
- Part163.Parent = Model155
- Part163.Rotation = Vector3.new(90, 90, 0)
- Part163.Anchored = true
- Part163.FormFactor = Enum.FormFactor.Symmetric
- Part163.Shape = Enum.PartType.Cylinder
- Part163.Size = Vector3.new(1, 1, 1)
- Part163.CFrame = CFrame.new(0.999969482, 4.50004816, -49, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
- Part163.BottomSurface = Enum.SurfaceType.Smooth
- Part163.TopSurface = Enum.SurfaceType.Smooth
- Part163.Position = Vector3.new(0.999969482, 4.50004816, -49)
- Part163.Orientation = Vector3.new(0, 90, 90)
- Part164.Parent = Model155
- Part164.Rotation = Vector3.new(90, 90, 0)
- Part164.Anchored = true
- Part164.FormFactor = Enum.FormFactor.Symmetric
- Part164.Shape = Enum.PartType.Cylinder
- Part164.Size = Vector3.new(1, 1, 1)
- Part164.CFrame = CFrame.new(0.999938965, 5.50004816, -49, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
- Part164.BottomSurface = Enum.SurfaceType.Smooth
- Part164.TopSurface = Enum.SurfaceType.Smooth
- Part164.Position = Vector3.new(0.999938965, 5.50004816, -49)
- Part164.Orientation = Vector3.new(0, 90, 90)
- Part165.Parent = Model155
- Part165.Anchored = true
- Part165.FormFactor = Enum.FormFactor.Plate
- Part165.Size = Vector3.new(1, 0.400000006, 3)
- Part165.CFrame = CFrame.new(1.99993896, 7.00008059, -52, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
- Part165.BottomSurface = Enum.SurfaceType.Smooth
- Part165.TopSurface = Enum.SurfaceType.Smooth
- Part165.Position = Vector3.new(1.99993896, 7.00008059, -52)
- Model166.Name = "Slots"
- Model166.Parent = Model155
- Model166.PrimaryPart = Part168
- Part167.Name = "Digit3"
- Part167.Parent = Model166
- Part167.BrickColor = BrickColor.new("White")
- Part167.Rotation = Vector3.new(0, 0, 90)
- Part167.Anchored = true
- Part167.FormFactor = Enum.FormFactor.Plate
- Part167.Size = Vector3.new(3, 0.400000006, 1)
- Part167.CFrame = CFrame.new(0.299957275, 4.70004797, -51, -2.38765515e-05, -1, -3.07040136e-06, 1, -2.60222423e-05, -1.0532759e-05, 4.81061352e-06, -3.91983531e-06, 1)
- Part167.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part167.Position = Vector3.new(0.299957275, 4.70004797, -51)
- Part167.Orientation = Vector3.new(0, 0, 90)
- Part167.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part168.Name = "Light"
- Part168.Parent = Model166
- Part168.BrickColor = BrickColor.new("Bright red")
- Part168.Transparency = 0.5
- Part168.Rotation = Vector3.new(-180, 0, -90)
- Part168.Anchored = true
- Part168.FormFactor = Enum.FormFactor.Symmetric
- Part168.Shape = Enum.PartType.Cylinder
- Part168.Size = Vector3.new(1, 1, 1)
- Part168.CFrame = CFrame.new(1.99993896, 7.70009565, -52, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
- Part168.BottomSurface = Enum.SurfaceType.Smooth
- Part168.RightSurface = Enum.SurfaceType.Weld
- Part168.TopSurface = Enum.SurfaceType.Smooth
- Part168.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part168.Position = Vector3.new(1.99993896, 7.70009565, -52)
- Part168.Orientation = Vector3.new(0, -180, 90)
- Part168.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part169.Name = "Digit1"
- Part169.Parent = Model166
- Part169.BrickColor = BrickColor.new("White")
- Part169.Rotation = Vector3.new(0, 0, 90)
- Part169.Anchored = true
- Part169.FormFactor = Enum.FormFactor.Plate
- Part169.Size = Vector3.new(3, 0.400000006, 1)
- Part169.CFrame = CFrame.new(0.299987793, 4.70008039, -53, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
- Part169.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part169.Position = Vector3.new(0.299987793, 4.70008039, -53)
- Part169.Orientation = Vector3.new(0, 0, 90)
- Part169.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part170.Name = "Digit2"
- Part170.Parent = Model166
- Part170.BrickColor = BrickColor.new("White")
- Part170.Rotation = Vector3.new(-180, 0, 90)
- Part170.Anchored = true
- Part170.FormFactor = Enum.FormFactor.Plate
- Part170.Size = Vector3.new(3, 0.400000006, 1)
- Part170.CFrame = CFrame.new(0.299957275, 4.70008039, -52, 2.38765515e-05, -1, 3.07040136e-06, -1, -2.60222423e-05, 1.0532759e-05, -4.81061352e-06, -3.91983531e-06, -1)
- Part170.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part170.Position = Vector3.new(0.299957275, 4.70008039, -52)
- Part170.Orientation = Vector3.new(0, 180, -90)
- Part170.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part171.Name = "Button"
- Part171.Parent = Model166
- Part171.BrickColor = BrickColor.new("Dark green")
- Part171.Rotation = Vector3.new(0, 0, 90)
- Part171.Anchored = true
- Part171.FormFactor = Enum.FormFactor.Plate
- Part171.Size = Vector3.new(1, 0.400000006, 1)
- Part171.CFrame = CFrame.new(-0.699951172, 1.50003576, -52, -2.38765515e-05, -1, -3.07040136e-06, 1, -2.60222423e-05, -1.0532759e-05, 4.81061352e-06, -3.91983531e-06, 1)
- Part171.TopSurface = Enum.SurfaceType.Smooth
- Part171.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part171.Position = Vector3.new(-0.699951172, 1.50003576, -52)
- Part171.Orientation = Vector3.new(0, 0, 90)
- Part171.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script172.Parent = Part171
- table.insert(cors,sandbox(Script172,function()
- print("Hello world!")
- end))
- Script173.Name = "SlotGame"
- Script173.Parent = Model166
- table.insert(cors,sandbox(Script173,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,10)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,10)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,10)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+500
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 500 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==10 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- end))
- Model174.Parent = Model0
- Model174.PrimaryPart = Part176
- Part175.Parent = Model174
- Part175.BrickColor = BrickColor.new("Dark stone grey")
- Part175.Rotation = Vector3.new(0, 90, 0)
- Part175.Anchored = true
- Part175.FormFactor = Enum.FormFactor.Plate
- Part175.Size = Vector3.new(1, 3.20000005, 1)
- Part175.CFrame = CFrame.new(4, 4.80040216, -46, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part175.BackSurface = Enum.SurfaceType.Weld
- Part175.FrontSurface = Enum.SurfaceType.Weld
- Part175.LeftSurface = Enum.SurfaceType.Weld
- Part175.TopSurface = Enum.SurfaceType.Smooth
- Part175.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part175.Position = Vector3.new(4, 4.80040216, -46)
- Part175.Orientation = Vector3.new(0, 90, 0)
- Part175.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part176.Parent = Model174
- Part176.BrickColor = BrickColor.new("Dark stone grey")
- Part176.Rotation = Vector3.new(0, 90, 0)
- Part176.Anchored = true
- Part176.FormFactor = Enum.FormFactor.Plate
- Part176.Size = Vector3.new(4, 3.20000005, 5)
- Part176.CFrame = CFrame.new(6, 1.60039473, -47.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part176.BackSurface = Enum.SurfaceType.Weld
- Part176.FrontSurface = Enum.SurfaceType.Weld
- Part176.LeftSurface = Enum.SurfaceType.Weld
- Part176.RightSurface = Enum.SurfaceType.Weld
- Part176.TopSurface = Enum.SurfaceType.Weld
- Part176.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part176.Position = Vector3.new(6, 1.60039473, -47.5)
- Part176.Orientation = Vector3.new(0, 90, 0)
- Part176.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part177.Parent = Model174
- Part177.BrickColor = BrickColor.new("Dark stone grey")
- Part177.Rotation = Vector3.new(0, 90, 0)
- Part177.Anchored = true
- Part177.FormFactor = Enum.FormFactor.Plate
- Part177.Size = Vector3.new(3, 3.20000005, 5)
- Part177.CFrame = CFrame.new(6, 4.80040216, -48, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part177.BackSurface = Enum.SurfaceType.Weld
- Part177.FrontSurface = Enum.SurfaceType.Weld
- Part177.LeftSurface = Enum.SurfaceType.Weld
- Part177.RightSurface = Enum.SurfaceType.Weld
- Part177.TopSurface = Enum.SurfaceType.Smooth
- Part177.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part177.Position = Vector3.new(6, 4.80040216, -48)
- Part177.Orientation = Vector3.new(0, 90, 0)
- Part177.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part178.Parent = Model174
- Part178.BrickColor = BrickColor.new("Dark stone grey")
- Part178.Rotation = Vector3.new(0, 90, 0)
- Part178.Anchored = true
- Part178.FormFactor = Enum.FormFactor.Plate
- Part178.Size = Vector3.new(1, 3.20000005, 1)
- Part178.CFrame = CFrame.new(8.00006866, 4.80020857, -45.999939, -1.1542237e-06, 9.55790165e-06, 1, 1.70940566e-05, 1, -9.55788164e-06, -1, 1.70940457e-05, -1.15438695e-06)
- Part178.BackSurface = Enum.SurfaceType.Weld
- Part178.FrontSurface = Enum.SurfaceType.Weld
- Part178.LeftSurface = Enum.SurfaceType.Weld
- Part178.TopSurface = Enum.SurfaceType.Smooth
- Part178.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part178.Position = Vector3.new(8.00006866, 4.80020857, -45.999939)
- Part178.Orientation = Vector3.new(0, 90, 0)
- Part178.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part179.Parent = Model174
- Part179.BrickColor = BrickColor.new("Dark stone grey")
- Part179.Rotation = Vector3.new(0, 90, 0)
- Part179.Anchored = true
- Part179.FormFactor = Enum.FormFactor.Plate
- Part179.Size = Vector3.new(4, 0.400000006, 5)
- Part179.CFrame = CFrame.new(6.00006104, 6.60022593, -47.499939, -1.1542237e-06, 9.55790165e-06, 1, 1.70940566e-05, 1, -9.55788164e-06, -1, 1.70940457e-05, -1.15438695e-06)
- Part179.BackSurface = Enum.SurfaceType.Weld
- Part179.BottomSurface = Enum.SurfaceType.Weld
- Part179.FrontSurface = Enum.SurfaceType.Weld
- Part179.LeftSurface = Enum.SurfaceType.Weld
- Part179.RightSurface = Enum.SurfaceType.Weld
- Part179.TopSurface = Enum.SurfaceType.Weld
- Part179.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part179.Position = Vector3.new(6.00006104, 6.60022593, -47.499939)
- Part179.Orientation = Vector3.new(0, 90, 0)
- Part179.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part180.Parent = Model174
- Part180.Rotation = Vector3.new(-180, 0, -90)
- Part180.Anchored = true
- Part180.FormFactor = Enum.FormFactor.Symmetric
- Part180.Shape = Enum.PartType.Ball
- Part180.Size = Vector3.new(1, 1, 1)
- Part180.CFrame = CFrame.new(9, 6.50040197, -47, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part180.BottomSurface = Enum.SurfaceType.Smooth
- Part180.TopSurface = Enum.SurfaceType.Smooth
- Part180.Position = Vector3.new(9, 6.50040197, -47)
- Part180.Orientation = Vector3.new(0, 180, 90)
- Part181.Parent = Model174
- Part181.Anchored = true
- Part181.FormFactor = Enum.FormFactor.Symmetric
- Part181.Shape = Enum.PartType.Cylinder
- Part181.Size = Vector3.new(1, 1, 1)
- Part181.CFrame = CFrame.new(9, 3.50040197, -47, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part181.BottomSurface = Enum.SurfaceType.Smooth
- Part181.TopSurface = Enum.SurfaceType.Smooth
- Part181.Position = Vector3.new(9, 3.50040197, -47)
- Part182.Parent = Model174
- Part182.Rotation = Vector3.new(-180, 0, -90)
- Part182.Anchored = true
- Part182.FormFactor = Enum.FormFactor.Symmetric
- Part182.Shape = Enum.PartType.Cylinder
- Part182.Size = Vector3.new(1, 1, 1)
- Part182.CFrame = CFrame.new(9, 4.50040197, -47, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part182.BottomSurface = Enum.SurfaceType.Smooth
- Part182.TopSurface = Enum.SurfaceType.Smooth
- Part182.Position = Vector3.new(9, 4.50040197, -47)
- Part182.Orientation = Vector3.new(0, 180, 90)
- Part183.Parent = Model174
- Part183.Rotation = Vector3.new(-180, 0, -90)
- Part183.Anchored = true
- Part183.FormFactor = Enum.FormFactor.Symmetric
- Part183.Shape = Enum.PartType.Cylinder
- Part183.Size = Vector3.new(1, 1, 1)
- Part183.CFrame = CFrame.new(9, 5.50040197, -47, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part183.BottomSurface = Enum.SurfaceType.Smooth
- Part183.TopSurface = Enum.SurfaceType.Smooth
- Part183.Position = Vector3.new(9, 5.50040197, -47)
- Part183.Orientation = Vector3.new(0, 180, 90)
- Part184.Parent = Model174
- Part184.Rotation = Vector3.new(0, 90, 0)
- Part184.Anchored = true
- Part184.FormFactor = Enum.FormFactor.Plate
- Part184.Size = Vector3.new(1, 0.400000006, 3)
- Part184.CFrame = CFrame.new(6, 7.00040197, -48, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part184.BottomSurface = Enum.SurfaceType.Smooth
- Part184.TopSurface = Enum.SurfaceType.Smooth
- Part184.Position = Vector3.new(6, 7.00040197, -48)
- Part184.Orientation = Vector3.new(0, 90, 0)
- Model185.Name = "Slots"
- Model185.Parent = Model174
- Model185.PrimaryPart = Part187
- Part186.Name = "Digit3"
- Part186.Parent = Model185
- Part186.BrickColor = BrickColor.new("White")
- Part186.Rotation = Vector3.new(90, 90, 0)
- Part186.Anchored = true
- Part186.FormFactor = Enum.FormFactor.Plate
- Part186.Size = Vector3.new(3, 0.400000006, 1)
- Part186.CFrame = CFrame.new(7, 4.70039988, -46.2999878, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part186.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part186.Position = Vector3.new(7, 4.70039988, -46.2999878)
- Part186.Orientation = Vector3.new(0, 90, 90)
- Part186.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part187.Name = "Light"
- Part187.Parent = Model185
- Part187.BrickColor = BrickColor.new("Bright red")
- Part187.Transparency = 0.5
- Part187.Rotation = Vector3.new(-90, -90, 0)
- Part187.Anchored = true
- Part187.FormFactor = Enum.FormFactor.Symmetric
- Part187.Shape = Enum.PartType.Cylinder
- Part187.Size = Vector3.new(1, 1, 1)
- Part187.CFrame = CFrame.new(6, 7.70040083, -48, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part187.BottomSurface = Enum.SurfaceType.Smooth
- Part187.RightSurface = Enum.SurfaceType.Weld
- Part187.TopSurface = Enum.SurfaceType.Smooth
- Part187.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part187.Position = Vector3.new(6, 7.70040083, -48)
- Part187.Orientation = Vector3.new(0, -90, 90)
- Part187.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part188.Name = "Digit1"
- Part188.Parent = Model185
- Part188.BrickColor = BrickColor.new("White")
- Part188.Rotation = Vector3.new(90, 90, 0)
- Part188.Anchored = true
- Part188.FormFactor = Enum.FormFactor.Plate
- Part188.Size = Vector3.new(3, 0.400000006, 1)
- Part188.CFrame = CFrame.new(5, 4.70039988, -46.2999878, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part188.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part188.Position = Vector3.new(5, 4.70039988, -46.2999878)
- Part188.Orientation = Vector3.new(0, 90, 90)
- Part188.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part189.Name = "Digit2"
- Part189.Parent = Model185
- Part189.BrickColor = BrickColor.new("White")
- Part189.Rotation = Vector3.new(90, -90, 0)
- Part189.Anchored = true
- Part189.FormFactor = Enum.FormFactor.Plate
- Part189.Size = Vector3.new(3, 0.400000006, 1)
- Part189.CFrame = CFrame.new(6, 4.70039988, -46.2999878, 0, 0, -1, -1, 0, 0, 0, 1, 0)
- Part189.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part189.Position = Vector3.new(6, 4.70039988, -46.2999878)
- Part189.Orientation = Vector3.new(0, -90, -90)
- Part189.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part190.Name = "Button"
- Part190.Parent = Model185
- Part190.BrickColor = BrickColor.new("Dark green")
- Part190.Rotation = Vector3.new(90, 90, 0)
- Part190.Anchored = true
- Part190.FormFactor = Enum.FormFactor.Plate
- Part190.Size = Vector3.new(1, 0.400000006, 1)
- Part190.CFrame = CFrame.new(6, 1.50040197, -45.2999878, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part190.TopSurface = Enum.SurfaceType.Smooth
- Part190.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part190.Position = Vector3.new(6, 1.50040197, -45.2999878)
- Part190.Orientation = Vector3.new(0, 90, 90)
- Part190.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Script191.Parent = Part190
- table.insert(cors,sandbox(Script191,function()
- print("Hello world!")
- end))
- Script192.Name = "SlotGame"
- Script192.Parent = Model185
- table.insert(cors,sandbox(Script192,function()
- amnt = 5 --COST TO PLAY
- hold = false
- bin = script.Parent
- light = bin.Light
- button = bin.Button
- dig1 = bin.Digit1
- dig2 = bin.Digit2
- dig3 = bin.Digit3
- color1 = 0
- color2 = 0
- color3 = 0
- function Roll(cash)
- for i=1, 10 do
- --ROLL FIRST
- color1 = math.random(0,5)
- dig1.Color = GetColor(color1)
- --ROLLSECOND
- color2 = math.random(0,5)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,5)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLLSECOND
- color2 = math.random(0,5)
- dig2.Color = GetColor(color2)
- --ROLL THIRD
- color3 = math.random(0,5)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- for i=1, 10 do
- --ROLL THIRD
- color3 = math.random(0,5)
- dig3.Color = GetColor(color3)
- wait(0.1)
- end
- if (color1==3 and color2==2 and color3==5) then
- cash.Value=cash.Value+5000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "JACKPOT WINNER 5000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==color2 and color2==color3) then
- cash.Value=cash.Value+1000
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 1000 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==2 and color3==3) then
- cash.Value=cash.Value+100
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 100 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==0 and color2==3 and color3==5) then
- cash.Value=cash.Value+50
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 50 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- if (color1==1 and color2==0 and color3==0) then
- cash.Value=cash.Value+250
- msg=Instance.new("Message")
- msg.Parent= game.Workspace
- msg.Text= "WINNER 250 CASH!!!"
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- light.Transparency= 0
- wait(.5)
- light.Transparency= .5
- wait(.5)
- msg:remove()
- end
- end
- function GetColor(num)
- if (num==0) then --Black
- return Color3.new(0,0,0)
- end
- if (num==1) then --Grey
- return Color3.new(.5,.5,.5)
- end
- if (num==2) then --White
- return Color3.new(1,1,1)
- end
- if (num==3) then --Red
- return Color3.new(1,0,0)
- end
- if (num==4) then --Green
- return Color3.new(0,1,0)
- end
- if (num==5) then --Blue
- return Color3.new(0,0,1)
- end
- return Color3.new(GetRand(),GetRand(),GetRand())
- end
- function GetRand()
- return (math.random(1,10)/10)
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if (h~=nil and hold==false) then
- hold=true
- button.Color = Color3.new(0,0,0)
- local thisplr = game.Players:findFirstChild(h.Parent.Name)
- if (thisplr~=nil) then
- local stats = thisplr:findFirstChild("leaderstats")
- if (stats~=nil) then
- local score = stats:findFirstChild("Cash")
- if (score~=nil) then
- if (score.Value >=amnt) then
- score.Value = score.Value - amnt
- Roll(score)
- end
- end
- end
- end
- button.Color = Color3.new(0,1,0)
- hold=false
- end
- end
- button.Touched:connect(onTouched)
- 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