#code-discussion

1 messages · Page 162 of 1

twin basin
#

i know how datastoring works

craggy dove
#

player execute command -> server generates 10 codes puts them into datastore -> show them to player

random player -> textbox -> enter code -> remote event -> server checks datastore -> true/false

empty wind
#

how do i check if an instance has a property? i don't like doing this vro 🙏

twin basin
#

what the hell

mystic panther
#

maybe im not understanding

twin basin
empty wind
spare ocean
empty wind
#

i was tired ok

mystic panther
twin basin
#

lemme just check that it isnt every instance that exists so i can be sure i get the right instance

serene terrace
#
  1. Yes you should use a state machine (there should be some tutorals on the devforum)
  2. For animations I personally would use Moon Animator for ease of use since i'm not familiar with importing animations from blender.
  3. I don't play deepwoken
  4. Raycasting is probably the best method for deepwoken combat, and you can sync animations by using Animation Events.
  5. Add a bunch of print statements, have a bunch of dummies that do different combat actions like blocking e.t.c, and add a setting where you can toggle hitboxes to visualize them
twin basin
#

raycasting?

#

theres magnitude, touched + PartsinBound hybrids, but raycasting?? how does that work

tawny jacinth
twin basin
#

pretty sure deep uses magnitude though

reef eagle
#
PCData.PC = {
    ["PC_001"] = {Rarity = "Basic", Value = 30},
    ["PC_002"] = {Rarity = "Basic", Value = 40},
    ["PC_003"] = {Rarity = "Basic", Value = 50},
    ["PC_004"] = {Rarity = "Uncommon", Value = 70},
    ["PC_005"] = {Rarity = "Uncommon", Value = 80},
    ["PC_006"] = {Rarity = "Uncommon", Value = 100},
}

is this a good way of storing item data in a module script?

twin basin
reef eagle
#

maaybe more of like storing pc type properties

#

isntead of actual data lol

full sinew
#

chat is there any good scripter to help me with pricing smth

twin basin
twin basin
twin basin
tawny jacinth
full sinew
#

tryna sell

thorn arch
#

aka, raycast a bunch of times

twin basin
open yarrow
#

bounding boxes are arguably the best method of hitboxes

twin basin
#

agree

open yarrow
#

for melee

twin basin
#

agree

open yarrow
#

for projectile you can just use a shapecast

thorn arch
#

Downsides is that it's a bit more difficult to apply for irregularly shaped objects

copper shale
#

Yo guys who wanna join me game? Dm me

lapis parrot
#

if anyone needs any help with scripting lmk

inland acorn
#

how do I uhhhhhhhh

pine chasm
pine chasm
#

Any type of raycasting

thorn arch
#

Raycasting is quite different

#

And is extremely cheap

pine chasm
#

Shape casting is still raycasting

thorn arch
#

Shapecasting is much more expensive

pine chasm
#

I mean any type of spatial query

#

Is slower than touched

thorn arch
pine chasm
#

No

#

U have to raycast constantly but touched is connected once

#

Now imagine that with 100 colliders

thorn arch
#

Skids these days

edgy mango
#

local part = script.Parent
local humanoidRootPart = game.Workspace:WaitForChild("HumanoidRootPart")

part.Touched:Connect(function(TP)
wait(1)
humanoidRootPart.Position = game.workspace.TPPart2 + Vector3.new(0, 5, 0)

end)

Whats the issue with this script? it keeps showing me infinite yield possible

reef eagle
#

you guys thought of using asci art to mark sections of code?

thorn arch
# pine chasm Then tell me how

For every part in the game it compares vertex positions of nearby parts to calculate whether their meshes are overlapping

#

Every frame

inland acorn
pine chasm
#

That's why it's faster

thorn arch
pine chasm
#

Do you have any benchmarks to back that up

#

Or you just yappin

thorn arch
#

Simply the nature of raycasting makes it way cheaper

#

You are only checking a line with fixed length

#

Checking whether a line intersects a 3d object is way cheaper than checking whether two 3d objects intersect

pine chasm
#

I don't think we're talking about the same use case

#

Collision detection

#

Hitboxes

quartz harness
#

How to disable i can pickup the tool if i touched it?

thorn arch
pine chasm
#

You're talking about generally, yes, generally raycasting is faster than touched.

But when making hitboxes, you're better off using Touched

thorn arch
#

For hitboxes, raycasts are even shorter and more performant

trim saffron
#

Anyone new too coding?

thorn arch
#

You can also use params to cull irrelevant parts

trim saffron
#

I want to learn with someone whos new so we can help eachother

thorn arch
#

You just need to whitelist players and npcs

#

Raycasting is way cheaper

pine chasm
#

I don't believe that, because you have to query all hitboxes and run raycasting on each one. ( Or create separate threads for each hitbox)

Touched is cheaper in computation and memory

thorn arch
#

It's just raycasting

#

No part

pine chasm
#

Parts aren't expensive

thorn arch
#

More expensive than raycasts

pine chasm
#

I don't believe that. I wanna run benchmarks on that when I get home and make sure

#

How do you even do collision checks with normal raycasting

#

Unless you're shape casting or quering space

pine chasm
thorn arch
#

Cheaper than shapecast

#

Still accurate

pine chasm
#

Isn't that the same as shapecasting

#

Not really as accurate, if an object is already inside your hitbox position and it's small enough, then it won't detect it

#

It can only detect objects passing across the shape, and you have to be raycasting fast enough per unit time for smaller objects to be detected

stone garden
reef eagle
thorn arch
thorn arch
thorn arch
#

Both can be perfectly still

pine chasm
#

Honestly, everything just depends on something

rain hound
#

yo can you rename UGC after it's been uploaded

pine chasm
#

Touched is faster with a small # of objects, but extremely inefficient when detection a large amount of objects

thorn arch
#

I'm trying to do a benchmark with an old surface based raycast module i made

pine chasm
#

Raycasts can detect multiple items in one raycast

#

