local player1 = script.Parent
local trail = game.ReplicatedStorage.TrailMachine
mps= game:GetService("MarketplaceService")
function createMachine()
local trailClone = trail:Clone()
trailClone.PrimaryPart = trailClone.Core
trailClone.Parent = player1
trailClone:moveTo(player1.Torso.Position)
local weld = Instance.new("Motor6D")
weld.Parent = trailClone.Core
weld.Part0 = trailClone.Core
weld.Part1 = player1.Torso
end
game:GetService("Players").PlayerAdded:Connect(function(player)
if mps:UserOwnsGamePassAsync(player.UserId,5260848) then
createMachine(player)
end
end)
Even though I tested it in the place, and since I'm the owner I have the gamepass, it still didn't make the model. Maybe this is because the place is private and only I can play it?

3 comments
is "player1" the player's character or the player's player?
why don't you just do player.Character instead of player1?
True, still looking for a answer.