This is some script from the RemoteFunction and RemoteEvent tutorial on the wiki. I've followed all the instructions however it's still not working. I dont believe I'm missing anything... Please help
-- Inside Local Script
local clickDetector = Instance.new("ClickDetector")
clickDetector.Parent = game.Workspace.ColorBrick
clickDetector.MouseClick:connect(function(hit)
game.Workspace.MyServerEvent:FireServer()
end)
-- Inside Server Script
local event = Instance.new("RemoteEvent") -- creates the event object
event.Parent = game.Workspace -- puts the event into the Workspace
event.Name = "MyServerEvent" -- giving a name to the event so we can fire it specifically elsewhere
event.OnServerEvent:connect(function() -- define the function that will be called when the event is fired
-- this is where you put all the code you want to run when the event is fired
game.Workspace.ColorBrick.BrickColor = BrickColor.Random()
end)

1 comment
Looks fine to me. Where is the Local Script located?