How can I remove/hide the name of other players in-game. I want to make something similar to the names in "Murder Mystery" by Nikilis.
Please provide specific details & resources. I'm a slow learner.
Thanks, I truly appreciate your help.
Hiding names but keeping the head is quite simple. First things first, you can go into Solo mode on studio and copy the "Head" brick of your character. Go back into the edit mode studio (Flying camera), right click ServerStorage, and click "Paste into". The head should pop up. Name it "FakeHead". Now, put this script into the StarterPack (so even if they die it stays):
local player = script.Parent.Parent local char = player.Character local fakehead = game.ServerStorage:findFirstChild("FakeHead") if fakehead == nil then error("FakeHead not found!", 0) else local fakehead2 = fakehead:Clone() local head = char.Head --Variables defined... head.Transparency = 1 local weld = Instance.new("Weld", head) weld.Part0 = fakehead2 weld.Part1 = head --Part0 moves to be in the location of Part1. --Now for effect: Color the fakehead the same color as the player's original head. fakehead2.BrickColor = BrickColor.new(head.BrickColor.Name) --Since brickcolor.new reads text values, and the brickcolor itself is not a readable value, we can put .Name so it returns text. fakehead2.Parent = char --Put the fakehead in the character. --Now, add an effect so the map isn't cluttered with heads when people die: humanoid = char:findFirstChild("Humanoid") if humanoid.Health <= 0 and char:findFirstChild("FakeHead") ~= nil then --if health is 0 or (somehow) under, and the fakehead is still there, do the following: fakehead2:Destroy() end end
What that script does is have a preset and copied head, and forces it to be in the position of the original head. When the original head has transparency 1, it does not show the name, but they appear headless. You can't name the head "FakeHead" or else the player will die due to head being nil. This script comes in handy by creating a 'substitute head' to allow the head to be invisible, but still appear there without names.
The other answer uses occlusion which, if I remember correctly, makes the name invisible through walls if set to something other than NoOcclude.
Game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function() p.Character.Humanoid.NameOcclusion=2 end) end)
http://wiki.roblox.com/index.php?title=Connect#Methods http://wiki.roblox.com/index.php?title=Anonymous_function http://wiki.roblox.com/index.php?title=PlayerAdded_(Event) http://wiki.roblox.com/index.php?title=CharacterAdded_(Event) http://wiki.roblox.com/index.php?title=NameOcclusion_(Property)