Hello,
The title says all, when I tried to change Humanoid.WalkSpeed on server side it didn’t work on client. It had other value in the server side and client side and that’s all I know. I can’t find a solution for this problem because normally ServerScriptService scripts can change Humanoid properties on both sides but now something is wrong. Any suggestions on what could happen?
Seems like you have something on the client modifying the WalkSpeed so the server/client are not synced up. In studio you can use the shortcut: CTRL + SHIFT + F
and search for code snippets throughout your project. You can use this to disable anything that could be changing the WalkSpeed on the client.
Please provide any script/screenshots
Sorry for not answering for a long time. The only script modifying the WalkSpeed is this one which gives player 1.5x bigger speed (only in the lobby) when he have VIP gamepass
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, vipGamepassID) then
player.Character:WaitForChild("Humanoid").WalkSpeed *= 1.5
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").WalkSpeed *= 1.5
end)
end
It is located in StarterPlayerScripts
folder
Wait, so if I modify WalkSpeed on client then it won’t listen to the server until parent humanoid will destroy?
Show the code for the server side walkspeed change
I’ve already shared it here, it changes player’s speed only when he has vip