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: Script works in studio but not online

Previous Thread :: Next Thread 
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
24 Oct 2014 03:49 PM
This script is suppose to make words on my GUI fade in and out, it works in STUDIO but not in online mode?:/

I posted it in a pastebin to keep the format for easier reading: http://pastebin.com/1FQvApY6
Report Abuse
Tomarty is not online. Tomarty
Joined: 08 Dec 2008
Total Posts: 591
24 Oct 2014 03:52 PM
When you test in the studio the client and the server are the same thing, try using "Start Server" and "Start Player" to test
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
24 Oct 2014 03:53 PM
Alright, thanks for that info. Would you happen to know what's wrong with this script though?
Report Abuse
Tomarty is not online. Tomarty
Joined: 08 Dec 2008
Total Posts: 591
24 Oct 2014 03:57 PM
also try putting: wait(0.1) or something at the top of the script, that may be an easy fix for a possible glitch where scripts run before gui objects are added

Press F9 while online in your game, if there is a red error, the glitch should be easy to fix
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
24 Oct 2014 04:09 PM
Nothing happens when i press f9?
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
24 Oct 2014 04:11 PM
Actually I recommend using either wait(2) or:

repeat wait() until game.Players.LocalPlayer -- Use this method only if your in a local script

Put these in the very beginning of the script
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
24 Oct 2014 04:16 PM
It fixed it... Wtf? That doesn't mean any sense though? Please explain.
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
24 Oct 2014 04:20 PM
Basically localscrpts run before the character loads, so we have to wait for the character to join so it actually has an effect on them
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
24 Oct 2014 04:22 PM
Oh, alright. Well thank you for the help man! Much love.
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
24 Oct 2014 11:50 PM
It broke again for some reason?:/
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 01:24 AM
For some reason the GUI only breaks for the 1st person to join the server?
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
25 Oct 2014 02:09 AM
Can you post the script?
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 02:23 AM
it's at the very top in the pastebin... But here it is non-formatted.

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)

Screen:Remove()
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 02:31 PM
bump
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 04:15 PM
Bump
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 04:37 PM
B3:/
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 06:00 PM
B4
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 06:40 PM
B5?
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
25 Oct 2014 09:11 PM
Bump 9000....
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
26 Oct 2014 02:35 AM
Bump 20 trill
Report Abuse
sykokilla is not online. sykokilla
Joined: 08 Oct 2009
Total Posts: 838
26 Oct 2014 04:42 AM
Bump...
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