#code-discussion

1 messages · Page 85 of 1

exotic minnow
#

Alright I will stop being butthurt and change it

#

It makes sense honestly I gotta admit

hasty mesa
#

this is the probabily distribution

#

for your function

young rock
#

yeah it shouldnt look like that

steady robin
young rock
#

i just blindly changed the numbers but when i decrease the power(13) i get too many large numbers and if i increase it i just get 1.1 most of the time

steady robin
#
local Min = 1
local Max = 4
local Random = math.random() ^ 3
return Min + (Max - Min) * Random
#

Have you tried this

young rock
#

no i tried ^5 though

steady robin
#

try this

tawny jacinth
#

🤞 hopefully i can get it done in under a week

steady robin
young rock
cobalt hound
#

if i was to start scripting from scratch what do i do?

mint cloud
#

YouTube

median echo
#

Who are some experienced and competent scripters I can reach out to for a project?

wise turtle
median echo
#

I'm not a developer myself but I do have some basic understanding of the technical side involved in a Roblox game, so I am aware there are certain limitations on what is and isn't possible.

The project involves 'taking' and 'uploading' pictures in different scenery, environments & locations

  • the user takes a 'picture' and everything is captured,
  • 'picture' is somehow stored,
  • 'picture' is somehow able to be displayed again later

I've constructed a wireframe of the core elements of what would be included in the interface of this system which I've attached below

Is this possible?

mint cloud
#

Yes

somber vault
#

what yall think of the new input action system?

median echo
# mint cloud Yes

are you able to give an explanation at a high level of how it works?

mint cloud
#

Lemme pull up ChatGPT rq

#

So apparently there’s no built in function for saving frames, so you have to do a lot of ray casts from the players camera, make that a viewportframe or something and save it to a table

#

And have to use distance to determine the return size

mint cloud
#

Possibly, but I think the problem is that you can’t directly capture a frame image

#

Also, for the editable image to work it has to be handled by server

#

Though I doubt that would be a problem

fluid vale
#

yo i'm 16 and i js wanna make a fun game, if anyone wants to join together that would be cool. im not like super good at coding, I been coding for like a year now but i took a pretty good break. no money involved. just we both learn together yk.

median echo
#

are you like a competent scripter?

mint cloud
#

Not at all

strong radish
#

lf people to give me feedback on my game

jade mural
#

sad_hamster hi no one

iron oasis
#

howcome modules online have like 20 scripts in them and are designed so differently? my systems only take a couple module scripts

placid matrix
iron oasis
#

for instancethis is a dialogue system and while yes it does have many features i dont understand why SO many modules...
the second picture it something i have created

#

is there something i need to learn?

stable urchin
#

(never used it)

iron oasis
#

whats roact

stable urchin
#

haven't made or read the dialogue system so I can't say if it's too modularized

#

/ bloated

stable urchin
#

by the looks of it you use it if you come from other software development projects

iron oasis
#

im reading it now

#

the api

#

its strange

fossil cliff
#

Yo is

#

Roblox broken rn???

placid matrix
placid matrix
#

roact is the react port to luau

iron oasis
#

its the same thing

#

why do the extra work

oak solar
#

guys should i start with building/modelling or animating first

hoary cedar
iron oasis
#

i dont know. Im trying to figure out why use roact instead of the base roblox studio api

hoary cedar
#

I'd much rather hand craft the GUI, then load it into Roact for manipulation

#

If that's even a thing

iron oasis
#

exactly

#

whats the point of roact

#

it look like, to me, its made for studios who dont use studio

#

like, game dev groups who use vs code or github

#

maybe idk

dim rock
#

Most of the tools like that are intended for larger teams or more enterprise operations & need version control

#

VSCode & Git hookups let you push/review changes without needing direct access to the place in studio and still allow version control, forking, branching etc

#

It puts you closer to formal enterprise software development and rollouts

delicate thorn
#

any1 have a spare m1 system i can have to test animations

plush oxide
#

do you guys have any pathfinding frameworks you use

wise turtle
# iron oasis exactly

I used to think that too but hydration is pretty bad dx. It's hard to explain the benefits without trying both

iron oasis
#

what

plush oxide
formal gull
#

srry i dont get the joke

placid matrix
wise turtle
#

buzz words

placid matrix
gray escarp
#

why do we use waitforchild instead of findfirstchild?

#

like i get that it makes it work but does it depend on functional code

shy harness
#

you should use waitforchild if you just spawned in and you're looking for character or something

#

sometimes findfirstchild will miss it

#

basically you should use waitforchild if you're 100% sure it's gonna spawn in

#

