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 » Game Design
Home Search
 

Re: How to make a GUI appear on the screen?

Previous Thread :: Next Thread 
Zeriten is not online. Zeriten
Joined: 05 Nov 2012
Total Posts: 19839
14 Jul 2015 09:27 PM
I want to make an event script for one of my games

Basically, it waits like 2 minutes (i know how to do that) in the server and then it puts a GUI on everybody's screen (raining) and it lasts for 3 minutes, then it is removed and it waits 5 minutes after that before looping.

something like that

I don't know how to make the GUI appear on everyone's screen at once though. right now it's in serverstorage and then the script makes it appear in StarterGui, but that doesn't work.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
14 Jul 2015 09:43 PM
Server storage is for the server.

Use replicated storage if you don't have filtering enabled.
Report Abuse
ORZpasserAtw is not online. ORZpasserAtw
Joined: 20 Feb 2011
Total Posts: 2365
14 Jul 2015 09:43 PM
this may useful:
http://www.roblox.com/Blizzard-Outside-Gui-item?id=126903505
http://www.roblox.com/Pain-Region-Brick-item?id=141537523
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
14 Jul 2015 09:43 PM
@Zel Rep doesn't work with FE?
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
14 Jul 2015 09:45 PM
@drahsid5
IDK

I had a project using Replicated Storage.

And i tried it with filtering enabled and everything to do with replicated storage stopped working.

I don't get how to get around filtering enabled
Report Abuse
Zeriten is not online. Zeriten
Joined: 05 Nov 2012
Total Posts: 19839
14 Jul 2015 09:49 PM
Thanks for those two models, I figured it out C:
Report Abuse
Dominical is not online. Dominical
Joined: 04 Nov 2011
Total Posts: 1303
15 Jul 2015 12:03 AM
function guiAppear(player,gui)
local copy=gui:Clone()
if player~=nil then
if player:findFirstChild("PlayerGui") then
copy.Parent=player.PlayerGui
end
end
end

--EXAMPLE
wait(2)
guiAppear(game.Players.Player1,game.Lighting.Menu)
Report Abuse
ausomefire is not online. ausomefire
Joined: 20 Feb 2010
Total Posts: 373
15 Jul 2015 03:43 AM
Use the raining script from above but instead use a code similar to this.

while true do
wait(math.random(200,300))
local Players = game.Players:getChildren()
for i=1,#Players do
local Gui = Instance.new("ScreenGui")

local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(1,0,1,0)

Frame.Parent = Gui
Gui.Parent = Players[i].PlayerGui
end

-- and to remove gui it would be like this.

wait(math.random(200,300))
local Players = game.Players:getChildren()
for i=1,#Players do
if Players[i].PlayerGui:findFirstChild("ScreenGui") then
Players[i].PlayerGui.ScreenGui:Destroy()
end
end
end


you would also need to setup a script within the player so when a player spawns it would start the snowy session also but this is already a long post so someone else can help you there.
Report Abuse
ausomefire is not online. ausomefire
Joined: 20 Feb 2010
Total Posts: 373
15 Jul 2015 03:45 AM
Use the raining script from above but instead use a code similar to this.

while true do
wait(math.random(200,300))
local Players = game.Players:getChildren()
for i=1,#Players do
local Gui = Instance.new("ScreenGui")

local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(1,0,1,0)

Frame.Parent = Gui
Gui.Parent = Players[i].PlayerGui
end

-- and to remove gui it would be like this.

wait(math.random(200,300))
local Players = game.Players:getChildren()
for i=1,#Players do
if Players[i].PlayerGui:findFirstChild("ScreenGui") then
Players[i].PlayerGui.ScreenGui:Destroy()
end
end
end


you would also need to setup a script within the player so when a player spawns it would start the snowy session also but this is already a long post so someone else can help you there.

If filtering is enabled just use a Script, Stay away from local scripts unless it is required because they have effects in filtered games that may not be foreseen. Local scripts dont replicate which means if you make a brick it would only be seen on your screen.
Report Abuse
Zeriten is not online. Zeriten
Joined: 05 Nov 2012
Total Posts: 19839
15 Jul 2015 06:24 AM
i figured it out but thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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