I am trying to make a Module Scriptfor a game I am working on that will teleport the player to a game.
The issue is that the module script is being executed with the correct parameters (i checked), and it still isn’t working…
I have tried print debugging.
local Code = {}
local Players = game.Players
function Code.Execute(Character,ContentTable)
local Player = Players:GetPlayerFromCharacter(Character)
print(Players)
print(Player.Name)
print(Player.ClassName)
game:GetService("TeleportService"):TeleportAsync(9004167127,Player)
end
return Code