if player:IsA("Player") then
player.Backpack.NameChange:FireClient(player)
print("7")
end
script.Changedd.OnServerEvent:connect(function()
if player.PlayerGui.ScreenGui.MainFrame.PlayerName.Text ~= "" then
player.leaderstats.Character.Value = player.PlayerGui.ScreenGui.MainFrame.PlayerName.Text
player.Character.Head.BillboardGui.MainFrame.PlayerLabel.Text = (player.PlayerGui.ScreenGui.MainFrame.PlayerName.Text)
print("8")
end
if player.PlayerGui.ScreenGui.MainFrame.Occupation.Text ~= "" then
player.leaderstats.Occupation.Value = player.PlayerGui.ScreenGui.MainFrame.Occupation.Text
player.Character.Head.BillboardGui.MainFrame.OccupationLabel.Text = (player.PlayerGui.ScreenGui.MainFrame.Occupation.Text)
print("9")
end
end)
end)
end)
local event = script.Parent.Parent.Parent.Parent.Parent.Backpack:WaitForChild("NameChange")
print("10")
event.OnClientEvent:connect(function(player)
print("11")
script.Parent.MouseButton1Click:connect(function(click)
print("12")
game.Workspace.NamingCore.Changedd:FireServer()
end)
end)
2 comments
press f9 in the game, and look through all the tabs to see what the error is, if there isn't an error, specify that there isn't.
Okay, there isn't any errors. It just doesn't print 8 or 9 on the server.