So I have been working on my own custom admin commands for a while and most of it is in a script, but for client commands like noclip I need to trigger a localscript. I have already gotten the required information from the main script to the modulescript, I just need to find a way to send that to the localscript.
here is the modulescript, as I said I have already triggered this successfully.
local module = {}
function module.Noclip(args, plr)
if args == true then
plr.Character.Humanoid:ChangeState(11)
print("Noclip enabled for "..plr.Name)
else
plr.Character.Humanoid:ChangeState(16)
print("Noclip disabled for "..plr.Name)
end
end
return module
So if you know how to fix this then let me know, or if you know a better way and I'm just doing it completely wrong, also let me know, thanks in advance.
