How To Make Humanoids Without GUI

From Legacy Roblox Wiki
Jump to navigationJump to search

By default, all Humanoid models have a GUI floating over their head that shows how much health they currently have, and what their name is.

This can be problematic in cases where you don’t want players to be able to see Humanoid models. In order to make it so that the GUI above the Humanoid's head is not displayed, you will have to set the Transparency of the Humanoid model’s head to 1. This will make both the GUI and the Humanoid's head invisible.

Now you might be thinking, “Well that’s great and all. But now my character/zombie/robot is running around without a head! Whatever shall I do?” In order to fix this problem, you will have to create a ‘fake head’ to take the place of the now invisible head.

First off, copy and paste the head and group it with the rest of the bits and pieces of the Humanoid model. Obviously, you’ll have to change the Transparency to whatever you need it to be (presumably 0, the default Transparency). Also make sure to move any decals from the original head onto this head. You can name the head whatever you’d like, but for the sake of this example, we will call it “FakeHead” It doesn’t matter where the head is positioned, so long as it is within the Humanoid model.

Now we are going to use the Weld object to position and attach the fake head. Simply stick this block of code at the beginning of a script inside the Humanoid model.

local weld = Instance.new("Weld")
weld.Parent = script.Parent.Head
weld.Part0 = script.Parent.Head
weld.Part1 = script.Parent.FakeHead

After the above script is ran, the model should look something like this.


All this is doing is creating a new Weld, and using it to attatch the fake head to the real head. There is no need to use CFrame, since Weld objects automatically put two objects they are welding togheter in the same position unless you state otherwise using the Weld object’s C0 and C1 properties.