local devidl = 5615718 game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(player,gamepassid,ispurchased) function player.CharacterAdded:Connect(char) if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId,devidl) == false then if ispurchased == false then if gamepassid == devidl then char.Humanoid.WalkSpeed = 24 end end end end end)
There are no errors.
local devidl = 5615718 game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(player,gamepassid,ispurchased) function player.CharacterAdded:Connect(char) if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,devidl) == false then if ispurchased == true then--you just set this to the wrong value if gamepassid == devidl then char.Humanoid.WalkSpeed = 24 end end end end end)
So you just set the ispurchased to false when it should've been true. Also, you shouldn't check for if a person owns a gamepass within the thing that purchases the gamepass.
Simple capitalization error: userId, should be UserId