generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Name hide script makes head in torso?

Previous Thread :: Next Thread 
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 02:36 PM
Forgive me, I really suck with welding and character stuff. So I heavily edited this guys script to make an improved name hider. But when I test it, the head is in the character's torso. (LOL) What's wrong?

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(1)
fake = character.Head:clone()
character.Head.Transparency = 1
character.Head.face:destroy()
character.Head.CanCollide = false
fake.Name = "HeadSee"
fake.Parent = character
a = Instance.new("Weld", kk)
a.Part0 = kk
a.Part1 = character.Torso
fake.CFrame = CFrame.new(character.Head.Position)
gg = character.Torso.Neck:clone()
gg.Parent = character.Torso
fake.BrickColor = character.Head.BrickColor
end)
end)
Report Abuse
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 02:36 PM
I mean
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(1)
fake = character.Head:clone()
character.Head.Transparency = 1
character.Head.face:destroy()
character.Head.CanCollide = false
fake.Name = "HeadSee"
fake.Parent = character
a = Instance.new("Weld", fake)
a.Part0 = kk
a.Part1 = character.Torso
fake.CFrame = CFrame.new(character.Head.Position)
gg = character.Torso.Neck:clone()
gg.Parent = character.Torso
fake.BrickColor = character.Head.BrickColor
end)
end)
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
05 Jan 2014 02:41 PM
[ Content Deleted ]
Report Abuse
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 02:44 PM
@thedark

Yeah, I changed that too. Still not working.
Report Abuse
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 02:44 PM
Would switching Weld with a "Snap" help?
Report Abuse
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 04:07 PM
bump
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
05 Jan 2014 04:40 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(1)
fake = character.Head:clone()
fake.Name = "HeadSee"
fake.Parent = character
fake.CFrame=character.Head.CFrame
character.Head.Transparency = 1
character.Head.face:destroy()
character.Head.CanCollide = false
a = Instance.new("Weld", fake)
a.Part0 = fake
a.Part1 = character.Torso
a.C0 = CFrame.new(0,-1.5,0)
fake.BrickColor = character.Head.BrickColor
end)
end)
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
05 Jan 2014 04:43 PM
Ignore my last post, its simpler if your Part1 is redirected to the characters head and not Torso.

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(1)
fake = character.Head:clone()
fake.Name = "HeadSee"
fake.Parent = character
fake.CFrame=character.Head.CFrame
character.Head.Transparency = 1
character.Head.face:destroy()
character.Head.CanCollide = false
a = Instance.new("Weld", fake)
a.Part0 = fake
a.Part1 = character.Head
fake.BrickColor = character.Head.BrickColor
end)
end)
Report Abuse
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 04:57 PM
@jun

Thanks, I'll try it.
Report Abuse
MarkMcBlox is not online. MarkMcBlox
Joined: 04 May 2013
Total Posts: 873
05 Jan 2014 04:59 PM
Isn't it also possible to hide the player name, along with the health bar by setting the NameOcclusion in their humanoid to "OccludeAll"?
Report Abuse
LuaDebugger is not online. LuaDebugger
Joined: 29 Oct 2013
Total Posts: 5593
05 Jan 2014 05:00 PM
@Jun

It worked! Thank you!
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
05 Jan 2014 05:02 PM
Every customized GUI that comes with the head hides once the transparency is set to 1.

And welcome @Mark, goodluck
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
05 Jan 2014 05:02 PM
@Lua welcome, @Mark, my previous message was to you lol

I got confused
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
05 Jan 2014 05:04 PM
You're trying to replace the head with a fake head is that right?

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
c:WaitForChild('Head')
h = c.Head
fake = h:clone()
h.Transparency = 1
h.face:Destroy()
fake.Parent = c

weld = Instance.new('Weld')
weld.Part0=h
weld.Part1=fake
weld.C0 = CFrame.new()
weld.C1 = CFrame.new()
weld.Parent = h
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image