#code-discussion

1 messages Ā· Page 119 of 1

lone marsh
#

yes

nova yarrow
#

Either u read docs or watch tutorials

#

Yea

stone garden
#

yes

#

Look at my memory, you should disconect whenever you dont use fonctions

floral musk
#

I'm confused on the docs, and everyone is memeing me about tutorials so anything you can contribute, it'll help @nova yarrow

spark estuary
floral musk
floral musk
spark estuary
spark estuary
#

or ask here ig but here its a 50/50

nova yarrow
floral musk
#

which ones

#

and for how long

nova yarrow
#

I first watched thedevling beginners and advanced series but

#

I recommend u watch brawldevs beginner and advanced playlist

floral musk
empty rapids
floral musk
empty rapids
#

still use the docs and the fourms i use them too

scenic cove
#

can someone give me something to script to improve?

empty rapids
scenic cove
floral musk
empty rapids
scenic cove
empty rapids
empty rapids
#

alr

empty rapids
floral musk
#

send me in dms

#

i wanna see still

empty rapids
#

i sent one

empty rapids
floral musk
#

nah other ones

#

cuz that one is about UI and other things, I wanna see some raw projects of some other thigns you've done ALL by yourself

twin mesa
near pasture
#

too slow too slow

floral musk
#

wait @empty rapids did u use the forum, brawldev, or docs?

empty rapids
floral musk
#

type shi

floral musk
#

wait

#

so u made that

#

without any external help?

empty rapids
#

yeah but this is not the final vid wait

#

turn ur volume down btw

twin mesa
empty rapids
#

i tried to make it levels when u reach level 10 it becomes red cuz red is cool but i stil didnt know how to make it level up with text pop in gui i think i ened to learn tween

twin mesa
#

thats nice

empty rapids
#

ty its nice seeing people who are trying to become better scripters be along

twin mesa
#

yesterday i made this building mechanic but i had some trouble on the orientation of the parts, might try to fix it later (had to cut down the footage cuz i dont got nitro)

spark estuary
#

Saw people hating on ProfileStore and started wondering what are the alternatives besides plain datastores,
whats your preference?

twin mesa
stone garden
spark estuary
#

yea i figured, since its a wrapper it has more features

scenic cove
#

@empty rapids yo how to script gui?

spark estuary
#

i heard about people using firebase (?), wonder if theres any benefits in that

scenic cove
#
local StarterGui = game:GetService("StarterGui")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage.Purchaed

local ShopGui = StarterGui.ShopGui
local ShopFrame = ShopGui.ShopFrame
local ShopOpenButton = ShopGui.ShopOpenButton

ShopOpenButton.MouseButton1Click:Connect(function()
    ShopGui.Visible = true
    
end)```
#

my code

empty rapids
#

did u put a screenGUI?

scenic cove
empty rapids
scenic cove
empty rapids
#

first is it in a local script inside the screenGUI

empty rapids
#

thats why

sacred ore
#

bruh

#

no thats js bc you cannot get startergui

#

you have to get player gui

scenic cove
#

i did

sacred ore
#

starter gui is server side

#

you have to go by script.parent

#

so client side

twin mesa
#

works fine

empty rapids
# scenic cove i did

StarterGui is a template container for gui when the game runs the UI is cloned into each player's PlayerGui So modifying StarterGui at runtime does nothing for what the player actually sees.

scenic cove
#
local Players = game.Players
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage.Purchaed

local ShopGui = PlayerGui:WaitForChild("ShopGui")
local ShopFrame = ShopGui:WaitForChild("ShopFrame")
local ShopOpenButton = ShopGui:WaitForChild("ShopOpenButton")

ShopOpenButton.MouseButton1Click:Connect(function()
    ShopGui.Visible = true
end)```
#

this good?

twin mesa
#

press the button to open and close it

sacred ore
#

put your local script in the screen gui and say shop gui = script.parent

scenic cove
sacred ore
#

bc yk the difference between server and client?

twin mesa
sacred ore
gray junco
#

as a guy said above

#

the ui get's cloned to the player gui when the player joins the game ( or respawns depending on the configuration for the UI)

#

to get the player gui, you first need to get the player

sacred ore
#

you can get it by parents

gray junco
#

sometimes is easier through the player

sacred ore
#

and when you have a lot of ui too

gray junco
#

yea

cedar flicker
twin mesa
empty rapids
twin mesa
empty rapids
#

np

last helm
#

hello, is there anyway to load all animations from a folder and play them in startup?

last helm
topaz lodge
#

dont even have to play them, make a localscript in replicatedfirst and use this

local contentProvider = game:GetService("ContentProvider")
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
local start = os.clock()

warn("Preloading Animations...")
contentProvider:PreloadAsync(Animations:GetDescendants())
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))
#

you can remove the time elapsed if u want, i just wanted to see how long my preload times were

#

or any of the prints

last helm
topaz lodge
#

yeah it doesn't play the animations but it preloads them so it doesn't look choppy when first played

last helm
topaz lodge
#

alr

last helm
#

I have this folder that contains all animations for models I want them to play on startup I used loop to play each animation individual but it semms it dosen't work

topaz lodge
#
local contentProvider = game:GetService("ContentProvider")
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
local start = os.clock()
local animations = Animations:GetDescendants()

warn("Preloading Animations...")
contentProvider:PreloadAsync(animations)
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))

for _, animation in animations do 
   -- play animation here
end
last helm
topaz lodge
#

what does your code look like

topaz lodge
#

lemme make it look like ai code real quick

#
-- Define the ContentProvider Service
local contentProvider = game:GetService("ContentProvider")
-- Define the folder that contains all the animations
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
-- Variable for time elapsed
local start = os.clock()
-- Store all the animations in a table
local animations = Animations:GetDescendants()

warn("Preloading Animations...")
contentProvider:PreloadAsync(animations)
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))
#

was that good

last helm
#
local rs = game:GetService("ReplicatedStorage")
local models = rs:WaitForChild("Assets"):FindFirstChild("Buildables"):WaitForChild("Models")
local anims = rs:WaitForChild("Animations")

