Working on events for my koth game and whilst working on the event “Frost”, I’ve run into a problem. Setting the friction of each part in the map to 0 in CustomPhysicalProperties doesn’t apply to the player’s character.
Here’s the script responsible for modifying the friction
local props = PhysicalProperties.new(.7,.5,1,0,0)
local function Frost()
for _, tri : Part in pairs(map:GetChildren()) do
tri.CustomPhysicalProperties = props
tri.Material = Enum.Material.Ice
wIndex+=1
if wIndex > 20 then task.wait(.05) wIndex = 0 end
end
end
To make a part icy/slippery you have to turn the friction to 0 or so, and then set the friction weight to something like 100 or so, higher friction weight = slipperier, lower = less slippery.
Try game.Player.LocalPlayer.Character.Humanoid.MaxSlopeAngle = 0(if you’re doing it from a server script use slope.Touched event to get character.Humanoid)
This makes it so that the player slips on any inclined surface
And of course, make the slope’s friction 0 and frictionweight 100