Show me the script you’re using. Specifically the function where the error is happening
i’m trying to figure out how to make an event - function connection
why would it say it’s not a valid member
The reason as to why it doesn’t work, its because your not connecting it to a function, your basically setting the Event to a variable, and since MouseButton1Click()
in an event you would have to do something like this:
script.Parent.MouseButton1Click:Connect(sacri)
the same way worked for a remotefunction receiver though and i don’t get why mousebutton1 doesn’t exist when it’s being taken advantage of
So it still doesn’t work?
char
You can’t use = because events are like signals. To “listen” to those signals, you use :Connect() so your function gets called every time the signal happens.
Using = would mean replacing the whole signal, not just listening to it.
With a RemoteFunction, it’s like you’re asking a question and getting one answer right away. You can use = because it’s just sending one message back and forth.
But with an event, it’s like a signal going off over and over. You need :Connect() to say, “Every time this happens, do something.” Using = here would break the signal, so :Connect() lets you listen to the signal instead of trying to replace it!
Events: Like a signal that goes off many times. Use :Connect() to say, “Every time this signal happens, do this thing!” Using = would mess up the signal.
RemoteFunction: Like asking a question and getting one answer right away. Using = works here because you’re just sending one message back and forth.
nah it works if i do it like that luv you bye
so when i replace the signal the signal is gone so it isn’t a valid member while i’m replacing it? cool
char
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.