So I'm making a SCI, I wrote this simple code, it is as follows
local gid = sciconfig.GroupId
local on_config = false
local staff = sciconfig.StaffRank
local Player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if Player:GetRankInGroup(gid.Value) == staff.Value then
This is the problematic part because it was working without intvalues, I don't know why this is the case, so can somebody tell me what's happening please and how to fix it, thanks.

3 comments
uuhhh, is there any errors in the output?
Also forgot to mention, no errors, no nothing.
Do it works on the real game?