when I load in on the game the access card wont load in well heres the code there are no errors. will only load in on studio

local rs = game:WaitForChild("ReplicatedStorage")
local fa = rs.AccessCards.FullAccess
game.Players.PlayerAdded:Connect(function(player)
	wait(0.2)
	local leaderstats = player:WaitForChild("leaderstats")
	local players = game.Players.LocalPlayer
	if leaderstats.Rank.Value == ("Dev") then
		local clone = fa:Clone()
		clone.Parent = player.Backpack
	end
	if leaderstats.Rank.Value == ("Mayor Chill") then
		local clone = fa:Clone()
clone.Parent = player.Backpack
	end
end)

1 comment

0

Is it on the client or on the server?