User:ArceusInator/Sandbox
From Legacy Roblox Wiki
Jump to navigationJump to search
Something I don't want to forget...
local psky={} psky.Name="PlayerSky" psky.className="PlayerSky" psky.archivable=false psky.Parent=nil psky.LinkedPlayer=nil psky.StarCount=3000 psky.CelestialBodiesShown=true psky.SkyBoxBk="" psky.SkyBoxDn="" psky.SkyBoxFt="" psky.SkyBoxLf="" psky.SkyBoxRt="" psky.SkyBoxUp="" function psky:clone() local n=Instance.new("PlayerSky") -- copy all properties return n end funciton psky:FindFirstChild( name, recursive ) return nil end -- because an object's Parent can't be set to PlayerSky funciton psky:GetChildren() return nil end function psky:GetFullName() return psky.Name end function psky:IsA( s ) if s == "PlayerSky" or s == "Sky" or s == "CustomInstance" then return true end return end function psky:IsAncestorOf( instance ) return end function psky:IsDescendantOf( instance ) return end function psky:Remove() psky.LinkedPlayer = nil end -- now the metacode local ab=Instance.new("Part") ab.Size=Vector3.new(1,1,1) ab.CanCollide=false ab.Anchored=true ab.Locked=true ab.Position=Vector3.new() ab.Name="PlayerSky_ANCHORBRICK" local b=Instance.new("BillboardGui") assert(coroutine.resume(coroutine.create(function() while true do if psky.LinkedPlayer then b.Parent=psky.LinkedPlayer.PlayerGui if psky.LinkedPlayer.Character.Torso then b.Adornee = psky.LinkedPlayer.Character.Torso else b.Adornee=ab end end wait() end end))) -- will finish this later...