Which is better than touched

thorn arch
#

You need to raycast recursively for that

pine chasm
#

I must be thinking of spatial query

rain hound
#

yea

#

raycast returns the first thing it touches

#

and only that

pine chasm
#

How does volumetric raycasting work

#

I assume it sorts of does multiple raycasts at once then

thorn arch
pine chasm
#

I suppose you can have variable # of raycasts depending on an accuracy variable you decide on

#

Eh I don't like that

thorn arch
#

80-85 ms avg

pine chasm
#

My main concern is that complex shapes will not be accurate

thorn arch
stone garden
thorn arch
#

Complex shapes need to either be manually done

#

Or you make a function that calculates it for you

#

Before run time

pine chasm
#

Besides that it'd be dumb af to do hitboxes with complex shape

#

So I guess it has all the upsides

hasty pewter
#

anyone interested, A searchable database of publicly shared QC (quality check) photos from marketplaces/agents, with tools to search by link, keyword, or reverse image.

thorn arch
#

Down to 80 ms

#

With 20k raycasts per frame

#

Raycasts are so stupidly cheap that, i was using line adornments to visualise the raycasts

#

But rendering the line adornments was giving me 10x lower fps than the raycasts themselves

#

@pine chasm

#

this is 200 raycasts

#

it fills it in pretty well

#

overkill for most games even

sharp ingot
#

looking for a scripter to make a quick game with me, would take no more than a week, maybe two

thorn arch
#

32 raycasts

plain jetty
#

yo someone scripting and making ui? i need help fix one thing

plain jetty
brave kelp
plain jetty
sharp ingot
#

what is the bug

plain jetty
#

i have problem with equipment

#

lets go dm

stone garden
thorn arch
stone garden
thorn arch
fair copper
#

bro why do u need 200 raycasts hahahah god

#

😂

stone garden
fair copper
#

my server memory would die with 10 players

#

🥀 😂

thorn arch
stone garden
fair copper
#

just use a raycasthitbox module if ur making hitbox dude

thorn arch
fair copper
#

define a hitpart and put attachment on it then use a module

#

sheeet what kinda module did u download

#

🥀

thorn arch
#

This is just a visualiser on a volumetric raycast module

fair copper
#

what u using it for?

thorn arch
#

I'm not using it for anything

#

It was an old one i have

fair copper
#

ahh

thorn arch
#

I just used it for a rough check

fair copper
#

yeah it seems primitive but raycasts always worked

#

🤔

thorn arch
#

You can run thousands each frame without issue

ripe plume
#

sup

celest cipher
#

** GUYS WHO HAS THE ROBLOX BROS JS TYPIN SHI GIF??**

celest cipher
#

how desperate are you

#

and im more experienced than you

#

pipe down

#

nerd

velvet parcel
#

i am close to finishing the brawldev begginer scrpiting and i have listen and done the learning objective do i move onto the advanced or do i do something else

celest cipher
#

dev is like having yt in your name

open yarrow
celest cipher
#

only the sigmas dont tell that their a yt or dev

celest cipher
open yarrow
#

"lil bro" im older than u

celest cipher
#

😔

open yarrow
#

please just shut ur mouth at this point

celest cipher
#

whats your point with no one cares abt experience

#

everyone does

open yarrow
#

ur bragging about shit nobody cares abt cause a guy replied with a fuckin meme LOOL

celest cipher
#

would you allow a hobo to drive a plane

#

fuck no

open yarrow
#

experience only matters if ur working for someone

celest cipher
celest cipher
slow lake
open yarrow
celest cipher
celest cipher
stone garden
open yarrow
#

checking profiles is loser shit tho he has ap oint

celest cipher
#

it takes one click to know your username

stone garden
#

i had this name way before getting into scripting, DEV is just a name and does not mean devlopper

celest cipher
#

what the fuck

#

dev means developer

#

dev is short term for dev

open yarrow
#

dev is short for dev 🧠

#

🗣️

celest cipher
#

you cant js say "i made my name dev bc i thought of it and thought it was completely original"

stone garden
#

dev can be a name, i didnt thought of it when i choose that name

celest cipher
#

dev has a meaning

#

no no your display name is dev

#

you can still change it

slow lake
#

well u can put stuff randomly without knowing

slim marlin
#

Can anybody help me with my script about my car spawner? I made a gui where everything works except this:

  • When i change teams changer wont open
  • When i press spawn car it doesnt spawn

Offering 500 ROBUX to scripter that will fix
*I promised to release it tommorow 😭 *

slow lake
#

maybe

celest cipher
stone garden
slow lake
slow lake
#

now i want to nuke my account

radiant sleet
#

Who wants to make a game with me

stone garden
radiant sleet
celest cipher
#

its a text

#

it has meaning

#

you sent an image

radiant sleet
celest cipher
slow lake
lapis parrot
#

if anyone needs a scripter that is cheap dm me

radiant sleet
#

DMs

lapis parrot
#

If anyone Needs a scripter for a decent price dm me.

zenith cloak
#

idk why put in game i have a client memory usage of 900 if i set the streaming mode to 64 not alot changes i disable the scripts not alot changes i disable the structures not alot happens any ideas why?

warm nova
#

roblox is wilding with this situation

#

i dont want roblox to fail

#

this my job fr

crisp hinge
#

how do I make the character not get locked into one direction

weld.Part0 = collider
weld.Part1 = HumanoidRootPart
    
