I need help. Im trying to make a gamepass so when a player buys it they turn into a starter character i made. But the script im using rn is not working
local gamepassid = 10797682 local market = game:GetService("MarketplaceService") game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) if market:UserOwnsGamePassAsync(plr.UserId,gamepassid) then game.Players.LocalPlayer.Character = game.ServerStorage.StarterCharacter else --so if they dont own it game.Players.LocalPlayer.Character = game.ServerStorage.RedSkin --normal character
end end) end)
I added that script into ServerScript Service and idk if i need a remote function im just a beginner on scripting.

1 comment
Hey please check this out (https://scriptinghelpers.org/help/how-post-good-questions-answers) and scroll down to formatting! It'll help us read your code and be more efficient when assisting you