Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Sky0 = Instance.new("Sky")
- Sky0.Name = "Golden Cosmos"
- Sky0.Parent = mas
- Sky0.CelestialBodiesShown = false
- Sky0.SkyboxBk = "http://www.roblox.com/asset/?id=357881754"
- Sky0.SkyboxDn = "http://www.roblox.com/asset/?id=357882053"
- Sky0.SkyboxFt = "http://www.roblox.com/asset/?id=357882321"
- Sky0.SkyboxLf = "http://www.roblox.com/asset/?id=357882644"
- Sky0.SkyboxRt = "http://www.roblox.com/asset/?id=357883014"
- Sky0.SkyboxUp = "http://www.roblox.com/asset/?id=357883321"
- Sky0.StarCount = 0
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Lighting")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- RotateP4 = Instance.new("RotateP")
- RotateP5 = Instance.new("RotateP")
- ManualWeld6 = Instance.new("ManualWeld")
- Sound7 = Instance.new("Sound")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Script10 = Instance.new("Script")
- SpecialMesh11 = Instance.new("SpecialMesh")
- Decal12 = Instance.new("Decal")
- Decal13 = Instance.new("Decal")
- Decal14 = Instance.new("Decal")
- Decal15 = Instance.new("Decal")
- Decal16 = Instance.new("Decal")
- Decal17 = Instance.new("Decal")
- Script18 = Instance.new("Script")
- Script19 = Instance.new("Script")
- Script20 = Instance.new("Script")
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-26.0499973, 378.549988, 23.5499992, 1, 0, 0, 0, 0, 1, 0, -1, 0)
- Part1.Orientation = Vector3.new(-90, 0, 0)
- Part1.Position = Vector3.new(-26.0499973, 378.549988, 23.5499992)
- Part1.Rotation = Vector3.new(-90, 0, 0)
- Part1.Transparency = 0.0099999997764826
- Part1.Size = Vector3.new(40, 35, 1)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Name = "planar1"
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1185246"
- SpecialMesh2.Scale = Vector3.new(200, 200, 0)
- SpecialMesh2.VertexColor = Vector3.new(1, 1, 0)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=21315275"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Script3.Name = "spin"
- Script3.Parent = Part1
- table.insert(cors,sandbox(Script3,function()
- spinning = script.Parent
- while true do
- spinning.CFrame = spinning.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.99)
- wait(0.00)
- end
- end))
- RotateP4.Name = "INfecTION"
- RotateP4.Parent = Part1
- RotateP4.BaseAngle = 0.25
- RotateP5.Name = "LOLWUT!!?"
- RotateP5.Parent = Part1
- RotateP5.BaseAngle = 0.25
- ManualWeld6.Name = "Head-to-H Strong Joint"
- ManualWeld6.Parent = Part1
- ManualWeld6.C0 = CFrame.new(20, -17.5, -0.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- ManualWeld6.C1 = CFrame.new(29, -36.5, 15.5, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- ManualWeld6.Part0 = Part1
- ManualWeld6.Part1 = nil
- ManualWeld6.part1 = nil
- Sound7.Parent = Model0
- Sound7.Looped = true
- Sound7.Playing = true
- Sound7.SoundId = "rbxassetid://1836465715"
- Part8.Parent = Model0
- Part8.Color = Color3.new(1, 1, 0)
- Part8.Size = Vector3.new(512, 20, 512)
- Part8.Anchored = true
- Part8.BrickColor = BrickColor.new("New Yeller")
- Part8.Locked = true
- Part8.Material = Enum.Material.ForceField
- Part8.brickColor = BrickColor.new("New Yeller")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- Part9.Name = "Spinning Black Hole"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(61, 47, -555, -0, 0, -1, -1, 0, -0, -0, 1, -0)
- Part9.Orientation = Vector3.new(0, -90, -90)
- Part9.Position = Vector3.new(61, 47, -555)
- Part9.Rotation = Vector3.new(90, -90, 0)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Size = Vector3.new(94, 94, 94)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Really black")
- Part9.Shape = Enum.PartType.Ball
- Script10.Parent = Part9
- table.insert(cors,sandbox(Script10,function()
- local hole = script.Parent
- local childList = {}
- local massConstant = 5.8
- local mass = 32000 * massConstant
- function checkObject(obj)
- if (obj ~= hole) and (obj.className == "Part") then
- if (obj.Anchored == false) then
- table.insert(childList, 1, obj)
- end
- elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
- local child = obj:GetChildren()
- for x = 1, #child do
- checkObject(child[x])
- end
- obj.ChildAdded:connect(checkObject)
- end
- end
- checkObject(workspace)
- print("Black Hole script loaded.")
- local n = 0
- while true do
- if n < #childList then
- n = n + 1
- if n % 800 == 0 then
- wait()
- end
- else
- n = 1
- wait()
- end
- local child = childList[n]
- if (child ~= hole) and (child.className == "Part") and (child.Anchored == false) then
- local relPos = hole.Position - child.Position
- local motivator = child:FindFirstChild("BlackHole Influence")
- if relPos.magnitude * 240 * massConstant < mass then
- child:BreakJoints()
- if (relPos.magnitude * 320 * massConstant < mass) and (child.Size.z + hole.Size.x > relPos.magnitude * 2 - 4) then
- mass = mass + child:GetMass()
- child:Remove()
- table.remove(childList, n)
- n = n - 1
- else
- child.CanCollide = false
- if motivator == nil then
- motivator = Instance.new("BodyPosition")
- motivator.Parent = child
- motivator.Name = "BlackHole Influence"
- end
- motivator.position = hole.Position
- motivator.maxForce = Vector3.new(1, 1, 1) * mass * child:GetMass() / (relPos.magnitude * massConstant)
- end
- elseif motivator ~= nil then
- motivator:Remove()
- end
- end
- end
- end))
- SpecialMesh11.Parent = Part9
- SpecialMesh11.MeshType = Enum.MeshType.Sphere
- Decal12.Parent = Part9
- Decal12.Texture = "http://www.roblox.com/asset/?id=8860777"
- Decal12.Face = Enum.NormalId.Back
- Decal13.Parent = Part9
- Decal13.Texture = "http://www.roblox.com/asset/?id=8860777"
- Decal13.Face = Enum.NormalId.Top
- Decal14.Parent = Part9
- Decal14.Texture = "http://www.roblox.com/asset/?id=8860777"
- Decal14.Face = Enum.NormalId.Right
- Decal15.Parent = Part9
- Decal15.Texture = "http://www.roblox.com/asset/?id=8860777"
- Decal16.Parent = Part9
- Decal16.Texture = "http://www.roblox.com/asset/?id=8860777"
- Decal16.Face = Enum.NormalId.Left
- Decal17.Parent = Part9
- Decal17.Texture = "http://www.roblox.com/asset/?id=8860777"
- Decal17.Face = Enum.NormalId.Bottom
- Script18.Name = "Spin"
- Script18.Parent = Part9
- table.insert(cors,sandbox(Script18,function()
- while true do
- script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
- wait(0.01)
- end
- end))
- Script19.Name = "Spin"
- Script19.Parent = Part9
- table.insert(cors,sandbox(Script19,function()
- while true do
- script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(-0.1,0,0)
- wait(0.01)
- end
- end))
- Script20.Name = "Spin"
- Script20.Parent = Part9
- table.insert(cors,sandbox(Script20,function()
- while true do
- script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
- wait(0.01)
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local Factor = 300
- function AddGravity(Part)
- local Gravity = Part:findFirstChild("BodyForce")
- if Gravity ~= nil then
- return
- end
- local Gravity = Instance.new("BodyForce")
- Gravity.Parent = Part
- Gravity.force = Vector3.new(0,Factor * Part:GetMass(),0)
- end
- function GetClass(Root)
- if Root.className == "Part" or Root.className == "Seat" or Root.className == "SpawnLocation" or Root.className == "FlagStand" then
- AddGravity(Root)
- end
- local Parts = Root:GetChildren()
- for X = 1, # Parts do
- GetClass(Parts[X])
- end
- Root.ChildAdded:connect(function(Child)
- GetClass(Child)
- end)
- end
- GetClass(script.Parent)
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- ManualWeld2 = Instance.new("ManualWeld")
- ManualWeld3 = Instance.new("ManualWeld")
- Part4 = Instance.new("Part")
- ManualWeld5 = Instance.new("ManualWeld")
- Part6 = Instance.new("Part")
- SurfaceGui7 = Instance.new("SurfaceGui")
- TextLabel8 = Instance.new("TextLabel")
- Model0.Name = "Sign"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(44.0347366, 12.3999844, -16.8969593, -0.984808087, 0, 0.173646957, 0, 1, 0, -0.173646957, 0, -0.984808087)
- Part1.Orientation = Vector3.new(0, 170, 0)
- Part1.Position = Vector3.new(44.0347366, 12.3999844, -16.8969593)
- Part1.Rotation = Vector3.new(-180, 10, -180)
- Part1.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part1.Size = Vector3.new(0.400000006, 4.80000019, 0.200000003)
- Part1.BrickColor = BrickColor.new("Reddish brown")
- Part1.Material = Enum.Material.WoodPlanks
- Part1.brickColor = BrickColor.new("Reddish brown")
- ManualWeld2.Name = "Part-to-Part Strong Joint"
- ManualWeld2.Parent = Part1
- ManualWeld2.C0 = CFrame.new(0.200000003, -2.4000001, -0.100000001, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- ManualWeld2.C1 = CFrame.new(0.199996948, -3.5, 0.100006104, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- ManualWeld2.Part0 = Part1
- ManualWeld2.Part1 = Part4
- ManualWeld2.part1 = Part4
- ManualWeld3.Name = "Part Terrain Joint"
- ManualWeld3.Parent = Part1
- ManualWeld3.Part1 = Part1
- ManualWeld3.part1 = Part1
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(44.0000038, 13.4999847, -16.6999931, -0.984808087, 0, 0.173646957, 0, 1, 0, -0.173646957, 0, -0.984808087)
- Part4.Orientation = Vector3.new(0, 170, 0)
- Part4.Position = Vector3.new(44.0000038, 13.4999847, -16.6999931)
- Part4.Rotation = Vector3.new(-180, 10, -180)
- Part4.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part4.Size = Vector3.new(4, 2.20000005, 0.200000003)
- Part4.BrickColor = BrickColor.new("Reddish brown")
- Part4.Material = Enum.Material.WoodPlanks
- Part4.brickColor = BrickColor.new("Reddish brown")
- ManualWeld5.Name = "Part-to-Text Strong Joint"
- ManualWeld5.Parent = Part4
- ManualWeld5.C0 = CFrame.new(2, -1.10000002, -0.100000001, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- ManualWeld5.C1 = CFrame.new(2.01499939, -1.10499954, 0.100006104, -1.00000012, 0, -5.96046448e-08, 0, 1, 0, 5.96046448e-08, 0, -1.00000012)
- ManualWeld5.Part0 = Part4
- ManualWeld5.Part1 = Part6
- ManualWeld5.part1 = Part6
- Part6.Name = "Text"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(43.9800453, 13.5049839, -16.5004215, -0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, -0.984807968)
- Part6.Orientation = Vector3.new(0, 170, 0)
- Part6.Position = Vector3.new(43.9800453, 13.5049839, -16.5004215)
- Part6.Rotation = Vector3.new(-180, 10, -180)
- Part6.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part6.Size = Vector3.new(3.97000051, 2.21000004, 0.200000003)
- Part6.Anchored = true
- Part6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.BrickColor = BrickColor.new("Reddish brown")
- Part6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.Material = Enum.Material.WoodPlanks
- Part6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.brickColor = BrickColor.new("Reddish brown")
- Part6.FormFactor = Enum.FormFactor.Custom
- Part6.formFactor = Enum.FormFactor.Custom
- SurfaceGui7.Parent = Part6
- SurfaceGui7.CanvasSize = Vector2.new(200, 100)
- TextLabel8.Parent = SurfaceGui7
- TextLabel8.Size = UDim2.new(1, 0, 1, 0)
- TextLabel8.Active = true
- TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel8.BackgroundTransparency = 1
- TextLabel8.Font = Enum.Font.ArialBold
- TextLabel8.FontSize = Enum.FontSize.Size12
- TextLabel8.Text = "planetary map by xdielivex"
- TextLabel8.TextColor = BrickColor.new("Institutional white")
- TextLabel8.TextColor3 = Color3.new(1, 1, 1)
- TextLabel8.TextScaled = true
- TextLabel8.TextSize = 12
- TextLabel8.TextStrokeColor3 = Color3.new(0, 0.0117647, 0)
- TextLabel8.TextStrokeTransparency = 0
- TextLabel8.TextWrap = true
- TextLabel8.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement