local mps = game:GetService("MarketplaceService") local button = script.Parent local gamePassID = 18411129 local AnotherBrick = game.Workspace.winners button.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then if mps:PlayerOwnsAsset(player, gamePassID) then print("Player has pass.") player:MoveTo(AnotherBrick.Position) -- 5 end end end end)
Your problem is probably you trying to use :MoveTo on a player instance.
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
Player is player instance and
player:MoveTo(AnotherBrick.Position) -- 5
Won't work. To fix it, move the players character humanoid o think it is, if it's not the humanoid then it's the character.
player.Character.Humanoid:MoveTo(AnotherBrick.CFrame)