Gear gamepass not appearing in inventory

Hello there ! I’m pretty new at scripting and recently tried to make a gamepass that would give you a ‘SpeedGravityCoil’ . The problem is that , when I press play in ROBLOX Studio to test it , it just won’t appear in my inventory , same goes with ingame obviously . Here is the script :

image

The output does not show any kind of error whatsoever , so I really don’t understand what’s wrong . If you know how to fix this , please help . (also the SpeedGravityCoil is located in the ServerStorage)

This video might help you

Are you sure thats the name of the Speed Gravity Coil?

Yeah , look :
image

Try this script.

local GamepassID = 11032156

game.Players.PlayerAdded:Connect(function(player)
	
	if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID) then
		
		game.ServerStorage.SpeedGravityCoil:Clone().Parent = player:WaitForChild("Backpack")
		game.ServerStorage.SpeedGravityCoil:Clone(). Parent = player:WaitForChild("StarterGear")
	end
end)
1 Like

Not working . I seriously don’t get what could be wrong .

Can you show me a image of it in studio test mode? The script definitely works for me.

an image of what ? That I don’t have the coil ?

Theres nothing wrong with the script, it works for me. Maybe put the gamepass on sale, currently the gamepass is offsale.

Yeah that’s what I’m saying , it looks perfectly fine , it just won’t give it to me and okay I’ll try that .

Still not working , I tried multiple items as well , it’s just not working at all .

Must be something wrong with your game, do you have something that removes all gears or something?

Oh wait ! It works now . Okay it’s all good .

Alright thank you very much for the help . I’m new so yeah . Thank you dude

You should change the parent of SpeedGravityCoil to replicatedstorage so that both the server and the client can see it.

edit: nvm it’s already been fixed