I am working on an Admin for games and such, I am taking a quite abnormal approach and because of this I have no clue about quite a bit.
The way I have the Admin set up is, when you enter a command in the GUIs command bar and press enter, it searches a folder full of folders and module scripts named 'Source' and requires the correct commands source file.
Due to this approach I am trying to make my [;goto] command, but I am having an issue where it doesn't replicate / doesn't even teleport or show any change to the server side, and remote events are not an option.
Source:
local Source = {}
local String = [[
Ray Admin has encountered an error while executing the requested command, for the [;goto] command
you are required to include an argument, which must be a players full name.
(We are not yet developed for Display Names, so use the username. To get a list of all users run [;userlist])
v1.0 (BETA) (R15 ONLY)
]]
function Source.main(Player, Args)
local notifModule = require(script.Parent.Parent.Parent.Modules.notifModule)
if Args[2] then
for i,v in pairs(game.Players:GetChildren()) do
if v.Name == Args[2] then
local C = workspace:FindFirstChild(Player.Name)
local T = workspace:FindFirstChild(Args[2])
C.UpperTorso.Position = T.UpperTorso.Position
end
end
else
notifModule.notify(String)
end
end
return Source
(The notification module I made works fine, the error is not documented but if I had to guess it is likely line 19, or C.UpperTorso.Position = T.UpperTorso.Position.)
