Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I made this script. It is my first script. Did I do a good job?

Asked by 5 years ago
    local SD = BrickColor.new("Medium stone grey")
    local ET = BrickColor.new("Cool yellow")
    local MD = BrickColor.new("Bright bluish green")
    local CD = BrickColor.new("Bright orange")
    local FP = BrickColor.new("White")
    local CI = BrickColor.new("Really black")
    local CE = BrickColor.new("Black")
    local DEA = BrickColor.new("Pastel light blue")
    local DoR = BrickColor.new("Mulberry")
    local EC = BrickColor.new("Grime")
    local IA = BrickColor.new("Crimson")
    local ISD = BrickColor.new("Dusty Rose")
    local MAD = BrickColor.new("Deep orange")
    local MTF = BrickColor.new("Storm blue")
    local ScD = BrickColor.new("Deep blue")
local rankTbl = {
    -- format, userid = rank 
    [26332121] = "O5-2 (Overseer)", -- Tolly
    [117372267] = "Site Command", -- Lofe
    [84185807] = "O5-X", -- Omsiese
    [311774526] = "Class-D", -- JackPlaysRBYT
    [51555560] = "Level-1", -- Bilkevin
    [26331361] = "Administrator" -- Tictac
    }
local srankTbl = {
    [26331361] = "Creator", -- Tictac67
    [26332121] = "Developer", -- Tolly67p
    [117372267] = "Head Developer" -- Lofe
}
local teamTbl = {
    [26331361] = MD, -- Tictac
    [26332121] = ET, -- tolly
    [117372267] = SD, -- MINECRAFT_LOLBUILDZ
    [51555560] = FP, -- Bilkevin
    [311774526] = CD, --JackPlaysRBYT
    [84185807] = FP, -- Omsiese
    [94578900] = CI, -- Bronygrim
    [37887461] = FP, -- DoctorWhoDH
}
game.Players.PlayerAdded:Connect(function(plr)
    local stats = Instance.new("IntValue")
    stats.Name = "leaderstats"
    local srank = Instance.new("StringValue")
    srank.Name = "Game Rank"
    srank.Value = rankTbl[plr.UserId] or "N/A"
    srank.Parent = stats
    local rank = Instance.new("StringValue")
    rank.Name = "Rank"
    rank.Value = srankTbl[plr.UserId]  or "Guest" -- if rankTbl[plr.UserId] is nil pass 'N/A'
    rank.Parent = stats -- safe to do since stats has a nil parent ie not ingame
    plr.TeamColor = teamTbl[plr.UserId]
   -- set stats parent after setup is complete
    stats.Parent = plr
end)

0
Yeah man, good job for a first script. But, I don't think it's your first script. KingLoneCat 2642 — 5y
0
Why? I made loads but this is the first one I am proud of tictac67 96 — 5y
0
Tbh, you're supposed to be asking for help here, not praise. FlynnXRider 4 — 5y
0
I think hes asking for feedback on the quality of the script, and yeah it's not your first script man c; TiredMelon 405 — 5y
View all comments (2 more)
0
It is the first one I completed and works fully tictac67 96 — 5y
0
nice script but you only use 'local' if you want the variable to be in a function worklok -24 — 5y

Answer this question