#code-discussion

1 messages · Page 115 of 1

atomic hearth
#

nuh uh

proper edge
#

HES MINE ONLY

sour vine
#

yuh uh

proper edge
#

FOREVER AND EVER

atomic hearth
#

@lone marsh u fixxed all of my bugs

#

lemme kiss u

lone marsh
#

hell nah twin

atomic hearth
#

oh

ivory sundial
#

guyssssssssssssssssss

#

is there anyone who is really good at scripting????

atomic hearth
#

for 1 thing

ivory sundial
#

i want to hire someone for my game

#

payment method - usd paypal

lone marsh
atomic hearth
#

GNG TY

#

gimme ur roblox user im gonna add u to my game

edgy oyster
cedar flicker
edgy oyster
cedar flicker
edgy oyster
cedar flicker
#

Yes Pesos for Bezos

ivory sundial
edgy oyster
unborn sable
#

lf someone who wants to learn how to script with me

ivory sundial
#

guys i need a good front end scripter who can do combat system and cutscenes

ivory sundial
#

private discussion

near pasture
#

Do any of you know about Knit and how to use it?

What are the benefits in using it in contrast to normal studio?

granite forge
#

not much benefits

cedar flicker
#

Yup

near pasture
#

Why do people use it then?

granite forge
#

nobody really uses it

somber vault
#

Yo why does studio not suggest autocompletion of values inside a table type unless I look at the type error report

cedar flicker
#

It is just dumb bloat

#

Trying to simplify remotevents and functions

#

Why even do that

#

When they are that simple

somber vault
#

@cedar flicker yo can you answer me bacon god

near pasture
cedar flicker
near pasture
#

Is that all it's for?

cedar flicker
#

Yes

#

It just creates them in the background basically

#

And a bit more, but i really dont know why it'd useful

near pasture
#

I have another questionn, how do I make it so my studio audio fills / recognizes types I make when I use OOP with setmetatables

lone marsh
#

:

cedar flicker
#

Ah its a bit more complex

#

You cant use : anymore

#

You need to use .

#

And export

white spire
#

If anyone has ideas they can give me for my website songle.org or any song request that would be amazing.

cedar flicker
#

I think roblox has a pretty good tutorial about it on yt

#

If im not mistaken

#

On their official learning channel

somber vault
# cedar flicker Dont really get what the problem is :/

I do this @cedar flicker

type InventoryCore = {
    Name: string;
    Points: number;
    Inventory: {string}
}

--then I do this
local playerData1: InventoryCore = {
    Name = '';  
    Points = 1;
    Inventory = {'crate'}
}

--my question is why studio doesn't suggest autocompletion on the values inside the table and you need to remember the names inside of the type and this is annoying if I have a modulescript with multiple export types for organization like I need to remember 'Name', 'Points' and 'Inventory'

near pasture
#

Sorry for the ping if u were wanting help

near pasture
somber vault
pallid plover
#

I'm trying to create a toggleable ragdoll module on the server side—yet I do not know the general approach do a ragdoll. Does it only involve storing all joints in the humanoid, breaking them, waiting a second, and then readding them?

near pasture
somber vault
spark estuary
#

i mean create custom types

near pasture
#

You learn something new everyday

somber vault
# spark estuary i mean create custom types

I like doing more this inside a modulescript rather than inside a normal script

export type randomBs = {}
return {}

then doing this inside the script

local types = require(typesModule)
local randomStuff: types.randomBs = {}

so I don't have so much bloat in the operating script but the items inside don't get suggested by studio. Though I just noticed 2 ways to fight this, the first being looking at the script analysis report for the names that must be inside and the other one I select the type name and click ''Go to declaration' and it sends me to the module where the type was made.

#

if I write --!strict at the top of the normal script it will error till I fill all the names correctly though

#

but it's kinda annoying having this studio limitation

real latch
#

hi i am doing scripting projects(free) for my portfolio if you are interested dm me

near pasture
#

mvntau

#

mvntau

#

mvntau

spark estuary
spark estuary
real latch
#

what does mvntua mean

somber vault
jolly marsh
#

is there a good youtuber i can watch to start

verbal lodge
#

I will teach you how to code using AI

#

:D

jolly marsh
#

no

spark estuary
somber vault
nova yarrow
#

export type

#

If u want auto complete out of the module scriot

#

Use export type = {}

#

Then get ur type by modulescript.type

#

@somber vault

somber vault
#

stfu no one cares about that mid show

outer finch
#

Yo, is 1k for a scripting job of implementing the ui of a painting game lowballing?

somber vault
nova yarrow
#

If u want ur type accessible out of the module script

somber vault
#

bro

#

that is not the issue

outer finch
#

Guys du know?

nova yarrow
#

What's the issue

somber vault
#

the issue is that the values inside of the type don't get suggested for autocomplete

#

the type name does get suggested

#

not the values inside

#

not the structure

nova yarrow
#

It's not supposed to?

somber vault
#

what

nova yarrow
#

Unless ur doing

type idk = {
 Inventory: {"crate", "other"}
}
#

Then crate and other is suggested

somber vault
#

yes

nova yarrow
#

But it's a custom type that expects strings in a table for example

real latch
#

hi i am doing scripting projects(free) for my portfolio if you are interested dm me

nova yarrow
#

So it's not supposed to get auto complete

south sigil
#

Who wants to buy my model pet dm me for very cheap!

somber vault
nova yarrow
#

U can also do Type: "Melee" | "Weapon"

#

If ur expecting Melee or Weapon string

somber vault
#

I know but not trying to be flashy here

nova yarrow
#

That's js a example tho

#

Ur doing Inventory: {string}

somber vault
#

I just want the indexes to be autofilled not the values bro

nova yarrow
#

So inventory is expected to have strings inside of it

