Ive converted my name GUI script to FE. It adds an " | " sign to the name, however it doesnt show it to other players.
First part, aka LocalScript.
script.Parent.MouseButton1Down:Connect(function() local player = game.Players.LocalPlayer local takeme = script.Parent local hands = player.Character:WaitForChild("Part") if hands then print 'yeee name exists' local nyee = hands.BillboardGui.NAME nyee.Text = (nyee.Text.. " | ") local rm = script.Parent.RemoteEvent rm:FireServer(player,takeme) end end)
I have a custom part inside the player, inside that part is a BillboardGui. The custom part appears as soon as the player spawns.
Second part,this time being a Script.
local rm = script.Parent.RemoteEvent rm.OnServerEvent:Connect(function(player,takeme) end)
I've tried taking half the code out of the localscript (i took out everything after 'if hands then') and putting it into the other script, however it quit working at all.
The script works partially, even outputs the printed text but just doesn't show the name to other players.
If you have FE enabled anything you do on a local script will not effect the surrounding world of yours. Only client sided changes will effect the client and no one else. Client makes changes --> Server Checks if its okay, if so ---> All Clients Get The Change. Anway, You'll want to make the name change in the server script you have that runs when the RemoteEvent is activated. First lets change this local script. I saw you said you took half and put it in the other but I dunno if you tried this.
script.Parent.MouseButton1Down:Connect(function() local player = game.Players.LocalPlayer local takeme = script.Parent local hands = player.Character:WaitForChild("Part") if hands then print ('yeee name exists') rm:FireServer(player, hands, takeme ) end end)
Now the server Script.
local rm = script.Parent.RemoteEvent rm.OnServerEvent:Connect(function(player, hands, takeme ) local nyee = hands.BillboardGui.NAME nyee.Text = (nyee.Text.. " | ") local rm = script.Parent.RemoteEvent end)
Assuming the script is also in the same location as the local script this is what i've done. If the script is somewhere else please inform me and I will make the corrections necessary.