Categories > Coding > Lua >

Issue with a simple LeaderStats DataStore Script

Hectique

Hectique

Posts: 1307

Threads: 186

Joined: Nov, 2019

Reputation: 14

Posted

To all my WRD friends, hello! I've returned. For good, but not as frequent.

 

I am working on a simple "Sword fight and flex your kills" game. I was working on Leaderstats and after finishing them up, I shortly after realized I needed to set up a datastore to save the leaderstats.

 

No big deal, right?

Well, no.

 

After making modifications to the leaderstats so I could add the datastore, then shortly after actually implementing the datastore, the leaderstats shortly after stopped showing up.

 

Heres a screenshot of the script, (yes its in ServerScriptService if you are wondering.)

 

https://imgur.com/a/Q83F3eE

 

If you guys can help that would be awesome. Thank you!

  • 0

Added

@_realnickk i mean showing up as its not showing in the leaderboard. also thanks

  • 0

a former active and known member of the WRD community, but im kinda just a meme now

RiceUsesArchBtw

rice cracker

vip

Posts: 465

Threads: 19

Joined: Aug, 2021

Reputation: 39

Replied

you forgot to set the parent of the numbervalues lol

  • 0

https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png

Hectique

Hectique

Posts: 1307

Threads: 186

Joined: Nov, 2019

Reputation: 14

Replied

@RiceUsesArchBtw oh shoot right, thanks

  • 0

Added

@_realnickk its still not working, i tried my best to fix some of the stuff and its still being weird

  • 0

a former active and known member of the WRD community, but im kinda just a meme now

tar

CoolNickname

Posts: 143

Threads: 15

Joined: Jul, 2021

Reputation: 1

Replied

Line 8 and 10 , Same names may cause problem. You didnt set parents of kills and deaths. You forgot to set data variable at line 23. Line 37 would cause infinite delay if there is no creator in humanoid

  • 0

https://imgur.com/a/oOomuUo

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )