#I need help with a menu script --Buttons That Work--

1 messages · Page 1 of 1 (latest)

mortal rune
#

Hello there! I am NOT a scripter, but I am building a game of my own! However, I don't know how to code menu buttons! I would like some assistance with this task.

#

Heres a photo of said buttons:

slim sonnet
coarse shard
orchid dock
#

but not roblox

coarse shard
#

use atleast 50% of your brain

slim sonnet
hot vigil
#

eh

#

those ui's are a bit complex?

#

use profileservice to store each game, donations should be easy, once u make a working system that stores each game or run, making the continue button should be just a little hard

#

also change the ui colors, they are not addictive enough

mortal rune
#

hey man!

#

old ui photo

#

nw one

mortal rune
#

whats profile service :)

hot vigil
#

its a open source better datastore script u can use to store each game run or store anything in usual

#

but if your new just start with roblox's datastores

mortal rune
#

Is this scripting or no>

hot vigil
#

it is scripting

mortal rune
#

ok :D

#

am a baby when it comes to this type of stuffs

#

hi

cold thorn
mortal rune
#

never once scripted

#

except for instance.new

hot vigil
#
local PlayerData = DSS:GetDataStore("PlayerData_v1")

local function GiveStats(player)
    -- Setup Folders
    local leaderstats = Instance.new("Folder", player)
    leaderstats.Name = "leaderstats"

    local hiddenStats = Instance.new("Folder", player)
    hiddenStats.Name = "HiddenStats"

    local cash = Instance.new("IntValue", leaderstats)
    cash.Name = "Cash"

    local timePlayed = Instance.new("IntValue", hiddenStats)
    timePlayed.Name = "TimePlayed"
    
    local BrainrotCarrying=Instance.new("StringValue",hiddenStats)
    BrainrotCarrying.Name="BrainrotCarrying"

    -- LOAD DATA
    local data
    local success, err = pcall(function()
        data = PlayerData:GetAsync(player.UserId)
    end)

    if success and data then
        -- If data is a table, we unpack it
        cash.Value = data.Cash or 0
        timePlayed.Value = data.TimePlayed or 0
        print("Data loaded for " .. player.Name)
    else
        cash.Value = 0
        timePlayed.Value = 0
        warn("New player or error: " .. tostring(err))
    end
end

local function SaveStats(player)
    local leaderstats = player:FindFirstChild("leaderstats")
    local hiddenStats = player:FindFirstChild("HiddenStats")

    if leaderstats and hiddenStats then
        
        local dataToSave = {
            Cash = leaderstats.Cash.Value,
            TimePlayed = hiddenStats.TimePlayed.Value,
            LastSeen = os.time() --This for offline earning :D
        }

        local success, err = pcall(function()
            PlayerData:SetAsync(player.UserId, dataToSave)
        end)

        if not success then warn("Failed to save: " .. err) end
    end
end

