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: Why doesn't this GUI script work

Previous Thread :: Next Thread 
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
27 Aug 2011 08:32 PM
ok so I put this script in a brick and what it does is when you touch the brick it activates the GUI

Brick script:
GUI = game.Lighting.Rules
script.Parent.Touched:connect(function (hit)
if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then
Play = game.Players[hit.Parent.Name]
if Play:FindFirstChild("PlayerGui") and not Play.PlayerGui:FindFirstChild(GUI.Name) then
GUI:Clone().Parent = Play.PlayerGui
end
end
end)

That Brick should activate this Script:
print("Intro GUI by CodylO")
M = script.Parent

Player = script
repeat wait(); Player = Player.Parent; until Player:IsA("Player")
Step = (Player:FindFirstChild("IntroGUIStep") and Player.IntroGUIStep:IsA("IntValue")) or Instance.new("IntValue", Player)
Step.Name = "IntroGUIStep"

while true do
M.Text = ""
wait(0.1)
for I = 1, 0, -0.1 do
script.Parent.Transparency = I
wait(0.03)
end
wait(1)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "Your now in a hole"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "There's 3 ways out of here"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "First way:"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "try to jump to the top of the hole"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "Second way"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
Step.Value = 6
end
wait(0.5)
M.Text = "Find a secret passage"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "Third way"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.03)
end
end
wait(0.5)
M.Text = "Freak out"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.05)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.TextTransparency = I
wait(0.05)
end
end
wait(0.5)
M.Text = "One of those ways will work and the other will not"
wait(0.5)
for I = 1, 0, -0.1 do
script.Parent.TextTransparency = I
wait(0.05)
end
wait(4)
for I = 0, 1, 0.1 do
script.Parent.Transparency = I
wait(0.05)
end
Step.Value = 10
end
wait(1)
script.Parent:Remove()
end


Now why doesn't that GUI activate? Can someone ask me
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
27 Aug 2011 09:23 PM
does anyone know what to do
Report Abuse
tik800 is not online. tik800
Joined: 04 Feb 2010
Total Posts: 104
27 Aug 2011 09:24 PM
whats the output?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
27 Aug 2011 10:47 PM
doesn't say the scripts loaded
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
27 Aug 2011 11:22 PM
no output. Is there anyone out there that knows how to fix this
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
28 Aug 2011 01:09 AM
still waiting for a reply
Report Abuse
GiverLol is not online. GiverLol
Joined: 20 Dec 2010
Total Posts: 810
28 Aug 2011 02:08 AM
script.Parent.TextTransparency = I?

Why?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
28 Aug 2011 02:12 AM
why not. Look I've seen this work before can someone just tell me why its not working.
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