generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Gui Help?

Previous Thread :: Next Thread 
Perversion is not online. Perversion
Joined: 07 Jul 2013
Total Posts: 78
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 is not online. 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
Perversion is not online. Perversion
Joined: 07 Jul 2013
Total Posts: 78
09 Jul 2013 08:37 PM
Anyway around it though?
Report Abuse
Perversion is not online. Perversion
Joined: 07 Jul 2013
Total Posts: 78
09 Jul 2013 09:03 PM
I beg of you
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
09 Jul 2013 09:22 PM
Your problem does not warrant two threads.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image