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 » Scripters
Home Search
 

Re: Name Changing GUI

Previous Thread :: Next Thread 
saka34 is not online. saka34
Joined: 11 Oct 2010
Total Posts: 369
05 Aug 2015 01:22 PM
I know how to set up a GUI. No help needed there. However, I don't know how to make a name changing GUI. I know you would have to make a fake head and create a model and make a humanoid and also name the model. Problem is, I don't know how to do that. I used my skills to get this code from my admin script:


local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1))
for i, v in pairs(plrz) do
coroutine.resume(coroutine.create(function()
if v and v.Character and v.Character:findFirstChild("Head") then
for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
local char = v.Character
local mod = Instance.new("Model", char) mod.Name = msg:sub(chk1+1)
local cl = char.Head:Clone() cl.Parent = mod local hum = Instance.new("Humanoid", mod) hum.Name = "NameTag" hum.MaxHealth = 0 hum.Health = 0
local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
char.Head.Transparency = 1
end
end))
end
end

However, I don't know which parts I should change for my purpose. Help?
Report Abuse
saka34 is not online. saka34
Joined: 11 Oct 2010
Total Posts: 369
05 Aug 2015 01:37 PM
bump
Report Abuse
saka34 is not online. saka34
Joined: 11 Oct 2010
Total Posts: 369
05 Aug 2015 02:09 PM
bump
Report Abuse
RegularTetragon is not online. RegularTetragon
Joined: 10 Oct 2009
Total Posts: 3085
05 Aug 2015 02:21 PM
Use a remote function.
http://wiki.roblox.com/index.php?title=API:Class/RemoteFunction
All you have to do is change the name of the Player's character.
No, you don't need a new head.


It's delightful, It's delicious, It's delovely!
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
05 Aug 2015 02:22 PM
Put a textbox and do whatever and put this in a local script inside of it:

script.Parent.Changed:connect(function()
game.Players.LocalPlayer.Character.MaxHealth = 0
game.Players.LocalPlayer.Character.Name = script.Parent.Text
end)

u sicko!
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
05 Aug 2015 02:23 PM
Oh wait:

script.Parent.Changed:connect(function()
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 0
game.Players.LocalPlayer.Character.Name = script.Parent.Text
end)

u sicko!
Report Abuse
Eauz is not online. Eauz
Joined: 23 Jul 2013
Total Posts: 2942
05 Aug 2015 02:23 PM
Disable View distant for now and health under the properties of game.Players and insert billboard gui on the players' heads. EZ
Report Abuse
Eauz is not online. Eauz
Joined: 23 Jul 2013
Total Posts: 2942
05 Aug 2015 02:24 PM
Disable View distant for name and health under the properties of game.Players then insert billboard gui on the players' heads. EZ
Report Abuse
saka34 is not online. saka34
Joined: 11 Oct 2010
Total Posts: 369
05 Aug 2015 03:06 PM
?
Report Abuse
saka34 is not online. saka34
Joined: 11 Oct 2010
Total Posts: 369
06 Aug 2015 04:11 PM
script.Parent.Changed:connect(function()
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 0
game.Players.LocalPlayer.Character.Name = script.Parent.Text
end)

I used this script. However, I'm not sure what's wrong about it. Help?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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