|
I tried to do a server side script but with filtering enabled the event is not called.
So then i tried to put in a local script. Sence it is in the workspace it would not work but that is what the wiki says.
Here is my two scripts
Local script
script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent.RemoteEvent:FireServer()
end)
Server Script
script.Parent.RemoteEvent.OnServerEvent(function()
print "sucses"
end) |
|
|
|
You are wasting your time because it didn't work |
|
|
|
I did some editing because i had an error that didn't fix the problem.
_____________________________________________________________________
Local
script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent.RemoteEvent:FireServer()
end)
______________________________________________________________________
Server
script.Parent.RemoteEvent.OnServerEvent:connect(function()
script.Parent:Destroy()
end) |
|
|
My custom click detector does work. |
|
|
I did it with filtering enabled on a game and it did nothing so i don't know what you are talking about. |
|
|
same, didnt work 4 me either
#Strikin' |
|
|
If it didn't work for either of you then you were simply doing it wrong.
Here is a video of it working, it can also be used for a set up guide.
https://www.youtube.com/watch?v=EAMqzAMXMcY |
|
BanTechJoin Date: 2015-12-31 Post Count: 886 |
Lol worked perfectly on my end. It's not exactly difficult to set up. But yeah connect the event handler on the client side and then it's up to you if you want to do remote events back to the server, or do some more stuff client side, such as displaying a gui |
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
You handle the clickdetector client side instead of serversided. Insert the detector into the brick from the client when do it that way. |
|
|
I know what i would have to do but it is ok now because i am working on something else.
Do not bump this thread (but you wont listen will you) ,because it is not needed. |
|