somber vault
#

like Name or Inventory

nova yarrow
#

Ok what r u tryna do

somber vault
nova yarrow
#

Bro what

#

Like whats ur goal rn with what ur doing

somber vault
#

forget it i'm wasting time asking for bs questions

#

have a good day

outer finch
slender yew
river iris
#

lol

#

also its, "women" not "womans".

near sonnet
#

lol

#

@lost burrow

heavy sleet
#
stone garden
#

the world would be better if THIS was possible

cedar flicker
atomic hearth
burnt cobalt
atomic hearth
#

@lone marsh

lilac ore
#

this is my function for putting katana into the player's hands

#

and here are the animations for it

stone garden
hollow kraken
verbal lodge
#

hey I need help from a bot developer again

lone marsh
#

yo

verbal lodge
#

yo

lilac ore
verbal lodge
#

Ive been working on my bot

lilac ore
#

my question is that how can i play the animations from katana as well

verbal lodge
#

finally I am able to interact with it and everything

#

thanks to your help

#

however I am running into a couple of issues

stone garden
verbal lodge
#

right now I am trying to implement a simple roblox verification system

dark juniper
verbal lodge
#

I have made good progress

dark juniper
#

Like is everything named properly

lilac ore
dark juniper
#

In the right location

lilac ore
#

yessir

verbal lodge
#

however I decided to use Supabase as my datastore

lilac ore
#

that's how the rig is playing the animation

lone marsh
#

supa what

verbal lodge
#

and honestly it is not really working out

lilac ore
#

only the katana is not playing

verbal lodge
#

supabase

dark juniper
lone marsh
#

what the issue

dark juniper
#

do they have the exact same things

verbal lodge
dark juniper
#

u need to be really precise with motor6d

verbal lodge
#

to supabase

#

I tried doing direct connect

#

and I tried doing API

#

and I am just running into a wall

lone marsh
#

ye i dont know much abt that supabase thing ;-;

#

is there any output

verbal lodge
#

yeah its basically failing to connect

lone marsh
#

show code

verbal lodge
#

do you know a better datastore option instead of supabase?

#

like somewhwere where you can store verified user data?

lone marsh
#

well i always hear abt mongodb

verbal lodge
#

let me try it out

#

and i will get back to you here

hollow kraken
stone garden
hollow kraken
#

Thank you mate ❤️

pseudo maple
#

For people who speak other languages, do they have to learn English in order to learn how to script??💔

pseudo maple
lone marsh
#

i code in english

stone garden
stone garden
pseudo maple
heavy sleet
heavy sleet
# stone garden

Would never work anyway as I’m pretty sure all code follows a standard and that standard being English 🙂

#

Pretty sure English is the global standard language or at least the most popular choice for a second language next to your primary if it’s not your first

fathom halo
#

can someone help me with this code please? local washingtonparts = script.Parent:GetChildren()

for index, value in washingtonparts do
if value:IsA("Part") then
value.Color = Color3.new(0, 0, 1)
end
end

local function onWin()
if script.Parent.Color.Value == "Blue" then
for i, v in washingtonparts do
if v:IsA("Part") then
v.Color = Color3.new(0, 0, 1)
end
end
elseif script.Parent.Color.Value == "Red" then
for i, v in washingtonparts do
if v:IsA("Part") then
v.Color = Color3.new(1, 0, 0)
end
end
end
end

script.Parent.Color.Changed:Connect(function()
onWin()
end)

spare estuary
#

So I need these cones to always weld right at the hands position, which technically they do but the idle animation messes up the positioning

#

how could I fix this?

fathom halo
#

idfk

#

ask code help

#

oh wait, code help is code descussion now?

spare estuary
#

why you being moody

glossy kayak
#

If I were to look for a scripter to script a similar game like grow a garden (just a reference) how much am I looking to spend on them?

fathom halo
#

yeah i hate my life too

verbal lodge
#

anyone got suggestions for features for a Roblox Discord Security Bot?

frail yarrow
#

ask ai blud

hexed gull
#

why is this killblock not working? (my parts name is notpart)

silver loom
#

currently on mobile but it should be like that

hexed gull
#

arent they the same

silver loom
#

Part.Touched is an event that happens, you cant define an event using a variable so you need to do

Part.Touched:Connect(function(hit)

if hit.Parent…..
end)

you should not define hit above as it is already defined in the function (hit)

hexed gull
glossy kayak
#

even with coded Ui

silver loom
#

honestly it would range more

#

Creating a game like grow a garden is not easy

#

in my opinion it would exceed 180k+

glossy kayak
#

right

#

would you say that the effort needed to code grow a garden is around the same effort to code something like Dusty trip?

#

or is dusty trip higher effort

silver loom
#

Grow a garden is higher effort

glossy kayak
#

how so

silver loom
#

There are cycles, integrating every plant, each cycle, mutation s, grow boosts, plant size, etc

glossy kayak
frail yarrow
#

Grow a garden is higher effort than a lot of games

silver loom
#

Grow a garden would take allot of time, since every plant has to be integrated with its own models and cycles

frail yarrow
#

Especially anime fighting games

glossy kayak
#

Im not entirely aware of what goes behind each game, so I was trying to make sure to give a decent example

lone marsh
glossy kayak
#

now that you put into words, im more leaning towards a game like dusty trip. Would the budget still be somewhere around 100k Robux/ $360 usd for the whole game?

#

coding part*

hexed gull
glossy kayak
#

not the whole game

true birch
#

Why he is making my life harder

silver loom
silver loom
twin mesa
#

anyone got some simple project ideas just to practice my scripting skills?

silver loom
hexed gull
faint shell
#

is there any way to get like a signal when players footstep happen

somber vault
somber vault
#

how do you even come up with that result

#

how does it cross your mind to write the code outside of the connection function