game.Players.PlayerAdded:Connect(GiveStats)
game.Players.PlayerRemoving:Connect(SaveStats)
game:BindToClose(function()
    for _, player in ipairs(game.Players:GetPlayers()) do
        SaveStats(player)
    end
end)--this is just a example script i took from one of my games```
mortal rune
#

woah

hot vigil
#

game:BindToClose should make it work inside studio

#

it has a bit of improvement to do tho

cold thorn
mortal rune
#

is this better

#

i removed some stuff

hot vigil
#

ye

#

u only want cash and timeplayed values? timeplayed wouldnt show, only cash will show on leaderboards though

mortal rune
#

no

#

i just need dat

#

data**

#

@hot vigil

hot vigil
#

like the whole run?

mortal rune
#

like night

#

say theres 5 nights

#

i need to know which night they died/left off on

#

which one-fifth did they end off on

hot vigil
#

so use the script i gave or some other script from devforums to make the script, it should have a similar concept

mortal rune
#

mmm..

hot vigil
#

just save the player's data when they leave and give it to them when they continue or throw a error message saying they cant find a previous run

mortal rune
#

i dont really know how but ill try my best!

hot vigil
#

k

mortal rune
#

is this where id put ti?

hot vigil
#

id?

mortal rune
#

dang

hot vigil
#

i mean put the values there like nights, some currency and all

mortal rune
#

is this where I'd put the data to save?

hot vigil
#

and then when player clicks continue you load it all in and if player dies, u put all his stats to nil if u want to so it is considered he has no run and u can also do it so it detects u already have a run and gives u a option to overwrite it

mortal rune
#

first release was literally today

hot vigil
#

what🥀

#

have u made rest of the game?

mortal rune
#

the first BETA test release of the main game today

#

yeah

#

just working on the lobby and stuff...

hot vigil
#

so just this part is remaining?

mortal rune
#

partially

hot vigil
#

like menu part?

mortal rune
#

yeah

#

i need some other stuff for main game but this is all left for the lobby

hot vigil
#

u should have done it in a desending order, doing the hardest then the easiest cause hardest may not work with the rest of your code at last

#

but idk

#

gl on the game though

mortal rune
#

okay thanls

wide widget
#

Imagine not being able to script

#

loser

#

no one likes u XD

wide widget
#

Fucking loser

mortal rune
#

wrong reply mb

mortal rune
wide widget
#

Everything bitch

mortal rune
#

TF??

wide widget
#

Hey loser die

#

You to life

#

Go fuck off

hot vigil
#

2/10 ragebait

wide widget
#

Bitch

#

@mortal rune

#

Hope you know ill tell everyone you tried canceling everything and taking a break

#

Dumbass

#

Idiot

#

Liser

mortal rune
#

what

#

did

#

i

#

do

mortal rune
#

oh i took a mental health break

wide widget
#

PFFT IMAGINE

muted lotusBOT
#

studio** You are now Level 1! **studio

wide widget
#

FUCKING LOSER

#

I HOPE YOU DIE

mortal rune
#

heyyy @hot vigil

#

is this against the rules

hot vigil
#

yeah

mortal rune
#

can you ping a mod

wide widget
#

DO IT

#

I DARE YOU

#

XD

hot vigil
#

u could proably make a ticket

wide widget
#

ILL JUST MAKE ANOTHER FUCKING ACCOUNT

#

Bitch

mortal rune
#

kk

wide widget
#

DIE

#

NO ONE LIKES YIU

hot vigil
#

👍

hot vigil
mortal rune
#

i made a ticket

#

btw he said this

#

i lost my ticket thing

wide widget
#

Yeah loser

#

I said that

hot vigil
#

yeah i also made one, i recorded the whole convo

wide widget
#

Ƙŷś

#

Both of you

mortal rune
#

ok

#

sure

#

justice

#

will be

#

on you

wide widget
#

Nuh uh

mortal rune
#

tf u mean nuh uh

wide widget
#

Nuh uh bitch

#

Loser

#

Die

#

No one loves you

#

Your failing

#

I HATE you

#

And so does everyone else

hot vigil
#

why do u hate?

mortal rune
#

yooo @hot vigil

#

add this to yo ticket

wide widget
#

should i leak his face??

mortal rune
#

NO

#

BRO

wide widget
#

yes???

#

okayyy

#

ill do it in like 20 minutes

mortal rune
#

@hot vigil

#

help

#

please

#

help

#

someone

wide widget
#

Nope

#

Your alone

#

Loser

hot vigil
mortal rune
#

he said he gonna leak my face

#

help

wide widget
#

Bitch stfu

wide widget
#

No one cares

#

btw im GOING to steal ur entire game idea and then say you stole MINE

#

LOSER

mortal rune
#

okay bro

#

we get it

#

what-

hot vigil
#

😔

hot vigil
wide widget
#

Ew no

#

I should like report you

#

Disgusting rat

hot vigil
mortal rune
#

YED

#

YES

#

A MODERATOR

#

this guy has bypassed so many things

wide widget
#

ɲįǧĝəř

muted lotusBOT
#

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

mortal rune
#

i cant read that

#

is that the N word

wide widget
#

duh

#

No shit sherlock

mortal rune
#

. . .

#

free evidence

#

🥹

wide widget
#

What EVIDENCE

#

Bitch your case was dismissed 5 yesterday's ago

mortal rune
#

look at this dude

wide widget
#

🖕 🖕 🖕 🖕

#

🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕 🖕

hot vigil
hot vigil
#

why?

wide widget
#

They sit next to me in class

#

And hes DISGUSTING

hot vigil
#

so?

wide widget
#

LIKE HE LITERALLY IS SO FUCKING FAT

mortal rune
#

ouch

#

that hurt]

wide widget
#

IT SHOULD

hot vigil
wide widget
#

BITCH EVEN YOUR FATASS DONT LIKE SALAD

wide widget
#

HES LEARNED NOT TO INTERACT WITH ME

hot vigil
mortal rune
#

thats a fact

mortal rune
#

i LOVE salad

wide widget
#

No you dont

hot vigil
mortal rune
#

btw im mostly silent in class soooo

#

tf i do

wide widget
#

You ARE SO FAT OMFG

#

Here's ur face BOZO

mortal rune
#

uhm

#

GUYS

#

@hot vigil

#

@storm radish

#

HELP

storm radish
#

ignore him

mortal rune
#

wait thats an old picture of me

#

from like 2 years ago

#

can u delete the face pic tho

#

so my stuff dont get leaked all over the floor

wide widget
#

Dont

#

She's lying

#

Dumbass

#

Ill post more

storm radish
mortal rune
#

oh yeah well guess what @wide widget

#

counter of this centurary

#

gonna close it if you dooo :)

storm radish
#

close it

mortal rune
#

closed

wide widget
#

Nope

storm radish
#

muted him

#

keep this thread open

#

actually no

#

close it

#

we already have the evidence

#

@mortal rune

mortal rune
#

ok

orchid dock
#

@mortal rune howd he just leak your stuff like that?

#

do you know how that guy did it?

#

im just curious

mortal rune
#

Hes my classmate.

#

BTW I WOULD LOVE if my info got deleted from here

#

ahem

#

just a thought tho

#

hint hint :) @storm radish

mortal rune
storm radish
#

Close the thread

#

I dont have perm to remove msgs