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: I made this gui script but...

Previous Thread :: Next Thread 
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 01:42 PM
so basically what this script does is, once I press a button, it gets a map from serverstorage and clones it to workspace. that works fine. but there is also supposed to be a gui that becomes visible which says MapSelected// (map) It works meaning I can see it but no one else in the server can. How can I make an adjustment so anyone can see it?

local storage = game:GetService("ServerStorage")
local ind = script.Parent.Parent.Parent.Parent.Indicate
script.Parent.MouseButton1Click:connect(function()
ind.Visible = true
ind.Text = "MapSelected// Bastion"
wait(3)
ind.Visible = false
local Bricktops = storage["Bastion"]:Clone()
Bricktops.Parent = game.Workspace

end)

Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 01:55 PM
Pretty sure its a minor issue, maybe something in properties or something?. Anyone
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 02:01 PM
?!?
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 02:09 PM
must be complicated or?
Report Abuse
Ajastra is not online. Ajastra
Joined: 01 Aug 2017
Total Posts: 1461
16 Aug 2017 02:19 PM
Hi tony. You can not access ServerStorage's children from a LocalScript, as they do not replicate to the clients.


Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 02:35 PM
Ajastra, the script is is not a local script but a serverscript.
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 02:37 PM
The script works fine and accesses the serverstorage, but once I press the button I want the GUI I kade to be visible ti everyone and say Map changed to --
Report Abuse
Ajastra is not online. Ajastra
Joined: 01 Aug 2017
Total Posts: 1461
16 Aug 2017 02:37 PM
The server has no mouse, and should not be involved in any GUI scripting.

Also, cloning of a map should all be done server-side, the client has no reason to do this.


Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 02:38 PM
Okay, so basically I will take the gui part to a localscript and keep the serverscript for cloning right?
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 02:51 PM
Still not working, only I see the gui in game no one else
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 03:31 PM
Does no one know? Im not begging or never had to usually my scripts work well this is confusing me so much
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 03:56 PM
Bumppp
Report Abuse
TacticaIIy is not online. TacticaIIy
Joined: 20 Oct 2016
Total Posts: 55
16 Aug 2017 04:00 PM

game.Players.PlayerAdded:Connect(function(player)


use this line so it uses all players (make sure to specify for your script)
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 04:04 PM
Where exactly would I add the line? In the beginning?
Report Abuse
marketmanager1 is not online. marketmanager1
Joined: 16 Mar 2016
Total Posts: 383
16 Aug 2017 04:04 PM
Hello! It looks like FE is turned on in your game. You'll have told use remote functions.

More info about that here: http://wiki.roblox.com/index.php?title=Remote_Events_and_Functions
Report Abuse
TacticaIIy is not online. TacticaIIy
Joined: 20 Oct 2016
Total Posts: 55
16 Aug 2017 04:04 PM
actually do this


---put in ServerScriptService

local replicatedstorage = game:GetService("ReplicatedStorage")
local status = replicatedstorage:WaitForChild("StatusValue")

while true do
for i = 30,0,-1 do
status.Value = "Map Selected"..i
wait(1)
end
end

---


put a StringValue called "StatusValue" in Replicated Storage


put this in a local script in your text label in your GUI (correct the names)



local replicatedstorage = game:GetService("ReplicatedStorage")
local status = replicatedstorage:WaitForChild("StatusValue")

script.Parent.Text = status.Value

status.Changed:connect(function()
script.Parent.Text = status.Value


end)
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 04:07 PM
Tactically - will try that

Market- thank you, howeverFilteringEnabled is disabled in my game
Report Abuse
tonygamezftw is online. tonygamezftw
Joined: 27 Sep 2014
Total Posts: 612
16 Aug 2017 04:33 PM
Tactically I cant thank you enough, it worked greeat!!
Report Abuse
TacticaIIy is not online. TacticaIIy
Joined: 20 Oct 2016
Total Posts: 55
16 Aug 2017 05:19 PM
np
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