#

there's a thing called scope. The value obtained with the touched event is only accessible inside the scope of the connection function

hexed gull
somber vault
true birch
restive ravine
somber vault
#

learn fundamentals before anything else

#

no wonder you made the worst mistake I have ever seen in this server

#

This has to be ragebait

restive ravine
true birch
#

Roblox fucking sucks

fleet siren
#

How do I turn my datastore leaderstats script into profilestore?

local DataStoreService = game:GetService("DataStoreService")
local PlayerDataStore = DataStoreService:GetDataStore("PlayerData")

game.Players.PlayerAdded:Connect(function(Player)
    local Leaderstats = Instance.new("Folder")
    Leaderstats.Parent = Player
    Leaderstats.Name = "leaderstats"
    local Cash = Instance.new("IntValue")
    Cash.Parent = Leaderstats
    Cash.Name = "Cash"
    Cash.Value = 0
    local PlayerData 

    local Success, ErrorMsg = pcall(function()
        local PlayerId = Player.UserId
        PlayerData = PlayerDataStore:GetAsync(PlayerId)
    end)
    if Success then 
        if PlayerData then
            Cash.Value = PlayerData[1]
        end
        print("Data loaded successfully")
    else
        warn("Error loading data: " .. ErrorMsg)
    end
end)

local function saveData(Player)
    local PlayerId = Player.UserId
    local PlayerData = {
        Player.leaderstats.Cash.Value
        
    }
    local Success, ErrorMsg = pcall(function()
        PlayerDataStore:SetAsync(PlayerId, PlayerData)
    end)
    if Success then
        print("Data saved successfully")
    else
        warn("Error saving data: " .. ErrorMsg)
    end
end

game.Players.PlayerRemoving:Connect(function(Player)
    saveData(Player)
end)

game:BindToClose(function()
    for _, Player in pairs(game.Players:GetPlayers()) do
        saveData(Player)
    end
end)

while true do
    task.wait(60) -- every 60 seconds
    for _, player in pairs(game.Players:GetPlayers()) do
        saveData(player)
    end
end
hexed gull
restive ravine
fleet siren
restive ravine
#

Use profile store

#

Everybody uses it

somber vault
# silver loom Grow a garden would take allot of time, since every plant has to be integrated w...

You know that roblox games are built on modulescripts to do every system? ''since every plant has to be integrated with its own models and cycles", and do you think that takes 10 hours to do? No. It takes 10 minutes to Implement the fruit with modulescripts and change the time formula. Grow a garden does not take a lot of time. Once you have made the core logic with modulescripts making updates takes no time

somber vault
restive ravine
#

@somber vault do you know replica by loleris

hexed gull
frail yarrow
#

Stop spreading library cancer to people

#

Esp beginners

restive ravine
somber vault
restive ravine
#

Ur not cool gang

frail yarrow
#

why would he

#

Give me one reason why anyone should use it

#

can you?

restive ravine
#

Because it's easy to use and it's better? And it's faster then making ur own

frail yarrow
#

how though

frail yarrow
#

A setasync vs a savedata or whatever the method is

#

Whats the difference

restive ravine
frail yarrow
#

Use ur words to explain it

somber vault
frail yarrow
#

name one

#

An improvement

somber vault
#

session-locking, big scalability, easy to learn and to setup

frail yarrow
#

big scalability
explain what this means

restive ravine
#

it has session locking and auto saving and its proforment

frail yarrow
#

what's the upside to session locking

somber vault
#

what are these questions bro

frail yarrow
#

discussion

somber vault
#

it takes a simple google or youtube search to answer your questions

restive ravine
#

So many questions bro

frail yarrow
#

These arent out of curiosity

#

I'm interested in what your response is

#

what is the benefit you get from session locking?

lone marsh
#

bro uses profile store and doesnt know what session locking is?

somber vault
#

Like I said I haven't studied frameworks yet. I can say what the roblox devforum post says. So I cannot give you a professional response to that question or anything technical to it.

lone marsh
#

🗿

frail yarrow
#

Oh so you're just saying shit you dont grasp

#

Thats cool

wheat citrus
#

Hey I was wondering if anyone could help me so basically I had click detectors on my game they worked fine until I made a new place in my game then like 10 min later they all stopped working in my whole game like there is no mouse icon change or nothing its like they dont exist but they do

somber vault
# true birch

The funny thing is that there are so many ''steal some shit'' games rn and every one of them is literally built on the same systems it's literally a copy and paste except the models change and that's it

frail yarrow
#

Who's paying you to be an advertiser for these libraries man?

restive ravine
#

Why u on him bro get a life

somber vault
dark juniper
#

or do they code them theirselves

frail yarrow
#

Like its a fact

lone marsh
somber vault
frail yarrow
#

Where

#

This conversation?

somber vault
#

''Like it's a fact''

frail yarrow
#

Yeah bro

somber vault
#

What's up with these r*tarded claims

frail yarrow
#

By saying it without a qualifier you're asserting it

#

And you're asserting it without knowledge

somber vault
#

Frameworks are built by people with years of experience that know more than you. And there are a lot of youtube videos covering profilestore and also datastore2

dark juniper
#

where did u get the steal a script from that everyone using @somber vault

somber vault
lone marsh
#

might be a knit user

dark juniper
dark juniper
#

that covers all the interactions

#

😭

#

gg

frail yarrow
#

metatable? What the fuck?

somber vault
# frail yarrow Define framework

structured and reusable codebase that provides tools, patterns, and pre-built systems to help developers build games more efficiently and consistently

frail yarrow
#

also profilestore doesnt fit that

#

so

dark juniper
#

That I can call metamethods on to change their state

frail yarrow
#

metamethods?

#

you mean methods

dark juniper
#

:changestate()

frail yarrow
#

