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 » Scripters
Home Search
 

Re: button not working

Previous Thread :: Next Thread 
ISeeYourPost is not online. ISeeYourPost
Joined: 10 Jun 2013
Total Posts: 1815
19 Sep 2017 01:31 PM
menu button does not work, it isn't even draggable. all frames are disabled except for menu at the time for the click. no errors in output


local GUI = script.Intro:clone()

local Menu = GUI.Menu
local intro = GUI.Intro

local frame = GUI.Intro.Beginning
local welcome = frame.welcome
local absence = frame.absence
local menu = Menu.Menu
local About = Menu.About
local play = menu.Play
local about = menu.About
local back = About.Back
local aboutframe = About.AboutFrame
local abouttext = aboutframe.AboutText



local function added(player)

GUI.Parent = player:WaitForChild("PlayerGui")


frame.Visible = true
welcome.Visible = false
absence.Visible = false



repeat wait() until player.Character
player.Character.Torso.Anchored = true
wait()

--Beginning of intro.

welcome.ImageTransparency = 1
absence.ImageTransparency = 1
welcome.Visible = true
absence.Visible = true
script.Intro.Scene:FireAllClients()
wait(2)
for i= 0, 25 do
wait()
welcome.ImageTransparency = (welcome.ImageTransparency - 0.04)
end
wait(2)
for i= 0, 25 do
absence.ImageTransparency = (absence.ImageTransparency - 0.04)
wait()
end
wait(2)
for i= 0, 25 do
welcome.ImageTransparency = (welcome.ImageTransparency + 0.05)
wait()
end
for i= 0, 25 do
absence.ImageTransparency = (absence.ImageTransparency + 0.05)
wait()
end
wait(1)
for i= 0, 25 do
frame.BackgroundTransparency = (frame.BackgroundTransparency + 0.05)
wait()
end
wait(1)


intro.Enabled = false
Menu.Enabled = true
menu.Visible = true
play.BackgroundTransparency = 1
play.TextTransparency = 1

about.BackgroundTransparency = 1
about.TextTransparency = 1

for i = 0, 25 do
play.TextTransparency = (play.TextTransparency - 0.04)
about.TextTransparency = (about.TextTransparency - 0.04)
play.BackgroundTransparency = (play.BackgroundTransparency - 0.016)
about.BackgroundTransparency = (about.BackgroundTransparency - 0.016)
wait()
end
end
--About button and section

about.MouseButton1Click:connect(function()
print("I have been clicked!")
for i = 0, 25 do
play.TextTransparency = (play.TextTransparency + 0.04)
about.TextTransparency = (about.TextTransparency + 0.04)
play.BackgroundTransparency = (play.BackgroundTransparency + 0.016)
about.BackgroundTransparency = (about.BackgroundTransparency - 0.016)
wait()
end
menu.Visible = false
About.Visible = true
aboutframe.BackgroundTransparency = 1
abouttext.TextTransparency = 1
back.BackgroundTransparency = 1
back.TextTransparency = 1
wait(.2)
for i = 0, 25 do
abouttext.TextTransparency = (play.TextTransparency + 0.04)
back.TextTransparency = (about.TextTransparency + 0.04)
aboutframe.BackgroundTransparency = (play.BackgroundTransparency + 0.016)
back.BackgroundTransparency = (about.BackgroundTransparency - 0.016)
wait()
end
end)







game.Players.PlayerAdded:connect(added)
Report Abuse
Exeriousless is not online. Exeriousless
Joined: 13 Nov 2012
Total Posts: 160
19 Sep 2017 02:22 PM
Walk it trough using print. You can print the connection between the event and the function.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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