Problem with HD Admin ragdoll command

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!

You cannot change the state of a Humanoid on the server unless the server has ownership of that assembly. This means you would need to fire a remote to the target’s client and from their client you can change their state.

1 Like

Thank you so much, I didn’t realise that, I was trying to do all of it upon the server!

Glad you were able to solve your issue, make sure to mark the post as the solution so other people know that it was solved already.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.