|
I have some basic experience with GUI's(made a Reset tool), so, more than anything else, I wanna know how to have a TextBox or whatever ONLY shows, so I can show the time of day, according to the variable in the Lighting. I have a Day/Night Cycle script. That's why. My Place is Can You Climb The Epic 2,000-Foot-Tall Ladder??, in case that helps. Please respond quickly, gotta be ready for the contest! Thanks! My very first forum post :D! |
|
ducobu123Join Date: 2010-02-06 Post Count: 112 |
well that don't help me because i know that |
|
|
Bump. As some extra information, I REALLY need to know. It might be helpful if you just tell me how to include variables in hints and messages too... And I want a DIGITAL clock, that matches the TimeOfDay in the lighting. PLEASE HELP!!! |
|
SpikexpJoin Date: 2008-08-05 Post Count: 513 |
script.Parent.Text=game.Lighting.TimeOfDay ?
Is that what you mean? Because what I read made no sense... |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
Make a GUI
put a script in it
script :
while wait(.1) do
script.Parent.Text = "Server Clock : " ..game.Lighting.TimeOfDay..
end |
|
|
Thank you very much!!
I have one last thing I need to know, but I don't know if I should start a new thread for it... I would also like an altimeter, so people can see how high they are. It would be nice if that could be a GUI, or if it could be on a leaderboard or something, or even in a hint at the bottom... Like, the Y value of the player's torso? Is it done the same way as the lighting?
Anyways, I'm gonna go try your script now. I'll tell you if it works. |
|
|
Okay... So I went and tried it... It works great!! Just one tiny little problem... When you click it, it gets that little flashy line and you can type in it?? How do I fix that?? You can go to my Place and see for yourself if you like... Please help... I don't like that part!! |
|
arundelJoin Date: 2008-04-21 Post Count: 5762 |
Have you used an TextLabel, TextBox or TextButton..? |
|
|
kikaro11Join Date: 2008-12-27 Post Count: 801 |
while true do
Y = script.Parent.Parent.Parent.Character.Torso.Position.Y
script.Parent.Text = "Altitude : " ..Y..
wait()
end
Try this, I never use GUI's btw. |
|
aase69Join Date: 2008-04-04 Post Count: 3794 |
Use TextLabel instead. TextBoxes are used to write in. |
|
|
|
The altimeter doesn't exactly work. It only shows what I put in the text... It won't change to show the altitude... What's wrong? |
|
|
while true do
pcall(function() script.Parent.Text = tostring(script.Parent.Parent.Parent.Character.Position.Y) end)
wait(0.1)
end |
|
|
while true do
call(function()script.Parent.Text = tostring(script.Parent.Parent.Parent.Character.Position.Y) end)
wait(1)
end
...did not work. What is WRONG?? |
|