Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 28 Aug 2013 01:05 PM |
| This is a script to make a BIllboard Gui. The gui clones right. And gets the name right, (t1.Text). But it doesn't get t2.Text or t3.Text. It just stays at the default in the server. In solo it works fine. |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 28 Aug 2013 01:05 PM |
wait(1) clone = script.Parent.Parent.Head:clone() clone.Parent = script.Parent.Parent.Head clone.BrickColor = clone.Parent.BrickColor clone.Name = "fake" clone.Transparency = 0 clone.face:remove()
weld = Instance.new("Weld") weld.Parent = script.Parent.Parent.Head weld.Part0 = script.Parent.Parent.Head weld.Part1 = clone clone.CFrame = script.Parent.Parent.Head.CFrame weld.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
user = game.Players:GetPlayerFromCharacter(script.Parent.Parent) team = user.TeamColor script.Parent.Enabled = true health = user.Character.Humanoid.Health maxh = user.Character.Humanoid.Health
while true do script.Parent.Adornee = script.Parent.Parent.Head script.Parent.talk.Text = (user.Name) script.Parent.talk2.Text = (team.Color) script.Parent.talk3.Text = (health.."/"..maxh) if user:IsInGroup(916672) then rank = user:GetRoleInGroup(916672) script.Parent.talk2.Text = (rank) else script.Parent.talk2.Text = "Not In TDR" end
if (health >= 51) then script.Parent.talk3.TextColor3 = Color3.new(0/255, 120/255, 0/255) elseif (health >= 25) then script.Parent.talk3.TextColor3 = Color3.new(255/255, 255/255, 0/255) elseif (health >= 1) then script.Parent.talk3.TextColor3 = Color3.new(255/255, 0/255, 0/255) end wait(0.1) end
|
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
| |
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
| |
|
|
| 28 Aug 2013 01:58 PM |
| Try using :WaitForChild() anywhere possible. |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 28 Aug 2013 03:38 PM |
| It's fine now. I fixed it with coroutines. |
|
|
| Report Abuse |
|
|