Hey I’m making a script where I turn blocks to ice and I was wondering how come I cannot set the friction Value inside a script. I have workarounds but I would rather do this inside the script so if anybody can help I’d really appreciate it.
for i, part in pairs(IceParts:GetChildren()) do
if part:IsA("BasePart") then
part.CustomPhysicalProperties.Friction = 0
part.CustomPhysicalProperties.FrictionWeight = 25
part.Color = Color3.new(108, 211, 255)
part.Material = Enum.Material["Ice"]
part.Transparency = 0.15
part.Reflectance = 1
end
end
all help would be much appreciated.