Im trying to make a StarterCharacter gamepass. When they buy the gamepass they get a in game skin. The script works its just when ever i spawn im invis and i cant move.
The script i used
local GamepassId = (10797682) local Players = game:GetService("Players") local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local GamepassStarterCharacter = ServerStorage.StarterCharacter local GamepassFunction = function(Player) if not Player:IsA("Player") then return end Player.CharacterAdded:Connect(function(Character) local function LoadCharacter(Path) for i,v in pairs(Character:GetChildren()) do v:Destroy() end for i,v in pairs(Character:GetChildren()) do v:Clone().Parent = Character end if not Character:FindFirstChildOfClass("Humanoid") then Instance.new("Humanoid",Character) end end if MarketplaceService:UserOwnsGamePassAsync(Player.UserId,GamepassId) then LoadCharacter(GamepassStarterCharacter) else LoadCharacter(ServerStorage.RedSkin) end end) end for i,v in pairs(Players:GetPlayers()) do GamepassFunction(v) end Players.PlayerAdded:Connect(GamepassFunction)
Your just destroying the character and adding a humanoid in the empty character model??
How about try this
local GamepassId = 10797682 local MarketplaceService = game:GetService("MarketplaceService") local GamepassStarterCharacter = game.ServerStorage.StarterCharacter local GamepassFunction = function(Player) Player.CharacterAdded:Connect(function(Character) local function LoadCharacter(Path) --[[ in case you want starter scripts for _, v in pairs(Character:GetChildren()) do if v.ClassName ~= "Script" or v.ClassName ~= "LocalScript" then v:Destroy() end end ]] Character:Destroy() Path.Parent = workspace Character = Path end if --[[not]] MarketplaceService:UserOwnsGamePassAsync(Player.UserId,GamepassId) then --Idk I think you meant to check if they don't own it LoadCharacter(GamepassStarterCharacter) else LoadCharacter(game.ServerStorage.RedSkin) end end) end game.Players.PlayerAdded:Connect(GamepassFunction)
I'm deleting the starter character then inserting your model instead for the character. I'm not sure if this works but I seen somebody do it before.
Also, if this did not work then just recolor the character and stuff.