#code-discussion

1 messages · Page 144 of 1

rotund lichen
#

then script editor

glad mist
#

idk what im looking for

#

rn im testing a random car but legit even when I take a random car from the toolbox and place it in, it suddenly doesnt work, ANY car

#

or anything for that matter

#

@rotund lichen

rotund lichen
#

holy many errors and warnings

glad mist
#

idk what i did

rotund lichen
#

idk how cause it's so many

glad mist
#

this is legit all ghibberish to me

somber vault
#

does anyone know a way i could switch the left leg and right leg easily? they are mismatched the left leg is on the right leg spot and the right leg is on the left leg spot but theres a lot of nodes so its hard to change

mellow loom
# glad mist

i think u dont have perms for the asset, but lowky i think that model is just bad

compact spoke
glad mist
severe cobalt
#

hmm maybe about adopting pets

real zealot
fading ermine
#

does brawl dev cover everything there is to be decent at scripting?

fading ermine
#

awhh

#

what else is there

real zealot
#

yourself

fading ermine
#

???

real zealot
#

ask yourself how to script…

#

works 99% of the time

#

not patched

fading ermine
#

omg

fading ermine
#

not patched fr?

real zealot
#

yes

fading ermine
#

ima try

#

it worked

#

i lewrned im dumb

#

im bunz at controller stuff

#

ima abuse before next update

glad mist
# rotund lichen holy many errors and warnings

i found the issue, there was some random script I didnt put into the game named "weld" it was by itself inside of workspace

"-- Created by Quenty (@Quenty, follow me on twitter).
-- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
-- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.

