local game = {
PlayerService = {};
}
function game:NewInstance(className, Parent, InstanceName)
if className == "Folder" then
Parent[InstanceName] = {Name = InstanceName; ClassName = "Folder"}
return Parent[InstanceName]
end
if className == "IntValue" then
Parent[InstanceName] = {Name = InstanceName; ClassName = "IntValue"; Value = 0}
return Parent[InstanceName]
end
if className == "BoolValue" then
Parent[InstanceName] = {Name = InstanceName; ClassName = "BoolValue"; Value = false}
return Parent[InstanceName]
end
end
for i = 1, 4 do
game.PlayerService["cvullo"..i] = {Name = "cvullo"..i;isAdmin = {Name = "isAdmin";ClassName = "BoolValue";Value = false};UserId = i}
end
function game:GetService(thing)
return game[thing]
end
for i, v in pairs(game:GetService("PlayerService")) do
if v.UserId == 1 then
v.isAdmin.Value = true
end
end
local Players = game:GetService("PlayerService")
local plr = Players.cvullo1
local s = game:NewInstance("Folder", plr, "Stats")
local cash = game:NewInstance("IntValue", s, "Cash")
cash.Value = 5
if plr.isAdmin.Value == true then
cash.Value = cash.Value * 27
end
print(plr.Stats.Cash.Value)
To embed this project on your website, copy the following code and paste it into your website's HTML: