Why does this RemoteEvent script only work in Studio?
I am trying to learn RemoteEvent
's, I thought I got it to work but this only work's in studio, any suggestions on how to fix it? Output shows no errors, and doesn't print Clicked
or Fired
even when I use FireAllClients()
in the Command Bar.
By the way FilteringEnabled
is set to true.
Any help appreciated.
Script to fire it:
1 | local Model = game.Workspace.Model |
2 | local Event = Model.RemoteEvent |
4 | script.Parent.MouseButton 1 Click:connect( function () |
Script for when it's fired:
1 | script.Parent.OnClientEvent:connect( function () |
3 | local m = Instance.new( "Message" ,workspace) |
4 | m.Text = "Test worked." |