How to Save Leaderstats in Roblox Studio

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 13

  • @cool_paco
    @cool_paco Місяць тому +1

    Now i see you grow up much i was with you in the game when you had 30 subscribers. And now you have 300!!

  • @LaxmisudhaB
    @LaxmisudhaB Місяць тому +1

    finally a datastore script that worked, thank you and also 300th sub1!111!

  • @dezyhpher
    @dezyhpher Місяць тому +2

    Your vids are cool man the main issue is your thumnail, people would pass it. Its too boring and plain. Not here to make fun of you but just giving advice.
    Take it or not, i don't mind. Thanks btw.

  • @EthanStudios08
    @EthanStudios08 Місяць тому +1

    Another fire tutorial 🗣️🔥

  • @Nick-yy7zs
    @Nick-yy7zs Місяць тому

    i also needed this

  • @IceehOGeladinho
    @IceehOGeladinho Місяць тому

    BRO YOU'RE COOL ASF

  • @ImGrikRestForNow
    @ImGrikRestForNow Місяць тому +2

    hey bro can you make a group chest with an award of 10k coins? thanks bro new sub🔥

  • @Extra4516
    @Extra4516 Місяць тому

    Ty

  • @tp1212_
    @tp1212_ Місяць тому

    hey noob script can your next video is like when we go to that part we earn 1 wins and teleport back to spawn points 😁😭

    • @Project_Mox
      @Project_Mox Місяць тому +1

      just do a script in serverscriptservice:
      local Players = game:GetService("Players")
      local part = workspace.WinPart
      local spawnPart = workspace.Spawn
      local debounceTable = {} -- we want to make sure player just get one win
      local function touchedWinPart(hit)
      local player = Players:GetPlayerFromCharacter(hit.Parent) -- getting the player
      if not table.find(debounceTable, player.Name) then -- check if player is in the table
      table.insert(debounceTable, player.Name)
      player.leaderstats.Wins.Value += 1 -- giving player a win
      player.Character.HumanoidRootPart.CFrame = spawnPart.CFrame
      print("Reward")
      else
      task.wait(2)
      table.remove(debounceTable, debounceTable[player.Name]) -- removing the player
      end
      end
      part.Touched:Connect(touchedWinPart)

    • @tp1212_
      @tp1212_ Місяць тому

      @@Project_Mox tysm my legend