findfirstchild if not (or waitforchild with timeout, there's a library for it)

frail yarrow
shy harness
#

woaj…

#

i watched an outdated video

wise turtle
#

theres a waitfor library that uses promises for waitforchild and doesn't yield

lilac gale
# gray escarp why do we use waitforchild instead of findfirstchild?

when you should use wait for child:

  • waiting for something that might not be replicated yet like instances in a player's playergui

when NOT to use it

  • youre on the server
  • anything inside of replicatedstorage (already replicated? i hear mixed opinions but never received a timeout error
#

note that i said "like"
it doesn't mean that's the only case where something might not be loaded

gray escarp
#

i see

lilac gale
#

findfirstchild wise, i dont use it often

#

there are some cases you would but

#

those are self evident most of the time

lilac gale
#

cool

placid matrix
#

dont use waitforchild.

lilac gale
#

#

there are valid use cases

placid matrix
placid matrix
lilac gale
#

i listed one above

#

read

placid matrix
#

u dont need to wait for playergui so thats not a usecase

lilac gale
placid matrix
#

u dont need to wait for instances at all

#

??

lilac gale
#

yes you do

placid matrix
#

ur entire app should be operating on atomic items

placid matrix
lilac gale
#

nice deflection

#

generally

#

you should yield

placid matrix
#

not a deflection, i just don't need to use waitforchild

lilac gale
#

specific to you

placid matrix
placid matrix
lilac gale
#

again

frail yarrow
#

"core game loop"

lilac gale
#

why would you have a core gameloop

#

handled on the client

frail yarrow
#

how it feels using ecs n whatnot

placid matrix
maiden zenith
#

Anybody know why this is happening? Is there something with welds that can effect this? It's not the scripts since I tried removing scripts to do with the plane and it STILL does this thing

gray escarp
#

this might be the worst thing someone has ever asked but for loading screens do we use waitforchild

crude crater
#

anyone have tips on learning vector3's and CFrames?

#

or sources

crude crater
gray escarp
gray escarp
crude crater
#

I'll just look it up

terse vector
#

In other words, use a script in ReplicatedFirst to build it and place it into playerGUi, then choose another script that should only be finished when everything is loaded and have that script delete the loading screen.

#

I've very rarely seen cases where my client is finished and the world hasn't loaded.

hallow pulsar
ornate belfry
#

why does roblox code assist give these suggestions

hollow plover
bold current
#

AI slop that Roblox crammed in

sage ermine
#

How do I task.spawn a modulescript function?

#

I have a function setup the sorta standard way, so in my script I can call ModuleScript:TheFunction()

#

but thats not like how task.spawn works

#

like thats not what it takes

#

google has not a lot of help

hallow crag
hoary cedar
#

You should not be using the colon operator with your functions unless you intend to make use of the implicit self parameter

#

Luau, by convention, reserves that syntax sugar for OOP

sage ermine
#

Interesting. This is code I wrote a while back so it's using colons for no particular reason, didn't know i had to pass table in that case

#

thanks for the info

frail yarrow
#

thats how the colon operator works

sage ermine
#

colonoscopy operation

frail yarrow
#

vro

ivory kite
#

Is there someone here that's super knowledgeable on threads?
I'm having an issue that isn't something I can debug through the console.

#

Wrong channel

limber vortex
young rock
#
function RandomNumber(Min, Max, X)
  local Random = math.random()^X
  return Min + Random * (Max - Min)
end

Hi, I am trying to make a function that gives me a random number between Min and Max but i want it to give bigger numbers less often, I tried this but i just cant find the exact X i want, if i make it lower i get large numbers all the time but if i make it higher i get numbers really close to Min most of the time (like Min + 0.05) Could anyone help?

pure furnace
young rock
#

because i think it works without a problem but its just not what i want

willow marsh
young rock
willow marsh
#

r = math.log(1 + 9 * math.random()) / math.log(10)

#

You need to be more specific about the distribution of your values

young rock
#

i am really confused 😭

#

im just trying to make randomly sized fruit like in grow a garden

#

do you have any idea how the randomness in that game couldve been made? @willow marsh

willow marsh
#

You can set μ to 0 and change the σ

young rock
#
function GetRandomNumber(Minimum, Maximum, X)
    local RandomNumber = math.random()^X
    RandomNumber = Minimum + RandomNumber * (Maximum - Minimum)
    return RandomNumber*math.random(90, 110)/100
end

this kind of solved the problem

soft marsh
#

Searching for a professional UI designer for my basic tower defense game. If you dm me i can show you what type of ui i want and i can even give you some leaks of the game. Payment will be a % of the game tho.

solemn crescent
#

if i were to create a queue table of builds for each player, would i create one large table that has every player in the game's userIds and the have each of those UserIds be a table that have their queue, or would i do it differently?

spark willow
warm spindle
#

Waut no nvm

little wind
#

Yo guys those who develope to buy their dream car tell me what car you wanna buy when you get rich

spark willow
#

who the hell is developing on roblox to get rich

uneven jolt
#

anyone know how to make an image be forced to an aspect ratio WHILE covering the whole screen (aka, the image gets cut off rather than blank space on the UI'

little wind
little wind
spiral jungle
little wind
#

Not toy yoda

spiral jungle
uneven jolt
little wind
uneven jolt
gray escarp
#

Hey anyone familiar with the game trade tower can tell me why its still up ?

#

Isnt it basically gamblin

hardy pilot
#

Codecussion

solemn crescent
# solemn crescent if i were to create a queue table of builds for each player, would i create one ...

I am trying to create a buildQueue for my building game.

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function()
        PlayerTable[player.UserId] = {

        }
        print(PlayerTable)
    end)
end)```

now to create the build queue, would i create ANOTHER table inside the playerid's table called buildQueue then in there put their builds? or would i just put the builds straight into the playerid's table?
lost pebble
summer matrix
#

what tf

dire comet
#

Hi there, I'm currently learning about data stores and following this tutorial:
https://devforum.roblox.com/t/datastores-beginners-to-advanced/1275421/1
I've made it to the point in the tutorial where it explains about retries with the get function. The author mentions something about budgets, which is why I'm here: What is meant with budgets, and why are they used? Here is the line I'm at:
We will add a function that yields if there isn’t enough budget.<

crude crater
#

reading from the docs, it says it returns a number of data requests that the current place can make

dire comet
echo cliff
#

hello

#

im trying to learn scripting do i start with dev king tutorials

dire comet
#

Probably, yes. But after you've watched a video, maybe consider creating a small project yourself to reinforce what you've just learned. If you can't come up with a project idea, that matches your skill level, perhaps try asking an ai for a project idea.

crude crater
somber vault
#

can anyone help me learn Tween?

dire comet
crude crater
#

I'm not a datastore expert tho

dire comet
# somber vault can anyone help me learn Tween?

I can't, unfortunately. I would, though (I do not have much experience), recommend either finding a video about it (there are probably ones on youtube), or looking it up in the documentation (pretty sure it has something about tweens). If there's something you don't understand, try to ask here or, maybe, an AI.

dire comet
crude crater
#

also I think roblox automatically increases the budget count that's why you saw in the tutorial that it just stays in the while loop

echo cliff
#

am having a problem learning return

dire comet
#

Hmmm, return? Could you please provide some more context? What part of return don't you understand?

echo cliff
#

let me show you what i made.

bleak glade
echo cliff
#

local function hi ()
print ("retunr is so hard im omniying it rn")
return "this is so tuff"
end

hi()

local thisisMyfunction = hi()

print (thisisMyfunction)

#

is this what return does?

#

The function then returns the string "this is so tuff". This means that whenever the function hi is called, it will produce this string as its output.

#

so it prints when the function did its job successfully

mild dust
# echo cliff am having a problem learning return

Return exits out of the scope. If you add a string,nil, boolean, thread, integer,nil value then you can obtain that value when calling a function for example.
So you returned a string value "this is so tuff" so that you can access to it

fringe gazelle
#

yall

#

anyone wanna try my game tho...

echo cliff
#

"hi()" is a variable for thisisMyfunction

#

so when i print thisisMyfunction its returns "this is tuff"

#

?

mild dust
# echo cliff im a bit confused...

A scope is a block of code. When you create a local variable at the start of the script, you can access that variable in functions because is inside the whole script scope.

#

Ok

#

You can visualize scopes

#

With the Arrow down button at the left of script lines

#

The code inside it Is a scope

#

If you create a local variable inside of that scope, It Will be accessible only inside that block

echo cliff
#

ok i understood scope thank god.

#

but returning is confusing, i am currently wathcing episode 6 of devkings tutorial

mild dust
#

Now be aware that local variables outside scopes are only accessible / recognized by Lines below them

#

So if you have a function above a local variable It Will not be able to recognize the local variable

echo cliff
#

so if i put something over a local variable it will not recognize

echo cliff
mild dust
#

I don't remember now but there Is a guy

echo cliff
#

is he purple?

#

i forgot whats his name is he did a tutorial in like 2024

grizzled dagger
#

i started learning from his back like couple years ago

echo cliff
grizzled dagger
#

OG alvin blox and devking 🙏

echo cliff
#

i really im trying my best to understand scripting because i promised my friend who is currently an animator he's still learning but im trying to make a cool game with him

#

like funny projects

grizzled dagger
#

ic

#

im a tutor

#

if ur interested lmk

echo cliff
#

how do you like tutor vc or like tips

grizzled dagger
#

vc 1 on 1

#

if ur interested we can talk more in dms and i can explain my service to you

echo cliff
#

i dont do that kind of stuff because i currently dont have a mic.

grizzled dagger
#

I mean u dont gotta talk

#

i do vc bc i gotta talk

#

im the tutor

strong minnow
#

how would a person get a pet simulator like pet to be at a fixed position rather then purely following? i want to make a system where they can sit on your shoulder but most code ends up having them lag behind the player and usually slightly rotated. i want them to be fixed on the players shoulder, always pointing where the player points, but i also want the ability to give it combat where they can sort of fly off your shoulder attack and then return to your shoulder. how would i do that?

echo cliff
#

ill think about it.

grizzled dagger
bleak glade
echo cliff
grizzled dagger
ivory bronze
#

anyone here want to make a game with me? we can come up with the idea, it sounds stupid ik, i am not forcing anyone and also i got no robux but we could maybe make the game go viral with social media, we will split the 100% of the game earnings in half, just need a scripter

sturdy pilot
#

Hi, does anyone know how to get the image id of a decal using an api wrapper (like openblox/noblox)

mild dust
lost pebble
echo cliff
dense sentinel
#

the best way to learn imo

mint cloud
#

Nah bro

#

Everyone there is a pro

#

Just use YouTube

fiery blade
#

Can someone help me out whit this? it keep saying attemp index nil whit 'position'" how should i fix?

mint cloud
#

Are you sending two arguments but only have 1 parameter?

#

And you don’t use player anywhere in the clientevent

echo cliff
#

ill try documents because many of you suggested it

fiery blade
mint cloud
mild dust
echo cliff
mild dust
#

Player is a string value

#

Not a position

mild dust
echo cliff
#

how did you learn?

mild dust
#

I don't like youtube because youtubers tend to gatekeep info and also there is no youtuber that covers all topics but courses do and the teachers don't gatekeep

#

And ofcourse since you pay the teaching quality is better

echo cliff
#

so brawldev or devking or alvin

mild dust
#

Devking and Alvin are outdated

echo cliff
#

so brawl

mild dust
#

They are so bad

#

Genuinely

echo cliff
#

ill do brawl and try my best

echo cliff
#

or are docs moneu

#

money

mild dust
#

I paid for courses

#

Then I learn deeper by myself with docs

#

Roblox documentation

#

It covers all that there is in the engine

echo cliff
#

ill try my best with brawl dev ill see how it ends up

#

some people have wathced brawl dev and became very good

#

which is a good sign

fluid galleon
#

😂 sure average newbie after 2 days of coding

dense sentinel
#

Hi I’m looking for someone who’s willing to help us script in our JoJo Anime game we’re trying to make, we currently have a Map Builder, 3D Modeler, Animator we mainly just need an Extra Scripter to help

fluid galleon
#

My code still faster than urs cuz it executes less line just naming variable fancy dont makes a code better idk what u try na show by showing me this script

dire comet
#

Hi there, does anyone know which difference it makes to use task.wait() instead of wait()?

mint cloud
#

No, just use task.wait()

fluid galleon
dire comet
#

Okay, thanks for the responses.

mint cloud
#

@fluid galleon ChatGPT is most certainly not a minor

fluid galleon
#

Wait() is legacy it was in old roblox and its not as precise as task.wait()

lost pebble
steady robin
#

I’ve been coding longer than you

#

🤣

snow veldt
#

learn from it rather than defending ur bad habits, and yours isnt faster the difference wouldnt even be a couple of nanoseconds

main forge
#

how does this ui look

#

I didnt use a ton of ui gradients

somber vault
#

Colors dont match up well

#

Look at a color wheel or some shit

fresh cloud
#

is should store the user id as a 56 or 48 bits number? store it as a 64 bits number is really necessary?

main forge
#

@somber vault well how does ur ui look

somber vault
#

Only screenshot i had rip

main forge
#

dang

fallow depot
visual plinth
#

paying 1k robux for scripting

#

anyone can do it ?

fresh cloud
#

Guys this is okay?

safe pelican
#

i reccomend you use raycast hitboxes or workspace:GetPartsInPart()

rather than .touched

fresh cloud
#

why my pdf is taking so much time to send

tulip agate
#

weird question for a roblox dev server, but does anyone have a good javaScript tutorial I could follow? (got school project coming up which will grade higher if done with JS instead of block code lol)

strong radish
#

how far would 8 ad credits a day get you. how many ccu

strong radish
mild dust
#

Stfu roblox ad system is a scam

ocean plaza
#

anyone have the time to personally help me get better at coding? (I know till DataStores)

ocean plaza
wise turtle
#

dw about it!

ocean plaza
#

so ur not actually gonna help?

wise turtle
#

i'll help

fallow depot
queen tree
#

I'm paying $100 for a scripting job so dm me if ur down

snow veldt
pallid wasp
#

Yo guys, I have a newbie friend who asked me about the basics of scripting.
I wanna ask if you agree with me or not about this.

#

THESE ARE JUST FROM MY PERSPECTIVE AND NOT CONFIRMED BY OTHER PEOPLE

  1. Learn about Variables
  2. Learn how to locate something in explorer aka getting something from explorer.
  3. Learn about properties and how you change them via script.
  4. Learn about :WaitForChild() and :FindFirstChild()
  5. Learn about luau mathematics. Simple math such as plus, subtract and else.
  6. Learn about If statement
  • List of useful things to know while learning

    • Task.Wait(Number) or Wait(Number)
    • Types of values, which mainly have | Number, String, Boolean, and Object |
    • Use print() to debug or for testing while trying to learn about something. So you can see results in output
  • Side quests for you to learn after knowing those basics

    • Events, usually used to connect a function.
    • Client and server difference.
  • After knowing the basics, those are advanced you would first look up to.

    • Remote Event
    • CFrame
    • DatastoreService
pallid wasp
pallid wasp
daring rune
#

guys, anyone know why my in game credits would reset if I get promoted through the group rank via api?

pallid aspen
#

can someone pretty please explain to me what this means?

#

local function ToggleRunning(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.LeftControl then
        local humanoid = getHumanoid()
        if running then
            humanoid.WalkSpeed = humanoid.WalkSpeed / 2
        else
            humanoid.WalkSpeed = humanoid.WalkSpeed * 2
        end
        running = not running
    end
end

here's text-version for those who dont like reading screenshots

open sparrow
#

or a value

#

and running is the name of it?

pallid aspen
#

i read something and thought of this

#

and it worked but i don't know how it works

#

learn > go with it

open sparrow
#

well

#

from what i read

#

when u hold left ctrl it just increses the speed?

pallid aspen
#

yes but i dont understand the

#

running = not running and

#

if running then

open sparrow
#

well

#

i am prrety sure that is a boolean value

pallid aspen
#

like does it naturally has a true value or something or no set value?

open sparrow
#

and it changes it's value depending on the player speed when it's not holding ctrl for the sprint it wil say not running but when it does it will say running

#

u can play the game

#

go on ecplorer

#

then ur character

#

scroll down and look at it's attributes

#

or maybe inside

#

it might be a value

hallow crag
#

so if running is true then it sets to false

#

and vice versa

pallid aspen
#

Thank you guys for the help very much!

full ruin
#

someone here is a good coder in lou i have some questions

hallow crag
midnight wigeon
#

Yo is there anyway to automate robux transaction from my acc to player acc for reaching certain milestone

marble nova
#

if you think that this is acceptable then you yourself must be a newbie and should learn a lot before teaching others

hallow crag
midnight wigeon
empty wind
#

Hello, i have a dictionary in which i need to change a variable (it's in a datastore), and i didn't wanna update each variable manually to false. I tried doing this though pairs, it changes the stated value to true but it doesn't change the values from pairs loop to false. What's my mistake? it didn't print out any

rigid sundial
#

I kinda need help, I don’t know how to start scripting etc, can any pro dev/devs give me advices?

somber vault
#

is this unspecified behaviour?

local x = { z = true }
local y = x
x.z = false
x = nil
print(y.z) -- false
#

since y isn't a copy of x, it's a pointer

hallow crag
tired violet
#

it points to the table

hallow crag
#

but u can use if u want

empty wind
hallow crag
empty wind
#

i know i can make them false manually but my script is already 508 lines long

empty wind
hallow crag
#

for example if you wanted to change Orange to false u would do oldTable["Orange"] = false

hallow crag
#

and ignore the indexes u dont want to change

empty wind
hallow crag
empty wind
#

won't i have to specify each value in the for loop then?

hallow crag
#

that code will set every name to false besides Orange

#

not sure if thats what u want or not

empty wind
#

yes it is

hallow crag
#

alright should work then

fluid vale
#

yo if youre new to scripting, even if you haven't even touched a script yet. dm me friend.

hallow crag
rocky lintel
fluid vale
hallow crag
#

fr

#

there burning rn after looking at that image

rocky lintel
#

for some reason playsound is nil

empty wind
#

sorry for me being dumb

hallow crag
hallow crag
#

💀

fluid vale
#

and it should be playsound:Play()

hallow crag
#

and then play it

somber vault
hallow crag
#

maybe hes dyslexic

fluid vale
#

i feel like my eyes would burn

somber vault
#

not even talking about the font, as I also have a custom one
just the pink on pink...

rocky lintel
honest pagoda
#

my eye are buring reading that code

rocky lintel
honest pagoda
#

i got the best theme ngl

#

rate theme

#

ignore code

rocky lintel
#

mid

honest pagoda
#

nah bro

#

its Fire

#

Show Me Yours

rocky lintel
honest pagoda
#

ohhh

#

bro how can you work like that

rocky lintel
#

i dont see the issue

#

looks fine to me

honest pagoda
#

Finding Type Errors Going To Take LONG

candid palm
#

who is a good scripter that can solve me a small quick question

bronze hedge
#

Hello, can someone explain why nobody gets the win, even if you're higher than Y-level 97. I'm bad at scripting.

somber vault
honest pagoda
somber vault
#

I like it

honest pagoda
#

show

somber vault
honest pagoda
somber vault
#

oh you can't put custom fonts
that sucks

honest pagoda
#

u can

bronze hedge
hallow crag
open sparrow
#

y > 97 means y is bigger then 97

hallow crag
bronze hedge
#

ye

hallow crag
#

so its correct

#

just add a print statement

open sparrow
#

i read wrong

hallow crag
#

all g

honest pagoda
hallow crag
bronze hedge
hallow crag
# bronze hedge

have u checked for errors and added that print statement yet 😭

bronze hedge
#

ye

open sparrow
honest pagoda
#

try this


local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
    local wins = leaderstats:FindFirstChild("Wins")
    if wins then
        wins.Value = wins.Value + 1
    end
end
open sparrow
honest pagoda
#

Show us please The Console logs !

#

bro i been doing my GeometryUtils for the past 4 days 😭

bronze hedge
#

Ai but i gtg thanks for helping i will figure it out eventually

hallow crag
slender yew
#

How can I give the player a custom avatar from the server? I'm not talking putting a starter character avatar, I've already created an entire avatar instance, and I just want to put it on the player how can I do that?

white tinsel
bronze hedge
#

Idd🤙

white tinsel
#

ja toch

#

chatgpt me gat

#

goat

bronze hedge
#

Fr

#

Ma in scripten toch minder

white tinsel
#

ja je moet hem gw dinge laten zoeken bro

#

anders werkt niet

bronze hedge
#

Precies

hallow crag
silk locust
#

so that can't be the problem.

slender yew
urban yacht
#

i need a dev for my game ill give head admin

slender yew
#

Have you used it?

hallow crag
#

if the camera doesnt adjust u can just adjust it manually

slender yew
slender yew
#

Does it have to match the players name?

hallow crag
slender yew
#

so u paste a clone of the char into workspace, name it the same as the plr, delete plrs char and set new char as their char?

hallow crag
#

so the camera stays in the same position

#

as before

slender yew
#

Oh shit thats smart

#

How do you freeze the camera though? Just set it to scriptable?

hallow crag
#

and then just disconnect the connection when u wanna unfreeze

primal cave
#

yo I lowkey need testers for a game I made idk what im doing wrong, idk what I need to add or change can sm1 help out?

slender yew
#

Plr.Char.Destroying

#

or na

hallow crag
#

i just fire to the client

#

to unfreeze

slender yew
#

so you fire to client twice to freeze/unfreeze?

hallow crag
#

or if u dont wanna fire to the server

#

then just fire to client to freeze/unfreeze

slender yew
#

Oh you’re detecting the change on client

#

In my case I’m wondering if u can fully do it from the server

hallow crag
#

if i wanted to have a character selection

#

then i would have to fire to the server

#

to change the character

#

for example

hallow crag
#

but u would have to fire to the client to freeze/unfreeze the camera

slender yew
hallow crag
#

no u cant

slender yew
#

thats what I’m thinking some communication is needed

#

Well the character resets once the player dies right?

#

unless I set it to starter plr

hallow crag
#

what are u trying to achieve exactly?

#

like what are u making

slender yew
#

psure if u change the char of a player, after their death it resets to their original avatar

hallow crag
#

and load the character urself

#

when they die

slender yew
slender yew
#

It’d be replicated right

hallow crag
uneven crown
#

when using a humanoid:xxx thingy in a touched event it onlty works once how do i make it work more then once/

hallow crag
#

but if you want to change the character mid game then u gotta do the other method

slender yew
#

ah well prolly just gonna do that, I was thinking if there was another way

slender yew
#

Thank you it was a pleasant chat

#

learnt a bunch

uneven crown
#
local TargetPoint = Target.Position
local Humanoid = script.Parent.Humanoid
local RootPart = script.Parent:WaitForChild("HumanoidRootPart")
local Debounce = false
local function MoveCommand()
    Humanoid:MoveTo(RootPart.Position - Vector3.new(0,0,RootPart.Position.Z - TargetPoint.Z))
end
MoveCommand()
RootPart.Touched:Connect(function(hit)
    if hit ~= game.Workspace.Baseplate and hit ~= Target then
        Humanoid:Move(Vector3.new(4,0,0),false)
    end
end)
``` the touched event only works once
hallow crag
slender yew
#

why not check for what u want it to be hit by

uneven crown
#

OHHH

#

im stupid

hallow crag
#

oh ur trying to make it so u turn around when u hit something?

#

i would use raycasting personally

slender yew
#

I hate when people post just a bunch of code with no explanation of what they’re trying to make and want us to help

uneven crown
#

i dont know rayvast

#

im already using humanoid:move

open sparrow
uneven crown
#

cgheck again

hallow crag
uneven crown
#

its move90

open sparrow
#

if u want that player to follow a path or something then yes use MoveTo

uneven crown
#

i literaly said why does the touched work only once (with humaoind with rootpart it doesnt even work0

open sparrow
#

but if u want a fast push just use Move

slender yew
uneven crown
#

doesnt move rotate the char

#

not move it

hallow crag
#

have tried adding print statements

uneven crown
#

i dont debug(ik im a failure0

hallow crag
#

well u should

open sparrow
#

also you are calling humanoid:MoveTo(humanoid.RootPart.Position) before the real MoveTo(TargetPoint)

static coral
#

yo is it possible to expand a dropdown in the explorer with a plugin? im trying to expand workspace bc im inserting objects into it with plugin

uneven crown
#

move rotates the char and that is what i want

#

moveto moves the char move() roates the char

#

the first script i sent was by mistake

#

the orginal script i meant to sent was ```local Target = game.Workspace.Target
local TargetPoint = Target.Position
local Humanoid = script.Parent.Humanoid
local RootPart = script.Parent:WaitForChild("HumanoidRootPart")
local Debounce = false
local function MoveCommand()
Humanoid:MoveTo(RootPart.Position - Vector3.new(0,0,RootPart.Position.Z - TargetPoint.Z))
end
MoveCommand()
Humanoid.Touched:Connect(function(hit)
if hit ~= game.Workspace.Baseplate and hit ~= Target then
Humanoid:Move(Vector3.new(4,0,0),false)
end
end)

#

this one works but the touched event works once only

open sparrow
#

You call MoveCommand() a single time, as soon as the script runs. After that MoveTo is never called again

uneven crown
#

it still moves but it doesnt rotate again

hallow crag
finite swan
#

i think that can help you

uneven crown
finite swan
#

which on

static coral
#

someone just told me this

#

but thx

finite swan
hallow crag
#

oh alright

uneven crown
finite swan
#

oh no wonder it didn't work

open sparrow
#

let me try

finite swan
#

@uneven crown

local TargetPoint = Target.Position
local Humanoid = script.Parent.Humanoid
local RootPart = script.Parent:WaitForChild("HumanoidRootPart")
local Debounce = false

-- Function to make the character face and move towards target
local function MoveCommand()
    -- Calculate direction to face
    local direction = (TargetPoint - RootPart.Position).Unit
    -- Use Move to rotate the character (this preserves Z position)
    Humanoid:Move(direction, false)
end

-- Initial movement
MoveCommand()

-- Handle collisions
Humanoid.Touched:Connect(function(hit)
    if hit ~= game.Workspace.Baseplate and hit ~= Target and not Debounce then
        Debounce = true
        -- When hitting an obstacle, move right
        Humanoid:Move(Vector3.new(4, 0, 0), false)
        -- Reset debounce after a short delay
        task.wait(0.1)
        Debounce = false
        -- Resume original movement
        MoveCommand()
    end
end)

-- Optional: Update movement periodically to ensure character keeps moving
game:GetService("RunService").Heartbeat:Connect(function()
    if not Debounce then
        MoveCommand()
    end
end)```
open sparrow
#

@uneven crown try this one

local Target = workspace:WaitForChild("Target")
local TargetPoint = Target.Position
local Humanoid = script.Parent:WaitForChild("Humanoid")
local RootPart = script.Parent:WaitForChild("HumanoidRootPart")
local Debounce = false

RootPart.Touched:Connect(function(hit)
    if not Debounce and hit ~= workspace.Baseplate and hit ~= Target then
        Debounce = true
        Humanoid:MoveTo(RootPart.Position)
        Humanoid:MoveTo(TargetPoint)
        Humanoid.MoveToFinished:Wait()
        Debounce = false
    end
end)

Humanoid.MoveToFailed:Connect(function()
    Debounce = false
end)
finite swan
open sparrow
uneven crown
finite swan
open sparrow
open sparrow
finite swan
finite swan
hallow crag
finite swan
open sparrow
coral field
#

lmao

finite swan
#

tell me how many years

open sparrow
proper edge
finite swan
#

TELL ME

open sparrow
#

it isn't a waste

hallow crag
coral field
#

ai will never surpass humans

finite swan
#

i'm guessing 1-2 years

#

or higher

hallow crag
finite swan
#

what a waste of time

#

THAT'S EVEN WORSE OF A WASTE OF TIME

frail yarrow
#

waste?

finite swan
#

u wasted 4 years to learn how to script

coral field
#

how is it a waste

finite swan
#

ai can do the asme

hallow crag
open sparrow
coral field
#

lol

#

ai is garbage

hallow crag
#

you cant make a decent roblox game with just ai

#

r u slow

finite swan
open sparrow
hallow crag
#

there will be alot of mem leaks

finite swan
frail yarrow
#

It'll just be broken

finite swan
#

also

coral field
#

he should just quit

frail yarrow
#

AI is not great at scale

finite swan
coral field
#

if you think that just quit

open sparrow
coral field
#

no need for you to waste space here

frail yarrow
#

Idk how you could try to coax AI into writing good code

open sparrow
#

@uneven crown did it work?

uneven crown
frail yarrow
#

you'd have to try to get it to comprehend and factor in the full scope of a codebase

#

Which its not good at

open sparrow
uneven crown
#

touched event are soo weird ig thats why raycast more famous for bigger game

violet coyote
#

how to learn lua

frail yarrow
#

.touched is very scuffed

hardy pilot
#

What is wrong with Touched

uneven crown
#

yt

hardy pilot
#

Other than being partially handled on the client

#

which is fine as long as you're aware

frail yarrow
#

Its unreliable and inaccurate

uneven crown
hardy pilot
#

I don't know, it fires pretty much all the time on point

empty wind
#

hey. I had an issue where this didn't work. There's a dictionary that i need to update in a datastore, and if a value becomes true the others need to become false inside of it. So a guy told me to put oldTable[name] = false instead of val = false and it worked. Now can someone explain why? cuz i didn't get it, like in both val and oldTable[name] i am supposed to get access to the variable's value am i not?

hardy pilot
#

TouchEnded might but I've never had Touched fail

frail yarrow
placid matrix
open sparrow
#

@uneven crown bro i am so dumb, did you even try to add wait()? bcs it might overide it

empty wind
hardy pilot
empty wind
cedar patrol
#

Really need some help with my code, I am using these 2 open source scripts 1 is a head movement script the other is a replication script from the forum (linked)

https://devforum.roblox.com/t/stupid-simple-fast-character-position-replication/3162721

hardy pilot
#

Why would you need to detect two anchored parts touching

uneven crown
frail yarrow
#

do people still use tweens

#

Cringe

uneven crown
hardy pilot
empty wind
# hardy pilot It's a physics event

though there's a solution, u can either use GetTouchingParts() or GetPartBoundsInBox() (though i don't really know how the second one works)

hardy pilot
#

I mean sometimes

uneven crown
#

getpartsinparts thingy works aswell

vast maple
#

anyone know how i can make the server wait for the profile to load in this

    -- Sync player data
    local Profile = DataManager.Profiles[Player]
    if not Profile then 
        warn( "Profile does not exist" )
        return
    end
    
    ReplicatedStorage.LocalScriptPlayerData:FireClient(Player, Profile.Data.cash,  Profile.Data.Copper, Profile.Data.MineUpgradeLvl, Profile.Data.CopperSmelterUnlocked, Profile.Data.SmelterUpgradeLvl, Profile.Data.CopperIngots)
end```
empty wind
hardy pilot
#

Yeah but it can get expensive quickly

#

So I would still use Touched where ever possible

frail yarrow
open sparrow
frail yarrow
#

I wouldnt used touched for my hitreg

hardy pilot
vast maple
hardy pilot
#

so the client yields until you give them

empty wind
open sparrow
vast maple
open sparrow
hardy pilot
open sparrow
#

actually writes back into oldTable

empty wind
open sparrow
empty wind
open sparrow
uneven crown
#

finaly made my script work altough its unethical and will get u PHYICAL PAIN here it is

#
local TargetPoint = Target.Position
local Humanoid = script.Parent.Humanoid
local RootPart = script.Parent:WaitForChild("HumanoidRootPart")
local Debounce = false
local function MoveCommand()
    Humanoid:MoveTo(TargetPoint)
end
MoveCommand()
Humanoid.Touched:Connect(function(hit)
    if hit ~= game.Workspace.Baseplate and hit ~= Target then
        RootPart.CFrame = RootPart.CFrame * CFrame.Angles(0, math.rad(45), 0)
        print("rotated")
        task.wait(1)
        Humanoid:MoveTo(RootPart.Position + Vector3.new(8,0,0))
        print("move a bit")
        task.wait(1)
        print("Back to main quest")
        MoveCommand()
    end
end)

open sparrow
#

see told u

#

add wait

uneven crown
#

thats my own script that i changed ALOT

open sparrow
#

bcs it overides it without the wait

#

and sometimes it won't work

uneven crown
#

no it was cuz i made it rotate to 1 direction only

#

instead of turning 45 degree everytime it was rotated in 1 direction only

open sparrow
#

didint see that in ur code

frail yarrow
#

I should try to shill ECS to noobs

#

OOP has so many glazers that prey on noobs

#

I gotta replicate that

hollow hemlock
#

that convinces half of them

frail yarrow
#

did you get a notification when I said ECS

hollow hemlock
uneven crown
#

whats ecs oop

vast maple
placid matrix
#

ecs users when they cant bulk transform:

uneven crown
#

whats ecs and oop??

#

object oreinted program or what

#

what does ecs stand for

placid matrix
uneven crown
#

escorting c-lvl-blackers side-knack

frail yarrow
#

entity component system

wise turtle
#

enity componet system

proper veldt
#

is this suitable for a player to be morphed into?

proper edge
hoary cedar
mild dust
#

That looks so boring

proper edge
#

It’s quiet a lil tho cuz I’m zoomed out

proper edge
mild dust
#

Also

#

The vfx spawns outta fucking nowhere

proper edge
#

But then the animation wouldn’t work tho cuz I have the animation first two seconds and the arrow spawns next 2 and fires

proper edge
mild dust
#

Bringing vfx instantly like that is bad

proper edge
#

fair point

#

I was thinking off adding some second vfx once arrow soawns

#

Spawns

lapis wraith
#

whats the best way to get into scripting? i know somewhat of the basics

pearl blaze
#

CPU, Memory, Hardware inner workings.
v
Assembly
v
C++
v
Luau

lapis wraith
#

ive never learnt cs in school

#

theyve never offered it

wise turtle
# lapis wraith whats the best way to get into scripting? i know somewhat of the basics
lapis wraith
#

also isnt lua easiest lang?

lapis wraith
#

🔥

pearl blaze
#

Ironically fastest method to learn, if you're starting from the top you will have no idea what you're doing, getting yourself confused every time.

pearl blaze
#

Better to be able to do everything while being sure what you're doing instead of doing some basic stuff only

lapis wraith
#

its jus extra

obsidian sun
# lapis wraith its jus extra

just learn lua its literally one of the easiest languages use ai and youtube and other open source projects to learn itll take a while to get the hang of it

frail yarrow
#

so we advocating for pasting

obsidian sun
#

How else would you learn?

lapis wraith
frail yarrow
#

luau is a really easy language to learn

obsidian sun
frail yarrow
obsidian sun
#

I said use ai, youtube, and other open source projects to learn how the coding language works

frail yarrow
#

By looking at it or what?

obsidian sun
#

Yes

frail yarrow
#

Thats fair

obsidian sun
#

its like reading a book to get info

wise turtle
#

how you learn ^^

frail yarrow
#

You gotta understand and internalize it

obsidian sun
mint cloud
#

When did the skids migrate to code discussion 🥀

royal ibex
#

is _G useful?

hasty mesa
#

No

compact shell
#

anyone good at scripting want to help me on a game I'm making, its building/physics based

royal ibex
merry musk
#

How would you guys quantify someone's level in scripting? What are some systems that each level of scripter should be comfortable doing in your opinion?

mint cloud
#

All I know is you’ve gone too far once you start talking about json

wise turtle
crisp steppe
#

who here knows OOP looking for comm work dm me

pearl blaze
# royal ibex is _G useful?

Basically yeah but community hates it because there's no reason to use it because there's better alternatives.

#

Basically if you wanna use _G for something then there's a better way without using _G

royal ibex
#

whats a better way

pearl blaze
#

What the case you wanna use _G in?

#

Depends on that highly.

static summit
#

Is someone able to help make a PA system? Like you have a microphone and it projects your VC voice from the microphone into the speaker and makes your voice louder and stuff.

pearl blaze
pearl blaze
static summit
#

?

pearl blaze
#

Those instances let you do stuff that you want.

#

Learn them.

#

Those are instances you can create in your place, like AudioDeviceInput.

pearl blaze
#

This documentation explains them in detail

static summit
pearl blaze
#
static summit
#

Why is roblox down now?

#

Like, ofc when I actually get a source that is reliable.

crisp path
pearl blaze
#

Why ask me just check out the stuff I gave you.

#

I dunno, probably? Games usually always have scripting involved, so whatever you wanna make defo will need scripting

ember nimbus
static summit
static summit
pearl blaze
#

Well yeah?

steady thunder
pearl blaze
#

Scripts can change properties of those instances or add/remove them, you can do the same manually.

static summit
pearl blaze
#

I guess you can decide yourself if you need scripting or not.

dense sentinel
#

curious if anyone would be interested in joining a team of devs we currently have a 3D Modeler, Animator, Map Builder, UI Designer and SFX we mainly just need a Scripter on the team

dense sentinel
#

we have a pretty good thing set up for it

candid abyss
dense sentinel
#

the anime

candid abyss
dense sentinel
#

hmmm how do I say this

#

like these powerful spirits that awaken inside of people from an arrow

#

basis of the game is you use an arrow

#

you get a spirit

dim rock
#

Pretty good description

dense sentinel
#

don’t like it the you use a Roka which removes the spirit

#

then rinse and repeat

#

it’s a fighting game too

#

that’s the basics of the game

#

then there’s stuff like if the spirit can awaken to a higher level you can do a quest that allows you to reach a higher tier

#

I think I summed it up pretty well

static coral
#

what the yap

white aurora
#

yo goys

#

since code help is not code help anymore, and certainly this channel isnt either

#

yes

mint cloud
#

It was yesterday idk what happened

near hinge
#

What is the largest commission you have ever got

rustic inlet
#

No advertising in chat

crude crater
#

is it recommended to use a pathfinding module?

#

I've heard roblox's default pathfinding is trash

glass garden
#

It's not trash, it's just general purpose, so there's some trade-offs. Eg if you have just a simple node setup for pathfinding, a custom A* impl will be much faster

#

Also the key to good pathfinding perf is floodfilling ahead of time to find designated areas that are isolated from each other, so you don't try to run the algorithm to the ground in impossible searches

shy harness
#

lol

empty mulch
ruby iron
nocturne solar
#


-- [[ FUNCTIONS ]] --
local function createIK (name, chainRoot, target, endEffector)
    
    local IKControl = Instance.new("IKControl"); IKControl.Parent = humanoid
    IKControl.Name = name
    IKControl.Type = Enum.IKControlType.Transform
    IKControl.ChainRoot = chainRoot
    IKControl.Target = target
    IKControl.EndEffector = endEffector
    
    return IKControl
end

local function locateTargetPosition (origin)
    
    local raycastParams = RaycastParams.new()
    raycastParams.FilterDescendantsInstances = {character}
    raycastParams.FilterType = Enum.RaycastFilterType.Exclude

    local result = workspace:Raycast(origin.Position + Vector3.new(0,2,0), Vector3.new(0,-3,0), raycastParams)
    
    if result then
        return result.Position
    end
    
end

local leftTarget = createTarget("LeftFootTarget", leftFoot.Position)
local rightTarget = createTarget("RightFootTarget", rightFoot.Position)

local leftFootIK = createIK("LeftFootIK", leftUpperLeg, leftTarget, leftFoot); 
local rightFootIK = createIK("RightFootIK", rightUpperLeg, rightTarget, rightFoot)

local leftLastHit = nil
local rightLastHit = nil
local UPDATE_THRESHOLD = 0.1 -- studs

runService.Stepped:Connect(function()

    local leftTargetPosition = locateTargetPosition(leftUpperLeg)
    local rightTargetPosition = locateTargetPosition(rightUpperLeg)

    if leftTargetPosition then

        leftFootIK.Enabled = true

        leftTarget.Position = leftTarget.Position:Lerp(leftTargetPosition, 0.5)
        leftFootIK.Enabled = true

    else
        leftFootIK.Enabled = false
    end

    if rightTargetPosition then

        rightTarget.Position = rightTarget.Position:Lerp(rightTargetPosition, 0.5)
        rightFootIK.Enabled = true

    else
        rightFootIK.Enabled = false
    end

end)

how am i supposed to avoid this rapid jittering from the foot

rain osprey
somber vault
rain osprey
#

I am

rain osprey
#

I'm working on the wander and socialize state

somber vault
rain osprey
#

sometimes it stops, it can stand around a bit and look around, etc

hardy pilot
rain osprey
#

that's pathfindjng service

#

Also that's a bad example

hollow plover
#

bro

#

💔 praysob

naive atlas
#

lmfao

hot wraith
glass garden
hardy pilot
#

Unable to find obvious paths, going around something entirely outside of the correct path

crude crater
#

is it good practice to put a localscript in the starterplayer to manage gui's in startergui?

weak radish
hallow crag
#

justput a localscript in starterplayerscripts that handles a frame or hud component

weak radish
hallow crag
weak radish
hallow crag
#

the scripts are just gonna load once

#

in starterplayerscripts

weak radish
hallow crag
#

i have never enabled that shit

weak radish
#

It's used a bunch

hallow crag
#

its just preference

weak radish
hallow crag
#

i personally dont like localscripts scattered around in startergui

weak radish
hallow crag
hallow crag
weak radish
dull bone
#

who can give me some things to make for my portfolio

#

its empty rn

hallow crag
weak radish
hallow crag
#

what if u wanted it to have a transition to open

#

u cant just use resetonspawn

weak radish
#

Yes you can?

hallow crag
#

theres no point tho

weak radish
#

How are you even gonna check when they respawn on player?

hallow crag
weak radish
#

And even if it did there still no point of detecting on removing and on spawn instead of just writing it in character scripts😭

hallow crag
#

if its in starterplayerscripts

weak radish
misty gale
#

Yo guys

#

İm so confused rn

tardy pasture
#

good be confused

slow whale
#

dead chat

copper apex
empty mulch
midnight wigeon
#

how can we find the actual product id of a gampass?

hallow crag
#

click 3 dots

#

and theres a copy id button

worthy ravine
#

Is it possible to scrape my account transaction logs alongside transcation logs from multiple of my groups to make a website dashboard of how much robux is being generated across everything

hallow crag
worthy ravine
#

is there a site where i can view all the api's?

worthy ravine
hallow crag
#

and there should be a request

#

to an api

worthy ravine
glossy wave
#

could this be of help?

worthy ravine
hallow crag
#

yes but u wont be able to view other peoples purchases

#

and u will ur own api to interact with that api

worthy ravine
somber vault
somber vault
#

but it won't work

worthy ravine
#

i need to pull payouts from my account & user purchases in the group

hallow crag
#

thats all

worthy ravine
#

okay, so what im trying to do is entirely possible?

hallow crag
#

yeah

worthy ravine
#

ok cool, thank you

somber vault