Sorry about bad grammar in the title, the character limit is awful. The error message says: Text is not a valid member of Player "Players.supercatsauthor"
Here are both scripts:
**--Localscript in StarterGui inside a text button waiting for a name to be typed into a textbox.**
local currentcamera = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local event = game.ReplicatedStorage.Events:WaitForChild("Name_Server")
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.Name_Box.Text ~= "" then
local nametag = script.Parent.Parent.Name_Box
player.Character.Head.BillboardGui.TextLabel.Text = nametag.Text
event:FireServer(player, nametag.Text)
print("fired")
local ingame = script.Parent.Parent.Parent.Parent:WaitForChild("In-Game_GUI")
ingame.Enabled = true
repeat wait()
currentcamera.CameraType = Enum.CameraType.Follow
until currentcamera.CameraType == Enum.CameraType.Follow
script.Parent.Parent.Position = UDim2.new(0.242, 0,-0.636, 0)
script.Parent.Parent.Parent.LocalScript.Disabled = true
script.Parent.Parent.Parent.Enabled = false
else
player.Character.Head.BillboardGui.TextLabel.Text = "Bob"
event:FireServer(player, "Bob")
print("fired")
local ingame = script.Parent.Parent.Parent.Parent:WaitForChild("In-Game_GUI")
ingame.Enabled = true
repeat wait()
currentcamera.CameraType = Enum.CameraType.Follow
until currentcamera.CameraType == Enum.CameraType.Follow
script.Parent.Parent.Position = UDim2.new(0.242, 0,-0.636, 0)
script.Parent.Parent.Parent.LocalScript.Disabled = true
script.Parent.Parent.Parent.Enabled = false
end
end)
**--Script in serverscriptservice**
local event = game.ReplicatedStorage.Events:WaitForChild("Name_Server")
event.OnServerEvent:Connect(function(player, name)
print("received")
player.Character.Head.BillboardGui.TextLabel.Text = name.Text
print("through")
end)

1 comment
instead of doing fireserver(player, something_else) just do fireserver(something_else) without the player keep everything else the same