--[[ INSTRUCTIONS

  • Place in the model
  • Make sure model is anchored
  • That's it. It will weld the model and all children.

THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. "

this was written in the first few lines

#

it legit broke EVERYTHING

fading ermine
#

dev king underrated

brittle hinge
uneven jolt
#

Is it better to use local scripts or a Script with RunContext as local?

halcyon jetty
lean ocean
#

local scripts

halcyon jetty
#

is it worth learning OOP

fading ermine
#

Somone asked me what boolean value is 🥀🥀

fading ermine
halcyon jetty
fading ermine
#

ask somone that knows oop🥀🥀

lilac zinc
#

You will encounter code that will use oop, so you have to get used to it

halcyon jetty
lilac zinc
#

whether you like it or not

halcyon jetty
#

i mean it seems useful

#

i kinda get the basics already just need practice

fading ermine
#

dang

lilac zinc
#

I recommend reading on metatables, metamethods, and thorough reading on the __index metamethod, then you can move on to guides to oop on roblox

halcyon jetty
#

alr cheers

lilac zinc
#

(to put it simply, the __index metamethod makes it so if an index doesn't exist in the table, it looks at the table specified in the index metamethod for the index, and if it exists, it will use that value)

#

But its more complex than that it also accepts functions

halcyon jetty
#

so its kinda like how i did different "variants" of lets say items already just less copy paste

lilac zinc
#

It's like inheritance

#
local a = {["hi"] = 2} 
local b = setmetatable({}, {__index = a}) 
print(b.hi) -- prints 2, even though b doesn't have index "hi", it looks back into a
halcyon jetty
#

cool

lilac zinc
#

This is useful for oop, because that means you can make objects inherit methods too, which saves memory

#

At the cost of a very little difference in speed

sage prawn
#

how do i get past learning basic front end scripting

lilac zinc
# halcyon jetty cool
local a = {} 
function a:print() -- Method in a
  print(self) 
end 

local b = setmetatable({["bob"] = 2}, {__index = a}) 
b:print() -- prints {["bob"] = 2} (prints b) (not a)
a:print() -- prints {["print"] = "function"} (prints a) (not b)

And through the use of semicolons, you can even pass the original table through some functions. What you might notice is that I print self, and you might expect it to print a, but instead it prints b

b doesn't actually have a function named print, but it can still run it, and we're able to modify things in b directly from that function, which is the whole though behind lua oop

that function print can receive different kinds of self, each other self might be another "object", but what makes it special is that all these objects that point to that method, don't really use that much more memory to do so

halcyon jetty
#

i think i get it

#

ill try making smth in a bit

sage prawn
#

is that lua

halcyon jetty
#

black magic lua

sage prawn
#

wth

#

it does not look like lua for some reason

halcyon jetty
#

bro

#

i cant send links

lilac zinc
#

i see the msg

wooden root
#

good morning guys

lilac zinc
#

i got vencord

halcyon jetty
#

anyways i read a devforum post seemed cool

native quest
#

its basic luaua, he just calling a function inside of a table essentially

#

what if we made a modulescript inside a modulescript repeated 1,000 times?

lilac zinc
#
local Car = {}
Car.__index = Car

function Car.new()
   return setmetatable({
      speed = 5
   }, Car) -- Makes a new table {}, with "speed" as a key, and adds the __index to point to "Car", which inherits all the methods and the fields, so the returned item is like a table with "speed" in it, but if you try to call :Boost(), it will send self over and run that function, even though it's not defined in the table {speed = 5}
end

function Car:Boost()
  self.speed *= 5
end

return Car
sage prawn
#

i havent learned module scripts yet

#

im a basic scripter 😭

halcyon jetty
sage prawn
#

oh ok

#

do we eat on the table?

native quest
#

yes

sage prawn
#

bro the most complicated thing i know is tweenservice 😭

halcyon jetty
#

also i just realized theres something like compositon

#

is that oop on drugs

sage prawn
#

what is oop

halcyon jetty
#

object oriented programming

native quest
#

fancy word for meta tables and module scripts

sage prawn
#

oh ok

#

wait so would this work theoretically
game:GetService("Tweenservice")

if player says /fly then
fly
end

lilac zinc
native quest
#

mm yes, if we apply esoteric symbols to it it might just work

sage prawn
lilac zinc
#

if name == creaco then
hack game
end

sage prawn
#

yo

native quest
#

bro's vocabulary is limited

sage prawn
lilac zinc
#

it rlly could..... i should try it

halcyon jetty
#

if true then
giverobux(me, 9999999)
end

lilac zinc
#

WHAAT

sage prawn
native quest
#

im testing that one rn

#

it works

lilac zinc
#

IT RLY COULD WOKR

halcyon jetty
#

it works

native quest
#

im rich now

sage prawn
#

BRO FR

native quest
#

just converted it to usd, i got 1 billion dollars

sage prawn
#

WHAT I NEED TO TRY THTA

lilac zinc
#

Omg wtf it got rid of all my connections

#

I'm disconnected

native quest
#

small price to pay

lilac zinc
#

it was fun while it lasted, please continue the oop legacy

halcyon jetty
lilac zinc
#

Also yes that resource is good

#

I read it so many times

halcyon jetty
native quest
#

i read it in 1 nanosecond and understood everything

halcyon jetty
#

ok i think i understand oop now im gonna make a soulless cash grab

#

jk

#

or am i

echo meteor
#

is profilestore still a valid way of saving player data

lilac zinc
#

Yes absolutely

native quest
#

ngl i hate how its called OOP. like bro it isn't anything special and you probably shouldn't be using it all the time for everything.

lilac zinc
#

call it metatable magic call it oop call it disgusting

#

Do whatever, fly high

native quest
#

i just call it hax

echo meteor
# lilac zinc Yes absolutely

does the tutorial provided on the devforum cover like a valid use of it or have there been better ways to find out how to use it

lilac zinc
#

You will find very heated topics on oop from oop lovers and oop haters (I’m an oop lover)

native quest
#

i mean, its essentially just being able to store a module script inside of a module script, since a module script is a table, but a table isnt a module script, error- error- invalid output data -emergency shut-down commencing.

#

anyways who cares

lilac zinc
#

Mad studio is a very reputable group, they have made a lot of hit games, one of the most popular back then, loleris knows what he’s doing and his modules are known to be useful, so I highly encourage you to use his profilestore module and take the time to learn it even if it seems vague

sage prawn
#

how do i use module scripts

#

MANGO 67 STILL WATER

lilac zinc
sage prawn
#

amongus hehe

native quest
#

first you cook the module on low heat, let it simmer, then you start adding the code noodles, if you dont pay attention they might dissolve.

lilac zinc
#

It’s like doing
return table1[key] or table2[key]
(Insane simplification do not take as an example)

echo meteor
sage prawn
#

¡Aa

native quest
#

breh

echo meteor
halcyon jetty
# sage prawn how do i use module scripts

add stuff to ur module script and then in a normal script do local module = require(game.ServerScriptService.ModuleName) and you have the module that u can get info from

sage prawn
native quest
#

i use massive ammounts of types but barely use metatables, maybe its cause of the type of game im making

halcyon jetty
#

modulescripts return one value

#

usually a table

native quest
#

ok nvm i do use lots of meta tables i guess

#

jeez

halcyon jetty
#

oop people is this meta

lilac zinc
# echo meteor not sure.. just like people who actually know what theyre reading from the modul...

ProfileStore works by caching what’s known as a profile onto the server memory to avoid calling data store endpoints all the time to update keys, and it smartly handles the update as soon as the player leaves (or autosave)

ProfileStore has what’s known as a template, if the user is new they will be given this template as default data

You can lock what’s known as a session, preventing issues like multiple servers trying to overwrite data (which can happen if a server crashes)

And you can EndSession once you’re done with the player (typically you don’t need to do that the module does it for you)

#

There’s other methods but those are the main ones

#

If you need help with something specific about ProfileStore you should send code or ask

echo meteor
#

yeah i understand that much from the video, just curious of how larger scale games would make use of it

hoary cedar
echo meteor
#

yeah i had no idea what i was looking at

#

😭

lilac zinc
#

Perhaps profile service but profile store is pretty good

hoary cedar
echo meteor
lilac zinc
#

(Just so you know, grow a garden uses profile store)

echo meteor
#

oh nice

wind topaz
#

is there any module like saving player states ingame? like

player1 = {
fishing = true,
otheraction = false,
}
hoary cedar
#

It's just popular

lilac zinc
#

That doesn’t mean anything, the main concerns about data store is not how much data you can store it’s the api request limits

echo meteor
lilac zinc
#

Almost nobody hits that data store data capacity lol

hoary cedar
#

This often requires specific and elementary design

hollow hemlock
#

large does not have to mean the codebase is large

#

it can also mean a thing is extremely popular

echo meteor
lilac zinc
#

I don’t really see how having a large codebase has any relevance to anything about a data store wrapper

hoary cedar
#

What ProfileService does at its core is not complicated

#

The complicated part is its list of services. It's designed to provide several data-persistence operations in a lightweight manner

lean ocean
#

Dead rails also uses profilestore

hoary cedar
#

This means bulkware and abstraction

#

For what it is, most of its features go unused by its end users

echo meteor
#

hm alright

#

thanks 🙏

marsh kelp
lean ocean
#

yes I'm just saying

hollow hemlock
#

dead rails is a big game in terms of popularity

lean ocean
#

Dead rails is very simple

hollow hemlock
#

doesnt matter

severe cobalt
lilac zinc
#

What does the size of the game have in any relevance to data storage, it’s all about the API request limits, it just proves that games with a lot of concurrent players, do not throttle the data store

That’s the entire argument

hollow hemlock
#

good thing initially it started about gag being large in popularity

severe cobalt
hollow hemlock
#

i don't really follow why people would use profilestore over lyra

lilac zinc
#

It is absolutely worth learning

hollow hemlock
#

despite profilestore being newer, it doesnt solve any interesting problems

lilac zinc
#

DataStore2 was such a pain 😭 I’m so glad for profilestore

hollow hemlock
#

.datastore2 has been discontinued and discouraged for ages

lilac zinc
#

Yeah I’m an old school dev I’ve been through it

hollow hemlock
#

sometimes, data can be larger than the 4 megabytes roblox gives for each key. profilestore does not handle that

marsh kelp
hollow hemlock
#

it's kind of a niche use case, but sharding would be incredibly useful for games where players can roll a significant amount of stuff or are able to build

marsh kelp
#

But is it battle tested like ProfileS?

hollow hemlock
#

furthermore, transactions are incredibly useful for trading and would eliminate crash bugs from causing dupe glitches

wind topaz
hollow hemlock
lilac zinc
#

(Going above 4 MB can happen in, for example, building games where you need to save lots of properties)

But in most cases you won’t hit that limit

marsh kelp
#

I only heard about it a week ago, and it seemed... Kinda new

hollow hemlock
#

it existed for the past couple months]

#

and is maintained by paradoxuum games

severe cobalt
#

I stick to PS due to it being more mature than Lyra, but Lyras transactions and auto sharding are nice features.. problem I have with Lyra is its still considered early development

marsh kelp
hollow hemlock
#

tower defense simulator

marsh kelp
#

Aha. Ty

lilac zinc
#

Link to Lyra plox

hollow hemlock
lilac zinc
#

Tyyyy

severe cobalt
lilac zinc
#

I love tds

#

Will take a look at it looks fun

fading nimbus
#

is this avatar peak

real fulcrum
#

Hey any good scripter intrested into participating in a yt vidéo challenge : will 6 devs make a tycoon game without communicating
Must : have a decent mic, be able to reccord and be able to talk
DM ME IF INTRESTED

real fulcrum
junior pier
timber bone
#

What does this error code mean?

halcyon jetty
timber bone
#

What does https request even mean

#

just link line https:// ?

brittle hinge
#

any scripter here interested in joining a game studio of 7 people currently?

fading nimbus
#

i need a j*b 😔😔

west hamlet
# timber bone What does https request even mean

http request is an online request done by roblox studio to load your saved game from roblox to roblox studio, if you have it turned off that means a part or the game itself has turned off http requests and because some laws, roblox allows you to turn it off.

#

so just follow the instructions

brittle hinge
#

like dyk how to

fading nimbus
brittle hinge
#

alr

fading nimbus
#

i gotta learn

#

people said its simple those guys are liars

west hamlet
#

@timber bone this means that roblox cant load a part of the game (usually models from the store) or the game to load it into your client (roblox studio) this is related to some system design

brittle hinge
#

any scripter here interested in joining a game studio of 7?

somber vault
west hamlet
#

BIGINT type?

#

and why the hel do you need that big

hexed forge
#

Hi guys

west hamlet
#

uhh i guess make 10 variables then add them together or add a limit then rebirth

hexed forge
#

Hi guys

somber vault
hexed forge
somber vault
hexed forge
hexed forge
somber vault
hexed forge
somber vault
hexed forge
hexed forge
sour vine
hexed forge
#

I would have no way to meet that guy

hexed forge
# sour vine hes pakistani

Oh! Well i certainly didnt know that. Well i still do not know him. And btw beore you check me out 😉 how old are you

sour vine
#

and that guy said ur name was amir

hexed forge
hexed forge
sour vine
#

u forgot?

#

ur bf

hexed forge
#

I am straight

#

But i appreciate you reaching out to someone you thought was close to me!

sour vine
hexed forge
#

Very Very cool

#

Maybe youre thinking of your night with him instead of me?

sour vine
hexed forge
sour vine
hexed forge
#

It was you who was in him yeseterday

#

Not me

sour vine
hexed forge
fair copper
#

me when i get deeper n deeper into coding n start using rojo with vscode the next day

#

but manage to get 0 work done because frameworks are amazing

humble gate
#

i need someone to make me a throwing system like the games jenga and destroy the tower

rich gust
edgy venture
#

in theory would this work as a "banned users" scripts? obviously theres way better ways to do it, just asking.

local player = game.Players:WaitForChild("user")

if player then
player:Kick("You are banned bro")
end

edgy venture
west hamlet
edgy venture
west hamlet
edgy venture
#

so technically this could be a really dumb way to ban someone right?

west hamlet
#

yes

#

just use a list of banned users

#

then iterate

edgy venture
#

yeah ik

chilly canyon
edgy venture
chilly canyon
#

Curious of what

burnt fossil
#

let us discuss thy code!

severe cobalt
#

mostly cuz roblox tries to detects alts

edgy venture
edgy venture
#

ohhh

flint smelt
#

how write good code

edgy venture
#

right

edgy venture
severe cobalt
#

my code follows the conventions in that page

hexed forge
#

Rojo is surprisingly easy

severe cobalt
#

ive used rojo in the past but just sticked with roblox script editor. VSCode's plugins for code suggestions with luau just feel finnicky, I would get odd behavior every now and then.

pine chasm
severe cobalt
hexed forge
#

Btw shoutout to me for using AI for the json code format

severe cobalt
#

I just like roblox's code completion better Shrug

#

I still use rojo for git functions, but I dont actively use vscode with it.

hexed forge
#

AAAAA

severe cobalt
hexed forge
severe cobalt
#

Nothing wrong with having a preference lol

hexed forge
#

Yeah ik

azure granite
#

does setting a table to nil with threads inside it cancel the threads

severe cobalt
pine chasm
#

?

severe cobalt
#

that doesnt really answer my question

pine chasm
#

how

azure granite
severe cobalt
#

you'd use a conditional..? Threads end when the task inside ends. If you use a while loop for example, you either break out of it or set its conditional to false

static coral
azure granite
severe cobalt
#

even an example in the docs

azure granite
smoky dagger
#

can you not have buffers as keys in a dict?

hollow meadow
#

could someone help me make a simple screenshake function inside a local script

timber bone
#

So today I realised that maybe plugins can be useful, which do yall recommend?

static coral
#

what do you do in studio

#

like script, build, etc?

timber bone
#

atm obby

timber bone
#

Just want to know what I should use for specific things

hollow meadow
static coral
hollow meadow
timber bone
#

Any for gui?

static coral
azure granite
#

autoscale lite feels pointless

#

af

#

does it do ui apsect ratio constraint

timber bone
#

👍

static coral
timber bone
#

I have a part in my world and I cannot delete it

#

Anyone have any idea

azure granite
#

restart studio?

somber vault
#

lf tutorial on how to make animations inside of rig in viewportframe 😢

somber vault
#

wow 🤩

timber bone
somber vault
timber bone
#

???

hexed forge
#

AHHH

#

AHHH

rich gust
hexed forge
#

From workspace

timber bone
#

It was locked ...

fair copper
#

guys what frameworks best for like

#

big games?

#

that could use alot of remotes

void bay
#

Does KNIT suits TD games?

fair copper
void bay
fair copper
hexed forge
balmy arrow
#

same guy who coded this shit 😭

void bay
fair copper
fair copper
#

or packet module

#

by suphi kaner

void bay
fair copper
#

although its a bit more complex but thats tailored for roblox ig

void bay
#

it has many options

#

But it's more like remote modules rather than framework if I'm not wrong?

fair copper
#

i mean thats what frameworks serve anyway

#

modular and fast?

#

optimization?

azure granite
#

what is signal i see it in a lot of modules

fair copper
#

packet module specifically uses binary for low bit communication

#

so its like good for games / big games in theory

azure granite
#

so is it just like remote event and bindalbe event but more optimised

fair copper
#

and modules

#

with optimized communication

#

cuz usually when u do lots of remotes?

#

its slow

void bay
#

What knit does?

fair copper
#

apparently

fair copper
void bay
#

What's the different between Suphi's?

fair copper
#

i think suphi's module relies on converting ur events to binary

#

bits

#

just check his tut

void bay
#

Yeah I know Suphi's one, but never use KNIT

fair copper
#

i spent some good hours taking his module apart

void bay
#

I want a comparasion

fair copper
#

for knit on roblox

azure granite
#

playerProfileStore.OnSessionEnd:Connect(function()
local celestialBodiesData = CelestialBodiesManager.GetAll(player)
playerProfileStore.Data.Plot = celestialBodiesData.Plot

     playerProfileStore:Save()
     
     
    CelestialBodiesManager.RemovePlayer(player)
end)

do i need the save()?

void bay
fair copper
#

any normal dev with a bit of knowledge about frameworks can just

#

make a knit and not know about it

#

lolol

azure granite
rich gust
rich gust
#

type*

fair copper
#

with pve and pvp

rich gust
fair copper
#

idk

rich gust
fair copper
#

i am maybe

cloud meadow
rich gust
fair copper
#

my friend said knit was outdate

#

outdated

#

does it really matter if it works?

#

lolll

rich gust
# cloud meadow How can I make this like where the coins are in the middle then goes to that pos...

local TweenService = game:GetService("TweenService")
local coin = script.Parent -- e.g. the coin ImageLabel
local target = coin.Parent:WaitForChild("CoinTarget") -- the UI where it should go

-- Start the coin in the middle of the screen
coin.AnchorPoint = Vector2.new(0.5, 0.5)
coin.Position = UDim2.new(0.5, 0, 0.5, 0)

-- Wait a short time before tweening
wait(0.2)

-- Tween to target position
local tweenInfo = TweenInfo.new(
0.5, -- Time
Enum.EasingStyle.Quad,
Enum.EasingDirection.Out
)

local tweenGoal = {
Position = target.Position
}

local tween = TweenService:Create(coin, tweenInfo, tweenGoal)
tween:Play()

#

Local script

#

Start in the center of the screen
Tween smoothly to a target position (like a shop icon, counter, or UI corner)

rich gust
#

Combat Frameworks

Rodux + Roact

#

Avoid deprecated things like BodyVelocity, use LinearVelocity and VectorForce

timber bone
#

Guys for soundeffects like id where can I check for what sound it is

wide falcon
#

Guys

rich gust
young rock
simple epoch
#

did i cook

lament thistle
#

Anything.

fast radish
#

starting my scripting journey anything to recommend

lament thistle
simple epoch
#

and dont say .touched ik how to use getpartsinpart i was just lazy

lament thistle
simple epoch
#

alright

pine chasm
#

what's wrong with .Touched

young rock
light pollen
foggy plinth
foggy plinth
#

chr rootPart hitbox hum ( i mean its not neccesary but )

simple epoch
#

the code is gonna stop even if i dont check

#

just in a different way

foggy plinth
#

i mean in a situation the chr or others can become nil and the code wouldnt work

pine chasm
simple epoch
young rock
foggy plinth
#

i mean you wouldnt need them but it doesnt hurt to have them yk

pine chasm
simple epoch
rich gust
foggy plinth
#

the checks are more about code quality and error handling

pine chasm
simple epoch
#

damn

#

iil just add a check then

young rock
#

@rich gust i think it has something to do with the parenting

simple epoch
#

if not chr then return end

young rock
#

like i parent the model to replicated storage before everything

rich gust
young rock
#

then load the animations

#

and parent the model to the camera before playing the animation

#

wait

rich gust
#

If it’s not parented, PreloadAsync() silently fails or does nothing.

young rock
#

that line at the top is rs

#

not workspace

rich gust
#

ReplicatedStorage
👇

young rock
#

forgot to change it back

rich gust
#

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local anim = Instance.new("Animation")
anim.Name = "MyAnim"
anim.AnimationId = "rbxassetid://123456789"
anim.Parent = ReplicatedStorage

young rock
#

wait

#

i think i forgot to parent the animation

#

instance

#

no its inside rs

rich gust
#

correct

rich gust
#

fr?

young rock
#

the animations folder is inside rs

rich gust
#

rep storage and preloadsync?

#

local ContentProvider = game:GetService("ContentProvider")
ContentProvider:PreloadAsync({animation}, function(assetId, status)
print("Preloaded:", assetId, "Status:", status)
end)

#

use this to make sure^

#

rep storage

young rock
foggy plinth
#

idk if you need to add this or if you already did but..

anim.Parent = ReplicatedStorage
young rock
#

theyre already inside rs

#

cant i preload instances that are in replicated storage?

rich gust
#

Creating the AnimationTrack with LoadAnimation() might cause a frame of delay the first time

i would just make sure its not delayed or to early

hollow wind
hollow wind
young rock
pine chasm
young rock
#

the create function loads the animations

rich gust
pine chasm
young rock
#

is there any problem here?

young rock
# pine chasm

yes but when i print .length it gives the full length

#

not 0

pine chasm
#

wait until length > 0 before returning the animation track

#

in ur Module.Load method

foggy plinth
#

try adding ts

local ContentProvider = game:GetService("ContentProvider")
ContentProvider:PreloadAsync(game:GetService("ReplicatedStorage").Animation:GetChildren())
young rock
young rock
#

let me send the full cod

#

not full but

foggy plinth
#

can you try preloading the specific animations that are in GunInfos[Name].Animations for each gun?

young rock
#
function Module:Create(Name)
    if Model then Module:Unequip() end

    Info = GunInfos[Name]

    Model = Info.ViewModel:Clone()
    Bullets = Info.MaxBullets
    CFrames = {}
    Animations = {}
    
    Model.Parent = ReplicatedStorage

    local Animator = Model.Humanoid.Animator
    for _, Animation in Info.Animations do
        Animations[Animation.Name] = AnimationHandler.Load(Model, Animation)
    end
end

function Module:Equip()
    if Equipping or Equipped or not Model then return end
    
    Equipped = true
    Equipping = true
    
    Model.Parent = Camera
    if Animations.Equip then
        Animations.Equip:Play(0)
        Animations.Equip.Stopped:Wait()
    end
    Equipping = false
end
function Module.Load(Model, Animation)
    local Animator = Model.Humanoid and Model.Humanoid.Animator
    if not Animator then return end
    
    game.ContentProvider:PreloadAsync({Animation})
    local Track = Animator:LoadAnimation(Animation)
    repeat task.wait() until Track.Length > 0
    return Track
end
young rock
#

doesnt work

rich gust
young rock
#

it wouldnt play the animation at all in that case

rich gust
#

Create a function

foggy plinth
#

uhm.. those who know try adding game.ContentProvider:PreloadAsync(Info.Animations) and remove game.ContentProvider:PreloadAsync({Animation})

rich gust
# rich gust Create a function

function Module:Create(Name)
if Model then Module:Unequip() end

Info = GunInfos[Name]

Model = Info.ViewModel:Clone()
Bullets = Info.MaxBullets
CFrames = {}
Animations = {}

Model.Parent = ReplicatedStorage

local Animator = Model:FindFirstChild("Humanoid") and Model.Humanoid:FindFirstChild("Animator")
if not Animator then return end

for _, Animation in Info.Animations do
    local Track = AnimationHandler.Load(Model, Animation)
    if Track then
        Animations[Animation.Name] = Track
    end
end

end

azure granite
#

do i use renderstepped or heartbeat or stepped for guis

foggy plinth
#

renderstepped and heartbeat can be both used but mostly rennderstepped is better ( for normal use cases)

young rock
pine chasm
#

u might be stuck with this problem ngl

#

atp just try restarting studio or something 💀

young rock
#

been trying to fix this for the last 3 days

#

ong

fringe urchin
#

uh how do i start learning scripting?
i heard lua is a good starting language so i wanna start with it

foggy plinth
#

i think

#

i prefer youtube tutorials basics over anything tho

fringe urchin
#

how do i learn any other thing

#

ye like what tuts

young rock
#

maybe i shouldnt use replicatedstorage to "hide" the viewmodel

#

what else can i do?

#

transparency maybe?

foggy plinth
#

the tutorials... where.. you search roblox scripting tutorial

fringe urchin
#

i feel like most of them suck except a few idk

#

like how did u start

pine chasm
#

im not a youtube tutorial learner

fringe urchin
#

im the opposite i hate reading

foggy plinth
somber vault
#

#rodevs format lol

fringe urchin
#

uh chatgpt said thedevking is like the best so ig ill follow him ty

#

since even here yall recommend him

somber vault
fringe urchin
#

cool hopefully i dont get lazy and stop learning

foggy plinth
fringe urchin
#

ye i kinda hate long vids ngl

#

i actually watched his playlists but got too lalzy to move to the advanced playlist so i forgot everything

#

lazy**

foggy plinth
#

uhm same

young rock
#

i might just throw this gun thing in the bin bro

wary vigil
#

Anyone awake ?

young rock
wary vigil
#

I made my own ui my own storage language to not have to use firebase or MySQL and my own syntax highlighting just wanna know if my syntax highlighting looks good or if I could use better colors?

#

Just want opinions

wary vigil
young rock
#

👍/10

wary vigil
#

I take that as good colors then

young rock
wary vigil
young rock
wary vigil
somber vault
#

ngl this message made me want to remake subway surfers in roblox

wary vigil
wary vigil
somber vault
#

it'd be fun as hell

wary vigil
#

But I stopped myself

young rock
#

grey then

wary vigil
#

Hmmm

somber vault
fading nimbus
#

dont play nds at 3am, softballer will try to kidnap you 🥶 🥶🥶🥶

wary vigil
#

Never mind

somber vault
wary vigil
#

You told me firebase was decent and I hated you ever since

#

I know firebase

#

But why’s it so over complicated and trash

#

💀

#

Learn firebase and MySQL

#

Just to make sure better version

#

As shown above

somber vault
wary vigil
#

I do

somber vault
wary vigil
#

Trust

wary vigil
somber vault
#

unless u mean roblox but i doubt I said firebase idk what that even is

somber vault
wary vigil
#

😭

quasi grotto
pine chasm
#

Set Character.Archivable = true before cloning

Usually, this is false for the player's character.
Archivable declares whether the instance can be cloned or not

pine chasm
keen zephyr
#

yo if u wanted to create rain

#

would u need to have multiple parts in the sky that continue to fall and fall

#

using instance.new() ?

pine chasm
#

not parts, but textures are better for that

keen zephyr
#

alright

#

can u create a texture with instance.new() ?

pine chasm
#

yes

keen zephyr
#

alr cool thanks

quasi grotto
#

Ahh ty @pine chasm

signal steppe
#

GUYS I NEED A SCRIPTER FOR STEAL A FORTNITE CHARACTER GAMED

#

@quasi grotto

#

@keen zephyr

#

Sty for ping

coral oracle
#

Im scripter

fair copper
#

I just combined knit with packet module

#

💯

#

ggs combination

#

somewhat

signal steppe
#

Dm me i need scripte

signal steppe
honest nimbus
#

Hey, im having a little trouble with my chase ai for a npc. I need it to recalculate the path to the player constantly if in range (which works fine) however because im using a for loop to move the humanoid to the next waypoint of the path, it doesnt follow the new path?

If i were to use humanoid.MoveToFinished:Wait() it works but needs to complete a full path before it starts a new one.

I need some help fixing this please.

#

The visualiser shows the new path being computed

#

and ive just realised i wrote this in the wrong channel

quasi grotto
#

we still knitting?!

fair copper
#

also its like rpg i just found it easier to use knit than the packet module library with low level logic

quasi grotto
#

knit got depc though

#

not depc

#

archived

rugged island
#

what do yall think of me tracking each connection to each player that joins (instead of a combined one)

gentle ember
#

anyone a advanced scripter

unborn kestrel
#

should i have one server script for a bootloader and make the game with modules or just have 10+ normal scripts

rich gust
rich gust
rich gust
#

what typa game

#

As long as you manage cleanup properly and don't unnecessarily inflate RemoteObjects, it's better than sharing one event and trying to filter on the fly

rugged island
proper sonnet
rich gust
proper sonnet
#

check the demo videos out, non-coders have been liking it so far lol

#

i'm launching the free plan in a few days

rich gust
#

oh thats cool man, i like that.

rich gust
mortal lance
sonic juniper
#

any way to accsess which one the player is using through a script?

mortal lance
#

renderstepped prob

sonic juniper
#

?

#

what wld be the syntax

unborn kestrel
#

whats the best vfx replication for all clients but not server?

coarse panther
#

function module.FormatBoostLabels(boostFrame, tableOfValues)
local numOfBoosts = 0

for index, value in ipairs(tableOfValues) do
    if value > 0 then
        numOfBoosts += 1
        local label = boostFrame:FindFirstChild("Boost" .. numOfBoosts)

        if label then
            local boostPercent = module.tableOfPotionBoostValues[index]

            local hour = math.floor(value / 3600)
            local min = math.floor((value % 3600) / 60)
            local sec = value % 60

            local timeShown = ""
            if hour > 0 then timeShown ..= hour .. "h " end
            if min > 0 then timeShown ..= min .. "m " end
            if sec > 0 then timeShown ..= sec .. "s" end

            timeShown = timeShown:match("^%s(.-)%s$") 

            if label.TextColor3 ~= module.tableOfPotionColors[index] then label.TextColor3 = module.tableOfPotionColors[index] end
            label.Text =  {boostPercent}% for {timeShown}



            tableOfValues[index] -= 1
        end
    end
end

for i = numOfBoosts + 1, 6 do
    local label = boostFrame:FindFirstChild("Boost" .. i)
    if label then
        label.Text = " "
    end
end

end
The time is getting updated, but the color of the text labels are white (even though by default they are set to a yellow-ish color). Why th are they not changed?

#

nvm

#

forgot to use Color3.fromRGB instead of .new

quasi grotto
#

why

tired stag
#

what is the best ai for understanding code and the math behind it

sudden estuary
#

robux

tired stag
#

i tried roblox ai and i litterly said very detailed and then it explained it worser then chat gpt

#

i gave it one try though today

flint smelt
#

how to become pro scripter

tired stag
#

in lua

rich gust
real fulcrum
#

hey any scripter down to participate to a yt video challenge : u need to be able to reccord dm me for more info

minor relic
# coarse panther function module.FormatBoostLabels(boostFrame, tableOfValues) local numOfBoos...

how can u guys read this i can only read it like when its
function module.FormatBoostLabels(b,t)local n=0 for i,v in ipairs(t)do if v>0 then n+=1 local l=b:FindFirstChild("Boost"..n)if l then local p=module.tableOfPotionBoostValues[i]local h=math.floor(v/3600)local m=math.floor((v%3600)/60)local s=v%60 local T=""if h>0 then T..=h.."h "end if m>0 then T..=m.."m "end if s>0 then T..=s.."s"end T=T:match("^%s(.-)%s$")if l.TextColor3~=module.tableOfPotionColors[i]then l.TextColor3=module.tableOfPotionColors[i]end l.Text=p.."% for "..T t[i]-=1 end end end for i=n+1,6 do local l=b:FindFirstChild("Boost"..i)if l then l.Text=" "end end end

main dagger
#

guys does anyone know of a way to figure out which script is causing a certain object in my game to destroy? any lines of code? pls help, my spawning system is crippled

shy bronze
#

does someone here have a modular game?

hallow crag
#

💀

restive lantern
elfin timber
rich gust
main dagger
restive lantern
#

yup

main dagger
main dagger
rich gust
tired stag
#

guys how many connections do you have

#

or is this private

#

do you guys wanna be my best connection

main dagger
# rich gust look up your question it will help you

i know what output is bro, but i dont know how to get a message in the output for this specific purpose. i have dozens of long scripts, dont rlly want to weed through all of them so i came here to ask for an easier solution

rich gust
#

any1 wanna help with my discord server or my group shorts ( group shorts cost 10 rbx ) please lmk

main dagger
#

doesnt print anything

#

artifactClone just disappears

#

after a few seconds

rich gust
#

let me get your errors raw

main dagger
#

did i use debug.traceback() wrong?

rich gust
#

ill help

main dagger
rich gust
main dagger
rich gust
#

okay okay

#

error display system, like a server/client script creating a temporary part, BillboardGui, or Message/Hint object to show errors without using warn() or print()
i would check for that and stuff and lmk if its a part gui or message or a hint or smth

unreal dust
#

Does anyone know a way to invert players controls? Like for example you press w and it moves you backwards. Or do i need to record the movement system?

rich gust
#

Select the object that appears (during the 2–3 seconds).
Right-click >Find All Scripts Referencing This Object.
This will show any script that might be destroying the message or object.

rich gust
main dagger
#

hoepfully i can be fast enough for the 2-3 seconds

#

brb

unreal dust
rich gust
unreal dust
#

Or some variaation

main dagger
glad apex
#
local rightArm = workspace.NPCs.rizzlers["rizzler 1"]["Left Arm"] 
local slash = workspace.Slash 
print(slash.Position - rightArm.Position) 
workspace.Slash.CFrame = CFrame.new(-0.182, -0.42, -0.78) * rightArm.CFrame 


slash.Orientation = Vector3.new(-28.1, 1, -119.9)

how do i make this slash.orientation relative toa rightarm so rn its fixed but i want if a part rotates up i want it to rotate up just as much as it rotated

and i dont wanna detect when the part moves and subtract positions

fossil bone
unreal dust
#

I will try that too

fossil bone
#

yeah it works like a linked list so the most recent action you bind becomes priority

main dagger
rich gust
main dagger
rich gust
main dagger
#

ill dm it to u? if that works?

main dagger
#

btw thx for all ur help

rich gust
rich gust
cloud meadow
#

How do I create a menu like this with tweens and stuff pls help

fleet tundra
#

is it true that?

that you can't do coloured text in bubble chats anymore?

rich gust
#

you can use scripts

#

and get them tags or icons

dire basin
#

can someone help me make a piece of code? its a skip stage gamepass thing and i cant seem to do it no matter how hard i try. Ive followed tutorials and everything. if someone would be nice enough to dm me and help me that would be great

wraith cairn
dire basin
wraith cairn
dire basin
mystic radish
#

HI

teal vortex
#

Yo I got a question, how to you guys convert a mouse position to a 3d point in the world, do you use mouse.hit.position, or UserInputService:GetMousePosition, and convert those 2d coordinates into 3-d coordinates

coarse wraith
#

UserInputService:GetMouseLocation returns a vector2 value

#

vector2 is 2d

#

vector3 is 3d

mystic radish
#

any pro scripter wana get hired?

last kraken
#

6 Infinite yield possible on 'Workspace.FrancisGamer092011.Head:WaitForChild("Titles")' - Studio
but it is there what can i do?

ripe plume
#

u sure its there?

#

add a like 10 sec timer in the waitforchild or something

near grove
#

need a scripter

neat ridge
#

guys is it ok to use ACS

fair copper
#

im moving it via script while the anim fires n stuff

#

event

#

@rich gust u know dis

fossil bone
fair copper
#

tween with easing

#

like i lack knowledge about what could be better potential

#

any tips?

fossil bone
#

i mean did u use easing style cubic, easing direction inout

peak jolt
#

try just not moving it with the script at all and only animating it

#

might have to adjust the camera script for it not to look weird

fair copper
#

i just disabled it for this vid

#

this is what it looks like

fair copper
#

💀

fossil bone
#

i think i agree either lessen the time between being in the air and falling to the ground or tween your camera to make it more smooth than jittery

fair copper
#

actually i just figured something out

peak oak
#

im creating a new language called NOVA

fair copper
#

i was using 2 tweens for going up n going down

#

but i could use 1 tween

#

and calculate the character's position alongside a parabola

fossil bone
#

are you using the animation editor or stragiht hardcoding it?

fair copper
#

i dont prefer

#

because im using packet modules to really break down data into binary packets to communicate i dont think i need to be too lenient when its just movement from combat do i

#

or do i

#

idk

#

lemme just try wtv

fossil bone
#

eh im just being a common procedure guy and saying most prefer animation editor since its much easier to animate what you visualize

fair copper
#

yeah true

#

but this is running on client so its fine

#

lolol

#

and i can update position to server if i want

#

if i do it this way

fossil bone
#

fairs

#

you can also add key events in your animation to listen to

fair copper
#

yeaah considerable

thin mist
#

Trying to do a simple table.find script for a dictionary but it doesn’t seem to work with it no matter what I try anyone know why?

fair copper
#

@rich gust got timed out for 12 hours but u can dm him for help 💯

thin mist
#

rlly simple

#

but it wont work

fossil bone
#

ah table.find is designed for array tables not keys with strings

#

cuz it goes left to right for however long the arary is

#

i think its just better to iterate with a for loop

lean ocean
#

yea u would have to do list["burger"]

wind topaz
#

is there any fishing mechanics for throwing bobber instead of using body velocity?

lean ocean
wind topaz
#

like i dont want the bobber moving on water so when bober hit water it stay, velocity making the bobber always wiggly. but i dont want to be anchored

fossil bone
wind topaz
#

no it doesnt work, i already destroy the velocity

#

bobber still wiggly on water terrain

#

might be calculated the water pos and using tween. but i dont get it why its so smooth

fossil bone
#

dm @rich gust hes more knowledgable than me

thin mist
lean ocean
#

show

thin mist
#

nvm

hybrid talon
#

hey guys can anybody give me tips for my first code im new to this dev thing/scripting

west hamlet
#

and print every item of the list

true tree
#

oo premiuum trial

manic nacelle
tranquil tide
#

is task.spawn can play 2 while true do loop at the same time

severe cobalt
tranquil tide
#

no like

#

if i do a while true do loop without task spawn
and i do a loop inside task spawn

#

the loop can play at the same time?

solemn echo
#

what do people think the best portfolio type is?

severe cobalt
tranquil tide
#

ok ty

#

also i made a script to make a npc walk to a waypoint in a look and i want that when i punch him he instantly stop and look atme

#

but it wait for the loop to finish before him to stop

#

so idk how to do

severe cobalt
# tranquil tide also i made a script to make a npc walk to a waypoint in a look and i want that ...

for npc walk cycles I recommend using RunService.PreSimulation as the loop so you can modify properties like velocity or forces prior to being applied.

For handling punching, you dont really need to use a while loop on task.spawn.. just do it in presimulation. When it detects a player punches it, you can cancel the move using MoveTo and setting the position to the npc's current position. You can then cframe the rotation.

As for walking, you should be using humanoid:MoveTo along with properties like speed. That way, runservice continously checks during the character moving.

tranquil tide
#

ok ty

severe cobalt
#

^ which speaking of, npcs characters should be using a Humanoid object

severe cobalt
tranquil tide
#

@severe cobalt how to detect character in server script?

signal silo
#

all these scripters for hire always offline

#

im tryna overp ay for simple stuff 68902emoahhh

open surge
#

Yo

#

What u need like somehting simple?

kindred bolt
#

WHAT THE HELL IS THIS

kindred bolt
rain nymph
#

It’s really weird ngl

pallid zodiac
#

I have a question, how hard & long would it take to script a gun system (multiple different guns) with 1.5 yrs of Python programming and 0 luau experience 😭

clever shuttle
pallid zodiac
#

bet

#

ty

thin mist
#

Yo why do people use folders, is it just for organizing purposes?

fresh lance
midnight anchor
#

https://medal.tv/games/roblox/clips/kJX5K6uCtJ7NTP-0f?invite=cr-MSxDRDMsMTY1ODk4OTE2

Its a simple take off/landing

you mainly move following the camera using right click to directional control

however the 4 arrows can also be used to move

mobile friendly

Is this hard todo? ive had 2 devs in 2 seperate commissions try this and fail

Watch Untitled by bozooman and millions of other Roblox videos on Medal. Tags: roblox, ageofheroes

▶ Play video
rain nymph
#

Is there a way to “get the most similar list” inside of a table? An example is say I have a table with [“a”, “b”, “c”] and there’s a catalog of other lists, but it doesn’t contain that but contains [“a”, “b”]. Is there an algorithm that can return the most similar list?

sudden estuary
hollow fable
#

its a bug LMAO

wild kayak
#

I can help anyone with scripting for 50rbx

fresh lance
wild kayak
#

Like 5-6 system

fresh lance
#

Bro why are you considering 5-6 systems for 50 robux 💔

#

Value urself higher

wild kayak
fresh lance
#

I was joking

#

I dont need help for anything

tawny jacinth
wild kayak
manic sundial
#

free model scripts are some of the best programming in existence

wild kayak
#

Making any basic 2-3 system for 50 rbx

keen hemlock
#

Is making a custom npc controller without humanoids worth it

#

Cause I want to make a game that where I'd like to have lots of civilian npcs walking around and I've heard that humanoids take up a lot of performance

wild kayak
wild kayak
keen aspen
keen hemlock
keen hemlock
wild kayak
#

Doin any kind of scripting per system 50rbx if the work is less it can be 30rbx

fading ermine
manic sundial
#

there were 4 others of the exact same type that just changed different variables

wild kayak
#

Doin any kind of scripting per system 50rbx if the work is less it can be 30rbx

junior pier
#

i genuinely thought they obfuscated it w the amount of bloat it has for a simple coil

rain nymph
#

Animating them without humanoids is something I’ve never done so I can’t rlly help with that

keen hemlock
#

Irs just the physics of the npc that seems like it's gonna be a pain

pseudo girder
#

not too good with roblox physics. Anyone know how I could make this boost pad consistent? It works but the boost is not consistent (probably because of momentum and stuff like that)

    CreateEntities()
    ApplyBoost()
end

function ApplyBoost()
    print("APPLYING")
    for id, part, velocity in world:query(Part, Velocity):iter() do
        print(id)
        part.Velocity = velocity
    end
end

function CreateEntities()
    for _, part in TaggedParts do
        local e = world:entity()
        world:set(e, Part, part)
        SetVelocity(e)
        print(part.Name)
    end
end

function SetVelocity(e)
    world:set(e, Velocity, Vector3.new(0, Utils.Random(100, 200), 0))
end```
trail bay
#

PLEASE I NEED SOMEONES HELP! \I have an already made and working main menu / loadout system. However I am not a scripter so I have no idea how to make it work. How much would it cost me to hire someone to come set this menu up for us and add the loadouts?

#

I've been attempting to learn scripting for 3 months to try and figure this out but can't.

pseudo girder
#

did u use AI code

trail bay
#

Please, if your willing to help / get paid tell me the price just DM me

trail bay
pseudo girder
#

uh well I'm not good at main menus and loadouts

#

so

#

sorry

trail bay
#

Well Im asking anyone to help me

pseudo girder
#

make a lf post

trail bay
#

Where

pseudo girder
#

idk the command but in general just ask how do I make a hiring scripter post

violet folio
#

Unless you’re trying to build your own physics system

#

lol

wild kayak
#

Doing any basic scripting for 50rbx

#

Doin any basic scripting for 50rbx

storm epoch
snow oasis
storm epoch
#

It belongs to my first game ever

#

but It's not mine if that makes sense

snow oasis
storm epoch
#

i'm not srs bro

inner hamlet
fair copper
#

roblox studio

storm epoch
fair copper
#

bullshit

storm epoch
#

do NOT try this if u don't wanna get dumped

fair copper
#

💔 🥀

storm epoch
#

that's actually