Heyo Devforum! I have created multiple animation gamepasses, but when you buy the gamepass, the animation does not play what so ever. I have no idea why this is happening as it works fine when it stays in the starter pack.
Tools:
This is in replicated storage
Here is the script that manages the gamepasses. This script is a local script inside the starter gui.
Script:
local player = game.Players.LocalPlayer
local marketplaceservice = game:GetService("MarketplaceService")
local dabgamepass = marketplaceservice:UserOwnsGamePassAsync(player.UserId, 12098002)
local supergamepass = marketplaceservice:UserOwnsGamePassAsync(player.UserId, 12159961)
local tposegamepass = marketplaceservice:UserOwnsGamePassAsync(player.UserId, 12159974)
if dabgamepass then
local dab = game.ReplicatedStorage.GamepassItems.Dab:Clone()
dab.Parent = player.Backpack
end
if supergamepass then
local super = game.ReplicatedStorage.GamepassItems.Superman:Clone()
super.Parent = player.Backpack
end
if tposegamepass then
local tpose = game.ReplicatedStorage.GamepassItems["T-Pose"]:Clone()
tpose.Parent = player.Backpack
end
if player.Name == "Bombe0101" then
local dab = game.ReplicatedStorage.GamepassItems.Dab:Clone()
dab.Parent = player.Backpack
local super = game.ReplicatedStorage.GamepassItems.Superman:Clone()
super.Parent = player.Backpack
local tpose = game.ReplicatedStorage.GamepassItems["T-Pose"]:Clone()
tpose.Parent = player.Backpack
end
I have no idea why this happens. There are no errors, so I am not sure whether the problem is with the tools or the script. Please help!