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

Part Transparency == 0, +$50 every 10 Help Script Not Working?

I'm trying to make it where when Parts transparency == 0 then player gets +$50 every 10. Whats wrong with my script?

	local player = script.Parent.Transparency == 0
		local stats = player:findFirstChild("leaderstats")
		local add = 50
		local cash = stats:findFirstChild("Cash")
		if script.Parent.Transparency == 0 then
				cash.Value = cash.Value + add
				wait(10)
end

2 comments

0

This script is obviously incomplete...

0

That didn't exactly help me.

1 answer

✓ Accepted answer
while true do
player = script.Parent
if part.Transparency == 0 then
 local stats = player:findFirstChild("leaderstats")
        local add = 50
        local cash = stats:findFirstChild("Cash")
cash.Value = cash.Value + add'
wait(10)
end
end

I think that should work, just identify where the part and player are.

1 comment

0

For the love of god, please indent your codes!

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