Hello, I have been trying to make a Ragdoll command using HD Admin, the script seems to work it just doesn’t execute to the character.
This is my script:
-- << RETRIEVE FRAMEWORK >>
local main = _G.HDAdminMain
local settings = main.settings
-- << COMMANDS >>
local module = {
-----------------------------------
{
Name = "korblox";
Aliases = {};
Prefixes = {settings.Prefix};
Rank = 3;
RankLock = false;
Loopable = false;
Tags = {};
Description = "";
Contributors = {};
--
Args = {"Player"};
Function = function(speaker, args)
local player = args[1]
local char = player.Character
local hum = char:WaitForChild("Humanoid")
local desc = hum:GetAppliedDescription()
desc.RightLeg = 139607718
hum:ApplyDescription(desc)
end;
UnFunction = function(speaker, args)
end;
--
};
{
Name = "headless";
Aliases = {};
Prefixes = {settings.Prefix};
Rank = 3;
RankLock = false;
Loopable = false;
Tags = {};
Description = "";
Contributors = {};
--
Args = {"Player"};
Function = function(speaker, args)
local player = args[1]
local char = player.Character
char.Head.Transparency = 1
char.Head.face.Transparency = 1
end;
UnFunction = function(speaker, args)
end;
--
};
{
Name = "ragdoll";
Aliases = {};
Prefixes = {settings.Prefix};
Rank = 3;
RankLock = false;
Loopable = false;
Tags = {};
Description = "";
Contributors = {};
--
Args = {"Player"};
Function = function(speaker, args)
local player = args[1]
local char = player.Character
local hum = char:WaitForChild("Humanoid")
hum:ChangeState'Physics'
end;
UnFunction = function(speaker, args)
end;
--
};
-----------------------------------
{
Name = "";
Aliases = {};
Prefixes = {settings.Prefix};
Rank = 1;
RankLock = false;
Loopable = false;
Tags = {};
Description = "";
Contributors = {};
--
Args = {};
--[[
ClientCommand = true;
FireAllClients = true;
BlockWhenPunished = true;
PreFunction = function(speaker, args)
end;
Function = function(speaker, args)
wait(1)
end;
--]]
--
};
-----------------------------------
};
return module
Any help would be much appreciated!