Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i fire a remoteevent from a client, to a client? [SOLVED]

Asked by 4 years ago
Edited by DeceptiveCaster 4 years ago

Okay so i have a part that talks and i want to make it so it says "Hello i am a talking part" and put it in the chatbox. (not the bubble chat i have that covered) what i mean is that it says it in bubble chat, and it also says it in the classic chat box. heres the code i used

-local script that fires the event-

script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.RemoteEvent:FireServer()-- already covered it does the bubble chat
    game.ReplicatedStorage.RemoteEvent:FireClient() --this (should) fire the chatbox message (not bubble)
end)

-local script that receives it-

game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function(player)
    game.StarterGui:SetCore("ChatMakeSystemMessage", {
        Text="Hello! I am a talking part.";
        Font=Enum.Font.SourceSansBold;
        Color=Color3.new(255,255,255);
        FontSize=Enum.FontSize.Size96;
      })
end)
0
You would actually use a BindableEvent, not a RemoteEvent. RemoteEvents are only capable of communication between the server and the client. DeceptiveCaster 3761 — 4y
0
Thanks evanultra01 38 — 4y

Answer this question