My script is as follows:
Grass1=script.Parent
function onTouched(Grass1)
Player=Grass1.Parent:findFirstChild("Humanoid")
if Player~=nil then
print("checkpoint reached")
if game.Workspace.Grass1.BrickColor==("Dark green") then
print("checkpoint reached2")
game.Workspace.Grass1.BrickColor=BrickColor.new("Grime")
game.Workspace.Grass2.BrickColor=BrickColor.new("Dark green")
end
end
end
Grass1.Touched:connect(onTouched)
There isn't anything wrong in the output. It never gets past checkpoint 2. I am a new scripter, so please don't be mean if I made a silly mistake :(
Anybody have an idea why the brick colors aren't changing?
