generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is it possible to have local skyboxes?

Previous Thread :: Next Thread 
TNOMCat is not online. TNOMCat
Joined: 02 Aug 2011
Total Posts: 156
11 Apr 2013 10:55 AM
Title. I need to have different skies for different players. Is it possible and how?
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
11 Apr 2013 11:08 AM
Maybe, using an implementation of BlueTaslem's local lighting code, you could do it.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
11 Apr 2013 12:08 PM
BlueTaslem's code is simply a Changed event on the Lighting object; you can't have local sky objects.. But you could try the CurrentCamera.
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
11 Apr 2013 03:22 PM
Yes. It's called Peusdo-Sky.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
11 Apr 2013 03:26 PM
I think BlueTaslems method would work. However, the client may catch up to the skybox better than the lighting does.
Report Abuse
nairod7 is not online. nairod7
Joined: 26 Mar 2010
Total Posts: 869
11 Apr 2013 03:49 PM
I've tested with ChildAdded() and ChildRemoved(), it worked fine.

Execute this as a LocalScript on each players:

local player_name,sky = Game.Players.LocalPlayer.Name

local function CreateSkyBox()
sky = Instance.new("Sky", Game.Lighting)
sky.Name = "Sky"..player_name
sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1014472"
sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1014472"
sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1014472"
sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1014472"
sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1014472"
sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014472"
sky = nil
end

Game.Lighting.ChildRemoved:connect(function(child)
if child.Name == "Sky"..player_name then
CreateSkyBox()
end
end)

CreateSkyBox()


And execute that as a script:



Game.Lighting.ChildAdded:connect(function(child)
if child.Name:sub(1,3) == "Sky" then
wait(0)
child:Destroy()
end
end)

for i, v in next, Game.Lighting:GetChildren() do
if v:IsA("Sky") then
v:Destroy()
end
end
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
11 Apr 2013 04:14 PM
Wait...Nairod, aren't you responsible for that stupid orb thingy, or am I remembering wrong?
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
11 Apr 2013 04:32 PM
He is, Lol whenever he post people always say that.
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
11 Apr 2013 04:35 PM
Mmmk. I wasn't sure if he was the creator or if he just made an edit of it.
Report Abuse
nairod7 is not online. nairod7
Joined: 26 Mar 2010
Total Posts: 869
11 Apr 2013 04:47 PM
I made some "big" edits on it. I added alot of commands, published it and it started to become popular. So, people think/thought I've made it. Now, orbs for me are just like... derp...

But that's not the point of this post o.o
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
11 Apr 2013 04:48 PM
Technically, then, you did sorta make it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image