how would I make this RemoteEvent run With a ClickDetector?
I made a button script and everything is working I think the event is not firing here is the LocalScript in the serverscriptservice.
1 | local clickdetector = game.Workspace.pully.MeshPart.ClickDetector |
2 | clickdetector.MouseClick:Connect(( function () |
3 | game.Workspace.RemoteEvent:FireServer() |
Then i have a script inside of an RemoteEvent named RemoteEvent. There is the script (it is in workspace)
01 | local pully = game.Workspace.pully |
02 | game.Workspace.RemoteEvent.OnServerEvent:Connect( function () |
06 | pully.PrimaryPart = pully.primary_part |
11 | pully:SetPrimaryPartCFrame(Vector 3. new(- 23.536 , 10.517 , - 23.911 )) |
My guess is that I'm not firing the event I asked a question before this about if I can use ClickDetectors in meshes I believe it was taken down but it was answered yes