Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

2 comments

0

yes it is a value.... i am so stupid.... thank you

0

Its okay, i mess up like that all the time xD

This discussion is preserved as it was. New answers, comments, and votes are closed.