#whats the function for this

1 messages · Page 1 of 1 (latest)

celest patio
#

(idk what tag to put btw so mb if its wrong)

cosmic raven
celest patio
#

thank you

celest patio
frail cave
celest patio
#

and idk what the errors or anything mean

iron spade
frigid furnace
#

It doesn’t know what player is yet

iron spade
#

if this is a local script

#
local player = game:GetService("Players").LocalPlayer
celest patio
#

oh

#

i kinda half fixed it / half not fixed it

iron spade
#

show it then

#

ah wait its a script not localscript

celest patio
#

it does the fixing of the transparency and can collide

#

just idk how to make it so it wont work till i have more than 15 gold or whatever

#

and it will just kinda forever collect without me leaving the pad

fading kindleBOT
#

studio** You are now Level 2! **studio

iron spade
#
if player.leaderstats.Gold.Value >= 15 then
#

like this?

#

im confused what your trying to do

celest patio
#

yeah

#

im trying to kinda make a tycoon ish thing?

#

so once i got such amount of gold and I touch the 2cnd thing it kinda "unlocks" it if that makes more sense?

iron spade
#

and what currently doesnt work

celest patio
#

so it just always gives me money regardles of if i have less than 15 dollars

#

everything else works A ok its just that it gives me money before i have 15 dollars basically

frigid furnace
#

you’re giving the player money before it checks

#

see the part where it checks for player and then gives 5

#

And then it checks

celest patio
#

so i assume i just need to move the uh money giving bit below where it checks?

frigid furnace
#

That should probably work yeah

celest patio
#

alright thanks

iron spade