Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"InvokeSever not a valid member of RemoteEvent" how do I fix this?

Asked by 4 years ago

I'm currently attempting to make my first game and this issue is with the player GUI, I tested this and clicked the menu button and that worked but inside of the menu the rebirthing button once clicked should say something like "Rebirth unsuccessful" but I get no change in the button and the error message: InvokeServer is not a valid member of RemoteEvent.

So the code is as follows: rebirthButton.MouseButton1Click:Connect(function() local result = replicatedStorage.Remotes.Rebirth:InvokeSever()

Can anyone explain to me why this is happening???

1 answer

Log in to vote
0
Answered by 4 years ago

You are using InvokeServer wich is a function from RemoteFunction, Make the RemoteEvent into a RemoteFunction

rebirthButton.MouseButton1Click:Connect(function() 
local result = replicatedStorage.Remotes.Rebirth:InvokeSever()
end)

also end the event

Ad

Answer this question