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 |
|
|
|
| 11 Apr 2013 11:08 AM |
| Maybe, using an implementation of BlueTaslem's local lighting code, you could do it. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 11 Apr 2013 03:22 PM |
| Yes. It's called Peusdo-Sky. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 11 Apr 2013 04:48 PM |
| Technically, then, you did sorta make it. |
|
|
| Report Abuse |
|
|