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: Huge Question

Previous Thread :: Next Thread 
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
10 Apr 2013 11:16 PM
Why wont this work!? Ok, so its an Intro but only does the following:
It does a Picture, Fades, Picture, Fades, Camera circles brick with a GUI Button next to it. Now, heres where it stops. When I click the Button, it wont do a thing! It wont make the Class GUI pop up (The class GUI is a whole different GUI), and it wont destroy the camera or the button intro! Why is this? (BTW, always read the comments becuase I may change the script)

Script:


local Screen = script.Parent
local Config = Screen.Config
local Filter = Screen.Filter
local Content = Screen.Content

function FilterFade(start,finish,step)
for i = start,finish,0.03/step do
Filter.BackgroundTransparency = i
wait()
end
Filter.BackgroundTransparency = finish
end

Filter.Visible = true
for _,image in pairs(Content:GetChildren()) do image.Visible = false end
wait(Config.Padding_Time.Value)
for _,image in pairs(Content:GetChildren()) do
image.Visible = true
FilterFade(0,1,Config.Fade_Time.Value)
wait(Config.Display_Time.Value)
FilterFade(1,0,-Config.Fade_Time.Value)
image.Visible = false
wait(Config.Display_Time.Value)
end
wait(Config.Padding_Time.Value)
Screen.Background.Visible = false
FilterFade(0,1,Config.Fade_Time.Value)



wait(0.05)



script.Parent["Enter"].Visible = true







local target = workspace.IntCam.Head
local camera = workspace.CurrentCamera
camera.CameraSubject = target
local angle = 5

while wait() do
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0,angle,0)
* CFrame.new(0,0,-30)
angle = angle + math.rad(.3)

end






local button = script.Parent.Enter

button.MouseButton1Click:connect(function()

script.Parent.Parent["Pick Class"].Frame.Visible = true
wait(0.05)
game.Workspace.IntCam:Destroy()
wait(0.05)
script.Parent:Destroy()

end)
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
10 Apr 2013 11:22 PM
Well, I have to go to bed. Its 9:22PM and I wake up at 4:00AM, so ya. Good Night Scripters of ROBLOX!
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
10 Apr 2013 11:27 PM
Output?
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
11 Apr 2013 08:06 AM
Im awake now, but in 2Hours I GTG to school. :/

Um... To refresh my memory of an OutPut, whats an OutPut? xD
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
11 Apr 2013 08:13 AM
NVM! I got it finally. All I did was move the button part into the EnterGame button, and added a Camera Fixer.

:3
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
11 Apr 2013 02:15 PM
Output tells you where your script stopped working silly :3
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
11 Apr 2013 06:23 PM
Well, even though i dont need this anymore:

I actually never got an OutPut, it said wit was working fine. :o
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
11 Apr 2013 06:25 PM
Was it a local script? They don't give output
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
11 Apr 2013 06:28 PM
Um....Mayyyyyyybe. :3


It doesn't matter anymore though. I figured it out. I really just needed to move the Camera Rotation into the IntCam, make it connect to the Intro GUI, and put the Button Script into the Button. :3
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
11 Apr 2013 06:29 PM
There is a way to get output from a local script though, make it a normal script and test using

Tools > Testing > Play solo

All scripts are ran local there anyway
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