Display an item in the back of a player if he own a gamepass?

Hi devs, actually im wondering how to display in the back of a player a mesh if he own a gamepass.

Like that :

Here is the script that i will use to see if the player own the gamepass :

game.Players.PlayerAdded:Connect(function(plr)
	local mouse = plr:GetMouse()
	
	wait(1)
	local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 156287007)
	
	if ownsGamepass then
	-- Put in the back the item

	else
	
	end
		end)

Tnks !

This is relatively easy to do. Clone the item you want to put on the back of the player and parent it to the root part for easy access. Then the somewhat tricky part, you have to weld the item to the root part, make sure the item is unanchored and massless and set the CFrame correctly so it actually appears on the back of the player; to do this, you’d have to get the CFrame of the root part and offset the X or Y axis so it looks like it’s on the back of the player.

Hope this helps & makes sense! :slight_smile:

1 Like

Thought I should somewhat explain welding:

The best way to weld is to use WeldConstraint as it supports the new physics solver and is best for newbies.

For example:

local weld = Instance.new("WeldConstraint")
weld.Parent = rootPart
weld.Part1 = rifle -- usually the item you're welding
weld.Part2 = rootPart -- the object you're welding the item to