This script is fired when the player clicks the exit button on a shop. This script for some reason doesn't change the player's walkspeed
game.ReplicatedStorage.CloseShop.OnServerEvent:Connect(function(player)
game.Workspace[player.Name].HumanoidRootPart.CFrame=game.Workspace.SHOP.ExitShopPart.CFrame
game.Workspace:FindFirstChild(player.Name).Humanoid.WalkSpeed = 16
end)
And whats weird is that if I change this value to 17 or 15 it changes. Why is it doing this?

2 comments
16 is the default WalkSpeed.
yes, but the shop made the player's walkspeed 0 when the player entered the shop.