Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

help with w weird error that shouldn't be happening?

Asked by 9 years ago
01wait(1) -- just a wait thats here
02player = game.Players.LocalPlayer
03l= player.leaderstats
04e = 10
05d = 4.5-- ignore these
06 
07frame = script.Parent.Parent
08script.Parent.MouseButton1Click: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
19end)

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?

1 answer

Log in to vote
0
Answered by 9 years ago

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.

0
yes it is a value.... i am so stupid.... thank you ScriptsAhoy 202 — 9y
0
Its okay, i mess up like that all the time xD The_Sink 77 — 9y
Ad

Answer this question