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
|
  |
| Joined: 11 Oct 2010 |
| Total Posts: 369 |
|
| |
|
saka34
|
  |
| Joined: 11 Oct 2010 |
| Total Posts: 369 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 11 Oct 2010 |
| Total Posts: 369 |
|
| |
|
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 |
|
|