local function play(model)
    local animationController = model:FindFirstChildWhichIsA("AnimationController")
    local animator = animationController:FindFirstChildOfClass("Animator")
    local animFolder = anims:FindFirstChild(model.Name)

    local idleAnim = animFolder:FindFirstChild("Idle")
    local animTrack = animator:LoadAnimation(idleAnim)
    animTrack.Looped = true
    animTrack:Play()
end

for _, model in pairs(models:GetDescendants()) do
    if model:IsA("Model") and model:FindFirstChildWhichIsA("AnimationController") then
        play(model)
    end
end
#

here is the script that I use to play

topaz lodge
#
local contentProvider = game:GetService("ContentProvider")
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
local models = game.ReplicatedStorage:WaitForChild("Assets").Buildables:WaitForChild("Models")
local start = os.clock()
local animations = Animations:GetChildren()

warn("Preloading Animations...")
contentProvider:PreloadAsync(Animations:GetDescendants())
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))

local function play(model)
    local animationController = model:FindFirstChildWhichIsA("AnimationController")
    local animator = animationController:FindFirstChildOfClass("Animator")
    local animFolder = anims[model.Name]

    local idleAnim = animFolder:FindFirstChild("Idle")
    local animTrack = animator:LoadAnimation(idleAnim)
    animTrack.Looped = true
    animTrack:Play()
end

for _, model in pairs(models:GetDescendants()) do
    if model:IsA("Model") and model:FindFirstChildWhichIsA("AnimationController") and animations:FindFirstChild(model.Name) then
        play(model)
    end
end
#

world's worst code šŸ™‚

#

on my end ofc

spark estuary
copper apex
#

What is aurora service

junior star
#

who can see what wrong on my code?

buoyant nova
#

promocode: GTS

spark estuary
manic escarp
#

how could i make time reversal tool so when you click it brings you back to your postion 3 secounds ago (ACTUALLY HELP ME PLS IM NEW)

manic escarp
spark estuary
cedar flicker
#

Well, that wouldnt help your skills :/

midnight anchor
cedar flicker
#

So you just save the player postion from time to time

manic escarp
#

dude just pls currently i cant im stressed

cedar flicker
#

And when he wants to telport back, you get the last saved position

spark estuary
cedar flicker
#

and teleport him there

jaunty path
#

hi i have an issue with my tweening loading screen, i made it in a fresh baseplate game, then imported it to my main game and the image just doesnt show up, nothing has been changed though

manic escarp
jaunty path
#

its visible on startergui, when i playtest it just disappears

cedar flicker
#

Do what you need to do šŸ˜‚

jaunty path
# spark estuary code?

i dont think code is the issue, it works on the baseplate but it doesnt on the main game

manic escarp
jaunty path
#

it works on baseplate, but not in main game

cursive trout
#

hmm

jaunty path
#

i imported everything without touching a thing

cursive trout
#

never had that happen to me before

jaunty path
spark estuary
jaunty path
spark estuary
#

also u can inspect the properties of gui in Player.PlayerGui

jaunty path
#

well i cant check it out because the game is so laggy i cant do shit

#

cant search anything either it takes an eternity to get results

#

the tween works, but its just the image doesnt appear for the tween to happen

spark estuary
spark estuary
#

weird

jaunty path
#

it just doesnt work on another game when i import it

spark estuary
#

and only one doesnt show

jaunty path
#

logo 3 isnt showing, but the rest are

#

the logo 3 is from toolbox though so that might be the issue?

#

still wouldnt make sense since its visible in startergui

copper apex
#

Are you getting anything in the output

spark estuary
#

let me see the code rq

jaunty path
#

well thats another issue i cant really view output, but im searching for errors related to that in output and im not getting shit

jaunty path
#

i changed icon to another one in toolbox and that didnt work either

jaunty path
#

im trying to get rid of them but lotta work

copper apex
#

When u test the game, look in playergui and click on your image that isnt loading and see if the image transparency is changing

manic escarp
#

can anyone help me create a script that saves the player postion from time to time And when you click with tool you telport back, you get sent back to last saved postion (I KNOW NOTHING)

spark estuary
copper apex
jaunty path
spark estuary
jaunty path
#

like in explorer

jaunty path
copper apex
#

You just need to look in playergui

jaunty path
#

yeah not workspace i meant players

#

yeah i cant view that either the tween is already done by the time i load it in

#

load it in as in like

#

view playergui

copper apex
#

Yeah

jaunty path
#

i can see the tweens working because after that another tween plays

jaunty path
copper apex
#

Idk maybe the image transparnecy isnt being tweened so id prob check if it is by testing

spark estuary
jaunty path
spark estuary
copper apex
spark estuary
copper apex
#

Id be doing prints for it, but since u said you have 5000 in the ouutput, that would be pretty annoying

jaunty path
jaunty path
#

im actually so confused cuz i gotta rush this loading screen out and its just not working.

daring echo
#

Does anyone know anyone who can make a UI feed tiktok scroll type game like this? https://www.roblox.com/games/11765402359/Clip-It

Roblox

šŸŽ¬ Welcome to Clip It – Roblox's Largest Content Sharing Network!

šŸ“½ļø Record and share your clips!

šŸ‘— Edit fashionable outfits with our extensive catalog. Access the full Roblox catalog and shine in every scene! All purchases will be available in your Roblox inventory & can be used in all experiences.

šŸŒ Select from over 120 uniqu...

spark estuary
#

the only thing i can think of besides image transparency is zIndex

#

maybe the logo is behind the background

jaunty path
#

i put it maximum

spark estuary
#

ah

jaunty path
#

its visible in statergui and all

copper apex
#

Your best bet is checking in player gui when testing since thats when its breaking

spark estuary
#

just checking

#

where u set it to 1

jaunty path
spark estuary
#

dang

#

okay maybe the game just has settings to prevent toolboxed assets

#

i dont know much about that

jaunty path
#

okay ill see if i can like download the thing and upload it under me

spark estuary
#

yea do that

daring echo
#

Can someone reccomend me the best scripter in this server?

