#Remote event problems

1 messages · Page 1 of 1 (latest)

pale fern
#

Im new to scripting and trying to learn remote events and button presses rn but my code is not working. I have two scripts here. one of them is suppose to send a event when Q button is pressed and the other one is suppose to see this and pick it up.

pale fern
#

wdym

valid spoke
#

the r is lowercase in one spot and uppercase in the other

#

varaible name's case need to match

#

otherise they are different varaibles

#

in this context, RemoteEvent is nil but remoteEvent is an actual remote event

#

the code you probably meant to write is remoteEvent:FireServer()

pale fern
#

lemme see

valid spoke
#

Comparisons require two equals, not one
It should be ....Visible == true...

#

Also that code can be simplified to

local frame = script.Parent.Frame

frame.Visible = not frame.Visible
pale fern
#

oh

valid spoke
pale fern
#

uhh

#

lost me

#

how would I do it

#

@valid spoke This right?

valid spoke
pale fern
#

is it fireClient or FireServer

valid spoke
#

oh sorry

#

its neither of those

#

The script yoru trying to send this event to is on the client

#

So you need to use a BindableEvent, not a RemoteEvent

pale fern
#

how do you do that

valid spoke
valid spoke
pale fern
#

k

valid spoke
pale fern
#

like this? @valid spoke

valid spoke
#

Did you also replace the FrameShowQ event with a bindable event?

pale fern
#

just :Fire

valid spoke
pale fern
#

i did he same name

#

i made sure to do that

pale fern
quick solar
quasi lake
pale fern
#

srry for not being on. it was getting late and I was tired @quick solar @quasi lake

quasi lake