of     1   

xCrystalGem
#208287303Thursday, January 26, 2017 9:02 PM GMT

I'm familiar with using Remote Events and functions, but when I attempted this, it didn't work. Can someone correct where I went wrong? Details: A name GUI is obtained when a Part in a morph (hence, a roleplay game) is touched. The RemoteEvent in Workspace has the script that's supposed to allow you to change your name, and in the Part of the morph,the Server Script fires the event. In my case, something had gone wrong. RemoteEvent in Workspace: script.Parent.OnServerEvent:connect(function(player) 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) Server Script in GUI: debounce = false script.Parent.MouseButton1Down:connect(function() if debounce == false then debounce = true game.Workspace.RPNameGUI:FireServer() wait(3) debounce = false end end)
SSSpencer413
#208288793Thursday, January 26, 2017 9:34 PM GMT

Server Script in Gui? Are you even serious? Local Script is what I hope you meant. #code if forum_post == done then Forum_Posts_count = Forum_Posts_count + 1 end
HarveyyyST
#208288887Thursday, January 26, 2017 9:36 PM GMT

Haha! Puts a local script in a server script. GG. If its in the players GUI, then its local. Hense *local* script. Try a localscript ;p 1,370
xCrystalGem
#208297716Thursday, January 26, 2017 11:53 PM GMT

Oh sorry! yes, I meant LocalScript. I'm still having the issue though.
newdumbman2
#208298085Thursday, January 26, 2017 11:59 PM GMT

I really didnt read your script but could it be this? for a, mod in pairs(v.Character:children()) do FIX: for a, mod in pairs(v.Character:GetChildren()) do
xCrystalGem
#208298301Friday, January 27, 2017 12:03 AM GMT

It seems as if now the problem is that the names wont show up for each player. I'm bad at explaining but, I went to test the server as two players, and I renamed both of the players through the GUI as two different names. However, to each player, they can't see each other's names. It's just blank.
xCrystalGem
#208299353Friday, January 27, 2017 12:19 AM GMT

^ This however, seems to be happening with every name GUI I try

    of     1