jaunty path
#

that was the issue..

#

it took me 2-3 days for this fucking simple crap

spark estuary
#

weird that it was visible in studio though

spark estuary
warm willow
#

yall
any scripter wanna do a game
50% each
must be active fr

nocturne scaffold
#

yo who new tryna make a game w sm1 cuz im new and shi

jaunty path
#

it only worked once

#

it broke again i didnt change shit

spark estuary
#

huuhhhh

jaunty path
#

apparently its just me who cant see it my colleagues can see it fine

spark estuary
#

oh

#

network issue maybeeee?

jaunty path
#

ehh

#

im not sure

spark estuary
#

or as u said its laggy maybe that could influence it aswell

midnight anchor
jaunty path
#

well doesnt make sense since i can see the other tweens fine

midnight anchor
#

ok

weak yoke
manic escarp
#

can anyone help me create a script that saves the player postion from time to time And when you click with tool you telport back, you get sent back to last saved postion (I KNOW NOTHING)

mint cloud
manic escarp
#

i tried nit helpful

mint cloud
#

Then u ain’t asking the right questions

#

Lemme see what ChatGPT will say

stable olive
#

Can someone please help me make a system where someone can buy something if they have enoughs slaps

local players = game:GetService("Players")
local player = game:GetService("Players").LocalPlayer

local button = script.Parent
local screenGui = button.Parent.Parent.Parent.Parent
local descriptionLabel = screenGui.container.Description
local price = screenGui.container.Price
local BuyButton = screenGui.container.framwork["Group 2"].Purchase

button.MouseButton1Click:Connect(function()
    local sound = Instance.new("Sound", workspace)
    sound.SoundId = "rbxassetid://6042053626"
    sound.Parent = workspace
    sound.Volume = 1
    sound:Play()
    sound.Ended:Connect(function() sound:Destroy() end)
    
    descriptionLabel.Text = "This pillow has extra range \nso it is easier to hit people \nfrom far away."
    price.Text = "This costs 50 slaps"
end)

local leaderstats = player:FindFirstChild("leaderstats")
local slaps = player:FindFirstChild("Slaps")
if slaps.Value >= 50 then
    print("yes")
else
    print("not enough slaps")