local posOffset = Vector3.new(0, 0, 0)
local rot = CFrame.Angles(math.rad(90), math.rad(-90), 0)
weld.C1 = CFrame.new(posOffset) * rot```
celest cipher
#

discord is cooked

worthy plinth
#

anyone know how to spawn a model on top of a cylinder without its legs going through

stone garden
worthy plinth
#

like an enemy model

graceful berry
#

hello Does anyone have a solution to be able to put particles in a viewportframe or not?

lost pebble
worthy plinth
#

thanks

lost pebble
#

welcome

pearl geode
#

Guys anyone want to join my team? We are already a scripter and a modeler, but anyone can join. Make sure you can communicate and be active. Dm me if you're interested!

fallen summit
#

we are getting further than ever

#

🥹

#

better lift calculations soon

solid rain
#

What’s the best way to serialize instances so that they have a permanent serial (always the same) and avoid issues like duplicate part names causing conflicts?

fair copper
#

set an attribute of whatever serial and put it on everything u want to serialize

#

lol

#

it wont depend on names or whatever but make sure to define the object class

solid rain
# fair copper use attributes

i mean i know how to use attributes but I want them automatically assigned and to stay permanent without having to do extra work when inserting a new model but yeah I guess this is the only true way

celest cipher
midnight phoenix
#

each part has its own unique ID

#

its called UUID

ruby iron
midnight phoenix
ruby iron
#

what

stone garden
ruby iron
#

😭

proven walrus
pearl tulip
#

Roblox just banned kreekcraft permanetly

#

and banned 300+ creators

keen tusk
#

Quick question:

If i wanted to make a system that let players choose what outfit to wear in a game depending on their team, would that theoretically be possible?

violet folio
strong valve
#

Right

keen tusk
icy dew
keen tusk
stark geyser
#

how would i go about making a system were when the player touches a part something happens, and when a player goes of that part, the thing that happened is stopped. I tried using the like on touch thing but the issue is it isnt reliable

icy dew
keen tusk
#

Btw, im not actually gonna make any of this, i was just curious.

stark geyser
# sour vine .Touched, .TouchedEnded

Like I said, it dosent work because if the player runs it triggers and stops and triggers and stops because the players isn’t constantly touching, not what i want

stark geyser
#

No clue how to do any of that if I’m being honest but I’ll watch a few videos I appreciate it big dogs

icy dew
# keen tusk I assume it'd require acess to your inventory, some way to register and change t...

You wouldn't really need all of that.

You'd just need a way to change the outfit. That script could also contain the team-outfit combinations. The script would detect which team the player is on and give them the valid options, then when the player actually requests an outfit change you'd check their team again and whether or not the outfit they requested is allowed for them. You could then just apply the outfit, there's a method for this called :ApplyHumanoidDescription, it's bascially a way to apply a saved outfit

keen tusk
icy dew
#

I see that you meant giving them the outfit, not letting them choose from a list. The same stands, it's not too complex, it's even less complex if you're just applying an outfit when they spawn

keen tusk
icy dew
#

That does add a slight layer of complexity because you'd have to store each player's team outfits, instead of using server-supplied outfits

#

I did not know that you meant outfits from their roblox profile

icy dew
#

Nice

subtle stag
#

Yoyo, was wondering if anyone who has done scripting commissions or has knowledge could tell me whats a fair price

#

Like i wanna know the lowest to the highest i could/should pay

keen comet
heavy arch
#

How can I get into learning lua for roblox and the programming language in general

warm nova
#

and ill tell you

ashen wigeon
#

True businessman

heavy arch
#

ig ill just read❤️‍🩹

remote bear
verbal coral
#

6 7 😂 ✌️

celest cipher
spare ocean
#

local door:

fossil bone
#

does anyone have good resources for making a tps camera or shall i just take a free model cuz scripting the camera is the hardest thing to do

sudden estuary
#

whats a tps

velvet zinc
#

I uploaded 42 seconds audio for my Bobby game, and it’s the deltarune door music, and it went through but it’s not public, I though it would get removed but somehow it didn’t, it’s still been there for 2 weeks and they have not deleted it. What does it mean?

broken sedge
#

someone know how to put my game on R6

undone orbit
#

How much should stuff like rebirth systems, power up systems and power pick-up system cost on an average range

velvet zinc
#

I like how no one answer my simple question

twilit cloud
twilit cloud
compact spoke
#

since graphics level determines what technology you're using when it's set to automatic you can't get a good readout of what tech they're using

#

which is catastrophic for some games where specific technologies need specific lighting configurations

twilit cloud
#

yeah

sinful delta
#

how do i change gui through a module script cuz i do a module script function for gui it doesnt work but the same thing in a normal script works

sinful delta
#

it doesnt work when i call it in a normal or local script

compact spoke
#

this is becuase you're targeting startergui and not a specific player's playergui

sinful delta
#

ohhhhhhhhhhhhhhhhhh

#

yea mb ty

severe cobalt
# twilit cloud y

the way I work around it is just disable any feature that relies on a certain graphical level (like vfx with glass), then assume low-mid quality for optimizing. If it bothers a user, they can just set it manually.

If the game requires a certain graphical lvl, then just make the player set it manually.

rotund pawn
#

Is there any way to check if user has favourited game, without that annoying "Server is requesting access to your inventory"?

young rock
#
local RegisteredTools = {}
local EquippedTool = nil
local State = nil
local SkipEquipped = {}
local SkipUnequipped = {}

local LandingCFrame = Instance.new("CFrameValue")
local Stride = 0
local Bob = 0
local Sway = CFrame.identity
local JumpOffset = CFrame.identity
local AimOffset = CFrame.identity
local FieldOfView = DefaultFOV
local AimDampening = 1

local GunModule = {}

function GunModule.RegisterTool(Tool:Tool)
end

function GunModule.UnregisterTool(Tool:Tool)
end

local LastCameraCFrame = Camera.CFrame
local LastRootPartCFrame = LocalPlayer.RootPart.CFrame
RunService.RenderStepped:Connect(function(DeltaTime)
end)

UserInputService.InputBegan:Connect(function(Input, GPE)
end)

LocalPlayer.Update:Connect(function()
end)

workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
end)

function Equip(Tool)
end

function Unequip(Tool)
end

function Shoot()
end

function Reload()
end

--There are more functions like these

return GunModule

Guys is this a good way to handle a tool based fp gun system?

severe cobalt
marsh kelp
grim ridge
#

does anyone knows any free player carry system

ruby iron
#

you're not allowed to offer rewards for likes either

severe cobalt
# marsh kelp > but note that you cant offer rewards for a user favoriting a game against the ...

nvm, use to state it explicitly but cant find it anymore so its probs good now. The guidelines use to say:

Do not create promotions offering prizes of any sort (including contests, raffles, lotteries, chain letters or any kind of giveaway). It is okay to offer players promo codes for in-game items only so long as they are not in exchange for something (e.g., in exchange for a thumb up on your game).

marsh kelp
#

Ty chat

verbal coral
#

we, yes i mean WE, love objected oriented programming

compact spoke
#

dont drag me into this

copper verge
severe cobalt
hot tapir
#

What is RunContext in script?

severe cobalt
hot tapir
#

There were any update that made Legacy RunContext doesn't work?

severe cobalt
#
#

cmon work wifi why do u take 2 mins to send 1 msg

hot tapir
#

Now theres Plugin Context

lilac acorn
#

Guys is it possible to create a realistic Spillage of water from let's say a cup which has water-nature (Water merging with other water)?

severe cobalt
# lilac acorn Guys is it possible to create a realistic Spillage of water from let's say a cup...

yeah but not very detailed unless we get compute shader support https://devforum.roblox.com/t/simulating-water-physics-in-studio/644117

lilac acorn
verbal coral
#

the simulation rate is usually measured in seconds per frame or even minutes per frame, not frames per second

heady acorn
#

😭 😭

dense hull
#

i figure out how to load a image real time into studio 💗

dense hull
prime spindle
#

is it better to just edit data directly to profile service then transfer data to the game. Or is it better to edit data in game(like leaderstats) then transfer the data to profile service.
Example: You pick up a coin or something. It adds 1 coin to the player.
Better to directly +1 coin to profile service then edit value in leaderstats. or is it better the other way around

dense hull
#

just like normal data store dont save everytime someone gets a coin add to an number value and save that number value when the player leaves, if you do that you will hit datastore ratelimit fast.

tame compass
#

Is there an easy way to make images with depth?

#

Or do I just make it in blender and then import

tame compass
#

Like, an image on front and back but at the sides it’s not flat

#

It’s a 3D object

dense hull
#

oh

#

use viewports frames maybe

plain jetty
#

hi someone help me fix bug with button on mobile devices? i can pay

young rock
#
function Equip(Tool)
    local Gun = RegisteredTools[Tool]
    if not Gun then return end

    EquippedTool = Tool

    Gun.ViewModel.Parent = Camera
    UserInputService.MouseIconEnabled = false
    PlayAnimation("Equip")
end
function PlayAnimation(AnimationName, ...)
    local EquippedGun = RegisteredTools[EquippedTool]
    if not EquippedGun then return end

    local Track = EquippedGun.Animations and EquippedGun.Animations[AnimationName]
    if not Track then return end

    Track:Play(...)
    Track.Stopped:Wait()
end

What could be the reason of that delay/flicker when i play the equip animation? (The ViewModel is parented to ReplicatedStorage when its not equipped)

stoic stag
#

oh i see

#

might sound dumb but maybe you arent positioning it at the right moment

stoic stag
#

although im not too sure

stoic stag
#

yea

young rock
#

i dont think there are any other playing animations

#

but lemme see

thorn arch
#

And when you re equip it, the anims overlap

stoic stag
#

yea

young rock
#

oh wait

#

this prints true

#

lemme find which one it is

#

wth

thorn arch
tawny summit
#

how do you get better at coding i am 6 months at coding can write some modular code

young rock
#

@thorn arch @stoic stag it didnt fully solve the issue tho

thorn arch
#

What does it look like now

tawny summit
thorn arch
stoic stag
#

anim:stop()

stoic stag
#

any that are playing before you equip

thorn arch
#

There's no magic keyword that will make you better

#

You just need more experience

young rock
#
function Equip(Tool)
    local Gun = RegisteredTools[Tool]
    if not Gun then return end

    EquippedTool = Tool

    Gun.ViewModel.Parent = Camera
    UserInputService.MouseIconEnabled = false
    local AnimPlaying
    for _, Animation in Gun.Animations do
        if Animation.IsPlaying then
            AnimPlaying = true
            print(Animation)
        end
    end
    if not AnimPlaying then
        print("No animation playing")
    end
    PlayAnimation("Equip")
end

@thorn arch @stoic stag

stoic stag
#

but ur not stopping it

young rock
#

why would i stop it when its not even playing

#

it prints the animation if its playing

stoic stag
#

oh i didn’t see

#

whoopsies

young rock
stoic stag
#

okay let me think rq

#

my only idea is it’s the animation itself

#

you are positioning the core model and then the animation takes time to play

#

instead of being instant

#

check sky frames maybe?

#

keycrames

#

keyframes

#

that’s al ml i can think of

#

i can

young rock
#

okay let me try

thorn arch
stoic stag
#

@young rock gn can’t help no mkds

young rock
tame compass
tawny zinc
#

Can someone give me the bullet points in randomly picking 3 cards out of 20 cards using the GUI (The concept is like TFT). I'm thinking of putting 20 string values in a folder in the player but i dont know how to randomise it

thorn arch
stoic stag
stoic stag
#

were the keyframes correct

#

in the animation

young rock
#

well is it not possible to play animations in rs?

#

because getmarkerreached doesnt work

#

let me make sure

stoic stag
#

i meant animation editor

stoic stag
#

ohhh

#

damn okay

thorn arch
#

Has to be a descendant of a world model

stoic stag
#

i’m not sure then

young rock
#

maybe when i parent the model to a world model

#

it takes time to

#

load the rig or something

#

so theres a delay if i immediately play the animation

thorn arch
#

You're using an animation controller right?

young rock
#

oh

thorn arch
young rock
#

no i use animator inside the humanoid

thorn arch
young rock
thorn arch
#

Use animationcontroller with animator inside

young rock
#

when i add animation controller

#

since the model already has a humanoid

#

the animations dont work at all

#

i can try again tho

thorn arch
somber vault
#

Guys I'm new scripter do yh someone give me suggestions

tawny zinc
young rock
thorn arch
#

Choose a random index between 1 and the length of the array

young rock
#

i use applydescription

#

maybe i can do that manually

#

how do i apply the shirt without a humanoid tho

thorn arch
#

Shirts and pants need humanoid

tawny zinc
thorn arch
#

No

#

Just once

#

Pick a random index n0

young rock
thorn arch
#

n1 = n0+1

#

n2 = n0+2

#

Do math.modf to wrap it around

#

And those are your 3 strings

tawny zinc
#

Oh thanks

thorn arch
young rock
thorn arch
#

Hmm

#

None of the functions should be async

young rock
#

ive been trying to fix this stupid thing since like last week

thorn arch
#
function Equip(Tool)
    local benchmark = os.clock()
    local Gun = RegisteredTools[Tool]
    if not Gun then return end

    EquippedTool = Tool

    Gun.ViewModel.Parent = Camera
    UserInputService.MouseIconEnabled = false
    local AnimPlaying
    for _, Animation in Gun.Animations do
        if Animation.IsPlaying then
            AnimPlaying = true
            print(Animation)
        end
    end
    if not AnimPlaying then
        print("No animation playing")
    end
    print( os.clock()-benchmark)
    PlayAnimation("Equip")
end
#

Run this

#

And show output

young rock
#

its so close to 0

#

0.0006

round pivot
young rock
thorn arch
#

Don't change the parent

#

Just make it invisible

round pivot
young rock
#

also every other game i see uses parenting

young rock
#

let me make it tho hold on

#

@thorn arch

thorn arch
#

I think it might be the anim ngl

young rock
#

something is really off

young rock
#

i dont understand

#

let me make a new animation

thorn arch
young rock
young rock
#

ngl this is gonna make to throw the whole system in the trash

thorn arch
#

🙏

#

Oh wait

#

I think i know what might be happening

#

Where do you call Equip()?

young rock
#

inside .Activated

#

ill show the whole code wait

verbal coral
young rock
#

may be hard to notice in video idk

verbal coral
#

Oh I see

thorn arch
verbal coral
#

@young rock is the view model parented under the tool?

young rock
thorn arch
#

No

verbal coral
young rock
#

oh wait mb

#

.Equipped

#

yeah

verbal coral
#

Ok

young rock
#

not activated

#
task.delay(nil, SetVisibility, true)
PlayAnimation("Equip", 0)

this fixes it

verbal coral
#

I wonder if you delete and create a new animation every time it’s equipped?

young rock
#

no

#

i load it before everything

thorn arch
#

I believe

#

Is that

#

Tool.Equipped can fire at any time

#

And when it fires before rendering is done

#

The viewmodel is parented

verbal coral
#

Holy moly

verbal coral
#

Why is the animation delayed by one frame

thorn arch
#

But the animation doesn't get started

young rock
thorn arch
#

Animation comes after rendering

young rock
#

since it waits till the next heartbeat

verbal coral
#

Ohhh I see

thorn arch
#

So for one frame

verbal coral
#

Equipped fires before render

#

Always

thorn arch
#

It's in the default position

thorn arch
verbal coral
#

Yes it’s input

#

Input is before render

thorn arch
#

Oh yeah mb

#

You can also do task.defer

#

It won't delay by 1 frame

young rock
#

wouldnt work

thorn arch
#

But it should still work

young rock
#

would it

#

lemme try

thorn arch
#

You can try it

verbal coral
#

Wait I’m pretty sure opportunists for resuming deferred threads exist pretty often

#

Often enough that there will be one before render

thorn arch
verbal coral
#

No I mean task.defer

thorn arch
#

Task.defer will resume it at the end of the frame

#

After heartbeat i believe

verbal coral
#

I can’t say for sure but I remember that opportunities for entering parallel execution is synced with deferring opportunities

young rock
verbal coral
#

And u can definitely enter parallel execution before render and after input

young rock
#

doesnt it resume it at the end of the

#

uh what do you call it

#

probably at the end of the input

thorn arch
#

No that would be next frame

#

Task.defer resumes it later within the same frame

young rock
verbal coral
thorn arch
young rock
#

like itd run in the middle of input pro and rendering

#

wouldnt it

verbal coral
#

It would

#

There are many deferred cycles in a single frame, running a deferred thread after input will guarantee that it completes before render

young rock
#

so i should use task.delay or task.wait

verbal coral
#

both works, delay is more concise

young rock
#

task.defer doesnt work

#

let me send video

thorn arch
#

Alr

verbal coral
#

Also I came here to ask a question of whether I should run custom physics simulation steps before or after Roblox physics simulation

young rock
#

@thorn arch @verbal coral thank you guys so much really

thorn arch
#

Np

young rock
#

is there a good article explaining how each section of a frame works

verbal coral
#

It occurred to me that the answer is after

#

🗿

young rock
#

oh wait i didnt see the events part

#

in docs

candid bear
#

Roblox Builder And Modeler Available For Hire

I’m a Cisco a roblox developer specializing in building and 3D modeling. I also work with a great team of partners who handle animation, scripting, and more, so we can bring full projects to life.

💰 I only accept real money payments for my work.
Looking forward to connecting and creating amazing experiences together!

Inbox me now for more

young rock
#

its in runservice

candid bear
#

Roblox Builder And Modeler Available For Hire

I’m a Cisco a roblox developer specializing in building and 3D modeling. I also work with a great team of partners who handle animation, scripting, and more, so we can bring full projects to life.

💰 I only accept real money payments for my work.
Looking forward to connecting and creating amazing experiences together!

Inbox me now for more

young rock
young rock
#

ill just use transparency idec

#

oh wait

#

why not use preanimation

#
RunService.PreAnimation:Once(function()
    Gun.ViewModel.Parent = Camera
    UserInputService.MouseIconEnabled = false
end)
PlayAnimation("Equip", 0)
#

works

thorn arch
#

You can do PreAnimation:Wait()

#

To remove a level of nesting

young rock
#

i made it on purpose

thorn arch
#

I meant

#

You can replace the once

#

With :wait()

#

Then you won't have to pass a lambda

young rock
#

oh right

#
RunService.PreAnimation:Wait()

it took a single line to solve this problem i had for the last week

#

crazy

verbal coral
#

Yo why does your PlayAnimation function yield bruh

prime spindle
verbal coral
#

Lemme see that shi

#

@young rock pls

young rock
verbal coral
#

Yes

young rock
#

uh just this

function PlayAnimation(AnimationName, ...)
    local EquippedGun = RegisteredTools[EquippedTool]
    if not EquippedGun then return end

    local Track = EquippedGun.Animations and EquippedGun.Animations[AnimationName]
    if not Track then return end

    Track:Play(...)
    Track.Stopped:Wait()
    
    return Track
end
#

i mean its easier to use when it yields

surreal ether
verbal coral
#

I cannot fw u no more erylies

young rock
surreal ether
verbal coral
#

Writing asynchronous functions 🤮🤮🤮

young rock
verbal coral
#

I’d prefer to use a callback argument and return a RBXScriptConnection instead

#

Asynchronous flow is so hard track mentally

young rock
surreal ether
slate lotus
slate valley
#

Is there a way to filter messages I just woke up and saw a message froma friend...

verbal terrace
#

Hello, would any scripter like to work on my high quality td game? I already got a scripter and we have done a lot already, but we need a second scripter. The game will release soon for a demo.

#

It isn't another gag td game or toilet tower defense game, but an actual high quality td game with many new mechanics and stuff.

kind pond
#

Blueprint to 3D Mastery – Tutoring for Roblox Developers
About Me: Guided, hands-on lessons to take you from raw ideas to optimized in-game assets


What You’ll Learn

• Fundamentals of Low-Poly Modeling• Blockouts, clean topology, edge flow

• Advanced Texturing Techniques• Hand-painted styling, PBR workflows

• Rigging & Animation Basics• Bones, weights, simple keyframe setups

• Roblox Export & Optimization• Collision, LODs, draw-call reduction

• Pipeline Tools & Shortcuts• Blender hotkeys, add-ons, streamline workflows


Session Offerings

Format Duration Focus Price
One-on-One Coaching 60 or 90 min Personalized pace, direct feedback $30 per lesson
Small Group Workshops 2 hours Collaborative projects, peer review $30 per participant
Project-Based Tracks 4–6 weeks Build a custom asset from scratch $30 per lesson


Tutoring Workflow

Skill Assessment
Gauge your current expertise and goals
Custom Curriculum
Assemble lesson plans with style references
Live Demonstration
Screen-share step-by-step modeling and texturing
Hands-On Practice
Guided exercises with real-time feedback
Project Review & Refinement
Iterate until your asset is Roblox-ready


How to Get Started

Identify your current skill level (beginner, intermediate, advanced)
List 2–3 asset ideas you want to create
Choose a session format and frequency
Gather any style references or inspiration boards
Confirm your preferred communication tool (Zoom, Discord, etc.)

All lessons are billed at $30 each. Share these details to receive a tailored lesson plan and quote. Let’s unlock your modeling potential and bring your Roblox visions to life!

Payment:
:paypal: PayPal: $30 USD
:robux: Robux: 12,000 (ignoring tax)
To be paid per-task.

thorn arch
fair copper
#

what do we think about using observer patterns for state management?

plain jetty
#

someone make me firstperson? i'm making big project i can pay in robux or money only paypal

granite rune
#

who can make styles spin system? like blue lock rivals

plain jetty
#

someone make me firstperson like doors with moving head up and down and sides and with a different speed forward as well as backward and sideways i want this smooth i can pay in robux or money only paypal

somber vault
late nexus
#

because they are probably new

#

but you're absoloutly right

slate valley
somber raft
#

mind helping

static coral
somber raft
#

this script makes the spider follow a target but i cant make it follow the plaer nearby

#

the legs glitch out and stop working

#

its a preceduran animation script

#

so?

#

@static coral

static coral
merry furnace
#

chat is making a train easy if i have a tutorial? never coded smth on my own in my life ever in the history of my existence ever

severe cobalt
merry furnace
severe cobalt
dusty moth
#

Yo

#

Who can help script my game

devout marten
#

any scripters good with mini games? (like fisch) slide me a dm

craggy bay
dusty moth
#

Thats alot dude

craggy bay
#

Of course mate, U want me to script ur game or nah

dusty moth
#

I do but I dont rlly have much on me rn

craggy bay
#

i aint gonna ask for 10 usd, that aint even worth it

#

I should even ask for more than 50

#

anyway i'm playing with yo ahh, I dont code

dusty moth
#

Whatever

tiny island
#

Hey guys, quick question, does this look ai generated. Be honest.
If it does, how would u know?

velvet parcel
#

BrawlDev or TheDevKing

somber vault
#

Can someone help me

naive jungle
#

rpg type game?

#

fps?

buoyant junco
spare ocean
buoyant junco
lethal apex
#

Who can collab? I need a scripter/ui designer!! I can pay percentage!!

forest sky
#

does anyone know a good way to auto move a character

#

like to move in a direction automatically

bleak glade
uneven solar
#

bud

jaunty moss
#

looks good imop

mystic panther
mystic panther
obsidian totem
ember pilot
#

hey there
Im a beginner scripter and I followed tutorials to make a movement system and one to make a stamina bar
However I dont quite know how to combine the two, is there anyone that could help me with that?

obsidian totem
#

also is roblox down for anyone else?

obsidian totem
ember pilot
#

I dont quite know how to make the sprint stop when out of stamina though :/

peak sphinx
#

good luck on the game unless its something super basic

mystic panther
#

does this apply staate for my state machine look alr? im worried removing like that may cause conflicts when i start on combat stuff

mystic panther
#

and follow up question, should i handle effects like burning, poisoned etc in this too? or should it be seperate and handled in combat scripts

merry furnace
merry furnace
bleak glade
#

where the effects are components

mystic panther
#

im new to scripting

bleak glade
#

apart of DOD

mystic panther
mystic panther
bleak glade
#

assuming you have an entity that can be binded to these effects

mystic panther
#

ok cool

subtle sage
open yarrow
mystic panther
mystic panther
open yarrow
open yarrow
#

if you know how to use dictionaries you can make a status effect system incredibly easily

mystic panther
open yarrow
#

ecs is cool but its probably far overkill for what u need

#

im not gonna like outright say u shouldnt

#

but u can just create a status effect dictionary for the player and add entries in the respective effect category

mystic panther
open yarrow
#

the downside is structuring just takes a bit longer

mystic panther
open yarrow
#

my perspective is prob a bit different cause ive been scripting for some 4 years but it was mostly just a bit tedious

#

i personally think its rlly cool but unneeded in 90% of cases

#

but it was a feature of an old framework i used to work on with a friend

mystic panther
#

alr

uneven solar
hollow dew
#

yo anyone wanna work on a semi- complete game with me not that good let me know (scripter) or (builder) dm me

uneven solar
#

NO

#

ur hiring

#

MODS BAN EM!

merry furnace
split goblet
#

Whats the best way to make a car collision system?

#

or car crash system with damage and stuff

proper edge
#

.cancollide

stiff meadow
#

probably .can67

cosmic tartan
#

Im having real trouble with learning how to code ):

dusty moth
#
local CoreEvent = game.ReplicatedStorage:WaitForChild("CoreEvent")
local Player = game.Players.LocalPlayer

CoreEvent.OnClientEvent:Connect(function(eventtype, Arg1)
    if eventtype == "LockBase" then
        local Base = Arg1
        if Base.Owner.Value ~= Player.Name then
            Base.WallLock.CanCollide = true
            
        end
        
        for i,v in pairs(Base.Lasers:GetChildren()) do
            v.Transparency = 0.5
        end
        
        for i = 5,0,-1 do
            Base.LockBase.LockGUI.LockText.Text = i.." second(s)"
            
            task.wait(1)
        end
        
        for i,v in pairs(Base.Lasers:GetChildren()) do
            v.Transparency = 1
            
        end
        
        Base.WallLock.CanCollide = false
        Base.LockBase.LockGUI.LockText.Text = i.."Lock Base"
        
        end
end)``` Yall its showing me an error for this script anyone Help?
solar inlet
#

