So I have been working on my plugin and I got a error saying:
and the code is basically:
!
so I dont understand why it gives an error because theres a function called MainFunc and it has a parameter.
Or you cant pass parameters on functions connected to :Connect()?
and also
why does
StraightBt.MouseButton1Click:Connect(MainFunc(straightT))
SlopeBt.MouseButton1Click:Connect(MainFunc(slopeT))
RturnBt.MouseButton1Click:Connect(MainFunc(RturnT))
LturnBt.MouseButton1Click:Connect(MainFunc(LturnT))
LoopBt.MouseButton1Click:Connect(MainFunc(loopT))
EndBt.MouseButton1Click:Connect(MainFunc(endT))
all these events fire when I save the plugin as a local plugin?
and also when I open studio