Bit of a weird question but this is needed to make the player slide on ice. Also yes, I have checked to see if the Ice surface is also frictionless, I went into play solo and the player's legs were in fact not edited. This is my server script in serverscriptservice, is there anything wrong with it or something wrong with the script's location? Any help is appreciated.

local lleg = game.Players.LocalPlayer.Character:WaitForChild("LeftLeg")
local rleg = game.Players.LocalPlayer.Character:WaitForChild("RightLeg")

local function onCharacterAdded(character)
	wait()
	lleg.CustomPhysicalProperties.Enabled = true
	lleg.CustomPhysicalProperties.Friction = 0
	rleg.CustomPhysicalProperties.Enabled = true
	rleg.CustomPhysicalProperties.Friction = 0
end