|
| 02 Jan 2015 01:36 PM |
Hello, people. I'm a standard scripting user who is making a game. It is a game that has an exploding core. You know Innovation Labs? It's kind of the same thing. Although, I have been having some issues with one script and I can't figure it out. The script checker says that it's okay, but I seem to have it not working. This script edits a brick of a TextLabel that tells what the temperature of the core would be. Here's what the script looks like:
local textlabel = game.Workspace.GubTempHQ.SurfaceGui.TextLabel.Text -- the edit to change the brick's SurfaceGui text for the TV local main = game.Workspace.GubTempHQ.SurfaceGui.TextLabel -- the main source of the text on the brick local celcueasoirhiniasydiu = game.Workspace.Temp.Current -- the temperature of the core while true do wait() textlabel = "Temperature: "..celcueasoirhiniasydiu.." C" end
The GubTempHQ is the main brick of the TextLabel. If anybody would tell me the problem of this script and how to fix it, it would be greatly appreciated. Let me know in the comments if you need more information to fix the script. Many thanks.
Sincerely, Gamered1337 Owner of Gub, Inc. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2015 01:38 PM |
By the way, the script is to be edited. The lines will be separated for any mistakes.
local textlabel = game.Workspace.GubTempHQ.SurfaceGui.TextLabel.Text -- the edit to change the brick's SurfaceGui text for the TV
local main = game.Workspace.GubTempHQ.SurfaceGui.TextLabel -- the main source of the text on the brick
local celcueasoirhiniasydiu = game.Workspace.Temp.Current -- the temperature of the core
while true do
wait()
textlabel = "Temperature: "..celcueasoirhiniasydiu.." C"
end |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2015 01:46 PM |
Well. If the Script Corrector says it's okay, I don't get what won't work.
Make sure you put it in the Part And name it TheGubTempHQ, oh and another thing make sure there's not Spaces between TheGubTempHQ.
Try It in a LocalScript.
It should be good!
|
|
|
| Report Abuse |
|
|
|
| 02 Jan 2015 01:57 PM |
1. That's okay if you don't know. 2. I edited the name, but there wasn't any spaces. 3. Didn't work :o Thanks for helping me though |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2015 10:00 AM |
I think I fixed it. I placed the script into the brick to SurfaceGui to TextLabel. Here's my change:
local celcueasoirhiniasydiu = game.Workspace.Temp.Current.Value -- the temperature of the core
while true do
script.Parent.Text = "Temperature: "..celcueasoirhiniasydiu.."C" -- the string to update TextLabel of TheGubTempHQ
wait(3) -- time of each update
end |
|
|
| Report Abuse |
|
|