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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 14 Jul 2015 09:43 PM |
| @Zel Rep doesn't work with FE? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 05 Nov 2012 |
| Total Posts: 19839 |
|
|
| 15 Jul 2015 06:24 AM |
| i figured it out but thanks |
|
|
| Report Abuse |
|
|