Korblox & Headless Script

I made a simple script to be used to toggle korblox & headless in your games.

When a user toggles headless or korblox off, it will reset their head/leg to their current one they are wearing, unless it is headless/korbox, then it will reset to the default head/leg.

--> Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

--> remotes
local Remotes = ReplicatedStorage:WaitForChild("Remotes")
local Headless = Remotes:WaitForChild("Headless")
local Korblox = Remotes:WaitForChild("Korblox")

--> Assets
local Assets = {
	["Headless"] = 134082579,
	["Korblox"] = 139607718,
	["Default"] = 0,
}

--> Functions
local function GetDescription(player: Player): HumanoidDescription
	return Players:GetHumanoidDescriptionFromUserId(player.UserId)
end

local function GetDescriptionFromCharacter(player: Player): HumanoidDescription
	local Character = player.Character
	if not Character then return GetDescription(player) end
	
	local Humanoid: Humanoid = Character:WaitForChild("Humanoid", 1)
	
	local Desc = Humanoid:GetAppliedDescription()
	
	return Desc
end

local function GetPlayerDefaultHead(player: Player)
	local Description: HumanoidDescription = GetDescription(player)
	
	local Head = Description.Head
	
	if Head == Assets["Headless"] then
		return Assets["Default"]
	else
		return Head
	end
end

local function GetPlayerDefaultLeg(player: Player)
	local Description: HumanoidDescription = GetDescription(player)
	
	local Leg = Description.RightLeg
	
	if Leg == Assets["Korblox"] then
		return Assets["Default"]
	else
		return Leg
	end
end

local function OnHeadless(player: Player, value: boolean)
	if value == true then
		local Character = player.Character
		if not Character then return end
		
		local Humanoid: Humanoid = Character:WaitForChild("Humanoid", 1)
		
		local newDesc = GetDescriptionFromCharacter(player)
		newDesc.Head = Assets["Headless"]
		
		Humanoid:ApplyDescription(newDesc)
	elseif value == false then
		local Character = player.Character
		if not Character then return end

		local Humanoid: Humanoid = Character:WaitForChild("Humanoid", 1)

		local newDesc = GetDescriptionFromCharacter(player)
		newDesc.Head = GetPlayerDefaultHead(player)

		Humanoid:ApplyDescription(newDesc)
	end
end

local function OnKorblox(player: Player, value: boolean)
	if value == true then
		local Character = player.Character
		if not Character then return end

		local Humanoid: Humanoid = Character:WaitForChild("Humanoid", 1)

		local newDesc = GetDescriptionFromCharacter(player)
		newDesc.RightLeg = Assets["Korblox"]

		Humanoid:ApplyDescription(newDesc)
	elseif value == false then
		local Character = player.Character
		if not Character then return end

		local Humanoid: Humanoid = Character:WaitForChild("Humanoid", 1)

		local newDesc = GetDescriptionFromCharacter(player)
		newDesc.RightLeg = GetPlayerDefaultLeg(player)

		Humanoid:ApplyDescription(newDesc)
	end
end

--> Connections
Headless.OnServerEvent:Connect(OnHeadless)
Korblox.OnServerEvent:Connect(OnKorblox)

You will need to create a local script that fires the remotes to toggle the headless and korblox.

5 Likes

I am sure people these days are rich enough to buy the 2 things themselves. And such scripts are becomming outdated by now… still… good try… i’ll give ya that.

3 Likes

The main use is for hangout games.
And not all people want to spend money on this game to buy a single item to use one part of it, so it’s not really “outdated”. It’s just a nice small feature for hangout games to have for players that do not have it, or for players who have it and don’t wanna wear it without going to the avatar page to remove it.

2 Likes

Not everybody is rich. If everybody was rich, there would be inflation, and inflation makes things more expensive.

These types of scripts aren’t necessarily outdated, since I see games using it still. Those games are still being updated, and they probably allow free korblox/headless because their playerbase enjoys the false sensation of not having limbs… or something.


Couldn’t you just make the head invisible?

6 Likes

Well thats common sense. I do have that as a matter of fact. I am just saying my thoughts on the script.

3 Likes

It’s more convenient to give the user Headless as it inherits the behavior of taking away the user’s face without having to add code.

4 Likes

There IS inflation, at least in the US. And it’s hard sometimes…

It’s not the same, man. Someone could be wearing a head that doesn’t have a correct hitbox, or makes the accessories look different. I have a head that makes Hats backwards.

1 Like

Wow great, a script people can put in their game to give themself headless and korblox with the click of a button rather than buying it…Copy and paste games are about to blow up after this :speaking_head: :fire:

2 Likes