Datastores and RemoteFunctions

InvokeClient will break after I use GetAsync in my code, but when I remove it, it invokes perfectly fine

You need to post the script so we can help you…

Are you using GetAsync in a pcall function, this could be causing it to break if it is not since code cannot crash if it is in a pcall function.

No I’m not, and I’m gonna close this because all I needed to do was put it in front of the invocation

Code if anyone cares for it:

local DataStoreService = game:GetService("DataStoreService")
local x = DataStoreService:GetDataStore("x")

local function g(player)
	while wait(10) do
		local s = game.ReplicatedStorage.x:InvokeClient(player)
		local PlayerDetails = x:GetAsync("PlayerDetails") 
		print(PlayerDetails) -- Printing address to see if it even accesses it