Which is the func that make the pop up with “like the game” appear?

dusty moth
#
Base.LockBase.LockGUI.LockText.Text = i.."Lock Base"``` this is the error
#

UnknownGlobal: (28,41) Unknown global 'i'

proper edge
#

i doesnt exist

#

because it isn't defined in the scope

dusty moth
#

what do i change it to

#

should i just remove it?

fair copper
#

guys what are your thoughts on observer patterns, whats better, observers or setter and getter global state managements

tender aspen
dusty moth
#

use ` 3 times and put lua and your code then the close it off with same thing as the first step

#
yo```
static coral
tender aspen
#
local damaged = {}

for _, player in pairs(game.Players:GetPlayers()) do
    local character = player.Character

    if character and player.Name ~= script.Parent.Parent.Owner.Value then
        local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
        local humanoid = character:FindFirstChildOfClass("Humanoid")

        if humanoidRootPart and humanoid then
            local distance = (humanoidRootPart.Position - script.Parent.Position).Magnitude

            if distance <= 10 and not damaged[player] then
                damaged[player] = true
                print("Damaging", player.Name, "from fireball", script.Parent.Name, "Time:", tick())

                humanoid:TakeDamage(10)
            end
        end
    end
end ```
dusty moth
#

lua

tender aspen
#

