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: Problem with a GUI that pretty much 'loads' whenever you touch this brick?

Previous Thread :: Next Thread 
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 08:13 PM
    script.Parent.Touched:connect(function(hit)
    local hum = hit.Parent:findFirstChild("Humanoid")
    if not hum then return nil else
    local fold = hit.Parent.Character:findFirstChild("PlayerGui")
    local holder = fold:findFirstChild("Loader")
    local gui = holder.Frame
    for i = 0, 1, .1 do
    gui.BackgroundTransparency = i
    wait(.1)
    end
    wait(2.5)
    for v = 1, 0, -.1 do
    gui.BackgroundTransparency = v
    wait(.1)
    end
    end)
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
05 Nov 2011 08:14 PM
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:findFirstChild("Humanoid")
if not hum then return end
local fold = hit.Parent:findFirstChild("PlayerGui")
local holder = fold:findFirstChild("Loader")
local gui = holder.Frame
for i = 0, 1, .1 do
gui.BackgroundTransparency = i
wait(.1)
end
wait(2.5)
for v = 1, 0, -.1 do
gui.BackgroundTransparency = v
wait(.1)
end
end)
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 08:18 PM
@Cach

It's giving me this in the OutPut:


Sat Nov 05 21:16:45 2011 - Running Script "Workspace.Part.Script"
Sat Nov 05 21:16:45 2011 - Workspace.Part.Script:15: unexpected symbol near ')'
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 08:27 PM
bump
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 08:33 PM
bumpp
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 08:41 PM
HELP MEE D:
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
05 Nov 2011 08:47 PM
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:findFirstChild("Humanoid")
if not hum then return end
local fold = hit.Parent:findFirstChild("PlayerGui")
local holder = fold:findFirstChild("Loader")
local gui = holder.Frame
for i = 0, 1, .1 do
gui.BackgroundTransparency = i
wait(.1)
end
wait(2.5)
for v = 1, 0, -.1 do
gui.BackgroundTransparency = v
wait(.1)
end end
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
05 Nov 2011 08:48 PM
oops
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:findFirstChild("Humanoid")
if not hum then return end
local fold = hit.Parent:findFirstChild("PlayerGui")
local holder = fold:findFirstChild("Loader")
local gui = holder.Frame
for i = 0, 1, .1 do
gui.BackgroundTransparency = i
wait(.1)
end
wait(2.5)
for v = 1, 0, -.1 do
gui.BackgroundTransparency = v
wait(.1)
end end end)
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 08:50 PM
@Level

Where the hell did you get that third end towards end of the script?
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
05 Nov 2011 08:50 PM
oops
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:findFirstChild("Humanoid")
if hum then
local fold = hit.Parent:findFirstChild("PlayerGui")
local holder = fold:findFirstChild("Loader")
local gui = holder.Frame
for i = 0, 1, .1 do
gui.BackgroundTransparency = i
wait(.1)
end
wait(2.5)
for v = 1, 0, -.1 do
gui.BackgroundTransparency = v
wait(.1)
end end end)
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
05 Nov 2011 08:51 PM
db = false
oops
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:findFirstChild("Humanoid")
if not db and hum then
db = true
local fold = hit.Parent:findFirstChild("PlayerGui")
local holder = fold:findFirstChild("Loader")
local gui = holder.Frame
for i = 0, 1, .1 do
gui.BackgroundTransparency = i
wait(.1)
end
wait(2.5)
db = false
for v = 1, 0, -.1 do
gui.BackgroundTransparency = v
wait(.1)
end end end)
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