Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Synapse Decompiler
- -- Purchase Here: https://brack4712.xyz/synapse/purchase/
- repeat
- wait()
- until game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)
- repeat
- wait()
- until game.ReplicatedStorage.PlayerData:FindFirstChild(game.Players.LocalPlayer.Name)
- repeat
- wait()
- until game.ReplicatedStorage.PlayerData[game.Players.LocalPlayer.Name]:findFirstChild("DataReady")
- local plr = game.Players.LocalPlayer
- if game.Players.LocalPlayer.TeamColor == game.Teams.MODE.TeamColor then
- script.Parent.Announcement.Visible = true
- end
- game.Players.LocalPlayer.Changed:connect(function()
- if game.Players.LocalPlayer.TeamColor == game.Teams.MODE.TeamColor then
- script.Parent.Announcement.Visible = true
- else
- script.Parent.Announcement.Visible = false
- end
- end)
- function timeFormula(seconds)
- local current = seconds
- local sec = 0
- local min = 0
- local hour = 0
- local day = 0
- while 0 <= current - 86400 do
- current = current - 86400
- day = day + 1
- end
- while 0 <= current - 3600 do
- current = current - 3600
- hour = hour + 1
- end
- while 0 <= current - 60 do
- current = current - 60
- min = min + 1
- end
- sec = current
- if day < 10 then
- day = "0" .. day
- end
- if hour < 10 then
- hour = "0" .. hour
- end
- if min < 10 then
- min = "0" .. min
- end
- if sec < 10 then
- sec = "0" .. sec
- end
- return day, hour, min, sec
- end
- while wait(1) do
- if game.Players.LocalPlayer.TeamColor == game.Teams.MODE.TeamColor or game.ReplicatedStorage.PlayerData[plr.Name].JailTime.Value > 0 then
- script.Parent.Announcement.Visible = true
- else
- script.Parent.Announcement.Visible = false
- end
- if game.ReplicatedStorage.PlayerData:FindFirstChild(plr.Name) and os.time() < game.ReplicatedStorage.PlayerData[plr.Name].JailTime.Value then
- local day, hour, min, sec = timeFormula(game.ReplicatedStorage.PlayerData[plr.Name].JailTime.Value - os.time())
- script.Parent.Announcement.Text = "JAIL TIME: " .. day .. ":" .. hour .. ":" .. min .. ":" .. sec
- script.Parent.Announcement.TextColor3 = Color3.new(1, 1, 0.4980392156862745)
- end
- if game.ReplicatedStorage.PlayerData:FindFirstChild(plr.Name) and game.ReplicatedStorage.PlayerData[plr.Name].PreviousPromotion.Value > os.time() then
- local day, hour, min, sec = timeFormula(game.ReplicatedStorage.PlayerData[plr.Name].PreviousPromotion.Value - os.time())
- script.Parent.Clock.Text = day .. ":" .. hour .. ":" .. min .. ":" .. sec
- script.Parent.Clock.TextColor3 = Color3.new(1, 1, 0.4980392156862745)
- elseif game.ReplicatedStorage.PlayerData[plr.Name].PreviousPromotion.Value <= os.time() and plr:GetRankInGroup(2976608) < 245 then
- script.Parent.Clock.Text = "PROMOTABLE"
- script.Parent.Clock.TextColor3 = Color3.new(0.6666666666666666, 1, 0.4980392156862745)
- elseif plr:GetRankInGroup(2976608) > 245 and plr:GetRankInGroup(2976608) < 249 then
- script.Parent.Clock.Text = "TAKE EXAM"
- script.Parent.Clock.TextColor3 = Color3.new(1, 0, 0)
- elseif plr:GetRankInGroup(2976608) == 255 then
- script.Parent.Clock.Text = "DARK LORD"
- script.Parent.Clock.TextColor3 = Color3.new(0, 0, 0)
- elseif plr:GetRankInGroup(2976608) >= 251 then
- script.Parent.Clock.Text = "MAX. RANK"
- script.Parent.Clock.TextColor3 = Color3.new(1, 0, 0)
- elseif plr:GetRankInGroup(2976608) >= 249 then
- script.Parent.Clock.Text = "EXPERIENCE NEEDED"
- script.Parent.Clock.TextColor3 = Color3.new(1, 0, 0)
- end
- if game.Players.LocalPlayer.TeamColor == game.Teams.MODE.TeamColor and game.ReplicatedStorage.PlayerData[plr.Name].JailTime.Value == 0 and game.ReplicatedStorage.Training.Value == false then
- count = 0
- for i, v in pairs(game.Players:GetChildren()) do
- if v.TeamColor == game.Teams.Hostiles.TeamColor then
- count = count + 1
- end
- end
- if count >= 7 then
- script.Parent.Announcement.Text = "Influx of hostiles. All members may move beyond the rocks. Do not enter the hostile cave."
- script.Parent.Announcement.TextColor3 = Color3.new(1, 0, 0)
- elseif count >= 3 then
- script.Parent.Announcement.Text = "All members must defend the entrances. Do not pass the designated limits."
- script.Parent.Announcement.TextColor3 = Color3.new(1, 0.6666666666666666, 0)
- else
- script.Parent.Announcement.Text = "No current threat, do not pass the designated limits."
- script.Parent.Announcement.TextColor3 = Color3.new(0.3333333333333333, 1, 0)
- end
- elseif game.Players.LocalPlayer.TeamColor == game.Teams.MODE.TeamColor and game.ReplicatedStorage.PlayerData[plr.Name].JailTime.Value == 0 and game.ReplicatedStorage.Training.Value == true then
- script.Parent.Announcement.Text = "TRAINING IN PROGRESS // PTS IS ACTIVE"
- script.Parent.Announcement.TextColor3 = Color3.new(1, 0.6666666666666666, 0)
- end
- script.Parent.AnnBackDrop.Text = script.Parent.Announcement.Text
- end
- game.ReplicatedStorage.Shutdown.Changed:connect(function()
- if game.ReplicatedStorage.Shutdown.Value == true then
- script.Parent.S1.Visible = true
- script.Parent.S2.Visible = true
- end
- end)
- game.ReplicatedStorage.Shutdown.Timer.Changed:connect(function()
- local sec = "SECONDS"
- if game.ReplicatedStorage.Shutdown.Timer.Value == 1 then
- sec = "SECOND"
- end
- script.Parent.S1.Text = "THE SERVER WILL SHUTDOWN IN " .. game.ReplicatedStorage.Shutdown.Timer.Value .. " " .. sec
- script.Parent.S2.Text = script.Parent.S1.Text
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement