Advertisement
Fabi_Todi

Roleplay Name Script For Roblox Studio

May 10th, 2023
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. script.Parent.FocusLost:connect(function(enter)
  2. if enter then
  3. v = game.Players.LocalPlayer
  4. for a, mod in pairs(v.Character:children()) do
  5. if mod:findFirstChild("NameTag") then
  6. v.Character.Head.Transparency = 0 mod:Destroy()
  7. end
  8. end
  9.  
  10. local char = v.Character
  11. local mod = Instance.new("Model", char)
  12. mod.Name = script.Parent.Text
  13. local cl = char.Head:Clone()
  14. cl.Parent = mod
  15.  
  16. local hum = Instance.new("Humanoid", mod)
  17. hum.Name = "NameTag"
  18. hum.MaxHealth = 0
  19. hum.Health = 0
  20.  
  21. local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
  22. char.Head.Transparency = 0
  23. end
  24. end)
  25.  
  26. If this dosent work sorry.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement