#How do i fix whenever i reset the speed multiplyer resets to normal even tho i owned the gamepass

1 messages · Page 1 of 1 (latest)

fossil delta
#

local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")

Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
local GamepassID = 1679281028 -- Change this ID to your Gamepass ID
local Multiplier = 2 -- Change this to the amount you want the default walkspeed to multiply by

    if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, GamepassID) then
        Humanoid.WalkSpeed = Humanoid.WalkSpeed * Multiplier
    end
end)

end)

proud solstice
#

so make a fixed value instead of multiplying the current speed