Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 06:52 PM |
p = script.Parent v = script.Parent.Value p.Text = "Flashlight Power: "..v.Value""
Not quite sure how to do this..
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 06:53 PM |
1
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Zenuvius
|
  |
| Joined: 26 Aug 2014 |
| Total Posts: 551 |
|
|
| 24 Jun 2015 06:54 PM |
p = script.Parent v = script.Parent.Value p.Text = "Flashlight Power: "..v.Value.."" |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2015 06:54 PM |
| that'd work just remove the "" at the end |
|
|
| Report Abuse |
|
|
Zenuvius
|
  |
| Joined: 26 Aug 2014 |
| Total Posts: 551 |
|
|
| 24 Jun 2015 06:55 PM |
that's correct already assuming that script.Parent.Value exists :/
Anything on the output ? |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 06:56 PM |
Yes, here's the output.
Players.Player.PlayerGui.ScreenGui.TextLabel.Value:3: attempt to call field 'Value' (a number value)
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 06:57 PM |
idk
i thought it would work
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:01 PM |
qq
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
ehern11
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1541 |
|
|
| 24 Jun 2015 07:03 PM |
p = script.Parent v = p.Value p.Text = "Flashlight Power: "..v.Value |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:27 PM |
Nothing seems to work, and it always says it's an error trying to access the numbervalue...
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jun 2015 07:28 PM |
| Either your hierarchy is wrong or tostring(v.Value) |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jun 2015 07:30 PM |
p = script.Parent p.Text = "Flashlight power:"..p.Value |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jun 2015 07:31 PM |
| sht typos everywhere. disregard my post above |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:32 PM |
@time
already tried it, here's output
19:31:45.104 - Players.Player.PlayerGui.ScreenGui.TextLabel.Valcheck:2: attempt to concatenate field 'Value' (a userdata value)
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:33 PM |
Also tried something else:
p = script.Parent v = p.Value p.Text = "Flashlight power:"..v.Value
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:33 PM |
The hierarchy is correct, it's just erroring because it's a "number value"
It honestly should work...
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jun 2015 07:34 PM |
And Please do not do this "Value.Value" the script will think the first value is a value.
Do this
p = script.Parent val = p.Val p.Text = "Flashlight power:"..val.Value |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:34 PM |
afk for a bit
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 07:36 PM |
still doesn't work, and no output...
p = script.Parent val = p.Val p.Text = "Flashlight power:"..val.Value
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jun 2015 07:38 PM |
| Well post a picture of the hierarchy in your tool/gui |
|
|
| Report Abuse |
|
|
| |
|
ehern11
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1541 |
|
|
| 24 Jun 2015 08:06 PM |
| I tested the one I gave you and it worked |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 09:33 PM |
@eh
You obviously didn't, because it doesn't work for me, and I've tried that.
@Time
No, you don't understand.
My hierarchy is completely corrct.
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 24 Jun 2015 09:34 PM |
heres the hierarchy anyways...
http://prntscr.com/7l0oif
~ Xucs/Tixmaker101/Scuc | + 55k Posts ~ |
|
|
| Report Abuse |
|
|