Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Prints false when everything is correct?

local bb=3;local cb=7;local db=5;local _c=0;local ac=8;local bc=9;local cc=6;

local z = 2
local v = 2
local p = 3
local m = 4
local n = 45
local b = 7

local e = z..v..p..m..n..b




if game.Players.LocalPlayer:GetRankInGroup(""..bb..cb..db.._c..ac..bc..cc) == 255 and game.Players.LocalPlayer.userId ==(e) then
	print("True")
	else print("False")
end

So basically its meant to get there rank then check their user id but it keeps printing false when that is my user id?

2 comments

0

userId is a number. The concatenate operator is for strings so print("2" == 2) is false. you need print(2 == 2).

1 answer

Hi. I presume, the reason why it says false is because you are not in the group, nor your ID is the one that is in the script. Either both of them or just one. Now to fix that, you will have to change the ID in the script.

local bb=3;local cb=7;local db=5;local _c=0;local ac=8;local bc=9;local cc=6;

local z = 2
local v = 2
local p = 3
local m = 4
local n = 45
local b = 70 --I changed the "7" to "0" since in your profile it has a 0.

local e = z..v..p..m..n..b




if game.Players.LocalPlayer:GetRankInGroup(""..bb..cb..db.._c..ac..bc..cc) == 255 and game.Players.LocalPlayer.userId ==(e) then
    print("True")
    else print("False")
end


This should make it work, hopefully...

This discussion is preserved as it was. New answers, comments, and votes are closed.