Hello! I’m trying to make a command where if a player says headless, it gives the player the headless head. Then if the player says unheadless, it will return to their normal head that they originally had on their avatar. I’ve tried splitting them into two separate functions and still not working.
helps are appreciated!
local headlessRemote = game:GetService("ReplicatedStorage").Remotes.Headless
headlessRemote.OnServerEvent:Connect(function(player, mode)
local char = player.Character
local Humanoid = char:WaitForChild("Humanoid",1)
local descriptionClone = Humanoid:GetAppliedDescription()
local prevHead = descriptionClone.Head
local prevFace = descriptionClone.Face
if mode == "UnHeadless" then
descriptionClone.Head = descriptionClone.Head
descriptionClone.Face = descriptionClone.Face
Humanoid:ApplyDescription(descriptionClone)
elseif mode == "Headless" then
descriptionClone.Head = 15093053680
descriptionClone.Face = 0
Humanoid:ApplyDescription(descriptionClone)
end
end)