The code inside the part:
local TweenService = game:GetService("TweenService")
local Part = script.Parent
local Proximity = script.Parent.ProximityPrompt
local goal = {
Transparency = 0.45,
Color3.new(1,0,0),
}
local TweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
true,
1
)
local partTween = TweenService:Create(Part, TweenInfo, goal)
Proximity.Triggered:Connect(function()
partTween:Play()
end)
The error:

any help is appreciated 
SOTR654
(SOTR654)
2
It should be like that
Color = Color3.new(1,0,0),
local goal = {
Transparency = 0.45,
Color3.new(1,0,0),
}
Should be.
local goal = {
Transparency = 0.45,
Color3 = Color3.new(1,0,0)
}
Don’t need that 2nd comma as the table only has 2 entries.
I remove the comma but it still din’t work and it gives me the same error
Color3 = Color3.new(1,0,0)
Did you make this change also?
Once you have show any console errors please.
Now it gives me this error 
local goal = {
Transparency = 0.45,
Color = Color3.new(1,0,0)
}
1 Like
this is how i would do it
local goal = {
Transparency = 0.45,
Color = Color3.FromRGB(yourcolorvalue)
}
1 Like
Thanks @ZombieCrunchUK and @Juicy_Fruit your solution worked!
1 Like
I was just going to mention “Color3” is reserved so you’ll need to change it to some other name.
1 Like