|
| 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 |
|
|
|
| 16 Aug 2017 01:55 PM |
| Pretty sure its a minor issue, maybe something in properties or something?. Anyone |
|
|
| Report Abuse |
|
|
| |
|
| |
|
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 |
|
|
|
| 16 Aug 2017 02:35 PM |
| Ajastra, the script is is not a local script but a serverscript. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 16 Aug 2017 02:51 PM |
| Still not working, only I see the gui in game no one else |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 16 Aug 2017 04:04 PM |
| Where exactly would I add the line? In the beginning? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 16 Aug 2017 04:07 PM |
Tactically - will try that
Market- thank you, howeverFilteringEnabled is disabled in my game |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2017 04:33 PM |
| Tactically I cant thank you enough, it worked greeat!! |
|
|
| Report Abuse |
|
|
| |
|