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: This shows up in a test server, but not a regular one..

Previous Thread :: Next Thread 
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
16 May 2015 09:13 PM
It counts down and then a gui comes down and an alarm goes off.
On a real server, it counts down but the gui and sounds don't appear after it's done counting. Help?

local v = game.Workspace.Display.SurfaceGui.Time.TextBox
function onClicked()
local timeremaining = script.Parent.Parent.Time.Text
local time = timeremaining
for i = 0, time do
local minutes = math.floor(time/60)
local seconds = math.floor(time%60)
local seconds2 = math.floor(time%10)
wait(1)
time = time - 1
v.Text = "Timer: "..tostring((minutes..":"..(seconds > 9 and seconds or "0"..seconds2)))
end
v.Text = ""
local player = script.Parent.Parent.Parent.Parent.Parent
player.PlayerGui.TimerOver.Frame.Visible = true
player.PlayerGui.TimerOver.Ring:Play()
player.PlayerGui.TimerOver.Frame:TweenPosition(UDim2.new(0.417, 0, 0.05, 0), "InOut", "Quad", 1, false, nil)
wait(3)
player.PlayerGui.TimerOver.Frame:TweenPosition(UDim2.new(0.417, 0, -0.5, 0), "InOut", "Quad", 1, false, nil)
wait(1)
player.PlayerGui.TimerOver.Frame.Visible = false
end
script.Parent.MouseButton1Down:connect(onClicked)
Report Abuse
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
16 May 2015 09:25 PM
bumpp
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
16 May 2015 09:27 PM
Use a localscript
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
16 May 2015 09:32 PM
'local player = script.Parent.Parent.Parent.Parent.Parent'
o my
Report Abuse
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
16 May 2015 09:34 PM
I tried using a localscript, that didn't work
i changed it to local players = game.Players.LocalPlayer
it still works in test servers though..
Report Abuse
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
16 May 2015 09:46 PM
bumpp
Report Abuse
BattleFieldPwner is not online. BattleFieldPwner
Joined: 05 May 2013
Total Posts: 233
16 May 2015 09:48 PM
Maybe try to add it in as a startergui? It wouldn't pop-up at the sametime but every player will get one.
Report Abuse
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
16 May 2015 09:48 PM
@Battle - I only want the person that clicks it to get the notification.
However, every player would be fine too I guess.
Report Abuse
CrimsonForce is not online. CrimsonForce
Joined: 11 Sep 2010
Total Posts: 35714
16 May 2015 10:40 PM
bump
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