#RemoteEvent will not fire when activated by a button?

14 messages · Page 1 of 1 (latest)

junior stratus
#

I have a bit of an odd issue!

    game.ReplicatedStorage.TempRemote2:FireServer()
        UIReferences.BackStoryFrame.ContinueButton.Activated:Connect(function()
        print("test")
    end)

^ runs as expected

       
    UIReferences.BackStoryFrame.ContinueButton.Activated:Connect(function()
        game.ReplicatedStorage.TempRemote2:FireServer()
        print("test")
    end)

^ does not work?

Why can I not run a RemoteEvent inside a button's connected function???

static epoch
#

Also are you clicking the button? Because you could probably use MouseButton1Click

junior stratus
#

the print connected to TempRemote2 on the server side does not work when it's within the ContinueButton's connected function, but it does work when it's not

static epoch
#

Hm, can you print before and after the firing? Does it print both times? If it prints test it should technically work fine. Everything is connected correctly server side right?

junior stratus
maiden tinselBOT
#

studio** You are now Level 2! **studio

junior stratus
#

Everything before and after the connected function works

#

it just appears to be the remote event fails to fire if it's in the function

granite cedar
#

Guis only work localy

#

not guis but input

next minnow
#

you did something wrong

#

not sure what but there is nothing obviously wrong here