#Players don't get coins after joining

1 messages · Page 1 of 1 (latest)

novel nest
#

So basiccally when the player first join the game they get 150 cash but it's not working and not giving it to the player

hexed coral
#

Do you see the leaderstats? I dont suggest you parenting it inside the brackets

#

Also it only gives if its the player first time joining

novel nest
novel nest
molten maple
#

huh

#

oh

#

mb bro

#

im blind 😭

novel nest
#

impressive typing while being blind

molten maple
lucid palm
#

noopboy63

#

i dont need you need the
if else statement

#

just make the value 150

#

oh wait

#

nvm

#

fuck

molten maple
#

🙏

novel nest
quartz canyonBOT
#

studio** You are now Level 7! **studio

lucid palm
#

oh

novel nest
#

this sshould be 150

#

wait the idea is -1

#

not random

#

let me delete myslef

molten maple
#

so this means

novel nest
#

this might be the problem

molten maple
#

either you did smth wrong in the pcall or your coin value was set before

#

so it doesnt change

lucid palm
#

did you shorten

#

s and e

#

success and errormsg

novel nest
#

yeah

lucid palm
#

T_T

novel nest
#

but e is actully the value

lucid palm
#

km assuming that you placed it in server script service

#

and not placed it somewhere else

novel nest
lucid palm
#

you just put line 14 after line 7

molten maple
#

@novel nest i think you like tested when it only saved it and didnt give 150 so it is finding your data and putting it

lucid palm
#

or

#

your previous data store

molten maple
#

yes

#

that

lucid palm
#

has your old data

molten maple
#

idk how you reset that tho

lucid palm
#

so just change the datastore

lucid palm
#

??

novel nest
molten maple
#

what error

novel nest
#

mb

#

it's showing success is true beacuse of it

lucid palm
#

works?

lucid palm
lucid palm
#

did it work

#

@novel nest

novel nest
#

no

#

@lucid palm

#

i changed the name

novel nest
#

but the success value is still true

lucid palm
#

did you change the lines

novel nest
#

what lines

lucid palm
#

keep up man

novel nest
#

man i don't know what am doing wrong by now

hexed coral
#

Send full script

quartz canyonBOT
#

studio** You are now Level 12! **studio

novel nest
hexed coral
#

Send what you have in the full script

novel nest
#

somehow success is always true

hexed coral
#

Cus you already have a data??

#

Like I said it only gives 150 if its the player first time joining the experience

novel nest
#

i removed data

novel nest
hexed coral
#

instead of "if s then"
try

if s and data then
Coins.Value = v
else
Coins.Value = 150
end
lucid palm
novel nest
#

i fixed the bug

#

i just check if v is not nil

lucid palm
#

uh

#

food

novel nest
#

i am not hunger

hexed coral
#

Since I usually use data

#
if s and v ~= nil then
novel nest