I've been trying to figure out how to use RemoteEvent
's, can someone tell me why this script won't work properly? It doesn't make the message or anything.
Script inside the RemoteEvent
:
script.Parent.OnServerEvent:connect(function() local m = Instance.new("Message",workspace) m.Text = "asd" end)
Script to fire it:
game.ReplicatedStorage.Events.RemoteEvent:FireServer()
Any help appreciated.
A Script won't run in ReplicatedStorage
.
Put the listening script into ServerScriptService
and refer to the event as game.ReplicatedStorage.Events.RemoteEvent
.