Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- GravityLegendary hacked into lapis
- local LapisLazuli;
- Lapis = {}
- Lapis.Ranked = {}
- Lapis.Core = {}
- Lapis.Core.Commands = {}
- Lapis.Sources = {}
- Lapis.Information = {}
- Lapis.Instances = {}
- Lapis.Instance = {}
- Lapis.Functions = {}
- Lapis.Pri = {}
- Lapis.Pri.Settings = {}
- Lapis.Core.Tablets = {}
- local key = '-'
- PriEnabled=false
- Lapis.Pri.Settings.AutoAdd={
- ['supersonicfan111'] = 'Created Lapis',
- };
- local Wires=true
- script.Name = 'Steven_Universe_Tablets_V1'
- Lapis.Ranked = {
- {['Name'] = 'supersonicfan111', ['Rank'] = 8, ['Description'] = 'Creator of Lapis Lazuli', ['Color'] = 'Teal', ['WaterRot'] = true, ['Image']='rbxassetid://237033460', inPri=true, notify=false};
- {['Name'] = 'djpootis2', ['Rank'] = 8, ['Description'] = 'Creator of Lapis Lazuli\'s alt', ['Color'] = 'Teal', ['WaterRot'] = true, ['Image']='rbxassetid://237033460', inPri=true, notify=false};
- {['Name'] = 'Nemean2000', ['Rank'] = 6, ['Description'] = 'Friend', ['Color'] = 'Teal', ['WaterRot'] = true, ['Image']='rbxassetid://237033460', inPri=true, notify=false};
- {['Name'] = 'dragonoid9999', ['Rank'] = 8, ['Description'] = 'Creator of Lapis Lazuli\'s alt', ['Color'] = 'Teal', ['WaterRot'] = true, ['Image']='rbxassetid://237033460', inPri=true, notify=false};
- {['Name'] = 'Firelord777', ['Rank'] = 8, ['Description'] = 'Creator of Lapis Lazuli\'s alt', ['Color'] = 'Teal', ['WaterRot'] = true, ['Image']='rbxassetid://237033460', inPri=true, notify=false};
- {['Name'] = 'masterepico', ['Rank'] = 6, ['Description'] = 'Creator of Lapis Lazuli\'s BFF', ['Color'] = 'Lime green', ['WaterRot'] = true, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=masterepico', inPri=true, notify=false};
- {['Name'] = 'LordRevorius', ['Rank'] = 2, ['Description'] = 'A good guy', ['Color'] = 'Teal', ['WaterRot'] = false, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=LordRevorius', inPri=true, notify=false};
- {['Name'] = 'SolarEnvironment', ['Rank'] = 1, ['Description'] = 'is optiplex', ['Color'] = 'New Yeller', ['WaterRot'] = true, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=SolarEnvironment', inPri=true, notify=false};
- {['Name'] = 'GravityLegendary', ['Rank'] = 8, ['Description'] = 'A good friend', ['Color'] = 'New Yeller', ['WaterRot'] = true, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=GravityLegendary', inPri=true, notify=false};
- {['Name'] = 'EutheniaSystem', ['Rank'] = 8, ['Description'] = 'Good Friend.', ['Color'] = 'Bright blue', ['WaterRot'] = true, inPri = true, notify=true},
- {['Name'] = 'NightOwlAce', ['Rank'] = 0, ['Description'] = 'A normal player (INPRI)', ['Color'] = 'Really blue', ['WaterRot'] = true, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=NightOwlAce', inPri=true, notify=false};
- {['Name'] = 'NotAshley', ['Rank'] = 3, ['Description'] = 'A good scripter, awesome friend', ['Color'] = 'Alder', ['WaterRot'] = true, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=NotAshley', inPri=true, notify=false};
- {['Name'] = 'areno2002', ['Rank'] = 2, ['Description'] = 'Good scripter, I admire him, too, :)', ['Color'] = 'Toothpaste', ['WaterRot'] = true, ['Image'] = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=areno2002', inPri=true, notify=false};
- {['Name'] = 'neontails190', ['Rank'] = -1, ['Description'] = 'A motherf\5\ucking idiot, FMs', ['Color'] = 'Black', ['WaterRot'] = false, ['Image'] = nil, inPri=false, notify=false};
- {['Name'] = 'SMOKEWEEDEVRYMLG360', ['Rank'] = 7, ['Description'] = 'Epic guy k', ['Color'] = 'Bright green', ['WaterRot'] = true, ['Image'] = nil, inPri=true, notify=false};
- {['Name'] = 'SBDESTROYER1', ['Rank'] = -2, ['Description'] = 'Lags servers for no reason, can go su\5\ck a cock <3', ['Color'] = 'Black', ['WaterRot'] = false, ['Image'] = nil, inPri=false, notify=false};
- {['Name'] = 'dogwarrior24', ['Rank'] = -1, ['Description'] = 'A motherf\5\ucking idiot, Banned the creator, Crashes and SD\'s servers', ['Color'] = 'Black', ['WaterRot'] = false, ['Image'] = nil, inPri=false, notify=false};
- {['Name'] = 'Vaeb', ['Rank'] = -2, ['Description'] = 'A motherf\5\ucking idiot, Banned the creator, Crashes and SD\'s servers', ['Color'] = 'Black', ['WaterRot'] = false, ['Image'] = nil, inPri=false, notify=false};
- {['Name'] = 'TheTrueRias', ['Rank'] = -1, ['Description'] = 'Roblox Locks EVERYTHING he can, because he uses a skid level 7 (probs Ro-Sploit <3)', ['Color'] = 'Black', ['WaterRot'] = false, ['Image'] = nil, inPri=false, notify=false};
- --{['Name'] = 'Suflet', ['Rank'] = -1, ['Description'] = 'Banned the creator of the admin ~supersonicfan111', ['Color'] = 'Black', ['WaterRot'] = false, ['Image'] = nil, inPri=false, notify=false};
- }
- Lapis.Wires = {
- ['supersonicfan111'] = {Tablets={}}
- }
- Lapis.Sources.Kick = function(plr)
- local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
- delay(1,function()
- pcall(function()
- h:remove()
- end)
- end)
- end
- Lapis.Sources.Crash = function(plr)
- if plr.Parent ~= game:service'Players' then
- Lapis.Sources.Kick(plr)
- else
- local s=Instance.new('Sound', plr)
- s.SoundId='rbxassetid://83594623'
- s.Pitch=1
- s.Volume=1
- repeat s:Play() wait() until s.IsPlaying == true
- end
- end
- Lapis.Players = {}
- Sync = {
- Updates = false;
- Remote=false;
- };
- Lapis.Information.RemoteLink = ''
- -- Sync Settings
- coroutine.resume(coroutine.create(function()
- while wait(5) do
- if Sync.Remote == true then
- if _G.AddRank then
- table.insert(Lapis.Ranked, _G.AddRank)
- _G.AddRank={}
- end
- loadstring(game:service'HttpService':GetAsync('https://preview.c9.io/supersonicfan111/lapislazuliremote/ControlPanel.lua'))()
- end
- end
- end))
- --Lapis.Information.Owner=getfenv().owner
- Lapis.Information.Version=1
- Lapis.Instance.new = function(class,properties)
- local cl=Instance.new(class)
- if properties ~= nil then
- for i,v in pairs(properties) do
- cl[i]=v
- end
- end
- return cl
- end
- Lapis.Instances.Version = Lapis.Instance.new('IntValue', {Parent=script, Value = Lapis.Information.Version, Name = 'Version'})
- Lapis.Core.Tablets = {}
- Lapis.Functions.GetColor = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v['Color']
- end
- end
- return 'Really blue'
- end
- Lapis.Functions.GetRank = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v['Rank']
- end
- end
- return 'UNKNOWN'
- end
- Lapis.Functions.SetRank = function(name, rank)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- v['Rank'] = rank
- end
- end
- end
- Lapis.Core.Output = function(player, text, color, img, func)
- if color==nil then color=Lapis.Functions.GetColor(player) end
- if text==nil then text='TEXT_ERROR (404: TEXT_NOT_FOUND)' end
- if img==nil then img=0 end
- if player==nil then return end
- local MODEL=Lapis.Instance.new('Model', {Parent=script})
- local TABLET=Lapis.Instance.new('Part', {Parent=MODEL,Name='Part2', BrickColor=BrickColor.new(color),formFactor=3, Anchored=true, Locked=true, CanCollide=false, Transparency=.7, Size=Vector3.new(1.8,1.8,1.8), TopSurface=0, BottomSurface=0})
- local TABLET2=Lapis.Instance.new('Part', {Parent=TABLET, Name='Part', BrickColor=BrickColor.new(color),formFactor=3, Anchored=true, Locked=true, CanCollide=false, Transparency=.4, Size=Vector3.new(1.5,1.5,1.5), TopSurface=0, BottomSurface=0})
- if player.Character and player.Character.Torso then
- pcall(function()
- TABLET.CFrame=player.Character.Torso.CFrame
- end)
- else
- TABLET.CFrame=CFrame.new(0,10,0)
- end
- local BBG=Lapis.Instance.new('BillboardGui', {Parent=TABLET, Adornee=TABLET, StudsOffset=Vector3.new(0,1.3,0), Size=UDim2.new(8,0,7.5,0)})
- local TEXT=Lapis.Instance.new('TextLabel', {Parent=BBG, Font='ArialBold', TextColor=TABLET.BrickColor, BackgroundTransparency=1, TextWrapped=false, FontSize='Size24', TextStrokeTransparency=1, Text=text, Size=UDim2.new(1,0,.5,0), Position=UDim2.new(0,0,.2,0)})
- local IMAGE=Lapis.Instance.new('ImageLabel', {Parent=BBG, BackgroundTransparency=1, Image=img, Size=UDim2.new(.3,0,.37,0), Position=UDim2.new(.35,0,0,0)})
- local CD=Lapis.Instance.new('ClickDetector', {Parent=TABLET, MaxActivationDistance=999999})
- CD.MouseClick:connect(function(p)
- if p.userId == player.userId then
- if func == nil then
- for i = TABLET.Transparency, 1, .1 do
- TABLET.Transparency=i
- TABLET2.Transparency=i
- TEXT.TextTransparency=i
- IMAGE.ImageTransparency=i
- TABLET.Size=TABLET.Size+Vector3.new(.1,.1,.1)
- TABLET2.Size=TABLET2.Size+Vector3.new(.1,.1,.1)
- wait()
- end
- TABLET:destroy''
- else
- for i = TABLET.Transparency, 1, .1 do
- TABLET.Transparency=i
- TABLET2.Transparency=i
- TEXT.TextTransparency=i
- IMAGE.ImageTransparency=i
- TABLET.Size=TABLET.Size+Vector3.new(.1,.1,.1)
- TABLET2.Size=TABLET2.Size+Vector3.new(.1,.1,.1)
- wait()
- end
- TABLET:destroy''
- func()
- end
- end
- end)
- table.insert(Lapis.Core.Tablets, {Player = player, Tab = TABLET, Tab2 = TABLET2})
- end
- Lapis.Core.Dismiss = function(player)
- for _,v in next,Lapis.Core.Tablets do
- if v.Player == player and v.Tab then
- v.Tab:destroy''
- end
- end
- end
- Lapis.Functions.GetWaterRot = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v['WaterRot']
- end
- end
- return true
- end
- Lapis.Functions.GetPri = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v['inPri']
- end
- end
- return false
- end
- Lapis.Functions.GetNotify = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v.Notify
- end
- end
- return true
- end
- Lapis.Functions.SetWaterRot = function(name, bool)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- v['WaterRot'] = bool
- end
- end
- end
- Lapis.Functions.GetReason = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v['Description']
- end
- end
- return 'A regular player'
- end
- Lapis.Functions.SetReason = function(name, str)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- v['Description'] = str
- end
- end
- end
- Lapis.Functions.SetPri = function(name, bool)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- v['inPri'] = bool
- end
- end
- end
- Lapis.Functions.SetColor = function(name, clr)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- v['Color'] = clr
- end
- end
- end
- Lapis.Functions.GetPlayer = function(msg, plr)
- local plrs = {}
- if msg == "me" then
- table.insert(plrs, plr)
- elseif msg == "all" then
- for _,v in pairs(game:service'NetworkServer':children()) do
- if v:IsA('StringValue') then
- v:remove()
- end
- if Lapis.Functions.GetRank(v:GetPlayer()) <= Lapis.Functions.GetRank(plr) or v:GetPlayer().Parent ~= game:service'Players' then
- table.insert(plrs, v:GetPlayer())
- end
- end
- elseif msg == "others" then
- for _,v in pairs(game:service'NetworkServer':children()) do
- if v ~= plr then
- if Lapis.Functions.GetRank(v:GetPlayer()) <= Lapis.Functions.GetRank(plr) or v:GetPlayer().Parent ~= game:service'Players' then
- table.insert(plrs, v:GetPlayer())
- end
- end
- end
- else
- for _,v in pairs(game:service'NetworkServer':children()) do
- if v:GetPlayer().Name:lower():sub(1,#msg) == msg:lower() then
- if Lapis.Functions.GetRank(v:GetPlayer()) <= Lapis.Functions.GetRank(plr) or v:GetPlayer().Parent ~= game:service'Players' then
- table.insert(plrs, v:GetPlayer())
- end
- end
- end
- end
- return plrs
- end
- Lapis.Functions.GetImage = function(name)
- if type(name) == 'string' then
- name=name
- elseif type(userdata) == 'userdata' then
- name=tostring(name)
- else
- name=name.Name
- end
- for _, v in pairs(Lapis.Ranked) do
- if v['Name'] == tostring(name) then
- return v['Image']
- end
- end
- return 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username='..name
- end
- Lapis.GetService = function(service)
- return game:service(service)
- end
- Lapis.GetChildren = function(obj)
- return obj:children''
- end
- Lapis.ChatLogs = {}
- Lapis.Core.Services = {
- Lapis.GetService('Players'),
- Lapis.GetService('Workspace'),
- Lapis.GetService('NetworkServer'),
- Lapis.GetService('FriendService'),
- Lapis.GetService('Lighting'),
- Lapis.GetService('ServerStorage'),
- Lapis.GetService('HttpService'),
- Lapis.GetService('RunService'),
- Lapis.GetService('StarterPack'),
- Lapis.GetService('StarterGui'),
- Lapis.GetService('StarterPlayer'),
- };
- local clonepart=nil
- Lapis.Functions.Explore = function(plr, obj)
- Lapis.Core.Dismiss(plr)
- if obj == nil or obj == game then
- for _, v in pairs(Lapis.Core.Services) do
- Lapis.Core.Output(plr, v.Name, 'Lime green', 0, function()
- Lapis.Functions.Explore(plr, v)
- end)
- end
- else
- for _, v in pairs(obj:children'') do
- Lapis.Core.Output(plr, v.Name, Lapis.Functions.GetColor(plr), 0, function() Lapis.Functions.Explore(plr, v) end)
- end
- Lapis.Core.Output(plr, 'Name: '..obj.Name, 'Lime green', 0)
- Lapis.Core.Output(plr, 'ClassName: '..obj.Name, 'Really blue', 0)
- Lapis.Core.Output(plr, 'Refresh', 'Black', 0, function() Lapis.Functions.Explore(plr, obj) end)
- Lapis.Core.Output(plr, 'Explore Parent', 'Cyan', 0, function() Lapis.Functions.Explore(plr, obj.Parent) end)
- Lapis.Core.Output(plr, 'Clone', 'New Yeller', 0, function() local prt=obj:Clone() prt.Parent=nil clonepart=prt end)
- Lapis.Core.Output(plr, 'Remove', 'Really red', 0, function()
- Lapis.Functions.Explore(plr, obj.Parent)
- if obj.ClassName == 'Player' then
- Lapis.Sources.Crash(obj)
- else
- obj:remove()
- end
- end)
- if obj.ClassName == 'Part' or obj.ClassName == 'WedgePart' then
- Lapis.Core.Output(plr, 'Lock', 'Sand yellow', 0, function() obj.Locked=true end)
- Lapis.Core.Output(plr, 'Unlock', 'Sand blue', 0, function() obj.Locked=false end)
- Lapis.Core.Output(plr, 'Anchor', 'Toothpaste', 0, function() obj.Anchored=true end)
- Lapis.Core.Output(plr, 'Unanchor', 'Sand red', 0, function() obj.Anchored=false end)
- end
- if obj.ClassName == 'Player' then
- Lapis.Core.Output(plr, 'Kick', 'Bright red', 0, function()
- Lapis.Sources.Kick(obj)
- end)
- end
- if clonepart then
- Lapis.Core.Output(plr, 'Paste', 'Lime green', 0, function() clonepart.Parent=obj end)
- end
- end
- end
- Lapis.Core.AddCommand = function(say, name, rank, description, func)
- table.insert(Lapis.Core.Commands, {['Say'] = say, ['Name'] = name, ['Rank'] = rank, ['Desc'] = description, ['Func'] = func})
- end
- Lapis.Execute = {}
- Lapis.Execute.BlockedStrings = {'owner', 'script', 'Kick', 'Ban', 'Ranked', 'Core', 'getfenv', 'setfenv', 'setmetatable', 'metatable', 'load', 'string', 'Lapis', 'Kick', 'Ban', 'Rank', 'Color', 'supersonicfan111', 'Desc', 'AddCommand', 'Lapis', 'Core', 'Glue', 'loadstring', 'shared', '_G'}
- Lapis.Functions.Execute = function(Player, msg)
- local Msg = msg
- local Res,Err=loadstring(msg)
- if Err then
- Lapis.Core.Output(Player, " [ ERROR: ] "..Err, "Really red", 0)
- else
- for i,v in pairs(Lapis.Execute.BlockedStrings) do
- if msg:lower():find(v:lower()) and type(Lapis.Functions.GetRank(v)) ~= 'string' and Lapis.Functions.GetRank(v) >= 5 then
- Lapis.Core.Output(Player, ' [ ERROR: ] Forbidden string found! Execute cannot run!', "Really red",0)
- return
- end
- end
- getfenv(Res).print=function(...)
- local D={...}
- for i,P in next,D do
- Lapis.Core.Output(Player, ' [ PRINT: ] '..tostring(P), "Teal")
- end
- end
- getfenv(Res).getBlockedStrings=function()
- table.foreach(Lapis.Execute.BlockedStrings, function(i,v) print(v) end)
- end
- getfenv(Res).warn=function(...)
- local D={...}
- for i,P in next,D do
- Lapis.Core.Output(Player, ' [ WARNING: ] '..tostring(P), "Deep orange")
- end
- end
- getfenv(Res).secret=function(...)
- local D={...}
- for i,P in next,D do
- Lapis.Core.Output(Player, ' [ SECRET: ] '..tostring(P), "Cyan")
- end
- end
- getfenv(Res).error=function(...)
- local D={...}
- for i,P in next,D do
- Lapis.Core.Output(Player, ' [ ERROR: ] '..tostring(P), "Really red")
- end
- end
- Res()
- end
- end
- Lapis.Core.AddCommand('exe', 'Execute', 0, 'Executes a script', function(plr, msg) Lapis.Functions.Execute(plr, msg) end)
- Lapis.Core.AddCommand('tst', 'Test', 1, 'Tests Lapis Lazuli', function(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Welcome to Lapis Lazuli!', 'Really blue', 'rbxassetid://237033460')
- end)
- Lapis.Core.AddCommand('dt', 'Dismiss', 0, 'Dismisses your tablets', function(plr,msg)
- if msg=='all' or msg=='a' then
- if Lapis.Functions.GetRank(plr) >= 6 then
- for _, plr in pairs(game:service'Players':players'') do
- Lapis.Core.Dismiss(plr)
- end
- else
- Lapis.Core.Output(speaker, 'You do not have the required rank: 6!', 'Really red')
- end
- else
- Lapis.Core.Dismiss(plr)
- end
- end)
- Lapis.Core.AddCommand('ff', 'ForceField', 1, 'Gives a forcefield to a player', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- for _, p in pairs(plrs) do
- pcall(function()
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Given forcefield to: '..p.Name..' x1!', 'Lime green')
- Instance.new('ForceField', workspace:FindFirstChild(p.Name))
- end)
- end
- end)
- Lapis.Core.AddCommand('ban', 'Ban', 6, 'Set\'s a player\'s rank to -1', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- for _, p in pairs(plrs) do
- pcall(function()
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Banned: '..p.Name, 'Really red')
- Lapis.Sources.Kick(p)
- Lapis.Functions.SetRank(p, tonumber(-1))
- Lapis.Functions.SetReason(p, 'Banned by: '..plr.Name)
- end)
- end
- end)
- Lapis.Core.AddCommand('cban', 'CrashBan', 7, 'Set\'s a player\'s rank to -2', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- for _, p in pairs(plrs) do
- pcall(function()
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] CrashBanned: '..p.Name, 'Really red')
- Lapis.Sources.Crash(p)
- Lapis.Functions.SetRank(p, tonumber(-2))
- Lapis.Functions.SetReason(p, 'Crash-banned by: '..plr.Name)
- end)
- end
- end)
- Lapis.Core.AddCommand('crash', 'Crash', 6, 'Crashes a player\'s client', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- for _, p in pairs(plrs) do
- pcall(function()
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Crashed: '..p.Name, 'Really red')
- Lapis.Sources.Kick(p)
- end)
- end
- end)
- Lapis.Core.AddCommand('kick', 'Kick', 6, 'Disconnects a player\'s client', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- for _, p in pairs(plrs) do
- pcall(function()
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Kicked: '..p.Name, 'Really red')
- Lapis.Sources.Crash(p)
- end)
- end
- end)
- Lapis.Core.AddCommand('unff', 'UnForceField', 1, 'Remove a forcefield from a player', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- for _, p in pairs(plrs) do
- pcall(function()
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Removed forcefield from: '..p.Name..' x1!', 'Really red')
- workspace:FindFirstChild(p.Name):FindFirstChild('ForceField'):destroy''
- end)
- end
- end)
- Lapis.Core.AddCommand('pri', 'Private Server', 4, 'Private Server Settings', function(plr)
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] PRI SETTINGS : ', 'New Yeller')
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Enable Pri', 'Lime green',0, function()
- Lapis.Core.Dismiss(plr)
- for _,v in next, game:service'Players':players() do
- if Lapis.Functions.GetPri(v) == false then
- Lapis.Sources.Kick(v)
- end
- end
- PriEnabled=true
- end)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Disable Pri', 'Really red',0, function()
- Lapis.Core.Dismiss(plr)
- PriEnabled=false
- end)
- end)
- Lapis.Core.AddCommand('ranked', 'Ranked', 0, 'Displays all ranked players', function(plr)
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(plr) end)
- for _,data in pairs(Lapis.Ranked) do
- Lapis.Core.Output(plr, data['Name'], data['Color'], data['Image'], function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(plr) end)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Back', 'Really black', 0, function() Lapis.Core.Chatted(plr, 'getranked'..key) end)
- Lapis.Core.Output(plr, 'Name: '..data['Name'], data['Color'], data['Image'])
- Lapis.Core.Output(plr, 'Color: '..data['Color'], data['Color'], data['Image'])
- Lapis.Core.Output(plr, 'Rank: '..data['Rank'], data['Color'], data['Image'])
- Lapis.Core.Output(plr, 'Description: '..data['Description'], data['Color'], data['Image'])
- if data['inPri'] == true then
- Lapis.Core.Output(plr, 'In Pri: true', data['Color'], data['Image'])
- else
- Lapis.Core.Output(plr, 'In Pri: false', data['Color'], data['Image'])
- end
- Lapis.Core.Output(plr, 'Settings', 'Institutional white', 'rbxassetid://183511516', function()
- Lapis.Core.Dismiss(plr)
- if data['Name'] == plr.Name or Lapis.Functions.GetRank(plr) > data['Rank'] then
- Lapis.Core.Output(plr, 'Set Color', data['Color'], 'rbxassetid://23927110', function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, 'Red', tostring(BrickColor.Red()), 0, function()
- Lapis.Core.Dismiss(plr)
- Lapis.Functions.SetColor(data['Name'], tostring(BrickColor.Red()))
- end)
- Lapis.Core.Output(plr, 'Black', tostring(BrickColor.Black()), 0, function()
- Lapis.Core.Dismiss(plr)
- Lapis.Functions.SetColor(data['Name'], tostring(BrickColor.Black()))
- end)
- Lapis.Core.Output(plr, 'Teal', tostring(BrickColor.new('Teal')), 0, function()
- Lapis.Core.Dismiss(plr)
- Lapis.Functions.SetColor(data['Name'], tostring(BrickColor.new('Teal')))
- end)
- Lapis.Core.Output(plr, 'Green', tostring(BrickColor.Green()), 0, function()
- Lapis.Core.Dismiss(plr)
- Lapis.Functions.SetColor(data['Name'], tostring(BrickColor.Green()))
- end)
- end)
- if Lapis.Functions.GetRank(plr) > data['Rank'] then
- Lapis.Core.Output(plr, 'Set Rank', 'New Yeller', 'rbxassetid://141105593', function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, tonumber(0), 'Lime green', 0, function() Lapis.Core.Dismiss(plr) Lapis.Functions.SetRank(data['Name'], tonumber(0)) end)
- for i = 1, Lapis.Functions.GetRank(plr)-1 do
- Lapis.Core.Output(plr, tonumber(i), 'Lime green', 0, function() Lapis.Core.Dismiss(plr) Lapis.Functions.SetRank(data['Name'], tonumber(i)) end)
- end
- end)
- end
- Lapis.Core.Output(plr, 'Set Pri', 'New Yeller', 0, function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, 'False', 'Bright red', 0, function() Lapis.Core.Dismiss(plr) Lapis.Functions.SetPri(data['Name'], false) end)
- Lapis.Core.Output(plr, 'True', 'Lime green', 0, function() Lapis.Core.Dismiss(plr) Lapis.Functions.SetPri(data['Name'], true)
- for _,v in next, game:service'Players':players() do
- if Lapis.Functions.GetPri(v) == false then
- Lapis.Sources.Kick(v)
- end
- end
- end)
- end)
- end
- end)
- end)
- end
- end)
- Lapis.Functions.Broadcast = function(rank, text, color, image, func)
- for _, v in pairs(Lapis.GetChildren(game:service'Players')) do
- if Lapis.Functions.GetRank(v) >= rank then
- Lapis.Core.Output(v, text, color, image, func)
- end
- end
- end
- Lapis.Core.AddCommand('rqrank', 'Request Rank', 0, 'Requests a higher rank', function(plr)
- if Lapis.Functions.GetRank(plr) < 3 then
- Lapis.Functions.Broadcast(6, 'Player: '..plr.Name..' wants a rank-up!', 'Lime green')
- else
- Lapis.Core.Output(plr, 'You cannot request a rank-up!', 'Really red')
- end
- end)
- Lapis.Core.AddCommand('plrs', 'PlayerMenu', 2, 'Displays all players', function(plr, msg)
- Lapis.Core.Dismiss(plr)
- for _, v in pairs(game:service'NetworkServer':children'') do
- Lapis.Core.Output(plr, v:GetPlayer().Name, Lapis.Functions.GetColor(v:GetPlayer()), Lapis.Functions.GetImage(v:GetPlayer()), function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, 'Name: '..v:GetPlayer().Name, 'Really blue')
- Lapis.Core.Output(plr, 'Account Age: '..v:GetPlayer().AccountAge, 'Deep orange')
- Lapis.Core.Output(plr, 'Rank: '..Lapis.Functions.GetRank(v:GetPlayer()), 'Lime green')
- Lapis.Core.Output(plr, 'Description: '..Lapis.Functions.GetReason(v:GetPlayer()), 'New Yeller')
- Lapis.Core.Output(plr, 'Color: '..Lapis.Functions.GetColor(v:GetPlayer()), Lapis.Functions.GetColor(v:GetPlayer()))
- if Lapis.Functions.GetRank(plr) > Lapis.Functions.GetRank(v:GetPlayer().Name) or v:GetPlayer().Parent ~= game:service'Players' then
- Lapis.Core.Output(plr, 'Kick', 'Really red', 'rbxassetid://39848248', function() Lapis.Core.Dismiss(plr) Lapis.Sources.Kick(v:GetPlayer()) end)
- Lapis.Core.Output(plr, 'Crash', 'Really red', 'rbxassetid://39848248', function() Lapis.Core.Dismiss(plr) Lapis.Sources.Crash(v:GetPlayer()) end)
- Lapis.Core.Output(plr, 'Set Water Rotation', 'Teal', 0, function()
- if Lapis.Functions.GetRank(v:GetPlayer()) == 'UNKNOWN' then
- table.insert(Lapis.Ranked, {['Name'] = v:GetPlayer().Name, ['Rank'] = 0, ['Description'] = 'A normal player', ['Color'] = Lapis.Functions.GetColor(v:GetPlayer()), ['WaterRot'] = true, ['Image'] = Lapis.Functions.GetImage(v:GetPlayer())})
- end
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(plr) end)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] On', 'Bright green', 0, function() Lapis.Core.Dismiss(plr) Lapis.Functions.SetWaterRot(v:GetPlayer(), true) end)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Off', 'Bright red', 0, function() Lapis.Core.Dismiss(plr) Lapis.Functions.SetWaterRot(v:GetPlayer(), false) end)
- end)
- Lapis.Core.Output(plr, 'Set Rank', 'New Yeller', 0, function()
- Lapis.Core.Dismiss(plr)
- for i = 1, Lapis.Functions.GetRank(plr) do
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] '..i, Lapis.Functions.GetColor(v:GetPlayer()), 0, function()
- if Lapis.Functions.GetRank(v:GetPlayer()) == 'UNKNOWN' then
- table.insert(Lapis.Ranked, {['Name'] = v:GetPlayer().Name, ['Rank'] = i, ['Description'] = 'Ranked by '..plr.Name, ['Color'] = Lapis.Functions.GetColor(v:GetPlayer()), ['WaterRot'] = true, ['Image'] = Lapis.Functions.GetImage(v:GetPlayer())})
- Lapis.Core.Dismiss(plr)
- else
- Lapis.Functions.SetRank(v:GetPlayer(), i)
- Lapis.Core.Dismiss(plr)
- end
- end)
- end
- end)
- end
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(plr) end)
- end)
- end
- end)
- Lapis.Core.AddCommand('g', 'Get', 0, 'Gets something (r (respawn), ff (forcefield), g (god), p (Part)', function(plr, msg)
- if msg == 'r' or msg == 'respawn' then
- plr:LoadCharacter()
- elseif msg == 'ff' or msg == 'forcefield' then
- if plr and plr.Character then
- Instance.new('ForceField', plr.Character)
- end
- elseif msg == 'p' or msg == 'prt' or msg == 'part' then
- local prt=Instance.new('Part', workspace)
- prt.Name = plr.Name..'\'s part'
- if plr and plr.Character and plr.Character.Head then
- prt.CFrame=plr.Character.Head.CFrame
- end
- elseif msg == 'g' or msg == 'god' then
- if plr and plr.Character and plr.Character.Humanoid then
- plr.Character.Humanoid.MaxHealth=math.huge
- end
- end
- end)
- Lapis.Core.AddCommand('clr', 'Color', 0, 'Allows you to set your color', function(plr, msg)
- if Lapis.Functions.GetRank(plr) == 'UNKNOWN' then
- table.insert(Lapis.Ranked, {['Name'] = v:GetPlayer().Name, ['Rank'] = 0.1, ['Description'] = 'A normal player', ['Color'] = Lapis.Functions.GetColor(v:GetPlayer()), ['WaterRot'] = true, ['Image'] = Lapis.Functions.GetImage(v:GetPlayer())})
- end
- Lapis.Functions.SetColor(plr, msg)
- end)
- Lapis.Core.AddCommand('explore', 'Explore', 7, 'Explores the game', function(plr)
- Lapis.Functions.Explore(plr)
- end)
- checkPri = function(v)
- end
- --[[Lapis.Core.AddCommand('steal', 'Steal', 6, 'Steals all of player\'s scripts', function(plr, msg)
- local plrs=Lapis.Functions.GetPlayer(msg, plr)
- table.foreach(plrs, function(i,v)
- if v and v.Backpack then
- table.foreach(v.Backpack:children(), function(_, s)
- if s:IsA('LocalScript') then
- s.Disabled=true
- s.Parent=plr.Backpack
- s.Disabled=false
- end
- end)
- end
- if v and v.Character then
- table.foreach(v.Character:children(), function(_, s)
- if s:IsA('LocalScript') then
- s.Disabled=true
- s.Parent=plr.Backpack
- s.Disabled=false
- end
- end)
- end
- if v and v.PlayerGui then
- table.foreach(v.PlayerGui:children(), function(_, s)
- if s:IsA('LocalScript') then
- s.Disabled=true
- s.Parent=plr.Backpack
- s.Disabled=false
- end
- end)
- end
- end)
- end)]]--
- Lapis.Core.AddCommand('cmds', 'Commands', 0, 'Displays commands', function(plr)
- local msg=Lapis.Functions.GetRank(plr)
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(plr) end)
- for _, v in pairs(Lapis.Core.Commands) do
- if v.Rank <= msg then
- Lapis.Core.Output(plr, v.Name, Lapis.Functions.GetColor(plr), Lapis.Functions.GetImage(plr), function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Name: '..v.Name, 'Teal')
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Desc: '..v.Desc, 'Deep orange')
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Rank: '..v.Rank, 'New Yeller')
- if Lapis.Functions.GetRank(plr) < v.Rank then
- Lapis.Core.Output(plr, '[ WARN ] You cannot run this command', 'Deep orange')
- end
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Usage: '..v.Say, 'Lime green')
- Lapis.Core.Output(plr, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(plr) end)
- end)
- end
- end
- end)
- Lapis.Core.Chatted = function(speaker, message, logchat)
- if message:sub(1, 2) == '/e' then
- if #message > 3 then
- message = message:sub(4)
- end
- elseif message:sub(1, 1) == '/' then
- if #message > 2 then
- message = message:sub(2)
- end
- end
- if logchat == nil or logchat == true then
- table.insert(Lapis.ChatLogs, {['Name'] = speaker.Name, ['ID'] = speaker.userId, ['Message'] = message})
- end
- local command=message
- for _, CMDS in pairs(Lapis.Core.Commands) do
- if command:sub(1, #CMDS['Say']+#key) == CMDS['Say']..key then
- if Lapis.Functions.GetRank(speaker) >= CMDS['Rank'] then
- local msg = command:sub(#CMDS["Say"]+#key+1)
- a,b = ypcall(function()
- CMDS["Func"](speaker, msg)
- end)
- if not a then warn(b) end
- else
- Lapis.Core.Output(speaker, 'You do not have the required rank: '..CMDS['Rank']..'!', 'Really red')
- end
- end
- end
- end
- Lapis.silentChatted = function(speaker, message)
- Lapis.Core.Chatted(speaker, message, false)
- end
- Lapis.Core.AddCommand('logs', 'ChatLogs', 5, 'Displays the chat logs', function(plr)
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, 'Clear all chatlogs', 'Deep orange', nil, function() Lapis.ChatLogs = {} Lapis.silentChatted(plr, 'logs'..key) end)
- Lapis.Core.Output(plr, 'Display all chatlogs', 'Teal', nil, function()
- Lapis.Core.Dismiss(plr)
- for _, v in pairs(Lapis.ChatLogs) do
- Lapis.Core.Output(plr, v['Name']..' : '..v['Message'], 'New Yeller', 0)
- end
- end)
- for _, pl in pairs(Lapis.Players) do
- Lapis.Core.Output(plr, pl['Name'], Lapis.Functions.GetColor(pl['Name']), Lapis.Functions.GetImage(pl['Name']), function()
- Lapis.Core.Dismiss(plr)
- Lapis.Core.Output(plr, 'Showing chat logs for: '..pl['Name'], 'New Yeller', 0)
- for _, v in pairs(Lapis.ChatLogs) do
- if v['Name'] == pl['Name'] then
- Lapis.Core.Output(plr, v['Message'], 'New Yeller', 0)
- end
- end
- end)
- end
- end)
- inPlrsTable = function(plr)
- local f=false
- table.foreach(Lapis.Players, function(i,v)
- if v['Name'] == plr.Name then
- f=true
- end
- end)
- return f
- end
- game:service'Players'.PlayerAdded:connect(function(v)
- if inPlrsTable(v) == false then
- table.insert(Lapis.Players, {['Name'] = v.Name, ['ID'] = v.userId})
- end
- if Lapis.Functions.GetRank(v) == 'UNKNOWN' then
- table.insert(Lapis.Ranked, {['Name'] = v.Name, ['Rank'] = 0, ['Description'] = 'A normal player', ['Color'] = Lapis.Functions.GetColor(v), ['WaterRot'] = true, ['Image'] = Lapis.Functions.GetImage(v)})
- for _,p in pairs(game:service'Players':players'') do
- if p.Name ~= v.Name then
- Lapis.Core.Output(p, '[ LAPIS LAZULI ] Player: '..v.Name..' has joined!', 'Lime green')
- end
- end
- elseif Lapis.Functions.GetRank(v) == -1 then
- Lapis.Sources.Kick(v)
- for _,p in pairs(game:service'Players':players'') do
- Lapis.Core.Output(p, 'Player: '..v.Name..' was kicked for: '..Lapis.Functions.GetReason(v), 'Really red')
- end
- elseif Lapis.Functions.GetRank(v) == -2 then
- Lapis.Sources.Crash(v)
- for _,p in pairs(game:service'Players':players'') do
- Lapis.Core.Output(p, 'Player: '..v.Name..' was crashed for: '..Lapis.Functions.GetReason(v), 'Really red')
- end
- end
- if PriEnabled==true and Lapis.Functions.GetPri(v) == false then
- Lapis.Sources.Kick(v)
- end
- v.Chatted:connect(function(m) Lapis.Core.Chatted(v, m) end)
- if Lapis.Functions.GetRank(v) >= 2 then
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Welcome to Lapis Lazuli!', 'Really blue', 'rbxassetid://237033460')
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Version: '..Lapis.Information.Version, 'Lime green', 0)
- --Lapis.Core.Output(v, '[ LAPIS LAZULI ] Runner: '..Lapis.Information.Owner.Name, 'Deep orange', 'rbxassetid://50540825')
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] You\'re rank: '..Lapis.Functions.GetRank(v), nil, 'rbxassetid://237033460')
- if Lapis.Functions.GetWaterRot(v) == true then
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Water Rotation: Yes absolutely!', 'Teal', Lapis.Functions.GetImage(v))
- else
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Water Rotation: Nope', 'Teal', Lapis.Functions.GetImage(v))
- end
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(v) end)
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Click here or say cmds'..key..' to open commands', 'New Yeller', 0, function() Lapis.Core.Chatted(v, 'cmds'..key) end)
- end
- end)
- for _,v in pairs(game:service'Players':players'') do
- table.insert(Lapis.Players, {['Name'] = v.Name, ['ID'] = v.userId})
- if Lapis.Functions.GetRank(v) == 'UNKNOWN' then
- table.insert(Lapis.Ranked, {['Name'] = v.Name, ['Rank'] = 0, ['Description'] = 'A normal player', ['Color'] = Lapis.Functions.GetColor(v), ['WaterRot'] = true, ['Image'] = Lapis.Functions.GetImage(v)})
- elseif Lapis.Functions.GetRank(v) == -1 then
- Lapis.Sources.Kick(v)
- for _,p in pairs(game:service'Players':players'') do
- Lapis.Core.Output(p, 'Player: '..v.Name..' was kicked for: '..Lapis.Functions.GetReason(v), 'Really red')
- end
- elseif Lapis.Functions.GetRank(v) == -2 then
- Lapis.Sources.Crash(v)
- for _,p in pairs(game:service'Players':players'') do
- Lapis.Core.Output(p, 'Player: '..v.Name..' was crashed for: '..Lapis.Functions.GetReason(v), 'Really red')
- end
- end
- if PriEnabled==true and Lapis.Functions.GetPri(v) == false then
- Lapis.Sources.Kick(v)
- end
- v.Chatted:connect(function(m) Lapis.Core.Chatted(v, m) end)
- if Lapis.Functions.GetRank(v) >= 2 then
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Welcome to Lapis Lazuli!', 'Really blue', 'rbxassetid://237033460')
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Version: '..Lapis.Information.Version, 'Lime green', 0)
- --Lapis.Core.Output(v, '[ LAPIS LAZULI ] Runner: '..Lapis.Information.Owner.Name, 'Deep orange', 'rbxassetid://50540825')
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] You\'re rank: '..Lapis.Functions.GetRank(v), 'Teal', Lapis.Functions.GetImage(v))
- if Lapis.Functions.GetWaterRot(v) == true then
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Water Rotation: Yes absolutely!', 'Teal', Lapis.Functions.GetImage(v))
- else
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Water Rotation: Nope', 'Teal', Lapis.Functions.GetImage(v))
- end
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Dismiss', 'Really red', 0, function() Lapis.Core.Dismiss(v) end)
- Lapis.Core.Output(v, '[ LAPIS LAZULI ] Click here or say cmds'..key..' to open commands', 'New Yeller', 0, function() Lapis.Core.Chatted(v, 'cmds'..key) end)
- end
- end
- game:service'Players'.PlayerRemoving:connect(function(v)
- Lapis.Core.Dismiss(v)
- for _,p in pairs(game:service'Players':players'') do
- if p.Name ~= v.Name and Lapis.Functions.GetNotify(p.Name) and PriEnabled==false then
- Lapis.Core.Output(p, '[ LAPIS LAZULI ] Player: '..v.Name..' has left!', 'Bright red')
- end
- end
- end)
- local tickstart=tick();
- local wave=0
- local waveinc=1
- game:service'RunService'.Heartbeat:connect(function()
- wave=wave+waveinc
- a,b = ypcall(function()
- for _, Player in pairs(game:service'Players':players'') do
- local Tablets = {}
- for i,v in pairs(Lapis.Core.Tablets) do
- if v.Tab.Parent and v.Tab2.Parent and v.Player == Player then
- table.insert(Tablets, v)
- end
- end
- for i = 1, #Tablets do
- local tab=Tablets[i].Tab
- local tab2=Tablets[i].Tab2
- local pos=nil
- ypcall(function()
- pos = Player.Character.Torso.CFrame
- end)
- local PlayerTablets=Tablets
- local x = math.sin(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+1.3)
- local z = math.cos(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+1.3)
- local cPos = tab.Position
- local ePos = Vector3.new(x, 0, z) + (pos.p or Vector3.new(0, -3, 0))
- local nPos = (ePos-cPos)*.25
- cPos = cPos + nPos
- local t = (tick() - tickstart) % 90
- local change = 0.0025
- if Lapis.Functions.GetWaterRot(Player.Name) == true then
- tab.CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -3, 0))) * CFrame.Angles(math.rad(10), 0, 0) * CFrame.new(0, math.sin(t)*.3, 0) * CFrame.Angles(0,0,math.sin(t)*.7)
- --tab2.CFrame=tab.CFrame*CFrame.Angles(-math.rad(wave), -math.rad(wave), -math.rad(wave))
- tab2.CFrame=tab.CFrame
- else
- tab.CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -3, 0))) * CFrame.Angles(math.rad(10), 0, 0)
- tab2.CFrame=tab.CFrame
- end
- end
- end
- end) if not a then print(b) end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement