|
| 10 Jun 2017 12:46 PM |
For some odd reason, the script won't clone the ScreenGui(called MapLabel) into the PlayerGui, keep in mind that the MapLable ScreenGui is a child of the script, i don't want it to be a PlayerAdded event, i just want it to clone the Gui into the Player, what am i doing wrong?
---------------------------------------------------
local gui = script.MapLabel
for _,players in pairs (game.Players:GetPlayers()) do gui:Clone().Parent = players.PlayerGui
end
---------------------------------------------------
Thank you |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:47 PM |
| Print the name of the players inside the loop and make sure you player's name prints |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:49 PM |
| what does that have to do with anything? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:50 PM |
| Someone that actually knows what they are talking about plz! |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:52 PM |
| because that way I can tell if the issue is with the loop or with the cloning part |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:52 PM |
| i know what i am talking about idiot |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:53 PM |
| well then u should know what the issue is |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:55 PM |
| ok you are ignorant so you aren't getting help from me |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:57 PM |
| u don't know what to do XD, so I'm trying to get help from someone that knows how to solve the issue, therefore, i don't want your help |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 12:58 PM |
| lmfao is this guy really serious hahahahahahahaha |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 01:01 PM |
| He basically told you how to understand where you are wrong and you just laugh at him |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 01:03 PM |
I copy/pasted your script and mimicked the object structure with a ScreenGui called "MapLabel" inside it, but found that it worked just fine. Are you sure that the ScreenGui isn't showing up in the PlayerGui of each player, and not that it's children aren't just hidden?
Also, are you running this script right at game startup? Scripts sometimes finish running before the player is actually in the game. If that's the case with your script, it could be running properly, but game.Players:GetPlayers() would return an empty table. |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2017 01:06 PM |
| You placed a screengui inside of the script? |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jun 2017 01:06 PM |
| OMG, it works, i just added a wait time, thank u XD |
|
|
| Report Abuse |
|
|