That's a method

dark juniper
#

oh

#

ok thanks

somber vault
#

bro this guy is ragebaiting. Clearly doesn't know anything about coding if he doesn't know what a metatable is

frail yarrow
#

What he described is an object

dark juniper
frail yarrow
#

not a metatable

somber vault
dark juniper
#

wait so am I wrong or is he wrong

#

what are u saying

frail yarrow
#

You're wrong for calling it a metamethod

#

What you wrote is a class

somber vault
# true birch Ik

It's actually funny because I know a youtuber that is making the popular games on his own doing 'asmr coding'. He made grow a garden and is now making steal a brainrot

frail yarrow
#

you may have implemented it with a metatable

#

But its a class and methods

#

Not a metatable or metamethods (separate concepts)

true birch
dark juniper
#

a class and method

#

anyways I use class to make object which I then spawn in its distinct states then I script processes to switch states

somber vault
# frail yarrow Chatgpt

Classic response of a 14 year old trash talking in discord when he doesn't know what he is talking about and doesn't even bother reading what I said. Just the ''Ain't reading all that'' left for the cherry on top.

frail yarrow
craggy plover
#

I dont have an idea for a small coding project to do to start my portfolio up, any ideas? not too complicated but not baby level

somber vault
frail yarrow
#

the fact that its incongruous with what youve claimed

dark juniper
#

Do u guys think it would be cool if I added a fighting state to the object class

frail yarrow
#

Also that you said you need to "study frameworks"

dark juniper
#

so u can fight the stuff u get on the conveyor belt and steal

frail yarrow
#

Either chatgpt or copypasted

somber vault
#

proves nothing

frail yarrow
#

I dont need to prove anything lol

somber vault
#

all frameworks are tools to help developers structure their games more efficiently and fast

#

no need to know all of them to know the definition

frail yarrow
#

ProfileStore isnt a framework man

dark juniper
#

But it is a goat work

frail yarrow
#

why

#

What makes it good?

dark juniper
#

i can save my data without it breaking

frail yarrow
#

You can do that with anything

dark juniper
#

yea but like if I leave the game it just get corrupted and stuff

#

90% of the time

frail yarrow
#

it doesnt though

dark juniper
frail yarrow
#

Yes bruh

#

Ive been scripting on roblox since before datastore2 even existed

dark juniper
#

what about for duping and stuff

somber vault
dark juniper
frail yarrow
dark juniper
#

I need to hear this

frail yarrow
#

Im not saying anything like its bad

frail yarrow
#

Btw

dark juniper
#

what they use to dupe then

frail yarrow
#

Im challenging dogmatic views of programming

frail yarrow
somber vault
#

bro saying he has been scripting before 2018

dark juniper
#

rollbacking?

frail yarrow
dark juniper
#

Don’t time move in one direction though just like how a datastore save data

frail yarrow
somber vault
dark juniper
frail yarrow
#

Yes, the save isnt done

dark juniper
#

Ur saying it work for not one person

#

But for the other person

frail yarrow
#

Except in a trade

#

You take from the glitched guy and give it to someone else

#

But if the glitched guy cant be saved

primal cave
frail yarrow
#

The trade isnt complete

dark juniper
#

why this a cook

dark juniper
#

trade not complete = no item exchange

#

no item exchange = no dupe

frail yarrow
dark juniper
somber vault
frail yarrow
#

Because the save failure doesnt actually block the trade usually

dark juniper
#

what if u check data when the trade completes

#

data required same frame trade start and trade end

frail yarrow
#

So the issue is that you have to know if the save failed

#

which most ds libs hide from you

frail yarrow
#

im not doing comms or anything lmao

dark juniper
#

local data1 = getdata(player1)
If not data1 then return end

local data2 = getdata(player2)
if not data2 then return end

—data add and removal here

#

why this not work

dark juniper
#

gets my data from the service

frail yarrow
#

From profilestore?

somber vault
dark juniper
frail yarrow
#

sure, so those return a cache

somber vault
#

what have you done in a decade

dark juniper
#

u have point there actually…

frail yarrow
#

made games

lofty plinth
#

U'd need to be able to revert data as if the trade never happened if at any point the save fails or player leaving is detected before it goes through

dark juniper
#

where the game at

frail yarrow
#

play war tycoon

somber vault
dark juniper
#

ur never touching it outside of the final process

frail yarrow
#

im not out here solo making games man

dark juniper
#

why is that a problem

frail yarrow
#

play war tycoon, i worked on it for a couple years

lofty plinth
#

1 player saves other doesnt then u revert player 1

frail yarrow
#

These are called transactions

dark juniper
#

then u remove it if the other player also has data

lofty plinth
#

U still need to revert if it goes through for 1 player and not the other

#

Because at that point 1 player already has it saved

dark juniper
#

yea but u just cancel the whole thing if no data for one of the players

frail yarrow
#

The ideal implementation is external verification as part of a library or similar

dark juniper
#

ur not touching it until the very end

#

Just viewing it

lofty plinth
frail yarrow
#

Right but most datastore libs make it hard to detect save failures for a revert

lofty plinth
#

Ur working with datastores where that can happen

dark juniper
#

I don’t think u understand what I’m saying

lofty plinth
#

Be it via an outage that happens

frail yarrow
#

or a rollback with broken data

dark juniper
#

if they save it doesn’t matter because they ain’t getting anything done to their data unless it’s there

#

And only when the other players data is there

frail yarrow
#

thats fine

lofty plinth
#

What im saying is when ur saving player 1 and player 2 if any 1 of those fail after 1 has already been saved u need to revert the player that has already saved

#

U cant predict that till it happens

somber vault
frail yarrow
#

And the game was out during that time lmao

dark juniper
somber vault
dark juniper
#

Or not working right

frail yarrow
#

