So i'm making a dog roleplay game, and I am pretty new to scripting. I went to get a RP name changer, but the head of my roblox character would keep appearing when I typed in my name. (I have made morphs, and when you morph it would make the character invisible) I do not know how to fix this, and also, I want to be able to type in my RP details, so it would be like this:

(Name) (Pack, gender) (Personality/traits)

But I could only fit in the name, and it wouldn't let me do ctrl + J. Here's the code:

script.Parent.FocusLost:connect(function(enter) if enter then v = game.Players.LocalPlayer 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 = script.Parent.Text
	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)

Can you help me with this?

5 comments

0

Can you put all the code in a block, otherwise it is hard to read as you missed some code

1

that end @ line 14 starts nowhere

0

Oh yes sorry

0

Ok so for some reason it wouldn't let me paste the whole code in, there WAS more to this.

0

But if someone could make me a RP name changer with the ability to make the head disappear and to use ctrl + J so that you could type in more characters, maybe that would be more helpful?