💀

dusty moth
#

💀

#

💀

#

💀

tender aspen
#

It is ignoring it like the debounce isnt there

fleet drift
#

anyone here a new/beginner scripter i'm looking for a buddy or two to learn with

before anybody asks i learn better with people

fleet drift
spare ocean
wary swift
#

Can someone give me some ideas on what to script next? Chat gpt gives me the same ones over and over again

#

I've made a simple clicker game with datastoring and rebirths until now

fleet drift
#

i'm very new

wary swift
#

Watch brawl devs tutorials

#

they are very helpful

fleet drift
#

yes i watched them

devout marten
#

looking to hire someone to script a mini game system dm me

slim bolt
#

i want to create a pls donate stand but i have api service and https enables but gamepasses doesn't work

broken sedge
#

what i need to know to do a combat system?

uneven solar
#

all new faces

#

good to knopw

signal meadow
#

just experience

fleet drift
#

im practicing a lot rn

#

but it's super hard

#

like i run into problems with thinking

signal meadow
#

get some base game idea, and expand the features, if you don’t know how to do smth what u want, check on the forums or ask chatgpt to write it and analyze the code/try to write on ur self and then ask ai for the code and see what he did and what you did

signal meadow
#

with proper knowledge

fleet drift
#

so if i want to do a simple system i can't even come up with a proper system like i come up with complicated semi solutions

