Problem with GetRoleInGroup, and GetRankInGroup

Hello!

There is a problem with GetRoleInGroup And GetRankInGroup

GetRoleInGroup Attempt Code 1:

script.Parent.ClickDetector.MouseClick:Connect(function()
	local sus,err = pcall(game.Players.LocalPlayer:GetRoleInGroup(4978658) >= 17)

	if sus then
		script.Parent.TweenScript.Disabled = false
	end
	if err then
		print(err..", Not worked.")
	end
end)

Error:
E1
GetRoleInGroup Error Attempt 2:

script.Parent.ClickDetector.MouseClick:Connect(function()
	if game.Players.LocalPlayer:GetRoleInGroup(4978658) >= 17 then
		script.Parent.TweenScript.Disabled = false
	end
end)

Error:
E2
GetRankInGroup Attempt Code 1:

script.Parent.ClickDetector.MouseClick:Connect(function()
	if game.Players.LocalPlayer:GetRankInGroup(4978658) >= 17 then
		script.Parent.TweenScript.Disabled = false
	end
end)

Error:
Er3

script.Parent.ClickDetector.MouseClick:Connect(function()
	local sus,err = pcall(game.Players.LocalPlayer:GetRankInGroup(4978658) >= 17)

	if sus then
		script.Parent.TweenScript.Disabled = false
	end
	if err then
		print(err..", Not worked.")
	end
end)

Error:
E4

There are errors I can’t fix it, is there a way to fix it?
I used pcall for both so that does not work.
Is there anyway to fix this?

LocalPlayer is nil to the server. The argument for MouseClick listeners is the player who clicked.

script.Parent.ClickDetector.MouseClick:Connect(function(player)
    if player:GetRankInGroup(4978648) >= 17 then
        -- Tween script
    end
end)

Instead of disabling/enabling scripts directly, just do the tweenscript in the listener.

Another Error has poped up…
ER

Roblox servers are probably down right now.