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: Loading GUI Help

Previous Thread :: Next Thread 
jager72 is not online. 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 is not online. Timmynl
Joined: 09 Dec 2010
Total Posts: 12327
24 Aug 2016 12:49 AM

Use a Camera for that.


Report Abuse
jager72 is not online. jager72
Joined: 14 Aug 2010
Total Posts: 11034
24 Aug 2016 01:04 AM
How would I do that?
Report Abuse
jager72 is not online. jager72
Joined: 14 Aug 2010
Total Posts: 11034
24 Aug 2016 02:01 PM
Anybody?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 02:04 PM
scriptable camera
streaming enabled
Report Abuse
WoolHat is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 02:08 PM
streaming enabled reduces original loading screen time on roblox
do you even know that
Report Abuse
platin_m is not online. 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 is not online. 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
Sys_ClickerCode is not online. Sys_ClickerCode
Joined: 11 Aug 2016
Total Posts: 6
24 Aug 2016 04:37 PM
http://wiki.roblox.com/index.php?title=Camera_manipulation
Report Abuse
jager72 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
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 is not online. 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
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
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 is not online. 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
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
24 Aug 2016 05:27 PM
lol yes
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
24 Aug 2016 05:28 PM
:^)

Formerly ToxicDominator - add 17,509 posts
Report Abuse
jager72 is not online. 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 is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
24 Aug 2016 05:58 PM
StarterPlayerScripts

Formerly ToxicDominator - add 17,509 posts
Report Abuse
jager72 is not online. 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
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