Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

WalkSpeed is not a valid member of model? What did I mess up?

Here is the local script.

local player = script.Parent.Parent.Parent.Parent.Parent
 local Player = game.Players.LocalPlayer
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId,4937288 ) then
	script.Parent.Visible = true
    script.Parent.MouseButton1Click:connect(function()
     if Player.Character.Humanoid.WalkSpeed == 16 then Player.Character.WalkSpeed = 50
        end
    end)
else
    script.Parent.Visible = false
end

1 answer

✓ Accepted answer

Player.Character.Humanoid.WalkSpeed = num. Also :connect is deprecated, use :Connect.

This discussion is preserved as it was. New answers, comments, and votes are closed.