jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 12:47 AM |
| How would I make the background of a loading GUI the view of a place? For example, if I had a tower, how would I make the background of the loading GUI a view of the tower without using a decal? |
|
|
| Report Abuse |
|
|
Timmynl
|
  |
| Joined: 09 Dec 2010 |
| Total Posts: 12327 |
|
| |
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
| |
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
| |
|
|
| 24 Aug 2016 02:04 PM |
scriptable camera streaming enabled |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 24 Aug 2016 02:07 PM |
streaming enabled? what?
But yeah, CameraType to Enum.CameraType.Scriptable. Set Camera.CoordinateFrame to whatever CFrame you want them to be. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2016 02:08 PM |
streaming enabled reduces original loading screen time on roblox do you even know that |
|
|
| Report Abuse |
|
|
platin_m
|
  |
| Joined: 25 Jul 2016 |
| Total Posts: 169 |
|
|
| 24 Aug 2016 02:14 PM |
local camera = workspace.CurrentCamera local camerapart = workspace.Part
camera.CameraType = Enum.CameraType.Scriptable -- make sure camera is set to scriptable for this to work
camera.CoordinateFrame = camerapart.CFrame camera.Focus = camerapart.CFrame + camerapart.CFrame.lookVector
--
haven't tested it but should work
just make sure you have a brick called "Part" (case-sensitive) in workspace and the front side of it is facing the tower. |
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 04:31 PM |
do I place the script into a localscript in the workspace? and how would I make it so that the camera returns to the plaer after the loading screen has closed?
|
|
|
| Report Abuse |
|
|
|
| 24 Aug 2016 04:37 PM |
| http://wiki.roblox.com/index.php?title=Camera_manipulation |
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 04:45 PM |
| Ok, I used that and I got the player to look at the tower when they join. How do I make it so that when they press 'play' on the gui, the camera returns to the player? |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 04:49 PM |
is the game even loading? I'll bet anything that roblox's default loading GUI takes care of it
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 04:51 PM |
| There are some things that haven't loaded even after roblox's loading gui. |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 04:54 PM |
alright then sorry for the false assumption setting CameraSubject to the humanoid should work
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 05:07 PM |
| Ok, I got the player to look at the tower when they join and they can press play to return the camera to their player. However, every time they die, the loading GUI comes back and their camera is facing the tower again. How do I make it so after they press play, the gui does not come back and their camera will not be facing the tower again? |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 05:19 PM |
where's the script located
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2016 05:23 PM |
simply put the loading gui in replicatedstorage, and clone the gui into the playergui whenever a player joins: game.Players.PlayerAdded:connect(function(player) local gui = game.ReplicatedStorage.Guithingy:Clone() gui.Parent = player.PlayerGui end) |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 05:23 PM |
@ali StarterPlayerScripts exists
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2016 05:25 PM |
same thing with the camera script put all the camera scripts you wrote in replicatedstorage, and just clone it into the place where you put the script when the player by using the .PlayerAdded event thingy of course |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 05:26 PM |
or you can save yourself a useless script and use objects for their intended purpose
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
| |
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 05:28 PM |
:^)
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 05:57 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) game.ReplicatedStorage.LoadingScreenCamera:clone().Parent = character end) end)
i put this in a localscript in serverscriptservice and the camera script in ReplicatedStorage. I got the gui to load when the player joins, but the camera won't be looking at the tower when the player joins. what did i do wrong? |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 24 Aug 2016 05:58 PM |
StarterPlayerScripts
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 24 Aug 2016 06:01 PM |
| ok, it works, but now the problem occurs where every time the player dies the camera is facing the tower again |
|
|
| Report Abuse |
|
|