I am attempting to remake something like Rdite’s frying pan in his game Sausage Sizzle. So, I made a fireplace in which I would cook my own processed meat. I am trying to use a Region3 to make all of the meat darker when you are in the fire. My script does not seem to be working.
I have read some articles on adding Color3 values and tried to script based on their advice and demonstrations.
My server script in the region part.
function getRegionFromPart(part)
return Region3.new(part.Position - (part.Size/2), part.Position + (part.Size/2))
end
while wait(1) do
local region = getRegionFromPart(script.Parent)
local partsInRegion = workspace:FindPartsInRegion3(region, nil, math.huge)
for _, v in pairs(partsInRegion) do
local character = game.Players:GetPlayerFromCharacter(v.Parent)
if character then
for _, x in pairs(character:GetChildren()) do
if x.Name == "DummySausage" then
for _, y in pairs(x:GetDescendants()) do
if y:IsA("BasePart") then
y.Color3 = Color3.new(
(y.Color3.R - 100)/255,
(y.Color3.G - 100)/255,
(y.Color3.B - 100)/255
)
print(y.Color3)
end
end
end
end
end
end
end
The script does not print anything (the color3 value)
Thanks in advance