01 | wait( 1 ) -- just a wait thats here |
02 | player = game.Players.LocalPlayer |
03 | l = player.leaderstats |
04 | e = 10 |
05 | d = 4.5 -- ignore these |
06 |
07 | frame = script.Parent.Parent |
08 | script.Parent.MouseButton 1 Click:connect( function () |
09 | if l.Money.Value > = 10 then |
10 | e = e + 5 |
11 | l.Money.Value = l.Money.Value - e |
12 | frame.price.Text = '$' ..e |
13 | local poot = player:WaitForChild( "waittime" ) |
14 | print (poot) |
15 | player.waittime = d -- and herein lies the issue |
16 | d = d - . 5 -- these never happen |
17 | frame.lab.Text = d.. ' seconds' |
18 | end |
19 | end ) |
my output:
waittime <-- is the printed one
waittime is not a valid member of Player <--- is the error Line 15
it says it's not a valid member, but one line up it proves that it is a valid member...What's wrong with this?
If waittime is a value, then this SHOULD work. Just replace line 15 with this:
poot.Value = d
If it doesnt work, then I have no idea.