script.Parent.Touched:connect(function(h)
if h.Parent.Name == "Basic Cakepop" or h.Parent.Name == "U" then
h.Parent.Name = "White Cakepop"
if h.Parent:FindFirstChild("drink") ~= nil then
h.Parent.drink.Transparency = 0
h.Parent.drink.BrickColor = BrickColor.new("White")
end
end
end)
I keep getting the Error "18:24:45.398 - Touched is not a valid member of Model"

1 comment
... Sorry for wasting your time, just realized I just had the script grouped in a model, not inside a part/meshpart