So im making a really basic script (hard for me bc im new) but it doesnt seem to turn the di green when It touches the brick heres the script
local Dice1 = game.Workspace.Dice1
local Dice2 = game.Workspace.Dice2
script.Parent.Touched:Connect(function(hit)
if hit.parent:FindFirstChild("Dice1")
then
Dice1.BrickColor = BrickColor.new('Sage green')
end
end)

1 comment
What is touching the brick? The other dice? the player? Looks like something's wrong with Line6 since Dice1 is in the workspace and you're looking for the dice in whatever just hit the brick.