There's a problem with my game passes, when I use my script that gets the game passes from replicated, the gamepasses reach the players inventory but the play is unable to use the tool. When they select it they are sent to the position where the item was first placed. Heres my gamepass giver script help me please
local player = game.Players.LocalPlayer local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,9027783) if ownsGamepass then local sword = game:GetService("ReplicatedStorage"):WaitForChild("Flintlock"):Clone() sword.Parent = player.Backpack end local player = game.Players.LocalPlayer local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,8981498) if ownsGamepass then local sword = game:GetService("ReplicatedStorage"):WaitForChild("Rifle"):Clone() sword.Parent = player.Backpack end
This is a common problem that occurs when a player is given a tool through a LocalScript. In order for the tool to work: You have to give the tool through a normal script. Best way to do that is to use RemoteFunctions to translate functions from LocalScripts to Scripts from ServerScriptService