|
| 11 Nov 2011 02:29 PM |
It's a script that gives you a certain teleport-2-location GUI depending on your teamcolor. For some reason, it won't work.
---------------------------------------------------------------------------------------------------------- --Just put GUI's in the team. function teamFromColor(color) for _,t in pairs(game:GetService("Teams"):GetChildren()) do if t.TeamColor==color then return t end end return nil end
function onSpawned(plr) local tools = teamFromColor(plr.TeamColor):GetChildren() for _,c in pairs(tools) do c:Clone().Parent = plr.StarterGui end end
function onChanged(prop,plr) if prop=="Character" then onSpawned(plr) end end
function onAdded(plr) plr.Changed:connect(function(prop) onChanged(prop,plr) end) end
game.Players.PlayerAdded:connect(onAdded) ----------------------------------------------------------------------------------------------------------
DigitalSkill; Nothing more, nothing less. [ I am the original Abdulimrandsa1 ] |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 02:31 PM |
| You are cloning all the GUIs to player's StarterGUI. Which means, when you die, they will appear. But when the same part of the script is ran again, you will have duplicate GUIs. Try to make them parented to player's PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 02:35 PM |
Like this?
c:Clone().Parent = plr.PlayerGui
DigitalSkill; Nothing more, nothing less. [ I am the original Abdulimrandsa1 ] |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 03:23 PM |
... Hello?
DigitalSkill; Nothing more, nothing less. [ I am the original Abdulimrandsa1 ] |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 04:14 PM |
Bawmp...
DigitalSkill; Nothing more, nothing less. [ I am the original Abdulimrandsa1 ] |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 05:09 PM |
Bump V.2.
DigitalSkill; Nothing more, nothing less. [ I am the original Abdulimrandsa1 ] |
|
|
| Report Abuse |
|
|