I'm using IsInGroup() for my game, and it isn't exactly working. Can someone help me?
game.Players.PlayerAdded:Connect(function()
local id = 5150581
if game.Players.LocalPlayer:IsInGroup(id) then
game.Lighting:WaitForChild("Yoghurt").Parent = game.Players.LocalPlayer.Backpack
end
end)

4 comments
There is no error by the way.
It just doesn't work, HTTP requests and API Services are both on.
Local script or a server script?
its a server script since the first line is playeradded function, local scripts dont have that really since they are created for the player