end```
mint cloud
# manic escarp i tried nit helpful

local SaveInterval = 300 -- Time interval in seconds (5 minutes)
local DataStoreService = game:GetService("DataStoreService")
local playerDataStore = DataStoreService:GetDataStore(ā€œPlayerDataStoreā€)
local function savePlayerPosition(player)
local playerId = player.UserId
local position = player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character.HumanoidRootPart.Position

if position then
    local success, errorMessage = pcall(function()

playerDataStore:SetAsync(tostring(playerId), position)
end)

    if success then
        print("Position saved for player: " .. player.Name)
    else
        warn("Failed to save position for player " .. player.Name .. ": " .. errorMessage)
    end
end

end
local function loadPlayerPosition(player)
local playerId = player.UserId
local success, position = pcall(function()
return playerDataStore:GetAsync(tostring(playerId))
end)

if success and position then
    -- If a position is found, teleport the player to the saved position
    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        player.Character.HumanoidRootPart.CFrame = CFrame.new(position)
        print("Player " .. player.Name .. " teleported to saved position.")
    end
elseif not position then
    print("No saved position found for player " .. player.Name)
end

end

-- Player added event to load saved position when they join
game.Players.PlayerAdded:Connect(function(player)
-- Load the player's position upon joining
loadPlayerPosition(player)

-- Save the player's position every SaveInterval (5 minutes)
while player.Parent do
    wait(SaveInterval)
    savePlayerPosition(player)
end

end)

-- Player removing event to save position when they leave the game
game.Players.PlayerRemoving:Connect(function(player)
savePlayerPosition(player)
end)

manic escarp
#

where do i put this

#

and is it a tool

mint cloud
#

It’s not a tool

cedar flicker
manic escarp
mint cloud
#

Oh

manic escarp
mint cloud
#

It’s not that complicated to change

manic escarp
#

do u even know how or did u use ai

cedar flicker
mint cloud
manic escarp
mint cloud
#

It’s a lot faster to get ai to write simple code than to ask a person to do it for free

cedar flicker
mint cloud
#

Trust me bro use ai, just explain clearly what you want WHYYYYY

manic escarp
#

i know its bad but i need help man seriously

#

@mint cloud check dms

mint cloud
#

Alr

fathom pagoda
#

hi everyone, could someone please send me their portfolio to me, i am new to commissions and trying to create a portfolio. this would help me a lot, thanks!

cedar flicker
fathom pagoda
#

okay thanks

upper yew
#

i need a ugc creator for my group

lunar storm
weak yoke
light condor
#

chat is this the best way to turn a dictionary into an array and sort it?

steady bear
light condor
misty cloak
#

when making sprint should you change walkspeed on server or client

steady bear
light condor
steady bear
#

ikr my eyes

light condor
#

you'll see

cursive flower
#

Yoyo can someone help me make a corpse script for my ragdolls? I have an activator and a module

light condor
steady bear
light condor
# steady bear jesus

thank you, it was my pleasure to throw together the most abominable creation known to man kind

#

that's my plugin lol

#

I made it for fun

#

to test the limits of the creations and human eyes

steady bear
#

pain and suffering can be fun i guess

light condor
#

themes

#

people can create & publish

#

the point was to create something absolutely atrocious using it for laughs

#

for like 2 seconds

#

and for the screenshot

steady bear
steady bear
light condor
stiff zinc
#

What's a skid

light condor
#

Script kiddie

stiff zinc
#

Why's that bad tf

static coral
light condor
#

Basically means they are really bad at scripting or pretending to be a scripter when they aren’t

light condor
stiff zinc
#

Oh

light condor
steady bear
light condor
stiff zinc
#

I wanna learn scripting so bad I'm js bad at physics and shit

static coral
steady bear
static coral
#

just know the basic arithmetics and then u should be fine to start learning

#

main thing is learning how computers work and learning algorithms

stiff zinc
#

Arithmetic

steady bear
#

prioritize reading code over writing it first imo
give yourself something simple to do and work from there
most people write illegible code dont be that guy

weak yoke
static coral
#

especially as beginner

steady bear
weak yoke
stiff zinc
#

Man this sounds boring icl

steady bear
static coral
stiff zinc
#

Lol

#

Where do I start is where I'm stuck

steady bear
static coral
#

you wont ever truly know how to do it unless you do it

weak yoke
stiff zinc
#

Calm it down guys

static coral
#

that doesnt mean you are learning how to code

#

you will only truly learn to code if you actually use it

#

and experiment

#

my point still stands

#

i have experienced this myself

steady bear
#

when you read the documentation, or watch a tutorial
you should priortize understanding what theyre are doing as opposed to copying what theyre doing
i am emphasizing understanding over the "just do it" mindset

stiff zinc
#

Where do I start

light condor
static coral
#

you are not gonna learn how to code by just reading examples, you need to look at examples and read the docs and most importantly actually do it to begin with

#

otherwise u r not gonna learn it i can guarantee you

empty rapids
#

You both are true you can't know how to script if you don't know The syntax and how to use it and where and you also wont learn how to script if you dont apply it

stiff zinc
#

Calm

#

It

empty rapids
# static coral skid detected

Pipe down please

You both are true you can't know how to script if you don't know The syntax and how to use it and where and you also wont learn how to script if you dont apply it

stiff zinc
#

Lets all be nice to each other

steady bear
# static coral skid detected

bro is mad for no reason
im just trying to help and hes literally arguing with me over nothing
i explained i agree with writing code to a point

steady bear
stiff zinc
#

Hello bris

steady bear
#

i would advise familiarizing yourself with studios object explorer
familiarize yourself with objects and their properties

stiff zinc
#

Ur discord account is old

steady bear
#

figure out the environment

static coral
steady bear
weak yoke
stiff zinc
#

I pretty much have no idea what I'm doing

#

I've used stufio

weak yoke
stiff zinc
#

Studio

#

But only for a bit

weak yoke
#

then like

#

watch a tutorial

#

or familiarize yourself

stiff zinc
#

Okay

steady bear
#

google roblox documentation

static coral
weak yoke
#

its not that deep unc

stiff zinc
#

I don't just wanna copy someone else's code off a tutorial

weak yoke
stiff zinc
#

Cool

empty rapids
# stiff zinc Okay

I'd say look at alvinblox on youtube until you understand how studio works and then after you think you have got grasp studio learn scripting from BrawlDev

weak yoke
stiff zinc
#

Thank u guys

empty rapids
#

I've learned so much js from him tbh

steady bear
# stiff zinc Cool

i cant link the creator hub but go there, go to learn, start reading, absorbing, youre gonna need to start doing it every day
think in first principles

  1. I want to make a brick that bobs up and down
  2. learn tweening
  3. learn vector3's
  4. execute
stiff zinc
#

Cheers

empty rapids
steady bear
empty rapids
steady bear
#

it was merely an example chief

#

of first principles thinking

empty rapids
#

Alright mb

#

i thought you were giving him what he should learn first my fault

steady bear
#

no
thats one of the first things i learned though
it genuinely doesnt matter
just keep doing it

low nimbus
#

If I already learned how to use vector 3 and some tweening what should I learn now

steady bear
unique shadow
#

brooo i was in the middle of learning how to script and i found out there is this assistant on ssstudio that does everything for you should i stop learning?

steady bear
unique shadow
#

ohh

steady bear
#

because its ass

unique shadow
#

true ngl

empty rapids
low nimbus
empty rapids
#

Thats like saying i shouldnt learn math cuz there is a calculator

unique shadow
#

true

#

but i feel like im barely learning from watching youtube videos😭 is there bettr way to learn how to script for roblox?

weak yoke
unique shadow
dark kraken
#

hey could someone help me with my code

empty rapids
steady bear
#

do not disable the assistant
i encourage people to actually use AI
but every line of code you need to read through and understand EXACTLY what its doing before you copy and paste
if you use it as inspiration over writing code for you and you write it yourself you'll actually remember what goes where

unique shadow
weak yoke
low nimbus
empty rapids
#

Yeah but i still could see people not being familiar being confused

#

yeah

steady bear
#

dont get stuck in tutorial hell

twin mesa
#

can anyone explain how could i use module scripts?

#

like i kinda get the idea of making systems with it but how can i apply it?

weak yoke
#

its like _G and shared but better

#

its just better for readability and not having to rewrite code a ton

twin mesa
weak yoke
twin mesa
#

thanks ig

nova yarrow
weak yoke
light condor
weak yoke
#

position is a vector3 but not all vector3 are position

light condor
#

Also Position can be classed as UDim values

#

So sylau

weak yoke
#

just all vector3 which encompasses position but doesnt go into it

#

so sylau

light condor
#

I mean the first thing you see when you pull up the dev forum or any help forum, chances are it will tell you the type relating to the property.

light condor
#

Also I just looked up Vector3 and the first example is changing a parts position so it doesn’t matter idk

naive kiln
#

Anyone know some cracked scripters fh

manic escarp
#

can anyone help me create a script that saves the player postion from time to time And when you click with tool you telport back, you get sent back to last saved postion (I KNOW NOTHING) TIME REVERSEAL TOOL

sleek lantern
#

how do i toggle this blue line

weak yoke
cursive flower
#

Can sm1 help me with a corpse script pls? I already gotvthr ragdoll stuff done. Here's my activator

weak yoke
nova yarrow
#

Vector3 can be interpreted as orientation or position

weak yoke
nova yarrow
#

Same as CFrane

#

Like I said

weak yoke
#

Because position is a vector3

#

I think it might be a udim2 aswell but im not sure

nova yarrow
#

Wtv bro nice bait

weak yoke
#

Position is a vector3, cframe is orientation and position

#

Nice bait but try harder next time

#

Link33d

#

Sylau

#

Good boy

#

🫩🫩

nova yarrow
#

Position can be UDim2, Vector2/3, CFrame

#

Vector3 can be used for orientation and position

digital swallow
#

Hello everyone,
I’m planning to use the new (beta) Roblox API (apis.roblox.com) to manage group roles directly from inside the game.
Is there a real risk that Roblox might change or break this API without warning? And if that happens, would it be hard to adapt everything later?

I could fall back to the old API (groups.roblox.com), but I’d rather avoid dealing with cookies that expire and constantly need updating.

Source: devforum.roblox. com/t/group-ranking-with-roblox-opencloud/3763957

What do you recommend?

weak yoke
round yoke
#

does anyone know why this happens i cant seem to figure it out (same thing happens on a mobile device) you cant move normally or jump

digital swallow
crude quarry
#

I like smaller API developers who are more reliable than a coporation who cant even fix their own problems

digital swallow
#

and what solution do I have to not depend on the Roblox api? is there a third, more reliable way?

digital swallow
brittle token
#

how do i even learn how to code

crude quarry
crude quarry
autumn venture
#

Hey so quick question, if I wanted a global event system, for example a night event happens across all servers at once, do I need a master server? one that determines when events happens if so, how should I pick which server gets to be the master server?

glass garden
autumn venture
glass garden
#

Maybe. Or just reseed the rng with some rounded down multiple of the current timestamp so that all the servers "roll" with the same rng state

autumn venture
#

Isnt there a way to do it with messagingservice?

#

Have a "Master Server" to be designated to decide when to start events

glass garden
oblique halo
#

is coding better with or without music?

autumn venture
#

Because using OS.Time() would make events pretty predictable over time

glass garden
#

You could also use memorystores & have all the servers periodically check it

errant elm
autumn venture
errant elm
bold beacon
#

Do y'all know how to make it so in first person when I load an animation the camera stays with the player head?

shy crystal
#

can someone tell me how to make it so a model moves instead of a humanoid. local function NPCMove(NPC)
for i = 1,#workspace.CheckPoints:GetChildren(),1 do
local CheckPointNumber = 1

    NPC.humanoid:MoveTo(workspace.CheckPoints["CheckPoint"..CheckPointNumber].Position)
                
    NPC.Humanoid.MoveToFinished:Connect(function()
            CheckPointNumber += 1
            
        if CheckPointNumber == #workspace.CheckPoints:GetChildren() then
            NPC:Destroy()
        else
            NPC.humanoid:MoveTo(workspace.CheckPoints["CheckPoint"..CheckPointNumber].Position)
        end
    end)
end

end

sacred ore
sudden estuary
autumn venture
#

Elaborate?

crude quarry
#

I dont know what I did but that looks awesome

oblique halo
#

is this actually multiplying 0.01 by clicks? clicks is a number variable and i dont think this is working but idk how else i would do it

crude quarry
#

I forget if lua uses pemdas

oblique halo
#

i dont think it does

crude quarry
#

if it doesnt then it would go from right to left

oblique halo
#

would this work

#

my goal is that if clicks is 5 for example then its adding 0.05

crude quarry
#

so
if click == 5 then
your equation
end

oblique halo
#

but clicks could pretty much be any number

#

i have one more idea ill try

wispy jay
#

anyone please help me with CFrame:Inverse() I get that it it returns a cframe which when multiplied to the original gives a identity matrix of CFrame.new() but what are its other usecases?

tidal vale
#

you could use it to mirror objects

wispy jay
crude quarry
#
local lightPart = script.Parent
local SpotLight = lightPart.SpotLight


for i, v in pairs(workspace:GetChildren(SpotLight)) do
    while true do
        task.wait(0.1)
        if game.Lighting:GetMinutesAfterMidnight() > 6 * 60 then
            lightPart.Material = Enum.Material.Neon
            SpotLight.Enabled = true
        end
        if game.Lighting:GetMinutesAfterMidnight() < 18 * 60 then
            lightPart.Material = Enum.Material.Plastic
            SpotLight.Enabled = false
        end
    end
end
``` Im trying to redo this script which would get the light it was attached to and turn it on or off after a certain time. I wanna get the children of all the workspace and all models to find them so I can just use 1 script instead of 10 million
tidal vale
wispy jay
#

