Ad
Log in to vote
0

I made a custom chat gui but its not working, Why? help me!

Asked by 11 days ago

I made a game that like Windows Error Simulator but chat thing is not working. I tried make it with remote events but its still not working...
For Send Button:

script.Parent.MouseButton1Click:Connect(function(text)
    text = script.Parent.Parent.TextBox.Text
    game.ReplicatedStorage.Message:FireServer(text)
end)

For Server Script:

game.ReplicatedStorage.Message.OnServerEvent:Connect(function(text)
    game.ReplicatedStorage.Message:FireAllClients(text)
end)

For Label:

game.ReplicatedStorage.Message.OnServerEvent:Connect(function(text)
        script.Parent.Text = script.Parent.Parent.TextBox.Text
end)

Help Me, Please!

Answer this question