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

Please help me fix this module for loading a system?

I cannot stop my script from printing: 13:47:42.610 - Using Checko 13:47:42.611 - This is a unlicenced game 13:47:42.612 - The creator Id Is: 0 <--- used for loading problems 13:47:42.612 - 1433803989 <-- Place Id 13:47:42.613 - 570245554 <--- Game Id

I need help please.

Loader Script:

module = require(workspace.MainModule) -- will be numbers soon
module.Plan("Dev")

MainModule:

local module = {}
local devtable = {3889301,3889301,0}
local Standardtable = {3889301}
local Premiumtable = {3889301}
local Enterprisetable = {3889301}
--<<<< Checking for licence >>>>----
function check(num)
for _,v in pairs(devtable) do
if v == num then
return true
end;
end;
end
function module.Plan(arg)
if arg == "Dev" and check(game.CreatorId) == true then
warn("This game uses Checko")
warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
warn("Dev mode activated")
warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")

-- load
else
	warn("Using Checko")
	warn("This is a unlicenced game")	
	warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
	warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	
	
end;

end
----<<<< Checking for licence >>>>----
function check(num)
for _,v in pairs(Standardtable) do
if v == num then
return true
end;
end;
end
function module.Plan(arg)
if arg == "Standard" and check(game.CreatorId) == true then
warn("standard loaded.")
warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	
-- load
else
	warn("Using Checko")
	warn("This is a unlicenced game")
	warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
	warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	
end;

end
----<<<< Checking for licence >>>>----
function check(num)
for _,v in pairs(Premiumtable) do
if v == num then
return true
end;
end;
end
function module.Plan(arg)
if arg == "Premium" and check(game.CreatorId) == true then
warn("premium loaded.")
warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	
-- load
else
	warn("Using Checko")
	warn("This is a unlicenced game")	
	warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
	warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	
end;

end
----<<<< Checking for licence >>>>----
function check(num)
for _,v in pairs(Standardtable) do
if v == num then
return true
end;
end;
end
function module.Plan(arg)
if arg == "Enterprise" and check(game.CreatorId) == true then
warn("enterprise loaded.")
warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	warn(game.CreatorType.." 0 = By user , 1 = by group")
-- load
else
	warn("Using Checko")
	warn("This is a unlicenced game")
	warn("The creator Id Is: "..game.CreatorId.." <--- used for loading problems")
	warn(game.PlaceId.. " <-- Place Id")
	warn(game.GameId.." <--- Game Id")
	
end;

end

return module

Please help.

1 comment

0

Any chance you can describe the problem better? What is your code supposed to do? What have you tried to do to debug it yourself?

1 answer

Maybe you didn’t put your UserId in the “devtable” on line 2 in the MainModule. I checked your profile for your UserId but it doesn’t match the numbers in the table, so...just put your UserId in the table, and make that the only number, as it won’t work for others anyways.

Also if you don’t know where the UserId is, it’s those numbers on the link on your Roblox profile page, or if you’re in studio, go to the Players service,find your player, and in the properties it should have your UserId.

1 comment

0

I put the GroupID

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