the onlyuse case it has is when the rotation of A is the same as rotation of B

tidal vale
crude quarry
wispy jay
#
Part1.CFrame = Part0.CFrame * Motor6D.C0 * Motor6D.Tramsform * Motor6D.C1:Inverse()

Like check this out

#

how is :Inverse() being used here?

tidal vale
#

so cframe.new(smth.x, smth.y, smth.z) * cframe.new(inverse.x, inverse.y, 0) and that could mirror a part using smth

wispy jay
#

let me try rq

#

Ah right! it works

#

thanks!

oblique halo
#

someone please help idk why this code doesnt work everything works up until the humanoid dies

local playerClicked = game:GetService("ReplicatedStorage").playerClicked

playerClicked.OnServerEvent:Connect(function(player)
    local Humanoid = player.Character:FindFirstChild("Humanoid")
    local size = player.leaderstats:WaitForChild("Size")    
    size.Value += 1
    print("The players leaderstat has been updated!")
    
    Humanoid.HeadScale.Value += 0.01
    Humanoid.BodyDepthScale.Value += 0.01
    Humanoid.BodyWidthScale.Value += 0.01
    Humanoid.BodyHeightScale.Value += 0.01
    
    player.Character.Humanoid.Died:Connect(function()
        task.wait(5)
        local scaleFactor = 0.01
        local scaleAmount = scaleFactor * size.Value
        
        Humanoid.HeadScale.Value += scaleAmount
        Humanoid.BodyDepthScale.Value += scaleAmount
        Humanoid.BodyWidthScale.Value += scaleAmount
        Humanoid.BodyHeightScale.Value += scaleAmount
        
        print("The player's size has been restored")
    end)
end)
brittle token
wispy jay
oblique halo
wispy jay
#

no

#
local playerClicked = game:GetService("ReplicatedStorage").playerClicked

