How to Give Players Points Automatically in Roblox - Roblox Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 147

  • @incrediblydead9335
    @incrediblydead9335 Год назад +2

    Thanks a ton, with this, I'll finally be able to have a working currency system for my morph game!

  • @omnomdavey
    @omnomdavey 4 года назад +4

    Notifs on, thank you for this!

  • @NeidastheHero
    @NeidastheHero 3 года назад +8

    This will be so useful in my roleplay game, thank you!

    • @guysnail1316
      @guysnail1316 2 года назад +1

      will it reset when player rejoin?

    • @Dav_Anima
      @Dav_Anima Год назад +1

      Look for a leaderstats Auto-Save

  • @troppersadly1586
    @troppersadly1586 Год назад +1

    I very like your tutorial.Everything works well.keep it up.I subs and support you!

  • @zerorauf
    @zerorauf 2 года назад +1

    I want to write time instead of money but leader stats (data version)
    When I change the thing on line 21 it doesn't work.
    But only leaderstats also works.
    Can u help ?

  • @kamjam6532
    @kamjam6532 2 года назад +2

    THANK YOU SO MUCH I HAVE BEEN LOOKING FOR THIS

    • @guysnail1316
      @guysnail1316 2 года назад +1

      will it reset when player rejoin?

    • @TweakinOnColeslaw
      @TweakinOnColeslaw 2 года назад +3

      @@guysnail1316 No, that's the whole point of the Datastore. It does exactly as said, stores your data.

  • @BraydenBray-ow6sd
    @BraydenBray-ow6sd Год назад +2

    Hello, I want to keep the script, but how do I change the name from money to points? When I do, it just doesn't work and doesn't give me anything. What do I do?

    • @Speedrun7867
      @Speedrun7867 10 месяцев назад

      Wherever it is written money in both scripts change it from Money to Points

  • @SternYT
    @SternYT 3 года назад +1

    whenever i purchase an item from the sword shop i made, the points shott from 250 to 0 after i purchase, but then go back up to 251, is there a fix for this?

  • @lolnotgood6299
    @lolnotgood6299 2 года назад +1

    how do you make when u buy a part like then it starts giving you automaticly money

  • @adrianatoadere9118
    @adrianatoadere9118 3 года назад +1

    TYSM! I will subscribe. With your help , I've been getting better at ROBLOX scripting. Now I'm going to go look for a leaderboard video- ;-;

  • @MustafaStarsYT
    @MustafaStarsYT 2 года назад

    I am Turkish and Turks did not teach such things in Roblox, you are the king!!!!!

  • @paperrings.13
    @paperrings.13 2 года назад +1

    Mine did not work

  • @The_Real_Fearless
    @The_Real_Fearless 11 месяцев назад

    the script helps so much and saves so much time and any erros thanks!

  • @Fluxo99
    @Fluxo99 Год назад +1

    How do i make so when i touch something i auto get points ?

  • @RainbowPlayzo
    @RainbowPlayzo 3 года назад +1

    Tech Do you have a video that makes leaderboard?
    I finished this video how to get money/points every second. But i want to have a leaderboard so i know how much money/point does people have like whos the 1st 2st 3st like that. Pls Reply to me!

  • @67-6
    @67-6 3 года назад +1

    Hi guy, what if i use dialog then if player select true dialog choice point in leaderstats will +1 I can’t do this I try to mix your method with dialog basic localscript then put it in starterplayerscript represent your second script in severscripsevice

  • @timothygendreau1478
    @timothygendreau1478 3 года назад +1

    you deserve more subs, thank you.

  • @clman-bb6bm
    @clman-bb6bm 3 года назад

    help, I was making a obby with an autosave with stage leaderboard. Then when the added the Leaderstat (Datastore), The stage leaderboard was gone and it was replaced with the "Money" Leaderstats. The money saves, but I don't see the stage leaderstat. Is there a way to fix this?

  • @crappy.920
    @crappy.920 3 года назад

    hey so im having a problem where it dosent work with multiple players but works fine in singleplayer.i dont know why it does this can someone help

  • @mrhotdogs7623
    @mrhotdogs7623 2 года назад

    how do i make it so when a player joins, a number value generates into their player files. i am making a tycoon completely from scratch and i dont know how to do this.

  • @kevenpika7025
    @kevenpika7025 4 года назад +2

    Can you make a video where you can buy stuff with the currency as a gui? Please can you do it?

  • @Sp3c1al_K
    @Sp3c1al_K 4 года назад +2

    Make a video on ragdolls

  • @Dav_Anima
    @Dav_Anima Год назад +1

    Wow you think it will help me a lot!

  • @damilkfr
    @damilkfr 2 года назад

    Thank You Very Much! This Was Very Helpful!

  • @0tiresome814
    @0tiresome814 4 года назад

    On the first person shooting series, is there any way to make it rapid fire when the mouse is being held down. I tried experimenting with loops but I can't seem to get it to work.

  • @creepermods4641
    @creepermods4641 2 года назад +1

    How to give players a points after finishing the game in another place.
    The place is attached to original game.

  • @p0lit00
    @p0lit00 4 года назад +1

    Can you make a video about....
    -Admin GamePass working
    -Admin Commands working
    -Ban GUI
    Commands that give players game currency (only from game mods)
    Love your vids please make these a vid I need them. Everyone makes them so bad and they don't work. Even in their video

  • @Anonymous-uk3zb
    @Anonymous-uk3zb 2 года назад

    So how am I supposed to update everything in the advanced LeaderStats script. ( Already Renamed "Money" ) It gives points but doesn't save.

    • @TheDragonGamer742
      @TheDragonGamer742 Год назад

      have you published the game and enabled API Services?

  • @kryptoncraftymax8275
    @kryptoncraftymax8275 2 года назад

    how can i make this currency be used to buy some stuff in my game?

  • @thedarknesswolf3502
    @thedarknesswolf3502 4 года назад

    This can be usefull with daily rewards for my game. Thx man

  • @insertname3293
    @insertname3293 4 года назад +2

    If you read this by any chance, can you tell us how to make a shop with the coins?

    • @tqffy
      @tqffy 4 года назад

      You can watch alvinblox

  • @oscarmawusi9683
    @oscarmawusi9683 3 года назад

    IT WORKS!!!! best video ever.

  • @thedestroyerofhandlers2004
    @thedestroyerofhandlers2004 Год назад

    Thank you so much!

  • @bullshark1365
    @bullshark1365 3 года назад +2

    this works perfect!

    • @guysnail1316
      @guysnail1316 2 года назад

      will it reset when player rejoin?

  • @entitythedemonplayz4427
    @entitythedemonplayz4427 2 года назад

    bro this is very usefull thank you (you'll see me a lot so pls ignore these comments )
    and i was working on a game and i want you to try it as soon as it is ready. if you are free that is

  • @nikolakretue788
    @nikolakretue788 2 года назад

    Thanks bro this helped alotttt.

  • @jasmine7036
    @jasmine7036 3 года назад +1

    How can you make it so it only happens to certain ranks in a group?

    • @SternYT
      @SternYT 3 года назад

      you have to use robloxs API, but im not entirely sure how to find ranks of a group

  • @sp4c1fy82
    @sp4c1fy82 2 года назад

    Ik im late but is there a way to give points to players in-game?

  • @Not_bryan1
    @Not_bryan1 2 года назад

    Thank you so much

  • @marcigothacked3613
    @marcigothacked3613 3 года назад

    wow thank you so much! thsi was rlly helpful for me! but is there a way to like make a safezone where you dont get points and everyone has infinite health?

  • @zuperpro1087
    @zuperpro1087 4 года назад

    Ideas : crafting system? btw ur vids are cool

  • @spinoplayz2791
    @spinoplayz2791 3 года назад

    do you still type this datasave script when u already have one?

  • @vloggyadventures9534
    @vloggyadventures9534 4 года назад

    Good videos love the tutorials

  • @KhaiFortnite
    @KhaiFortnite Год назад

    how do i make a coins per second upgrade?

  • @ilijakinghd1523
    @ilijakinghd1523 3 года назад

    Its working,thank you!

  • @pac198
    @pac198 Год назад

    Is there a way to make it so that if they are on certain teams they will get the points? Say if somebody is on the "Lobby" Team, they wouldn't get anything but if they are on "Red Team" and "Blue Team" they'll get points?

    • @xaywilson7967
      @xaywilson7967 Год назад

      im not the best game designer, but I think its something along the lines of
      while game.Player.LocalPlayer.Team.TeamName == team name do
      *money giver script here*

  • @L84G
    @L84G 2 года назад

    Is it possible by making it but with a ui?

  • @BlandForBrand1981
    @BlandForBrand1981 2 года назад

    it dosent work for me but the point system works it dosent save the points tho

  • @amusablemonk78
    @amusablemonk78 Год назад

    why does it say " players is not a valid member of DataModel "Game""?

    • @amusablemonk78
      @amusablemonk78 Год назад

      nevermind i just had to put a capital letter

  • @comet_sans1520
    @comet_sans1520 2 года назад

    how do u make the gui or whatever it is for the level

  • @lovesylvia8172
    @lovesylvia8172 3 года назад

    hello! :3 if you could help me it would be greatly appreciated ^^. How may I use this to give you points only if you have a certain tool? Like if you buy this item, you get the points? tysm for your time. keep up great work!

  • @a1za..819
    @a1za..819 Год назад

    what if you already have one leaderstats

  • @neonphoenix99_
    @neonphoenix99_ 4 года назад

    I love ur vids :)

  • @cyberghastsecondchannel1057
    @cyberghastsecondchannel1057 4 года назад +1

    idea: teleport gui

  • @fairyundermushroom
    @fairyundermushroom 2 года назад

    how can we make a shop with that?

  • @Lolox-zw9fy
    @Lolox-zw9fy 4 года назад

    Nice :) btw can you make a system so of you kill an npc a system message appears?

  • @thereallyrealamber
    @thereallyrealamber 3 года назад

    how do i reset a players point count on death?

  • @kyotutoriais1398
    @kyotutoriais1398 4 года назад +1

    I'll use it thx

  • @edustr3276
    @edustr3276 3 года назад

    The points will save?

  • @game_cui
    @game_cui Год назад

    hey, great script! but is there a way to make it so premium player earn more? thanks

  • @mattymartbot6303
    @mattymartbot6303 3 года назад

    exactly what i needed

  • @egypt6868
    @egypt6868 3 года назад +1

    Hi, I'm making an obby and I would like to make it so when the player steps on the checkpoint, they are awarded a bonus of a certain amount of coins. I don't want them to be able to collect the bonus more than once. I only want it so each player can touch the brick only once when they completed the stage. Could you do a tutorial on that?
    edit: I just saw that you have a touch part to get points tutorial. I still have a question though: How do you make it so the players can only collect the bonus once. I want all players in the game to be able to collect the bonus from the block once. (Every player that completes stage 1 of the obby will get a stage 1 bonus but if they go back to the stage 1 checkpoint again they will not receive a bonus because they already passed the stage).

    • @dexx0
      @dexx0 3 года назад

      just use a wait function and put it to around 1 million seconds or something eg:
      wait(10000000000000)

    • @egypt6868
      @egypt6868 3 года назад

      @@dexx0 Thanks for the suggestion!

    • @dexx0
      @dexx0 3 года назад

      @@egypt6868 no problem!

    • @duck9773
      @duck9773 Год назад

      @@egypt6868 or make it so the script gets destroyed,taht means the script will never work again

    • @mellowendacopia
      @mellowendacopia Год назад

      @@dexx0 i'd recomment to put wait(math.huge) (I know the comment is old but it's just in case so you know)

  • @spicy9447
    @spicy9447 3 года назад

    for me the leaderstats does not show up

  • @xxfrog_tesxx
    @xxfrog_tesxx 2 года назад

    tysm

  • @arcticfoxgaming7650
    @arcticfoxgaming7650 2 года назад

    Thank you!

  • @underman5846
    @underman5846 2 года назад

    The datastore leaderstats doesnt work for me is there something im missing?

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      Check the output while the game is running to see if you have any error messages

    • @underman5846
      @underman5846 2 года назад

      @@TechwithMikeYT a nvm it works now just had to delete the other leader stats script

  • @fizzelwizzel8281
    @fizzelwizzel8281 4 года назад

    Can you make a video about rocket launchers like a rocket laucher that turns players in to ice and then blows them up you know like weird onces crazy once

  • @TheyAreReal69
    @TheyAreReal69 2 года назад

    I used this system to help my game make a car buying and spawning system, works great! But... when you purchase a car the amount the cars costs DOES get subtracted, but a few seconds later your points go back to what they were, how can I fix this?

    • @blackfire0708
      @blackfire0708 2 года назад

      I am guessing you are doing the subtracting from a local script. It has to be a server script otherwise the game dosen't reconize it.

    • @TheyAreReal69
      @TheyAreReal69 2 года назад

      @@blackfire0708 ah okay, thanks!

  • @adimemo2134
    @adimemo2134 3 года назад

    IT'S WORKS!!! THX

  • @xswords5086
    @xswords5086 2 года назад

    your a life saver

  • @seqrixx
    @seqrixx 2 года назад

    does this save?

  • @cro4tiantoad348
    @cro4tiantoad348 2 года назад

    Can you make a NPC basic dialog shop with money? Thanks if you do!

    • @cro4tiantoad348
      @cro4tiantoad348 2 года назад

      With this money that you made in the video ofc

  • @beliairs
    @beliairs 3 года назад

    will this save?

  • @xovinniee
    @xovinniee 3 года назад

    the points aren not saving

  • @JoyJoy-jw5qu
    @JoyJoy-jw5qu 3 года назад

    This works so well, amazing job and keep up the work. +1 sub from mee

  • @GenusDev
    @GenusDev 4 года назад

    Why don't you use += or -= ?

  • @Mxriz
    @Mxriz 3 года назад

    The script doesn't work :P

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад

      Did you check output for errors?

    • @Mxriz
      @Mxriz 3 года назад

      @@TechwithMikeYT yep, and can you please do a tutorial video on "How to give a player 1 point in a random time?" :')

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад +2

      Here you go! Paste these in separate scripts inside the ServerScriptService.
      Script 1:
      local amount = 1
      while true do
      wait(math.random(1,3)) --change interval to whatever you want
      for _,plr in pairs(game.Players:GetChildren()) do
      local stats = plr:FindFirstChild('leaderstats')
      if stats then
      stats.Points.Value = stats.Points.Value + amount
      end
      end
      end
      ===================================================================================
      Script 2:
      local function onPlayerJoin(player)
      local leaderstats = Instance.new('Folder')
      leaderstats.Name = 'leaderstats'
      leaderstats.Parent = player
      local points = Instance.new('IntValue')
      points.Name = 'Points'
      points.Value = 0
      points.Parent = leaderstats
      end
      game.Players.PlayerAdded:Connect(onPlayerJoin)

  • @eriix5720
    @eriix5720 3 года назад

    It worked, but do u know maybe how to give to some people money? so like, everyone starts with 5 coins and they get every min 5 coins (That worked). But what I wanna add more is, I want for some other people that they get already let's say 1K coins but not everyone just a few roblox users

  • @RootTheLucario
    @RootTheLucario Год назад

    onPlayerJoin is underlined in blue

  • @sheilamarieinso3827
    @sheilamarieinso3827 4 года назад

    Nice! Also is there a way to use the points for shops?

  • @EnvixIsCool
    @EnvixIsCool Год назад

    i dont understand what i am doing wrong

  • @avdiiseni1175
    @avdiiseni1175 4 года назад

    Imma use this to make a time in game leaderboard

  • @easton3486
    @easton3486 2 года назад

    Great video

  • @gamerworld-fl4mt
    @gamerworld-fl4mt 2 месяца назад

    this guy overcomplicates his life

  • @RicoIsTheTrueBatman
    @RicoIsTheTrueBatman 2 года назад

    it didnt work sadly and i checked if there was error messages but it doesnt look like there is ; (

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      Did you put it in server storage by accident?

    • @RicoIsTheTrueBatman
      @RicoIsTheTrueBatman 2 года назад

      @@TechwithMikeYTill check

    • @RicoIsTheTrueBatman
      @RicoIsTheTrueBatman 2 года назад

      @@TechwithMikeYT No it is in serverScripservice and there is 2 scritps and i did one and i tested when you tested and it didnt work

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      Can you paste what you have for both?

    • @RicoIsTheTrueBatman
      @RicoIsTheTrueBatman 2 года назад

      @@TechwithMikeYT i only have one so far because in the video you showed you tested like half way through and the board was up it didnt even have that ill show you what i have rn though

  • @ruslana5600
    @ruslana5600 3 года назад

    how do I change the "Money" to say "time"

    • @xovinniee
      @xovinniee 3 года назад

      just change the values that say “money” to time

  • @vladblox6673
    @vladblox6673 4 года назад

    can you do a tutorial about muder mystery 2 system?

  • @bobbyboo90
    @bobbyboo90 2 года назад

    It didnt work sadly. Can you think of any reason why?

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      Without post your code or telling me what error messages you have in the output while the game is running...nope no clue.

    • @bobbyboo90
      @bobbyboo90 2 года назад

      @@TechwithMikeYT Thank you for the reply! I fixed it last night and I forgot to tell you. You've earned a sub!

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      Glad to hear! Thanks!

    • @RicoIsTheTrueBatman
      @RicoIsTheTrueBatman 2 года назад

      Can you help me? mine didnt work and if you got yours working i need somebody too help me get mine working

  • @davo7612
    @davo7612 4 года назад

    Nice vid

  • @urbanzs
    @urbanzs 3 года назад

    doesn't work

  • @duke6745
    @duke6745 3 года назад

    if this is good i will sub

  • @EzraOPQ
    @EzraOPQ 4 года назад

    can you make like piggy jumpscare

  • @dragon5449
    @dragon5449 2 года назад

    bro that didnt work

  • @user-ft4kn7ot2d
    @user-ft4kn7ot2d 3 года назад

    the points dont saveee

    • @Emiliolifts
      @Emiliolifts 3 года назад

      Its not supposed to if you want it to save you would have to do stuff in replicated storage

  • @ozenro1476
    @ozenro1476 4 года назад

    make a tutorial of custene

  • @Turkey12abba
    @Turkey12abba 4 года назад +1

    Why you got 2k subs thats a cheat!

  • @clndering6
    @clndering6 2 года назад

    ctrl c ctrl v your script is now my property

  • @savotage9815
    @savotage9815 3 года назад

    clickbait
    it didnt work

    • @jamesdavidsonasmr1449
      @jamesdavidsonasmr1449 3 года назад +2

      It works , either you made a typo or you couldn't figure out how to change the name from 'money' to something else and that broke it.

  • @idkk5335
    @idkk5335 3 года назад

    I LOVE YOU THANK YOU SO MUCHHHHHH

  • @unbelievable8815
    @unbelievable8815 2 года назад

    I will clap u...