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 8 years ago
wait(1) -- just a wait thats here
player = game.Players.LocalPlayer
l= player.leaderstats
e = 10
d = 4.5-- ignore these

frame = script.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
    if l.Money.Value >= 10 then
        e = e + 5
        l.Money.Value = l.Money.Value - e
        frame.price.Text = '$'..e
        local poot = player:WaitForChild("waittime")
        print(poot)
        player.waittime = d -- and herein lies the issue
        d = d - .5 -- these never happen
        frame.lab.Text = d..' seconds'
    end
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?

1 answer

Log in to vote
0
Answered by 8 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 — 8y
0
Its okay, i mess up like that all the time xD The_Sink 77 — 8y
Ad

Answer this question