playerClicked.OnServerEvent:Connect(function(player)
    local Humanoid = player.Character:FindFirstChild("Humanoid")
    local size = player.leaderstats:WaitForChild("Size")    
    size.Value += 1
    print("The players leaderstat has been updated!")
    
    Humanoid.HeadScale.Value += 0.01
    Humanoid.BodyDepthScale.Value += 0.01
    Humanoid.BodyWidthScale.Value += 0.01
    Humanoid.BodyHeightScale.Value += 0.01
    local conn
    conn = player.Character.Humanoid.Died:Connect(function()
        task.wait(5)
        local scaleFactor = 0.01
        local scaleAmount = scaleFactor * size.Value
        
        Humanoid.HeadScale.Value += scaleAmount
        Humanoid.BodyDepthScale.Value += scaleAmount
        Humanoid.BodyWidthScale.Value += scaleAmount
        Humanoid.BodyHeightScale.Value += scaleAmount
        
        print("The player's size has been restored")
        conn:Disconnect()
        conn = nil
    end)
end)```
oblique halo
#

thank you ill try it

#

what does disconnect do though

#

code doesnt work

wispy jay
#

so when this event fires: playerClicked.OnServerEvent:Connect(function(player)

everytime, lua is creating a new player.Character.Humanoid.Died event that fires without stopping. That is why, we need to disconnect ones the humanoid.Died is fired

wispy jay
wispy jay
#

what you can do is:
instead of task.wait(5)
you can check for player.CharacterAdded
like: player.CharacterAdded:Wait()

oblique halo
# wispy jay what's the issue?

so its a growing game and you grow by clicking and when you die you are supposed to get your size back and its printing that the size is restored but my character is still small

wispy jay
#

and wait until humanoid

oblique halo
#

oo i have an idea thank you

brittle token
oblique halo
brittle token
#

im new to coding so im just using life common sense not coding common sense so sorry if im wrong

oblique halo
#

its okay im kinda new too

brittle token
#

yea i just started coding like an hour ago

#

ive been using roblox studio for like around a year

oblique halo
#

wow were you building the whole time or what

brittle token
oblique halo
#

oh wow

#

i also used to model and took a break but my arm did not break

brittle token
#

nice

tidal vale
#

why doesnt this work? it should be printing left click if its on the left hand and left click, and so should the other one. but once i press right click, it just wont allow left click to be printed

local

    event:FireServer(mouse.Target.Parent, false)
end)

mouse.Button2Down:Connect(function()
    event:FireServer(mouse.Target.Parent, true)
end)```
server
```    elseif buttonData then
        local button = buttonData.Instance
        local handEquipped = buttonData.Equipped
        local item = buttonData.Item
        
        if rc and handEquipped == "Right" then
            print("right click"..item.Name)
        elseif not rc and handEquipped == "Left" then
            print("left click"..item.Name)
        end
    end```
