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

2 comments
Are you trying to say the player gets stuck in a certain position when they equip the tool? If so, then the problem is the tool being anchored.
If i unanchor the tool, the only part that appears in the players hand when they equip the tool is the handle.