Since this morning, I have been receiving this bug. This error did not occur up until now. And I have changed nothing in the code.
I did a simple warn from the same script as the RemoteFunction is Invoked.
This shows that it is, in fact, a local script from the client.
But somehow it says it isn’t.
Please help me with debugging this issue. I suspect it is an engine bug.
Now the weirdest thing is:. If I change the directory of the remote event, everything is fine.
(note that this is not the solution.)
EDIT: Once I change the position or name of the RemoteEvent, I get an error saying that the RemoteEvent is not a valid member anymore from the same script. Even though this line of code doesn’t even exist anymore,.
Next to the error there is written - Server - DialogueClient:5 so I suspect the issue is actually originating from within that script and not the Dialog.LocalScript
Edit: Also I would like to ask for you to please clarify whether you’re using a RemoteFunction or a RemoteEvent as it’s very confusing to use them interchangeably
Edit2: @Michel2003g I think it would be best if I showed an example of how RemoteFunctions and RemoteEvents work:
RemoteFunction Example
LocalScript inside of StarterPlayerScripts:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteFunction = ReplicatedStorage:WaitForChild("RemoteFunction")
local message = remoteFunction:InvokeServer("Hello!")
print(message)
Server Script inside of ServerScriptService:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteFunction = ReplicatedStorage.RemoteFunction
remoteFunction.OnServerInvoke = function(player, message)
print(string.format("%s: %s", player.DisplayName, message))
return "Goodbye from the server!"
end
RemoteEvent Example
LocalScript inside of StarterPlayerScripts:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent")
remoteEvent:FireServer("Hello!")
remoteEvent.OnClientEvent:Connect(print)
Server Script inside of ServerScriptService:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage.RemoteEvent
local function onServerEvent(player, message)
print(string.format("%s: %s", player.DisplayName, message))
remoteEvent:FireClient(player, "Goodbye from the server!")
end
remoteEvent.OnServerEvent:Connect(onServerEvent)
Yeah I know how they work and I am using a RemoteFunction.
It used to work all fine but now i get this error. Now the weirdest thing is. When I disable the script i still get the same error from that script. HOW?!
Now the error comes from the same script as I warned “I try to make conversation.” and as you can see this is a local script and comes from the client.
If you haven’t changed the scripts involved in any way and you’re now suddenly experiencing this error then you might be experiencing some kind of bug although I would advise to be extra sure that’s the case first by thoroughly checking your scripts before making a report
If a script is disabled you shouldn’t be getting any errors in your output originating from that script unless you accidentally duplicated the script and only disabled one of them