crude quarry
tidal vale
# crude quarry are you not showing the rest of the server script?
    if not item then return end
    
    local char = plr.Character
    
    
    local hrp = char:FindFirstChild("HumanoidRootPart")

    
    
    
    local hotbar = toolfunc.getHotbar(plr, UniversalHotbar_Table)
    local grip : Motor6D = plr.Character:FindFirstChild("Right Arm")["RightGrip"]
    local buttonData = toolfunc.getButtonData(hotbar, nil, true) 
    ```
#

not much else

#

found the solution

oblique lintel
#

learning loops did i cook

mint cloud
oblique lintel
#

is it that hard to seešŸ˜‚

mint cloud
#

Yes

oblique lintel
#

what colors you use then ill change it

mint cloud
#

I don’t use colors

#

Because I don’t script šŸ—æ

oblique lintel
#

then why you in code discussion šŸ˜‚

mint cloud
#

The vibes

#

I CAN code(kinda) I just don’t

somber vault
#

can you clone a players humanoid description

#

and transfer it to a rig

oblique lintel
somber vault
#

players have like their own humanoid description right

#

can. u copy it onto a rig

#

is that possible

mint cloud
#

I’m pretty sure

oblique lintel
#

bro iv actual been scripting for weeks but just went back to watch all the vids again to get better

somber vault
#

ive read the documentation and it doesnt work

mint cloud
oblique lintel
mint cloud
oblique lintel
#

also im on events yayayyay

somber vault
oblique lintel
#

should i try to get my scripting badge

#

or the role

mint cloud
mint cloud
crude quarry
snow oasis
crude quarry
#

learn by asking question wrong
give up and make someone else code correct

hallow crag
crude quarry
oblique lintel
#

what color should i use

crude quarry
#

anything else

#

make it either a darker blue or lighter blue

hallow crag
oblique lintel
#

uhhh okay

crude quarry
oblique lintel
#

okay

#

at least i got the dark mode right

#

did it

#

is this like what all scripters use šŸ˜‚

#

also is random import

#

needed

crude quarry
#

Nah I use this

sullen fox
#

default is the best

peak cipher
#

Is there a way to track if someone tries to edit the script, add new code, or move any blocks?

hallow crag
#

just use task.spawn

crude quarry
hallow crag
#

also why u using pairs

#

just use general iterator

hallow crag
#

its terrible resource wise

#

ur creating a new while loop for every part

crude quarry
#

yes

hallow crag
#

just add a tag to every part

#

and create 1 loop

#

that does everything

crude quarry
#

or I could not

#

cuz idk how

hallow crag
#

so u cant script?

crude quarry
#

yall use dumb coder terms

#

I aint about that life

#

I just code

hallow crag
#

u said u pulled that code from devforum

crude quarry
#

correct

hallow crag
#

so u copy and paste code

#

thats different

crude quarry
#

I copied the loop

hallow crag
#

and failed to notice its terrible performance wise

crude quarry
#

if it works it works

hallow crag
#

šŸ’”

crude quarry
#

if it needs to be improved i'll find a way

hallow crag
#

not a good mentality but alright

crude quarry
#

okay if it doesnt work I wont touchit

hallow crag
#

just learn how to use tags and CollectionService

#

trust

#

its a life saver

crude quarry
#

is that assigning the parts to a new collection then looping thrpugh that collection for the function

hallow crag
#

ur just adding a "tag" to a part

crude quarry
#

I know what a collection is but idk what the tag part is

hallow crag
#

lets same its named "TimedLight"

#

and then COllectionService will get all the parts with the tag "TimeLight"

#

when u pass it to CollectionService:GetTagged()

sullen fox
#

it returns the instance(s)

#

as a array

crude quarry
#

so you're just looping and adding them to a collection

hallow crag
#

bro just go read the docs

crude quarry
#

are you good bro I know what it is

hallow crag
hallow crag
crude quarry
#

cuz I havent looked at how its done yet

hallow crag
#

and by a terrible scripter

crude quarry
#

ew 40 lines

#

I got it to work in 18

#

I found one that I can actually understand

somber vault
oblique lintel
#

finshed brawl devs bigger series

weak radish
oblique lintel
#

i did

#

iv been codeing for weeks but rushed alot so i knew alot but didnt if that make some since

weak radish
crude quarry
#

server you dont want lights changing local unless you're making schizophrenia game

oblique lintel
#

so i finshed the thing what do i do now

somber vault
oblique lintel
#

idek

#

make a game or be hireable ig

#

kinda did this for fun ngl

somber vault
#

you're doing all this every 60 seconds when you could yield a thread for a calculated time and do it once

weak radish
crude quarry
#

because it may not be the same everytime

#

I may end up changing the time of day later on

#

or I may make the days last longer who knows

oblique lintel
#

wait what are you even trying to do

weak radish
weak radish
weak radish
keen lynx
#

šŸ„€

#

i forgot how to do team spawn locations

#

šŸ„€

south iron
#

ask copilot (if you are a noob)

#

know what guys

#

i forget to save my game now im doing the donation table again

#

i swear i made these games before

wispy shale
thorn arch
south iron
hallow crag
crude quarry
#

whats your issue with pairs

near ocean
hallow crag
#

just do for i,v in tbl do

wispy shale
jade marlin
tribal whale
#

Guys im new to coding and im watching a tutoria but it only focuses on using print with others mechanics like loops or funcions, do you think i need to change tutorials or just stick with this?

jade marlin
#

It's likely fine you still have to practice and not only watch though

crude quarry
tribal whale
#

ty for the help šŸ™‚

white seal
#

My new portfolio

thick quest
#

Lorem ipsum dolor sit amet

short delta
#

i start coding like 5 minutes ago and i try to change the color of my grass by making it black with a script please help

short delta
#

im using it but he didnt said how to change color

tepid horizon
short delta
#

hum ok

tepid horizon
#

then if you wanna set color to a part you would do
Grasspart.Color = Color3.new() -- you put color value in here

short delta
#

okay thanks

tepid horizon
#

if you click between the brackets you can choose a color

short delta
#

thanks

tepid horizon
#

rainbow button

#

šŸ‘šŸæ

short delta
#

so if i actually well understand local function is like local but u can do more thing like a group?

glad apex
#

local number = 5 is faster than number = 5

#

سلام

lost turtle
hallow crag
#

just use Color.fromRGB

tribal whale
#

im using brawldev series

hallow crag
#

šŸ’”

tribal whale
#

is it bad?

#

im just new and it was the first not 3 hours tutorial that i found

lost turtle
hallow crag
#

all scripting tutorials are ass

lost turtle
hallow crag
#

yeah

lost turtle
#

thedevking is best one

hallow crag
#

personally i didnt learn luau from tutorials

#

just read docs and practice urself

#

with tutorials all ur doing is copying code

tribal whale
#

ill just finish brawldevs i just have 2 videos then ill do a simple game and then ill use the devking one

hallow crag
#

not learning

lost turtle
#

i learn over 16 things

tribal whale
hallow crag
#

hes using depricated functions

#

in his code

lost turtle
hallow crag
#

yes but the code he uses is old vro

lost turtle
#

then from where i learn lua vro

tribal whale
#

isnt it eny good tutorial but new?

hallow crag
lost turtle
#

its making me get bored vro

hallow crag
#

instead of copying code vro

lost turtle
hallow crag
lost turtle
#

he teaching and i understand then i get idea to make vro

hallow crag
#

u aint learning shit vro

lost turtle
lost turtle
hallow crag
#

thats not practicing its copying

#

vro

lost turtle
#

he teaching and say how this is works vro

hallow crag
lost turtle
#

then i do thing my own

lost turtle
hallow crag
#

yeah gl with learning luau vro

#

šŸ’”

tribal whale
#

how can you learn using docs thats actually crazu

#

crazy

hallow crag
#

previous programming knowledge

#

i already kinda knew the syntax

#

it was just learning the api functions and how the game engine works

keen lynx
#

yo

#

so i got this leaderstats money gui script

currencySymbol = "$",
startingMoney = 5000, -- < Starting amount for new players >
visibleLeaderstats = true, -- < Show/hide leaderstats >

    leaderstatWalletName = "Wallet", -- < Wallet stat name (changing this resets player data) >
    leaderstatBankName = "Bank", -- < Bank stat name (changing this resets player data) >
#

and this is my weaponstore gui script

#

Settings.CurrentcySetting = {
Leaderstats = "Wallet",
Cash = "Cash",
Symbol = "$"
}

#

is everything right?

tardy ruin
#

just use ai

thorn arch
thorn arch
hallow crag
#

btw

elfin timber
#

how do i sort a table with only numbers from highest to lowest

hallow crag
elfin timber
hallow crag
#

nah

#

this is easy tho

elfin timber
#

true

hallow crag
#

if u want lowest to highest u can just do table.sort(numbers)

#

but if u want to reverse it then u gotta use custom sorting

elfin timber
#

can i insert multiple variables at once into a table? like lets say i have local r, local g, local b and i want to insert these

#

do I use for loop?

elfin timber
hallow crag
#

or u can also do table.pack(r, g, b)

#

but kinda pointless

#

lol

primal rune
chilly bobcat
thin crater
#

is memorystoreservice the best way to handle in game economies

#

like cross server type stuff

chilly bobcat
#

@dark wraith hiii

dark wraith
#

did something happen

supple warren
#

i had some problem to solve

#

but when i started typing it

#

it got solved

dark wraith
glass garden
sudden estuary
keen scarab
#

sup

stiff cliff
#

hi there does anyone know if boolvalues have an effect on all users in the server? Basically what I did was make it so that local scripts talk to each other where if a user is running, then it'll change the boolvalue to true, and if a user is hitting, the sprinting boolvalue turns false. I was just wondering if this could possibly have an effect on all users being in the server (located in replicated storage)

lone marsh
peak sphinx
near ocean
jade marlin
#

that's good actually

#

less things to type And more performance

#

šŸ”„šŸ”„šŸ”„

near ocean
#

No

#

Ipairs is slightly faster than pairs(0 when used on sequential numeric keys

#

so what you said doesnt even make any sense

jade marlin
#

I suggest you re read our conversation as I won't benefit by restating it at all, Godspeed

lone marsh
near ocean
jade marlin
#

That's fine, to each their own

near ocean
#

Dont care

glass garden
#

just use general iteration

weak yoke
lone marsh
sly plover
#

what did i do wrong?

weak yoke
lone marsh
weak yoke
#

what about using Instance:GetChildren()?

lone marsh
lone marsh
sly plover
weak yoke
sly plover
cunning obsidian
#

can someone help me fix this

lone marsh
#

Units is a string

weak yoke
lone marsh
sly plover
weak yoke
#

also ronarudo

#

can you check out my github repo (i need feedback)

weak yoke
#

its just a datastore manager like profilestore except easier to use

lone marsh
sly plover
lone marsh
weak yoke
#

idk

#

is player meant to be a string?

cunning obsidian
# lone marsh check tutorial on how to make killbricks it will help u in completing this

local GamepassID = 1296445377 -- Replace with your Gamepass ID
local GamepassDoor = game.Workspace:WaitForChild("Hand From Heaven Gamepass Door") -- Change GamepassDoor to whatever your part is called which will open

local function checkGamepass(Player)
return game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, GamepassID)
end

local function openDoorForPlayer(player)
if checkGamepass(player) then
GamepassDoor.Transparency = 0.8 -- You can adjust the transparency here
GamepassDoor.CanCollide = false
end
end

while true do
openDoorForPlayer(game.Players.LocalPlayer)
wait(3) -- Wait for 3 seconds before checking again if the player has the gamepass.
end

bro mind fixing it pls

weak yoke
#

its really not that hard

cunning obsidian
#

idk i cant script

#

i found this on yt

weak yoke
weak yoke
lone marsh
#

@weak yokebtw

weak yoke
#

?

lone marsh
#

when adding gold why did u use Set when you made Increment

weak yoke
lone marsh
#

ngl i barely work with datastores so i couldnt tell you much

weak yoke
#

i changed it lol

weak yoke
#

tbh the most difficult thing was working for all the settings at the top šŸ˜‚

dense iris
#

Is anyone good with custom morphs/custom rigs here? I really need help fixing mine

chilly bobcat
midnight wigeon
#

yo 😃

azure roost
#

is there a scripter that take game %? it's for an huge rpg game project

#

i need a scripter ASAP

#

pls ;-;

#

cuz the game has arleady almost everything done except the script

crude quarry
#

That's like 90% of the game

#

You're not even close to done

zenith turret
#

guys how many impressions can i get in 150 ad credits ? @everyone

#

????????????????????????/

autumn venture
#

and very few to no advanced scripters take a percentage

#

only brand new scripters with bad code do percentage

azure roost
#

k

#

but where should i go looking then?

#

cuz it's the 4 serv that i ask the same question

#

;-;

autumn venture
#

pay some robux

#

then scripters will talk to you

azure roost
#

how much should be a great start?

#

for a payment

#

in robux and in paypal

autumn venture
#

For someone like me at least with multiple years of experience

azure roost
#

k

#

wait wanna see the game?

#

i mean the progress

#

of it

autumn venture
#

I guess

azure roost
#

and we've got the first clothing done

hushed idol
#

I dont mean to rehash cause this is kind of similar to what slimys talking abt but i was wondering how much a full game dev for smth like a visual novel would cost. I ask cause idk if itd be different.

#

Its got no real player to player interactions its more just like a story persay

hushed idol
rancid ginkgo
#

what does this error mean. can anyone help

sly plover
lone marsh
rancid ginkgo
dark wraith
copper creek
copper creek
neat turret
#

it works

#

thats kinda what you just need to care about

#

as long as job is done its fine

scenic lotus
#

and well organize

#

so it can be easy to edit or fix

lost yoke
#

you can have code work and not be good

neat turret
#

thats the hard lesson i learnt

#

very few code requires to be perfect

lost yoke
#

or memory leaks

#

sure if ur making a bad project its fine but for anything quality wise u need to make sure to optimize and organize for updates

neat turret
#

when coding

lost yoke
#

therell always b room to improve

neat turret
lost yoke
#

ehhhhhh i try to avoid ai for anything besides image generation

#

occassionally ill talk to it to bounce game ideas off of

neat turret
#

i generally use it like this

lost yoke
#

im wary of that bc ai does not know how to code well

#

which means its comments will be subpar

neat turret
#

i do check the comments

#

to see if it done it wrong

#

tbh gemini 2.5 pro is fine at commenting code

#

not good enough to write but it understand it

#

mostly

#

still i have to commnet my code myself

#

for application

hallow crag
#

aint gonna lie

#

just remove them atp

rare bronze
#

Who even needs comments tbh

hallow crag
median stone
#

can anyone help with a badge awarding system where if the right thing is said in chat, a badge gets awarded? idk anything about badge awards

prisma anchor
#

What are the best videos that actually teach you, like explain every bit of code and hwo it works. Im looking to progress as I mostly know the basics of ua

median stone
brittle token
#

im working on changing properties using scripts rn

median stone
#

oh nice

brittle token
prisma anchor
nova yarrow
#

Does anyone have popular dev servers besides hd and rd

brittle token