How to change Brick color of cup on touch?
So I was wondering how I could possibly change the brick color of a drink in it When put in the machine?? This is the script I have right now? Any help?
02 | if (h.Parent.Name = = "Cup" ) then |
03 | script.Parent.Sound:Play() |
04 | game.Workspace.ChocolateMachine.Spill.Transparency = 0 |
05 | h.Parent.Name = "Chocolate Ice Cream" |
07 | game.Workspace.ChocolateMachine.Spill.Transparency = 1 |
08 | h.Parent.Drink.BrickColor = script.Color.Value |
09 | h.Parent.Drink.Transparency = 0 |
13 | script.Parent.Touched:connect(tch) |
So I have my Brick named Drink when a cup get's touched on the part Brick It will change a brick in the cup that was touched to a certain color and the spill is the ice cream dropping
I want it to change the color of the drink in workspace when playing the game so If someone puts their cup in the machine their Drink will turn brown or something?
-Glassify