local function onPlayerAdded(player)
local success, currentExperience = pcall(function()
return experienceStore:GetAsync("user_" ..player.UserId)
end)
task.wait(3)
if currentExperience == "no" then
RemoteEvent6:FireClient()
else
RemoteEvent7:FireClient() -- this error
end
end
:FireClient() needs to have a Player argument,
Fixed Script:
local function onPlayerAdded(player)
local success, currentExperience = pcall(function()
return experienceStore:GetAsync("user_" ..player.UserId)
end)
task.wait(3)
if currentExperience == "no" then
RemoteEvent6:FireClient(player)
else
RemoteEvent7:FireClient(player) -- this error
end
end