Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Question About Module scripts and functions How do i do this?

Asked by 4 years ago

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

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") BronzedMocha 60 — 4y
0
what do you mean?... like you chat and if the command is in the module then you run it? User#23252 26 — 4y
0
nvm i figured it out lon233bcc 31 — 4y

Answer this question