|
| 09 Jul 2013 08:31 PM |
When I sit on a vehicle seat it removes my playergui even though i put a TouchEnded anyway around this?
script.Parent.Touched:connect(function(hit) hit.Parent.Humanoid.Seated:connect(function(char1) local i = 0 while true do i = i + 1 local player = game.Players:GetPlayerFromCharacter(hit.Parent) a = player.PlayerGui.ScreenGui.TextButton a.Text = "Your Time is: " .. i wait(1) end end) end)
script.Parent.TouchEnded:connect(function(hit2) local plr = game.Players:GetPlayerFromCharacter(hit2.Parent) b = plr.PlayerGui.ScreenGui b:Destroy() end) |
|
|
| Report Abuse |
|
|
DrWaffler
|
  |
| Joined: 16 Sep 2011 |
| Total Posts: 4248 |
|
|
| 09 Jul 2013 08:35 PM |
| That is because your legs are moved off of the seat after you sit down, so you stop touching it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 09 Jul 2013 09:22 PM |
| Your problem does not warrant two threads. |
|
|
| Report Abuse |
|
|