module script

Module = {
Teleport = function(Plr1, Plr2)
workspace[Plr1].Torso.CFrame = workspace[Plr2].Torso.CFrame
end



}
return Module

script

local Commands = require(workspace.Commands)
Commands.Teleport()
now how would i change the plr1 and plr2 argumeents in the function if it's even possible

this is for my admin script

3 comments

0

Commands.Teleport() on line 2 of your second script is calling the function, which means you just need to set it in there. Commands.Teleport("Player1", "Player2")

0

what do you mean?... like you chat and if the command is in the module then you run it?

0

nvm i figured it out