#

and then i look at the answer and its completely diff

#

like that framework is diff ykwim

signal meadow
#

yeah so write it up, and see how others are doing it by open sourced modules/tutorials, so next time you know what to do and not

#

yk what i mean

#

just practice and get some lessons from your mistakes

#

remember what u did wrong

fleet drift
#

alr

honest tapir
#

Greetings guys iam really eager to learn scirpting in roblox can anyone help me in it?

tame compass
#

Try watching these

clear forge
tame compass
#

And ask people here if you don’t understand something

clear forge
#

very very useful starting out

#

dont copy and paste code alot

#

you wont learn anything

#

if you need to (you will starting out and even later on) look at other peoples code try to understand it

honest tapir
#

thx guys for your advice and suggestion i will watch yt videos and try to learn

#

can you guys accept my friend request if in case i need your help i can contact you

tame compass
#

Okay

quasi inlet
#

im new

uneven solar
quasi inlet
#

iv been thinking about making a roblox game and want to make one with chatgpt does anyone have any idea how to do that

hushed cargo
quasi inlet
#

im down to learn scripting also dm me

#

i would also like to learn scripting whith somone

shy shuttle
#

@devout knot ^

blazing oasis
#

Scripters whst is more. Efficient working on multiple games in the same day ( and getting little done in each game) or working on one game at a time. ( I do the first one that's horrible ik🔥😐)

glass narwhal
#

anyone know where to find any good game balancers?

static coral
blazing oasis
#

Is it actually faster?

#

Alr bet

somber vault
#

its the more logical thing

blazing oasis
#

Ok

somber vault
#

scattering your focus between different projects will only confuse you

blazing oasis
#

Alr

somber vault
# broken sedge what i need to know to do a combat system?
  • Remotes
  • hitboxes (GetPartsInPart is a useful function)
  • UserInputService + ContextActionService
  • Server Side cooldowns
  • how to make a State Machine
  • animation events (can be used for creating hitboxes at a certain time in an animation)
  • velocity objects (if you want things like dashing + knockback)
  • how ragdolls work (if you want ragdoll combat)
  • RunService + deltaTime

that's all i can think of that would go into an average combat system

regal heath
#

"how to operate a state machine"

somber vault
#

state machines can be as simple as character attributes

#

but that's not the best way to do it

fair copper
#

what about observers

broken sedge
#

what is state machine

regal heath
#

kind've broad when you say it like that, attributes alone cannot operate as states

sharp finch
somber vault
somber vault
regal heath
sharp finch
fair copper
sharp finch
#

http s://x.com/TotallyNotTS48/status/1956379303223943197/photo/1

somber vault
#

ragebait, even

sharp finch
wispy lake
#

atrributes dont allow instances.....

#

gr............

somber vault
# broken sedge what is state machine

a basic explanation would be:
a state machine would be used to track every players current state like: blocking, sprinting, dodging, attacking...

they're great, good luck making the combat system

wispy lake
#

np

devout marten
#

anyone good with mini games like fisch/dig? (paid)

somber vault
devout knot
#

@shy shuttle

#

@quasi inlet

vale flax
sharp finch
#

ask totallynotts48 on x

vale flax
#

I dont use twitter and I don't plan to

zenith shore
vale flax
#

so it does

#

lmaooooo

umbral carbon
vale flax
#

ok

dapper oriole
#

idk how yall can do this. luau is the worst (game) scripting language I have ever used in my life

little crest
#

The only thing that really suck imo is the dev tooling which is absolutely trash compared to js/python etc

#

I'm a rbx ts dev for this reason but I miss lua sometimes...

languid isle
#

just curious, would modules be a great way to pass data (specifically settings for an example: showing hitboxes) , so when the client is fully loaded in (including the data), would it be an good idea to save the data to a module that the client can access and then when the player leaves, the data currently saved would be overriden by the changes made for an example the player disables hitboxes from being shown.

little crest
#

Lua doesn't have classes, well ye, so use alternative to objects (ecs propaganda)

languid isle
# little crest Bro this is not understanble

maybe you're a bit slow, but i'll explain it more better, ok, so, i've got a data store in which it saves the user's settings, which are customised to change certain aspects about the game, more about the visualisation (such as showing how big the hitboxes are) and so on, i was wondering if a good way to save this was through using a module, so basically, the settings that were changed are passed onto the module which then passes it back to the data store to save.

little crest
#

I'm not slow bruh I ve read it on the other channel

languid isle
little crest
#

What module

#

This looks like a profile

languid isle
# little crest A module

like it passes on the current settings to a local script which basically tells the script:

  • what settings should be set to true and ect
languid isle
little crest
#

Then just use profile store ig

languid isle
little crest
#

?

#

This is just the normal way of treating preferences anyway

#

Idk how u d otherwise

vale flax
#

hope you aren't saying that cuz ur struggling

unborn sedge
#

ik nobody cares but i am so happy i just made my first script

dapper oriole
#

im seemingly reinventing the wheel for every minor feature or because the roblox API is worthless so now I need a 200+ line module to make it usable

onyx saffron
#

@modest rain

#

Acct got limited bro

#

Can you send me invite to your discord server or smt

verbal igloo
#

all dis til devEx stop hitting 😭

celest cipher
dark girder
#

Im hireing coders etc

#

dm me 1000 robux

#

paying

void dock
#

DM me 1000 robux to script for me

celest cipher
faint mountain
#

i need some help with a simple script pls dm

celest cipher
sudden estuary
dense hull
tame compass
#

Still, your joke made my (last) day

devout marten
bronze dome
#

are character controllers actually good for making a custom movement system

gloomy kraken
bronze dome
#

I have a pet peeve with how the character controllers acceleration just feels like moving on ice. I would like to change that acceleration curve, but I can’t

split mantle
#

looking for ppl to make slop games w/ (prof scripter w/ 3 yrs exp)

midnight cloak
#

ok so tell my why ma2 is 30 fucking dollars now bro😭

lapis sapphire
#

Does anyone got a script to disable the Leaderboard when you click Tab?

#

I made a custom leaderboard instead.

#

I don't want the main one.

coral oracle
#

Guys I have a brilliant lore to tell

#

If you are scriptrr

#

You are a scripter

lapis vapor
coral oracle
#

Why here

lapis vapor
#

hold up rq

#

yea no just let incsh give u a script

viscid dew
#

scripter for free dm me

velvet parcel
#

what does type mean? cus i never got shown on yt

woeful epoch
#

I need the bluntest answer possible: is Lua hard if I have some background in python? (VERY LITTLE EXPERIENCE)

flat bane
#

@woeful epoch kid has two spaces in his message