search war tycoon

lofty plinth
somber vault
lofty plinth
#

Im saying if 1 player goes through successfully but the other fails

frail yarrow
#

Why?

lofty plinth
#

U need to set back the player that went through properly

frail yarrow
#

its literally the first result

dark juniper
#

no operation

lofty plinth
#

Return end when player 1 has their data already saved and player 2 hasn't

frail yarrow
#

a trade is 2 parts

lofty plinth
#

Ur quite literally creating a dupe right there

frail yarrow
#

you cant do one without the other

#

If you do, the outcome is either a dupe or data loss

dark juniper
#

no data for player 1 return end
no data for player 2 return end

player1.Inventory.Apples -= 1
player2.Inventory.Apples += 1

lofty plinth
#

This isnt about no data

dark juniper
#

how I dupe that

lofty plinth
#

Its about datastores failing

frail yarrow
#

what if player1 doesnt save

dark juniper
#

then u don’t do it?

#

no data found?

frail yarrow
#

You didnt check for that

lofty plinth
#

U need to revert the data

dark juniper
#

GetAsync

#

pcall

frail yarrow
#

whats even your point

#

anymore

lofty plinth
#

Yes and u need to revert if 1 player fails because u create a dupe or dataloss

somber vault
#

that does not take 2 years

#

with a team

dark juniper
#

my point is profile store is perfectly fine but if u over complicate it then ur gonna make a dupe

frail yarrow
#

its gradual

lofty plinth
#

It isnt overcomplicating this is the basics in preventing dupes

dark juniper
#

this dev stuff so hard when u have to learn every skill….

frail yarrow
#

but you're just a yapper so i get why you'd confused be

somber vault
lyric hemlock
#

how do i make a game like steal a brainrot

frail yarrow
dark juniper
#

if u don’t code

lyric hemlock
#

no i mean where do i start

dark juniper
#

saying that as someone who made the script

lyric hemlock
#

hhuh

#

you made a steal a brainrot script?

dark juniper
#

yea

somber vault
dark juniper
#

It work good I take into account player leaves

lyric hemlock
dark juniper
#

Resets

somber vault
frail yarrow
#

bullshitting what

dark juniper
#

All the problems u encounter

lyric hemlock
#

what problems

frail yarrow
#

My roblox account is literally that old

dark juniper
#

player gets ragdoll

lyric hemlock
#

was it hard to script

dark juniper
#

slotting

dark juniper
somber vault
#

decade of experience and you should have connections to all front page game devs

lyric hemlock
#

dang wait for which game did you script it for

dark juniper
#

I had to do a lot of thinking

dark juniper
lyric hemlock
#

can i test

frail yarrow
#

You're literally a drone

dark juniper
#

yea sure give me a sec

lyric hemlock
#

bet

somber vault
lyric hemlock
#

how many active players btw

frail yarrow
#

alr bruh im just blocking you

dark juniper
#

I haven’t published yet lmao

lyric hemlock
#

oh alr

dark juniper
#

Im basically solo deving the entire thing

lyric hemlock
#

wait whats the name of your game

frail yarrow
#

You're literally never gonna be worth my attention

lyric hemlock
#

is it like

#

Steal A [OBJ]

#

?

near pasture
#

Does :Destroy() on a bindable event, remote event, function, etc.. destroy the connections automatically with GC?

lyric hemlock
#

what percentage of the game have you completed already?

dark juniper
#

80%

lyric hemlock
#

dang bro your nearly finished

frail yarrow
#

GC comes later

lyric hemlock
#

when did you start making it?

dark juniper
#

2.5 weeks ago

lyric hemlock
#

dang son

#

you're fast

dark juniper
#

Im basement coding

lyric hemlock
#

whats basement coding mean

somber vault
dark juniper
lyric hemlock
#

oh i thought it meant your coding

#

inside of your basement

dark juniper
#

Im taking a break so my eyeballs don’t explode

lyric hemlock
#

oh alriht

#

but whats the name of the game

#

and how much players do you expect the game to have on release

dark juniper
#

If I could get 100 that would be goated

lyric hemlock
#

also are you going to sponsor it?

dark juniper
#

ya im gonna ad it

frail yarrow
#

basement coding is hilarious

lyric hemlock
#

damn nice whats the name of the game btw

dark juniper
#

idk yet

lyric hemlock
#

basement codin is hilarious actually

#

wdym you dont know yet

dark juniper
#

Im kinda on the fence

#

U see what I mean

lyric hemlock
#

you said earlier you're 80% done

frail yarrow
#

I fw u rexwolf, u eager to learn stuff

dark juniper
#

I show u

lyric hemlock
#

nah hes eager to grind

#

80% done with a game he started on 2.5 weeks ago

#

bro is locked in

snow mauve
#

Whats the best way to replicate guns onto mobile in terms of getting the direction to cast the ray?

snow mauve
#

??

lyric hemlock
#

Remote Event

#

@dark juniper

dark juniper
#

wsg

lyric hemlock
#

isnt steal a gubby

#

already cretaed

dark juniper
#

yea

#

ik

#

thats why i said im on the fence

#

about the name

lyric hemlock
#

well what ae you stealing in game then

#

cause i mean the name has to

dark juniper
#

join

lyric hemlock
#

match

#

also why is the server size 50

somber vault
#

how we coxe

#

code

#

spring oscillate on mspd<=.5 effect, how

little magnet
#

is testing via play (solo) unreliable vs pressing run w the server and 1-2 clients

#

i have a bug that shows up only in play (solo) but doesn’t show up when i press run with 2 clients 💀

thorny parcel
unique lake
#

Anyone else having a weird issue with context action service not working when binding to leftclick?

        -- Registering the keybind for the action
        ContextActionService:BindAction("ActivateMiningMinigameButton", function(actionName, inputState, _inputObject)
            if inputState == Enum.UserInputState.Begin then
                print("Activate")
            end
        end, true, Enum.KeyCode.MouseLeftButton, Enum.KeyCode.ButtonA)

It works fine when i press "A" on the controller, however it does not trigger with the mouse left button.

hoary cedar
#

The latter is for InputBinding instances

unique lake
#

Thanks, good to know 🙂

twilit comet
#

i need some help im trying to get a npc to move after i put in a dialog option like enter game then i want the npc to move somewhere but i cant figur out how to do it

crude quarry
#
    for i ,v in pairs(Teams:GetChildren()) do
        if v == 'Police' then return end
        if plr:IsInGroup(32346841) then
            if t == Police then
                plr.Team = Police
                plr.Character:Destroy()
                plr:LoadCharacter()
            end
        end
    end``` How do I get it so if a player is already on the team and they select that same team it doesn't reload them
jade marlin
#

If so, do nothing

heavy arch
modest vessel
#

if t == Police and plr.Team ~= Police then

heavy arch
#

😱

jade marlin
#

I don't get it

crude quarry
scenic lotus
#

Is it possible to post in there if I just volunteer to be the scripter (not so experienced coder)

vagrant sorrel
#

man, do you have any performance tips for this, like, you can see that big brushes make the game slow, but I have no idea how I can increase performance, only if I skip some frames or I just limit the size of the brushes the user can use

#

I can also try to implement a better "completing" algorithm

crude quarry
#

No matter what I do I can't change the moon texture it's just white all the time

rain osprey
slender mantle
#

how do i make a particle show when the player touches something

slender mantle
#

oh

#

and then i change the active thing to true

#

?

spiral jungle
#

Yes

#

Enabled on the particle

slender mantle
#

k

#

im so stupid 😭

foggy pelican
slender mantle
slender mantle
#

alr

mystic flint
#

Dm pls I want to say something

lofty igloo
#

was scripting and then the autofill decided it wanted the button to be for a gamepass

primal cave
somber vault
#

anyone can help me make a sprinting mechaninc

#

just a imple one

mystic flint
#

For free

#

Dms

somber vault
#

i made so that when left shift is pressed it strts to sprint but i cant make it that when left shift is realised it gets normal speed

patent night
#

Can someone explain how in for loops, how does in pairs works despite only having 1 type of arugement

mystic flint
near pasture
#

What are common facets of network bandwith overload and memory leaks and how would I deal with them?

hoary cedar
#

Memory leaks are some of the most notorious bugs to squash. By definition, they're an ineffective use and release of memory

#

Memory leaks in Roblox are often caused by embeded or unmanaged event connections

hardy pilot
#

Using Roblox physics is great and all but you do have to replicate every change

#

Gets expensive quick

coral quartz
#

So I have a main menu frame with buttons when i press one of the buttons a pop up appears and it hides the buttons underneath it but i can still interact with the hidden buttons how do u avoid these kinds of problems

scenic lotus
#

Make it visible = false
If only want it just visible but can't interact just do interactable = false

coral quartz
#

Alright thanks for the help will do that

young rock
#
Rotation *= CFrame.Angles(Input.Delta.Y/10, Input.Delta.X/10, 0)
AlignOrientation.CFrame = Camera.CFrame * Rotation

I want to make this rotate relative to the camera rather than the object, this is probably a really basic cframe thing but i just cant think right now 😭

hardy pilot
#

this(?) the object(?)

hoary cedar
# patent night Can someone explain how in for loops, how does in pairs works despite only havin...

pairs is an iterator factory. It produces a function that traverses the given table. Unbeknownst to most Lua(u) scripters, generic for loops are actually structured like so:

for ... in iterator, table, argument do

Three values are found in between in and do. The first is the iterator function, the second is the table it iterates with, and the third is a single argument that is passed to the iterator. Lua(u) is designed this way as its native iterators were manufactured to be stateless. Given a table, pairs will produce the following output in alignment with what's said above:

print(pairs({})) -- function: 0x0000000000031988    table: 0x000000000002f568    nil

If you capture the function, and provide it with the proceeding return values, you'll get the first key/index-value pair:

local numbers = {1, 2, 3, 4, 5}
local iterator, a, b = pairs(numbers)

print(iterator(a, b)) --> 1    1

So what is a and b? a is a reference to the numbers table—you could swap it out with numbers itself and see no difference. b is the key/index of the pair you're currently observing. pairs uses this key/index to move onto the next pair. nil is the first key/index as no pair is being observed until the iterator is first invoked. With this knowledge in mind, we can extrapolate and monitor how the iterator works step-by-step:

local numbers = {1, 2, 3, 4, 5}
local iterator = pairs(numbers)

print(iterator(numbers, nil)) --> 1    1
print(iterator(numbers, 1)) --> 2    2
print(iterator(numbers, 2)) --> 3    3

This is what the generic for loop does. It will continue to call the iterator each loop, providing it with the table constant and the first value the iterator returned from the previous iteration, which is conventionally the key/index of the pair.

lean ocean
#

omg shut up

hardy pilot
#

Technically he's speaking very little because it took like 30 minutes to draft that response

lean ocean
#

Bro put an entire text wall down

young rock
sly plover
#

what does this mean ServerScriptService.UnitModule:51: attempt to index nil with 'Name'

hoary cedar
hoary cedar
#

People's attention spans are getting scarily weak

young rock
hoary cedar
#

Whatever precedes .Name is nil

lean ocean
hardy pilot
#

Mouse delta is the rotation direction relative to the camera's pov on the object

lean ocean
#

I'm not even trolling

sly plover
#

how do i fix the error

fair cypress
#

can anyone help with my code!??!?

hardy pilot
#
local function pairs(table)
  -- Enclosure to keep outside variables
  return function()
    -- Recalled each iteration
  end
end
scenic lotus
fair cypress
#

buying a shirt from a proximitypromt can anyone help with this?

#

local prompt = script.Parent:WaitForChild("ProximityPrompt")
local ShirtTemplate = "rbxassetid://12151887132"
local price = 5

prompt.Triggered:Connect(function(player)
local stats = player:FindFirstChild("leaderstats")
local cash = stats and stats:FindFirstChild("Cash")
if not cash or cash.Value < price then return end
cash.Value -= price

local char = player.Character
if not char then return end
local old = char:FindFirstChildOfClass("Shirt")
if old then old:Destroy() end


local shirt = Instance.new("Shirt")
shirt.ShirtTemplate = ShirtTemplate
shirt.Parent = char


local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid then
    local desc = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
    desc.Shirt = ShirtTemplate
    humanoid:ApplyDescription(desc)
end

print("✅")

end)

sly plover
fair cypress
#

why does this not work

hoary cedar
hardy pilot
young rock
hoary cedar
fair cypress
#

can anyone please help 😭😭😭😭

scenic lotus
scenic lotus
fair cypress
#

sure

#

when i buy a shirt my old shirt gets deleted but not changed

#

its a bit of a mess im really sorry

hardy pilot
#

by x and y of mouse delta

#

or I guess first convert delta into screen scale

fair cypress
#

10:50:26.796 ✅ - Server - Script:29

sly plover
scenic lotus
hardy pilot
#
Object.CFrame *= CFrame.fromAxisAngle(Camera.CFrame.UpVector, mouseDeltaScale.X)
Object.CFrame *= CFrame.fromAxisAngle(Camera.CFrame.RightVector, mouseDeltaScale.Y)
young rock
sly plover
hardy pilot
#
local mouseDeltaScale = Vector2.new(
  mouseDelta.X / Camera.ViewportSize.X,
  mouseDelta.Y / Camera.ViewportSize.Y
)
#

also I guess add a multiplier as sensitivity

sly plover
#

what is the problem nowpraysob

scenic lotus
hardy pilot
hoary cedar
#

No shit. You blind?

hoary cedar
oblique lintel
#

can some one give me a simple system i can do for practice

sly plover
hoary cedar
hoary cedar
oblique lintel
#

just started been learning for like 3 weeks and getting no where

hardy pilot
#

Are you using it right?

young rock
#

im not sure hold on

scenic lotus
#

Where can I join the project (just volunteering)

oblique lintel
#

pretty much the basics like fuction stuff like that

sour quail
#

yall think I can learn how to script entirely from ai?

scenic lotus
oblique lintel
#

go for it but iv tried everything

young rock
#

@hardy pilot

local mouseDeltaScale = Vector2.new(
    Input.Delta.X / Camera.ViewportSize.X,
    Input.Delta.Y / Camera.ViewportSize.Y
)
Rotation *= CFrame.fromAxisAngle(Camera.CFrame.UpVector, mouseDeltaScale.X * 100)
Rotation *= CFrame.fromAxisAngle(Camera.CFrame.RightVector, mouseDeltaScale.Y * 100)
AlignOrientation.CFrame = Camera.CFrame * Rotation
hardy pilot
young rock
#

its too low

hardy pilot
#

Yeah you're doing it wrong

#

You're adding the rotation to the camera

#

Why would you add it to the camera and not the current object cframe

young rock
#

i use alignorientation

hardy pilot
#

ok

#

Add it to the AlignOrientation cframe

young rock
#

wouldnt the cframe get bigger and bigger

#

if i add it to itself

#

wait

sly plover
#

who can see the problem here because cannot

scenic lotus
#

issue with variable defining

young rock
#

@hardy pilot
AlignOrientation.CFrame = (GrabbedObject and GrabbedObject:GetPivot()) or CFrame.new() * Rotation

This doesnt work

scenic lotus
#

can you send the whole code

hardy pilot
young rock
#

ill try it tho

hardy pilot
#

No

#

It's rotation

#

It goes in a circle

sly plover
# hardy pilot

oh i didnt mean that thing let me send ned ss of the porblem

young rock
hardy pilot
sly plover
hardy pilot
#

Get a valid reference to a real player

young rock
# hardy pilot Show me again
Camera:GetPropertyChangedSignal("CFrame"):Connect(function()
  AlignPosition.Position = (Camera.CFrame*CFrame.new(0, 0, -5)).Position
  AlignOrientation.CFrame *= Rotation
end)
sly plover
hardy pilot
# sly plover and how do i do that

This is the first episode and beginning to become a Roblox Scripter/Game Developer! With 3 playlists (Beginner, Advanced, GUI) containing 50+ videos and 30+ hours of content, I will guide you through this journey to start making the games you want to create on Roblox!

DISCORD 📜
Join my Discord Community if you want scripting help, participat...

▶ Play video
hardy pilot
young rock
# hardy pilot and the rotation is just a blank cframe added with the two rotations?
local Rotation = CFrame.new()
table.insert(Connections, UserInputService.InputChanged:Connect(function(Input)
    if Input.UserInputType == Enum.UserInputType.MouseMovement then
        if not IsRotating then return end
            
        local mouseDeltaScale = Vector2.new(
            Input.Delta.X / Camera.ViewportSize.X,
            Input.Delta.Y / Camera.ViewportSize.Y
        )
        Rotation *= CFrame.fromAxisAngle(Camera.CFrame.UpVector, mouseDeltaScale.X)
        Rotation *= CFrame.fromAxisAngle(Camera.CFrame.RightVector, mouseDeltaScale.Y)
        
    end
end))
hardy pilot
#

oh Input.Delta is a thing? Didn't know that

young rock
#

yeah

#

tbh ive never used it before

#

as you can tell 😭

hardy pilot
#

Well it's kind of wrong

#

because I meant for you to create a new rotation cframe for each mouse movement update

silver loom
hardy pilot
#

You're stacking up into one cframe which means it should spin out like crazy the longer you move it

#

or well, at least start moving in a really weird unpredictable way

#

🤔

#

Maybe I don't understand fromAxisAngle

scenic lotus
#

Where can I find the project to join as a scripter (volunteering)
I kinda need to get more experience

young rock
#

@hardy pilot brb

silver loom
hardy pilot
#

No one wants a game coded by a beginner obv

#

Those who are willing to wont give you any valuable experience

#

unless Ig theyre tutoring you

#

but then thats not volunteering

silver loom
#

ive worked as an unpaid scripter for 2 years to gain experience

#

then used that experience to make some actual money

hardy pilot
#

For who

silver loom
#

groups that are almost non existent now

hardy pilot
#

I had my fair share of free work and it was the biggest waste of my time ever

near pasture
#

@hardy pilot

hardy pilot
near pasture
near pasture
sly plover
#

what is the difference

silver loom
hardy pilot
young rock
#

@hardy pilot ill just start from scratch and try to figure stuff out

#

about the rotating system

hardy pilot
sly plover
# hardy pilot

i was watching a tutorial but i dont understand why its says that because i did it exactly like the tutorial i think

young rock
hardy pilot
#

Like what does it do

young rock
#

right now?

near pasture
#

Do you do entire games?

#

or just portions of games

hardy pilot
#

so player is nil

#

player could be nil because you're getting the reference wrong somewhere else

sly plover
silver loom
hardy pilot
young rock
#

i dont really know its really glitchy

hardy pilot
#

So it spins in the correct direction?

young rock
#

rotates the y axis when i move my mouse on x

young rock
hardy pilot
#

in the other direction?

young rock
#

it just does the same thing, rotates relative to the part

hardy pilot
#

🤔

sly plover
#

can the mistakes be in other scripts

hardy pilot
near pasture
near pasture
#

What's most sought after, scripting-wise?

scenic lotus
hardy pilot
#

Though most public commissions are garbage

#

Doing public commissions is practically volunteering most of the time

hardy pilot
#

It's usually a bunch of disconnected systems

#

that are easily resold

silver loom
silver loom
#

I work on my own military projects to resell or I make them for people who pay high

hardy pilot
#

at least in my experience they were really horrible

near pasture
hardy pilot
#

by Private I mean referral

near pasture
#

Like getting connections?

hardy pilot
#

Like being recommended to someone

near pasture
#

I'd assume you need to do public to get someone to recommend you first

hardy pilot
#

Well

#

yeah it could help you

#

like you can meet someone who isnt a complete amateur

#

and then have them recommission you often and recommend you

#

but it is gambling

silver loom
#

aint risking being scammed for a months work

hardy pilot
#

Yeah it's pretty bad

near pasture
#

Does 50-50 prevent scamming?

silver loom
hardy pilot
#

No

#

theyre usually extremely underprepared

#

have no idea what they really want

#

no assets ready whatsoever

#

and their game is probably not going to be on your portfolio as a proud piece

silver loom
# hardy pilot no assets ready whatsoever

Thats what happened to me, I received all assets on June 1 (formerly submission date of when I finish since I have exams after june 1) so I had to work with place holders then eventually left the project due to exams

young rock
#

@hardy pilot maybe i should just add press R or T to rotate

young rock
#

i couldnt find a reference but i just wanted to make it look like im grabbing the object and rotating it

sly plover
#

i still cant find the problem

ruby cipher
#

I see the error

scenic lotus
#

You forgot to define player variable

elfin timber
#

nvm lol

#

i just read the error

ruby cipher
#

u have to wait for replicated stuff in server scripts

scenic lotus
#

So basically the word "player" in there is currently some random word not variable cuz you haven't define it yet

ruby cipher
near pasture
#

@scenic lotus Let's be friends!

scenic lotus
#

then it should be the problem when calling function

scenic lotus
sly plover
thick kelp
sly plover
sly plover
thick kelp
#

Show me what it prints

sly plover
#

oka

#

like this

#

?

thick kelp
#

He’s

#

Yes*

#

Also print

ruby cipher
thick kelp
#

Where you have clone.Parent = player:Waitforxhild() whatever there print that as well

ruby cipher
#

It looks like chat

sly plover
thick kelp
#

Print this as well

sly plover
stable cedar
#

any scripters down to brainstorm an idea then make the game and split it 50/50, ill pay for ads and do everything else but scripting, dm me

scenic lotus
#

print(player.Units)

sly plover
scenic lotus
sly plover
#

should i write it

scenic lotus
sly plover
scenic lotus
#

and look at the output

sly plover
#

so what did you say i do now

scenic lotus
#

print(player) too

sly plover
#

okay

#

and after that?

scenic lotus
sly plover
#

it doesnt say anything

scenic lotus
#

Which script that use this module?

sly plover
#

nvm it says this

scenic lotus
#

then need to look at the script that use this function from this module

scenic lotus
#

other scripts

sly plover
sly plover
scenic lotus
#

ye

#

the summon one has problem

sly plover
#

is it module.ChooseUnit(player, folder)

scenic lotus
#

yes

#

player variable not exist yet

sly plover
#

and how do i fix that

scenic lotus
#

need to define it

#

with local variablename = insert things here

nimble cypress
#

is it better to master front end or backed first?

sly plover
scenic lotus
#

You can actually use Player since remote event already gives the data

#

Player instead of player

nimble cypress
#

can someone give an opinion to my question please?

sly plover
#

like this'

scenic lotus
sly plover
scenic lotus
wind spindle
#

dammit why is my script not working!!

nimble cypress
sly plover