#code-discussion

1 messages · Page 265 of 1

ripe hinge
#

Local part = workspace.part

Part.ClickDetector.MouseClick:Connect(function()
do wtv here
end)

dense drift
ripe hinge
#

Yes just do local part = workspace.sssPart

dense drift
#

i thought game.Workspace was the proper order

ripe hinge
#

You could just workspace you don’t need game

#

It’s an exception

spiral flax
ripe hinge
#

Holy

dense drift
#

the bestfriend with that wall-e clanker

#

still looks cool

ripe hinge
dense drift
#

is this right?, local Part = Workspace.sssPart

Part.ClickDetector.Mouseclick:(function()
local clone = Instance.new("Part", workspace)
clone.Position = Vector3.new(6, 15, 0)
print("Cloned this part")
end)

#

print was just extra

ripe hinge
dense drift
#

wait theirs a errror

ripe hinge
#

Yea

dense drift
#

part?

ripe hinge
#

What’s the error say

dense drift
#

ServerScriptService.Script:3: Expected identifier when parsing method name, got '('

ripe hinge
regal salmon
ripe hinge
#

clone.Parent

regal salmon
#

it's in the message

tiny gazelle
formal acorn
#

before trying to script

#

trust

ripe hinge
dense drift
formal acorn
formal acorn
ripe hinge
#

Why’d you tag it out cryingdead

formal acorn
ripe hinge
tiny gazelle
uncut dawn
#

what you need to script

dense drift
#

wait where do i put the clone.parent

tiny gazelle
ripe hinge
dense drift
#

couldent be where local clone is, right?

tiny gazelle
tiny gazelle
ripe hinge
regal salmon
formal acorn
#

looking for work on text channels 😻 >>

ripe hinge
dense drift
formal acorn
regal salmon
ripe hinge
dense drift
dense drift
ripe hinge
#

Workspace.sssPart?

ripe hinge
#

You wanna make the clones child of the sssPart

dense drift
ripe hinge
regal salmon
#

you dont need to pass anything in this case though since you never use it

ripe hinge
#

They aren’t doing anything with it so it’s fine

regal salmon
#

also, didnt see, but you should remove the workspace argument in Instance.new

regal salmon
#

yup

dense drift
#

k

#

says this now

plush zenith
#

is there a way to avoid recursive module references?

dense drift
#

ServerScriptService.Script:2: attempt to index nil with 'Parent'

granite igloo
ripe hinge
#

Send the script

dense drift
#

also think i fixed capitilization

dense drift
# ripe hinge Send the script

local Part = Workspace.Part
clone.Parent = workspace.Part

Part.ClickDetector.MouseClick:Connect(function()
local clone = Instance.new("Part")
clone.Position = Vector3.new(6, 15, 0)
print("Cloned this part")
end)

regal salmon
#

why did you move the parent set outside the event?

ripe hinge
#

clone hasn’t existed yet

#

set the clone’s parent after you created it btw

regal salmon
#

^

uncut dawn
hard garden
#

hi chat

dense drift
hard garden
#

does anyone use rojo here

ripe hinge
dense drift
#

on episod 16 rn but stopped to create shi

uncut dawn
#

watch brawlDev dev king is old

regal salmon
#

i doubt theres a significant enough difference for it to matter

dense drift
regal salmon
#

theyre both gonna be using outdated code anyway

plush zenith
#

idk why

granite igloo
ripe hinge
hard garden
#

does anyone know how to port rbxm to rojo projects

granite igloo
#

like which modules require each other

#

recursively

plush zenith
#

mhm sure

dense drift
plush zenith
#

could we go to dms so our messages don't get missed btw?

dense drift
#

atleast the beginner

granite igloo
#

ye sure

ripe hinge
#

Man it’s been that long cryingdead

regal salmon
hard garden
regal salmon
#

you should use brawldev's for more updated information, but if you find devking easier to understand, i dont see why you should switch

dense drift
#

ServerScriptService.Script:4: attempt to index nil with 'Parent'

ripe hinge
#

Ngl how I learned to code 40% from free models, 30% from brawl dev, 10% from friends, and 20% from dev forum

dense drift
#

thats a thing right

dense drift
# ripe hinge Send the script

local Part = Workspace.Part

Part.ClickDetector.MouseClick:Connect(function()
clone.Parent = workspace.Part
local clone = Instance.new("Part")
clone.Position = Vector3.new(6, 15, 0)
print("Cloned this part")
end)

regal salmon
ripe hinge
#

Ye

regal salmon
#

clone doesnt exist before its declared

ripe hinge
#

You set the parent before the part even exists

ripe hinge
# dense drift reverse engineering?

More of like I copy and pasted existing code, like a teleport script, and eventually copy and pasted so much I learned how to move the player’s model.

#

Stuff like that

dense drift
#

YESSSSSSSSSS

ripe hinge
#

I made a buncha free model games when I was still learning

#

But polished it like it wasn’t a free model game (still was pretty apparent since things didn’t even blend with each other)

#

One of them was a obby game which had a buncha teleporters

ripe hinge
ripe hinge
dense drift
ripe hinge
#

Thing is you might be missing the polish aspect.

#

Since I still tried to understand what the code was doing at least to try to make it seem like it wasn’t a free model game.

dense drift
#

assuming the game i still didnt know jack

ripe hinge
#

The game I made like 2 yrs ago

#

Anyways my best advice is to just continue making. Start small then build off of it.

dense drift
ripe hinge
#

Aight no problem

#

DMs always open if you ever need help again

dense drift
spiral flax
#
setfenv(1, Service:GetEnvVars(getfenv(1)))```

never realized how goated
#
local Service = require(game:GetService("ReplicatedStorage").Shared.Service)
:SetupClientVars()
:LoadModules({
    {path="shared/Modules/Math/ProceduralAnimator", as="Animator"};
    {path="shared/Modules/Math/Wobble", as="Wobble"};
    {path="shared/Modules/Tools/Input", as="Input"};
    {path="shared/Modules/Tools/Iris", as="Iris", initCall=".Init"};
})
:SetEnvVars()

print(Wobble)```

grouped modules but i can still call it without indexing
hasty mesa
spiral flax
hasty mesa
#

for roblox to do optimzations

#

and unpredictable

#

to what you will do

spiral flax
#

ok so the functions affected with setfenv or getfenv aren't inlined

#

thats stupid

hollow hemlock
#

how so

#

it breaks certain guarantees

spiral flax
#

yeah well i wanna do what im doing without it having a performance cost 🤣

peak jolt
formal acorn
#

what are your thoughts, how much should i take for that

sullen nimbus
#

150k

formal acorn
#

ts way too much

sullen nimbus
#

depends on the quality of your work

#

and the client

#

this is a whole game

fallen latch
#

lowkey just look at the budget of the user

#

but 150k would be good lowkey

#

plus ur skill and experience also adds to the amount of cash

regal salmon
#

i got a similar amount for finishing a game, not even doing the whole game lol

bold belfry
#

What's the best way of HTTP requesting the Roblox website from a roblox server script?

cloud palm
#

someone please help me fix this script:
local proxy = script.Parent
local sound = proxy.Parent:WaitForChild("Sound")
local sound2 = proxy.Parent:WaitForChild("Sound2")
local item = proxy.Parent.Parent

local isActive = false -- BOOLEAN

item:GetPropertyChangedSignal("Parent"):Connect(function()

if item:IsDescendantOf(workspace) then
    isActive = true
else
    isActive = false


    if sound.IsPlaying then
        sound:Stop()
        print("sound1 stopped")
    end

    if sound2.IsPlaying then
        sound2:Stop()
        print("sound2 stopped")
    end
end

end)

proxy.Triggered:Connect(function()
if not isActive then return end

sound2:Play()

end)

sound2.Ended:Connect(function()
if isActive then
sound:Play()
end
end)

peak jolt
#

tf is a boolean

cloud palm
vocal forge
#

anyone interressted to work with me on this game? its with brainrots, and i want a weather effect and cool atmospheric effects for the event itself. anyone that can help me with this?

vocal forge
edgy falcon
#

hey guys im looking to get some feedback from you, how much would you realisticly charge for game like this to be recreated 1:1?

Quick breakdown:

-# - Cases:
-# - - Opening cases, pretty much a simple system, different rarities and items you can get from different "case" entities, all customizable, case opening sequence and results, allowing you to open it again if you got enough currency, or go back (You can open up to 5 cases at a time)

-# - Case Battles:
-# - - Basically the same thing but each contestant thats inside of a created battle gets one case, up to 5 players at a time, and whoever gets the most out of it in "Cash" gets everyones drop. (Skins)

-# - Trading:
-# - - Simple skin exchange with other people no requirements.

-# - Rewards:
-# - - Hourly rewards granted to you as free cases, or currency.

-# - Stats:
-# - - Basic stats showing basically your whole story inside of the game with how much cases have you opened, how much you spent, won, time spent inside of the game, etc.

-# - Settings:
-# - - Customizable settings per user to mute sounds, shadows, and stuff like that.

-# - Leaderboards:
-# - - Shows top players in different categories such as opened cases, top earned, top sold or something like that

-# - - At this moment we have the whole ui done with animations so theres no need to script anything like that, just the core systems

-# - - Not sure if i explained everything correctly but how much do you guys think such game would cost realisticly?

#

im looking to get a quick rough estimate if possible so i know how much can i realisticly pay someone to not overpay thanks again

edgy falcon
static coral
#

oh

#

just convert that with devex rate

edgy falcon
#

well would come up to 250$ i believe

#

my guy wants 400$ at the moment so im not really sure

steel vessel
#

$250 bucks for a full game

#

If u pay someone $250 for this you’ll have a very ass game

#

Im surprised people do it for $400

edgy falcon
#

i mean 400$ isnt that bad, how much would you do it for then?

steel vessel
edgy falcon
#

yeah.. me 😭

steel vessel
#

Which comes out to 60-70 usd an hour avg

#

Effective work, not your 9-5 mentality

edgy falcon
steel vessel
#

So i can charge for it

edgy falcon
#

i believe thats too expensive for most of the roblox small time creators

#

but people dont pay for work in your case they pay for reliability and speed so yeah good for you

steel vessel
#

Ye i totally get that ofc. But i charge that when you need me for the whole night

edgy falcon
#

yeah that makes sense lol i mean me my self i used to charge by the project now since i have barely any time i charge much more and still get the same amout of clients

steel vessel
#

A good engineer would want at least >$1k

edgy falcon
#

but thanks honestly

steel vessel
#

If ure a programmer and the $400 feels fine

#

Then go for that

static coral
steel vessel
#

If ur game gets popular you really dont want ass code as you cant keep up the momentum for updates

static coral
#

unless u got some divine intellect

edgy falcon
#

i thought like 250 bucks would get us such game honestly, there are some programmers which could be up for that but the prices vary so much tbh

steel vessel
#

Thus thats what they charge as

edgy falcon
static coral
#

yeah but this is roblox

edgy falcon
#

most of "game creators" here at hiddendevs dont really have spare 120k fr

steel vessel
#

And the top devs earn hundreds of millions

static coral
edgy falcon
#

they are lookin to get some good but also budget work get done

steel vessel
#

The top charges for top work

static coral
#

not every person and their mother is roblox multi millionare

steel vessel
#

And the top pays

patent gorge
#

looking for testers willing to pay 50 robux DM me

steel vessel
#

If you run 150k in revenue you made back your dev

#

And this is easy af

edgy falcon
# steel vessel This is a medium charge too

i mean i used to charge low since i was still in high school and i mean thats honestly not bad for being a roblox programmer but now ever since i barely have any time i charge way more but i also try to make up for it lol

#

but at the other hand when hiring someone i expect it to be as cheap as possible 😭

#

this is hard

steel vessel
#

i understand lol

#

Go for the $400 if he actually does the job

edgy falcon
#

well it also depends where are you from though, 250$ for some people is alot of money, for some its barely enough to get through the week lmao

edgy falcon
scenic lichen
#

But if youre talking about 1 client

#

I can see it costing 400 yeah

rapid eagle
#

quit yappi

rapid eagle
shut quail
hard garden
rapid eagle
rapid eagle
hard garden
shut quail
rapid eagle
rapid eagle
shut quail
rapid eagle
hard garden
outer hare
#
local function SpawnNPC()
    local TotalWeight = 0
    for _, npc in ipairs(NPCS) do
        TotalWeight += npc.Chance
    end

    local RNG = math.random() * TotalWeight
    local Counter = 0
    local SelectedNPC

    for _, npc in ipairs(NPCS) do
        Counter += npc.Chance
        if Counter >= RNG then
            SelectedNPC = npc.Model:Clone()
            break
        end
    end

    if not SelectedNPC then
        warn("No NPC selected to spawn!")
        return
    end

    SelectedNPC.Parent = workspace

    if not SelectedNPC.PrimaryPart then
        for _, part in ipairs(SelectedNPC:GetDescendants()) do
            if part:IsA("BasePart") then
                SelectedNPC.PrimaryPart = part
                break
            end
        end
    end

    if not SelectedNPC.PrimaryPart then
        warn("NPC model has no BasePart: " .. SelectedNPC.Name)
        SelectedNPC:Destroy()
        return
    end

    local spawnPart = workspace.DefaultMap.Spawners.Common
    local size = spawnPart.Size
    local cf = spawnPart.CFrame

    local offsetX = (math.random() - 0.5) * size.X
    local offsetZ = (math.random() - 0.5) * size.Z
    local spawnY = size.Y/2 + SelectedNPC.PrimaryPart.Size.Y/2 + 0.1

    local randomRotation = CFrame.Angles(0, math.rad(math.random(0, 360)), 0)

    local spawnPosition = cf.Position + Vector3.new(
        cf.RightVector.X * offsetX + cf.LookVector.X * offsetZ,
        spawnY,
        cf.RightVector.Z * offsetX + cf.LookVector.Z * offsetZ
    )

    local spawnCFrame = CFrame.new(spawnPosition) * randomRotation

    SelectedNPC:PivotTo(spawnCFrame)
end

What's the possible issue in this?

wet marsh
#

any errors?

outer hare
# wet marsh any errors?

Sorry, I forgot to run that function 😭 Literally spent an hour trying to find out what was the actual problem.

wet marsh
#

happens to the best of us

worn wolf
#

is it fine to have multiple process receipt scripts in the serverscriptservice or will things mess up?

terse trail
#

i have a question

worn wolf
#

im struggling to make everythin work in 1

#

so im thinking its easier if i just split them up

#

cuz i kinda suck at scripting /:

terse trail
#

im pretty sure u only need one

terse trail
hard garden
bronze lynx
rapid eagle
hard garden
rapid eagle
hard garden
half cobalt
#

looking for animators,vfx,scripter to work on my game am creating,i also have a investor
i can show some progress in dms

foggy belfry
#

does someone know how to make a sword system like type soul, i also have a link for inspo

acoustic totem
#

Hlw..

rapid eagle
waxen edge
#

yo

rapid eagle
#

yo

waxen edge
#

yo is my data validation looking good?

hard garden
rapid eagle
#

nope

rapid eagle
waxen edge
rapid eagle
waxen edge
#

q

rapid eagle
waxen edge
#

idk gng

hard garden
rapid eagle
hard garden
hard garden
rapid eagle
hard garden
tough vapor
rapid eagle
#

it means ultimate chopped

#

like max u can be chopped

tough vapor
rapid eagle
tough vapor
rapid eagle
jade terrace
#

@tough vapor

tough vapor
jade terrace
#

U do comms?

tough vapor
#

Y?\

jade terrace
rapid eagle
honest heron
#

any acripters wanna help make a game

tough vapor
#

@honest heron , because no one will help u for free

honest heron
#

Like its money but

honest heron
rapid eagle
honest heron
rapid eagle
honest heron
tropic veldt
#

Yoo

#

So I have a tower game with 200 average CCU

#

But it only got like 300 Robux in the past 3 days

#

Is that normal or am I cooked?

tough vapor
tough vapor
tropic veldt
#

it has like 10

tough vapor
tropic veldt
#

okay

tough vapor
#

You made no money cuz you dont have dev products 😭

tropic veldt
#

Yea lol but idk what to add

tough vapor
#

What your game about

tropic veldt
#

Its like you have to climb a tower and theres a worm trying to kill u

tough vapor
#

oh the worm tower type games?

tropic veldt
#

yea

tough vapor
#

just add the same type of dev products in the other games if you really dont know what to add

#

trust bro that will get you money

#

Like if a player die make a button go on screen for 19R$ where they respawn where they dies with their brainrot

#

That alone could get you more money cuz most can afford

tropic veldt
#

okay thanks

tough vapor
#

NP

tranquil dagger
#

alr

unique drum
#

Is there a down-side to script registry that I'm not understanding? It feels like I would have seen more people talk about if it's as useful as I think it is

scenic lichen
#

did you spend all your money on thumbnails and nothing on the gui 😭

#

okay well ur thumbnail game is strong but ur guis are kinda ehh

#

set the anchor point for all these buttons to 0.5 , 0.5

#

did you mean organs bro 😭

#

you should probably fix that cause i dont think that words allowed on roblox

heady spire
#

if i was to make a laser beam typa ability that follows the players mouse how would i go about getting the mouse position on the server constantly
currently my script just fires the mouse once to the server after a key is pressed that corresponds to an ability, how can i change the input of the framework (if i should) to be able to apply it to an ability like a beam that tracks

karmic nest
#

A client wanted me to make a wizard game where the player runs in a 2D platform straight away from the wizard (enemy player) and the wizard can select hexagons as pieces if the terrain, either to obliterate or make it lava. Once u are finished you gamble with boxes that cost 200 wizards. To get skins or ablities. So heres how Id do this. the wizard game should be easy in my opinion technically I would just put hexagons in folder make a UI for the mobile players and PC players using offset then if ui/button is pressed then selected area becomes lava/gone based on wht the wizard wants. Then if player passes give them 200 credits and then if the player has 200 credits they can gamble depending on what variable they roll its added to the stats so if they get speed 2 16 + 2 = 18 walkspeed. Etc etc. And I also use gambling system and evenly split chances for someone to be the wizard, the last wizard CANT be a wizard so if theres 5 players but one of them was the last rounds wizard then its 25 25 25 25 instead of 20 20 20 20 20. Make sense guys?

heady spire
#

wdym

carmine yacht
#

the way to get the mouse position on the server is to fire it from the client to the server

#

as for the beam

#

do all players need to see it

heady spire
#

yes i have that working rn anyway idk how to get it to constantly send tho for like a holdable aimable laser beam typa ability

carmine yacht
#

loop

heady spire
carmine yacht
#

or the beams trajectory with a raycast

bright siren
#

invoke the client for the mouse pos

#

use unreliable remote events too

heady spire
#

mmmm

carmine yacht
bright siren
#

because its a constant beam kind of move

heady spire
#

i forgot about those

carmine yacht
#

are u ragebaiting

#

definently do not use a remotefunction with invokeclient

#

unreliableremoteevent is fine

bright siren
carmine yacht
#

if someone is exploiting they can just never return a response

#

causing the server to hang

heady spire
#

i see

carmine yacht
#

and overtime that builds up and can crash a server

#

so yea

#

unrealiableremoteevent is a good option

#

but you just have to ensure that there is an order

#

otherwise your beam will bounce around between the positions instead of actually following the mouse

carmine yacht
heady spire
#

i see i think i get it

#

ill jus try something im kinda new to scripting so im just experimenting on tryna make stuff as robust as possible

carmine yacht
#

simple idea as well

#

but you can learn about optimization and replication

tawny seal
#

hi can anyone help me with something

neat siren
#

gimme packages ideas to make

#

like something yall would need

#

lol

carmine yacht
#

package

tawny seal
#

can someone help me with some code please

carmine yacht
carmine yacht
tawny seal
#

oh thank you

#

how does the function know what 'otherPart' is defined as?

script.Parent.Touched:Connect(function(otherPart)
  local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
carmine yacht
#

But for example if I have let's say a wall and I walk into it with my character, it's safe to say that most if not all of the parts in the character (hat handles, legs, arms, etc) will be passed as otherPart one by one

tawny seal
#

and, does it have to be called 'otherPart'? Or can it be named something else? I've also seen 'hit' being used

carmine yacht
tawny seal
#

are there like certain words that have certain functions

#

i've also seen onTouch

blissful turtle
#

is that why???

carmine yacht
#

I.e the variable cannot be named 0Part, cannot be named touch part, cannot be named .part, etc.

keen sedge
#

looking for a scripter - add me pvp game for dc superheros each character finished = 10k robux

carmine yacht
#

And preferrably not named anything like type, script, etc. all the reserved keywords

tawny seal
tawny seal
#

btw, are there any like courses i can take that give me exercises or teach me LUA

carmine yacht
#

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

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

▶ Play video
hot copper
stone vapor
#

is it ok to use nested loops for my invetory system to see which slots are avaible?

stone vapor
#

but basically client send a remote function ,server return table of player invetory and player loops throught it

hot copper
#

Loops to get the smallest available index?

#

U could just do #inventoryTable + 1

stone vapor
#

wym

hot copper
#

U want to find all the available slots?

#

then yea u gotta use a for loop

stone vapor
#

il show u ui structure

hot copper
#

Okay but thats not the thing

#

thing is how does is the inventory table structured

stone vapor
#

its a dictionary with the key being Item and inside other table with name and description

opaque thistle
#

iv been facing a problem where my ragdolls have crazy latency ( when enabled on the server-side ) i tried making them client sided and this happened. how can i fix this :p

stone vapor
#

i sent it on dms bc doesnt let me send pics here

carmine yacht
#

obviously docs are way better

ashen valve
#

hihi is there anyway to "Remove" a player data LetMeCook

forest bear
#

how do you make purchase processing screens or whatever its called, like e.g. you buy a dev proudct and in the background a ui appears saying like processing or whatever

lusty blaze
#

any1 wanna satrt a dev group 4 fun

fluid glade
old forum
#

hi

hard garden
hot copper
#

its objectively better

hard garden
hot copper
#

I mean no one knows at the start that reading the docs is better

#

I dont blame anyone i started with yt tuts too

hard garden
hot copper
#

But i would have learnt much better

#

if i started by reading the docs

hard garden
#

its just hard to understand what does this or that mean even though you already searched it on docs

#

that's the issue with me

#

so i find it easy if i had to search it on yt or simply ask chat gpt

hard garden
scenic lichen
#

how do games like steal a brainrot and grow a garden handle mutations from events? Do they run a random roll every couple of seconds for all mutatable instances for the duration of the event? or do they roll once at the start of the event and then just delay the mutation to make it seem like the timer matters?

solid rain
#

does anyone know how to make terrain dissappear with streamingenabled?

fluid glade
#

sure

#

i can teach u couple of things

solid rain
#

follow nice tutorials like brawl dev if ur looking to script roblox lua

#

and u can ask questions in private for help

#

to me aswell

#

if it is lua

prime flax
#

does anybody have an idea of what I should script for the LuaU application

#

i dont have any ideas for a 200 line single script

prime flax
#

?

hoary cedar
#

The language is called Luau, not LuaU

#

Pronounced "loo-ow"

prime flax
#

ok?

hoary cedar
#

Anyways, take a look at my GitHub in my bio. I upload random scripts that are around that line count

hoary cedar
# prime flax ok?

Hey man, if you're tryna earn a role that signifies experience in the language, knowing its proper name is a start 😂

dense drift
#

im following a devking tut for leaderstats and it says the script i made dosnt work since players is not a valid member of fatamodel for the game, can any1 help

prime flax
vernal peak
#

What are the modules that are init last called? Are they core modules or dependencies

#

A

scenic lichen
dense drift
hoary cedar
#

If a module is required, it is a dependency

scenic lichen
#

send the script

dense drift
# scenic lichen send the script

game.Players.PlayersAdded:Connect(function(player)

local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"

local Points = Instance.new("IntValue", leaderstats)
Points.Name = "Points"

end)

vernal peak
# hoary cedar They have no name

Bro cuz I got my weapon manger and input manager last init so all controllers can connect to them before they fire, but idk what to do with my plr state module. I have it init first bc controllers need that to be done in order to work but I don’t want to call it A controller and I can’t call it a manager since it’s init first

scenic lichen
#

remove that s boii

dense drift
scenic lichen
#

lol next time just put it through ai dude it fixes up spelling errors fast

#

wont have to wait for someone to respond

dense drift
#

yah but didnt want to open google so i opened dc

#

meant new tab

cinder basalt
#

with a ;3

scenic lichen
cinder basalt
hard garden
graceful gyro
#

I have a question I’m kinda new to scripting and when I see ppl do script for ability’s and combat system some do it complicated and some simple is it better to do simple scripts or not and if yes or not why is that could smb tell me pls

strange umbra
frail plaza
#

why uh

#

why is the gui above the view?

#

i set them to -10000 zindex

kind spire
#

Hey guys, I'm currently working on a big project and I keep hearing that big games have to be in TS or you have to use this framework, etc. I want an honest opinion on what's the best way to get my game out there.

edgy falcon
#

it should put it above all other ui

#

its just how roblox studio works dont ask me 😭 it happened to me many times before

hexed narwhal
#

why is there ui in code discussion anyway

#

slop ui even

frail plaza
frail plaza
edgy falcon
#

or any ui entity

#

and itll put it above everything else

#

roblox studio™

frail plaza
#

yea im js gonna leave it as is

#

everything is modular

#

it was easy to fix

edgy falcon
#

dang

frail plaza
edgy falcon
#

the ui is pretty cool i like it actually

#

i never play this type of games though not a big fan honestly i dont even know why

gaunt carbon
#

^

tacit wadi
frail plaza
#

how do i get a direction relative to a character?

tacit wadi
frail plaza
tacit wadi
#

Yes

frail plaza
#

ah ok

#

you using viewports? or just updating 3d object pos to screen

#

?

hot nymph
#

I think he's using viewports since the 3d object has a 2d perspective kinda

frail plaza
hot nymph
#

I cant change my name 😭

tacit wadi
# frail plaza you using viewports? or just updating 3d object pos to screen

I’m using this, but I made a wrapper for it that makes it super easy to set up and handles the bobble movement https://devforum.roblox.com/t/screen3d-a-3d-ui-framework-that-just-works/3273671

frail plaza
hot nymph
#

if only I could post links so I could show my 2d to 3d level editor 😭

frail plaza
#

how do i make it so that

#

instead of this

#

being directly tied to position on grid

#

it would take into account the player's rotation

#

and adjust accordingly

#

the arrow is the movement direction btw

#

eyes for visual flair

#

you can see he's looking towards (-1,1)

#

but the movement direction would still be (-1,1) unit'ed

hot nymph
#

ngl I dont got a clue what im looking at

frail plaza
#

i dont blame you

#

this is stupid asf

tacit wadi
frail plaza
#

no

#

i want directional dashing

tacit wadi
#

Input direction?

tacit wadi
#

Directional dashing? As in you snap in a direction to move?

frail plaza
#

no

#

if you would be holding the a key while moving in that direction it would play that animation

#

but i dont want to map out the keys

#

i want to just use the vector direction

hot nymph
#

I need ideas on what to script

tacit wadi
#

Yeah so what you want is the input direction

frail plaza
frail plaza
#

the thing is tho

hot nymph
frail plaza
#

i dont want to have like 10 input checks

frail plaza
#

stick on walls and stuff

tacit wadi
frail plaza
#

a table?

hot nymph
#

I've made combat, inventory stuff, a level editor, rollback netcode

tacit wadi
#

Why not use the movedirection under humanoid?

hot nymph
#

and some other things

tacit wadi
#

Or

frail plaza
tacit wadi
frail plaza
#

well actualy

#

if i was for example

#

facing one direction

#

and dashing in the other

#

it wouldnt play the proper anims

frail plaza
#

wasd

#

might js make a table with all the movement keys and their according dashes atp

hot nymph
#

Oh you want it so when they click the corresponding movement key, it snaps them to that dash direction or sum?

tacit wadi
# frail plaza i want to know all directions

Ok apart from move direction, you could get the move vector via player module like this

local controls = playerModule:GetControls()

local moveVector = controls:GetMoveVector()

frail plaza
#

im honest to god gonna kill the other scripter working w/me

tacit wadi
frail plaza
#

this guy names things horribly

#

all his code is unreadable

#

and bc of the way he did things

#

they dont even work with my scripts

#

even though i told him how all my services work

#

this mf made his own that dont even work with my datastoring

#

half of his scripts are just chatgpt shit

hot nymph
#

lowk I've been a scripter for 4 years and I still dont have good naming practices

hot nymph
#

thats worse than me

#

I just do plr

#

single letter is crazy

frail plaza
#

this guy genuinly got me tweaking bro

#

i have to rewrite like 15 fucking systems

gaunt carbon
#

Cut him then

frail plaza
#

he litteraly says that he uses chatgpt for all his debugging

frail plaza
#

im working with him

#

under a commisioner

#
  • he finished his work already
gaunt carbon
#

😭

frail plaza
#

im left to clean up his mess

#

his code is the definition of unscalable

hot nymph
#

honestly I use GPT every once in a while because it is a decently useful tool but I'm not dependent on it like some devs are

#

but it sucks with roblox lua anyways so I end up writing the code myself anyway

gaunt carbon
#

Atp only use chatgpt if ur like rlly stuck and u cant find any alternative to help you

frail plaza
#

just start devforumaxxing

gaunt carbon
#

But theres roblox ai helper thing or smth

tough vapor
#

Anyone know any phone apps i can make ctr thumbails on, and also make outlines?

hot nymph
dire lichen
#

viewportframes need to be reworked

#

vpf + surfacegui combo

frail plaza
tacit wadi
dire lichen
#

🤤

tough vapor
tacit wadi
dire lichen
#

so many limitations

frail plaza
gaunt carbon
# hot nymph its buns

It irritated me sm when I first started, I was trying mid coding and it would add its own stuff

tough vapor
#

Anyone know any phone apps i can make ctr thumbails on, and also make outlines?

frail plaza
#

the shitty ass scripter im working with hardcoded everything

tacit wadi
#

kill your scripter dawg

hot nymph
#

I hate when ppl do that

frail plaza
#

i cant change anything without recoding everything

tacit wadi
#

thats why i never work with any other scripters

frail plaza
tough vapor
#

and cant make text transparent

tough vapor
gaunt carbon
gaunt carbon
tough vapor
#

chat gpt would help, at the cost of your morals

frail plaza
#

look at this stupid ass naming

hot nymph
#

😭

#

its not even cA or sum

#

why'd they camel case 2 letters

frail plaza
hot nymph
sleek rose
#

Should blocking animations be loading on the server or client for a combat system?

hot nymph
#

logic on server

frail plaza
#

js make a damage handler

#

or damageservice i mean

#

all the damage related functions should be filtered there

#

incase you want damage multipliers

#

or blocking as suggested

#

(or maybe you already made allat and im stupid)

hot nymph
sleek rose
#

Alright ty just double checking

#

How should I go about handling block/parry timing?

silver root
#

i have a big question so im trying to make animated models that load floating above the players head when they load in and play there respected animation how do i go about this ive been trying everything from animation controllers to make them glorified rigs and welding and adding joints nothing i do seems to work is there an easy way to do this?

my layout is 2 meshparts that form the object i need one of them welded since they both make the one object and now need that object to float over my head and play an animation when i load in how do i fix this

sleek rose
# hot nymph wym?

Like whenever the player starts blocking, do I just create a parry tag for the parry window duration

frail plaza
#

humanoid

sleek rose
#

or is there a ebtter way to go about it

frail plaza
#

and animator

frail plaza
silver root
#

dosent humanoid cause server lag there will be 8 players a time

frail plaza
#

check the window which the player started blocking and when they got hit

#

with time or something

#

or tick

frail plaza
hot nymph
silver root
#

would it add up though because my game is an incremental with many object being locally spawned in at once

iron kraken
#

corny

silver root
#

if not is humanoid much simpler just animating the root part

hot nymph
#

unless you mean something else

silver root
#

nah just local so it should be fine then that boosts my player count to 16 because 8 players with 8 humanoids

#

or theorhetical player count

indigo helm
frail plaza
indigo helm
#

are you trying to make your code as unreadable as possible or what

hot nymph
#

how is that unreadable (save for the single letter vars) 💔

indigo helm
cinder spindle
#

can you tween a mesh??

indigo helm
cinder spindle
indigo helm
#

size, position

cinder spindle
#

oh

#

position

indigo helm
#

yeah why not

iron kraken
#

cornball

hot nymph
#

im so bored, what do I script

#

I need more stuff for my port

cinder spindle
#
local TweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
    2, 
    Enum.EasingStyle.Quad, 
    Enum.EasingDirection.InOut, 
    0,
    false, 
    0)

local propeties = {  
    Position = Vector3.new(1000, 1000, 1000)
}



local tween = TweenService:Create(part, tweenInfo, propeties) ```
#

this is my code

#

and i set it to 1000 to see if it would move

#

also its in a model

#

does that change anything

indigo helm
indigo helm
#

you're only creating it

cinder spindle
#

ohhh

indigo helm
#

you need to do tween:Play() below the variable

cinder spindle
#

i havent used tween service in a minute

#

alright thanks bro god bless, have a great day

indigo helm
#

thanks you too

blissful void
#

should i turn my script editor into the old powershell command thing?

hot nymph
#

what

sleek rose
#

Or play animation first then fire?

sleek rose
sleek rose
#

Just listen on client and fire?

sleek rose
#

and added the markers "Hit"

frail plaza
#

i think its uh

#

animation:Reachedanimationmarker

#

something like that

sleek rose
frail plaza
frail plaza
sleek rose
frail plaza
#

yea

#

then you would tell the server to create slash

#

the server validates that the ability or wtv was used

#

then does it

royal marten
kind spire
#

Hey guys, I'm currently working on a big project and I keep hearing that big games have to be in TS or you have to use this framework, etc. I want an honest opinion on what's the best way to get my game out there.

chilly canyon
#

Just be yourself you don't need to use that bullshi

#

U can use Nevermore It has all anything you need

outer hare
kind spire
velvet helm
#

Guys

#

Have any of y'all developed a pathfinding NPCs for a fps game

#

That doesn't shutter n mimics at least some real player movements

#

How complex is it

regal salmon
# royal marten

a Model doesnt have a Touched event. only derivatives of BasePart (Part, MeshPart, and UnionOperation) have it.

regal salmon
frosty fossil
#

Yo

#

I'm making a like

#

loading screen

#

ts is pmo bro

#

oh

#

wrong channel

bright siren
#

do pro scripters even use repeat until

lost atlas
#

whos got any recommendations for learning luau for roblox

#

ive watched the brawldev beginner series on youtube

#

and i still dont know how to code anything without searching it up

ruby iron
#

keep doing that until you don't have to search stuff up

#

it's a process

lost atlas
ruby iron
#

Yeah that's fine

#

It's how everyone starts

chilly canyon
lost atlas
ruby iron
lost atlas
lost atlas
ruby iron
#

maybe not full games but smaller features

#

like tools are fun to make

lost atlas
#

alright thanks

dense drift
frail plaza
#

how do i shorten this?

#

im 80% sure i could make this one function

chilly canyon
#

Put it in a one statement

frail plaza
#

hm

#

then what abt the booleans?

chilly canyon
#

Reverse checking

frail plaza
#

nvm

#

yea

#

not checks

chilly canyon
#

Yes

frail plaza
#

one more thing, should i use a mapservice or just bundle map generation into the roundcontroller module?

lost atlas
#

so should i watch the devking ones?

twilit gale
tough vapor
dense drift
tough vapor
#

How I got 6k ccu

#

,afk

dense drift
tough vapor
dense drift
#

so like through out the whole games time being up?

tough vapor
#

No

echo stream
tough vapor
#

Ccu is amount of players online at a given time in your game

dense drift
#

oh i see now

bright siren
#

you’re supposed to script stuff

#

and practicr

#

copying scripts without thinking abt how it works or what it does wont help you

tacit wadi
echo belfry
#

if anyone wants a free scripter for their team just dm me

thick sentinel
echo belfry
#

and I don’t have any ideas on what to program

boreal dirge
boreal dirge
patent gorge
#

Anyone wants to test my game for 50 Robux Dm or reply

trail remnant
#

@patent gorge dm

wind sparrow
#

guys, how to make domain expansion smooth sphere forming like jjs?

rotund pawn
#

What instances can I use to create ship vehicle? Align pos and orientation with force to move?

granite igloo
#

u can try cframing it on client

#

with replication

pastel sentinel
#

if you wanted to make a projectile like a spear or something, would you tween or lerp?

cloud brook
#

tween flexibility is low

pastel sentinel
chilly canyon
cloud axle
#

How do u learn more after learning the basics. might sound stupid but is it just doing it?

stone vapor
#

self doesnt mean only oop gng

chilly canyon
regal salmon
#

think of something you wanna make, try to make it, and use the internet to learn how

mighty wedge
#

bbbbbb

#

bored as hell what u even do

jovial moat
kind drift
#

guys

#

after i lvl up my 3D skills

#

now time for me finaly to learn scripting

#

🗿 WHYYYYY 🔥

nocturne yoke
#

i want to do commisions quickly and i'm a scripter with 7-8 months of experience. anyone got any ideas of what i could script with these requirements?

`Luau Scripter skill role can only be attained when an applicant creates and submits a sophisticated Luau code with a working demonstration in a Roblox Place. The code must encompass the intermediate level aspects of programming in Luau. At least 80% of your code must be Luau programming language exclusively, rest 0-20% can be other programming language(s).

A minimum of 200 lines of Roblox Luau code in a single script (excluding empty/ blank lines and comment lines).
Only GitHub link is permitted (use proper file extension). Repository link is not permitted, submit direct link to the Luau code.
You must demonstrate a broad understanding of Roblox and programming logic.
You must show broad understanding of Roblox API. We suggest using CFrame math, physics, metatables, open-source libraries, etc.
The code must be well written and efficient, with proper utilization of functions and methods.
Code must be well presented in order to maintain readability.
There must be appropriate comments written by you, to demonstrate an understanding of the provided code.
A demo game demonstrating the functionality of the script must be provided.
Ensure that your code is well-optimized and avoid any unnecessary components/ extra lines.
Roblox place must be owned by you, or you must be specifically credited in the game description. Alternatively, credits are allowed in-game (must be specified in the description if the credits are in-game) or on an external page (like Roblox DevForum) if this external page is linked in the game description.
Avoid the following:
Irrelevant or unnecessary blocks of code.
Several modules/ scripts combined together.`

tiny prawn
#

if i started scripting from now how long would u guys think it will take for me to make my first commision

hollow wind
granite forge
grim pivot
#

in your opinions, which advanced scripting tutorial series is better

BrawlDev
TheDevKing

sharp perch
#

docs

grim pivot
sharp perch
#

i stopped reading after "tutorial series"

#

just use docs

mossy lynx
#

Nvm

#

Must be well written

split turret
#

What do you think of my theme

rocky idol
#

idk what comes next in learning to script, i try to make less spaghetti code, but idk how to improve enough so i can start building frameworks and proper systems

#

cause it isn't like one step at a time like usual stuff, it feels like you do spaghetti code then you jump all the way up to frameworks

split turret
#
uncut dawn
#

bro tysm

elder fossil
split turret
rocky idol
#

looking at the roadmap i only miss metables and OOP (from the things i want under my belt) which is something i always avoided like the plague

#

guess there is no escaping it

exotic phoenix
#

the second parameter of a for loop will remain a mystery

#

I never use it

rocky idol
#

(it still works even if it isn't for a table)

exotic phoenix
#

if I remember correctly

smoky dagger
#

pairs are completly useless and ipairs has like one niche use

exotic phoenix
exotic phoenix
#

I wanna know now

smoky dagger
#

idk never had to use it

exotic phoenix
#

hopefully we never need to use it

broken grove
#

but its slower than just doing a while loop

exotic phoenix
#

oh hey thanks Matthew

broken grove
#

first is the index/key and second is the value

exotic phoenix
broken grove
#

if there isnt a dictionary and array in the same table, use general iteration

#

aka no pairs/ipairs

exotic phoenix
#

does that mean u only use while loops

broken grove
#
for i, v in tbl do
  print(`{i}: {v}`)
end
sharp gulch
#

for loops are so annoying

fresh gyro
#

what should i make for free

wide sparrow
wanton ginkgo
#

I made a teleport part scrip with 2 part how do i make it so when stepping on either of them you teleport to the other without it looping or a cooldown and wait for the person to step off the platform ?

frail yarrow
urban folio
#

@broken grove sent DM

static coral
#

syntax for for loop is:
for i = start, end, optional_increment do
OR
for … in iterator, …args do

#

so u can do for i, v in function do

glass briar
#

Print("hello world")

faint lantern
#

yo chat is anyone here a roblox scripter i bought a system and need helping scripting it in my game if anyone can help

tough vapor
ionic nacelle
ionic nacelle
chilly canyon
ionic nacelle
mint grail
#

Someone wanna take a look and test at my discord bot

chilly canyon
stable bane
steady raft
steady raft
#

oh

gaunt fable
#

hey can anyone help me basically Im trying to use topbar plus to make a settings for my game so that i can make an option to turn a music playlist i made in replicated storage on or off but i dont know how to locate the topbarplus button inside the music local script

sinful sapphire
#

🤣

#

/j

sharp gulch
sharp gulch
frail yarrow
#

thats not even a lot lmfao

#

Why are you tryna flex some pitiful ass numbers

sharp gulch
#

jus admit ur ahh

flat halo
frail yarrow
#

Give up

sharp gulch
frail yarrow
sharp gulch
#

im a pretty good dev tbh

frail yarrow
#

no tf you arent

sharp gulch
#

how do u know

frail yarrow
#

i just do

cyan meadow
#

I can add the tool in if you want

unborn blade
cyan meadow
#

Like I can make a tool in the starterpack

#

If you need help with that

#

But that’s all i can do

#

500 robux

unborn blade
#

any1 can do that

#

just literally insert tool in starterpack

naive ruin
mild dagger
#

Does anyone know how to spoof?

cinder basalt
#

or eg

vernal peak
#

Guys how do animation based vfx work? Cuz with a fireball, we can js clone the part with client and everything is good, how about with animation based vfx? Can u save vfx inside animation id?

wise birch
#

anyone got a tutorial on how to make a basketball game

cedar vapor
sharp gulch
cedar vapor
sharp gulch
wise birch
cedar vapor
#

He’s underage

#

?

sharp gulch
#

ye

cedar vapor
#

His discord account is 6 years old tho

sharp gulch
wise birch
#

bordie really my fan out here ion even know who ts dude is

cedar vapor
#

And I doubt that

#

How old do you think he is @sharp gulch

sharp gulch
sleek umbra
#

guys is there any decent method to block save instance, I have only seen a method of blocking UGCValidationService but there is also this one bypass in save instance that pauses rendering, I wanna know how I would be able to detect that as well.

graceful gyro
#

What is the best method to remember Lua language and the basic I’m kinda new and most of the time I forget script logic and what everting accs mean so I have to go back to creator hub or ask Assistant how to write the script like that

graceful gyro
#

Holy no help

true moon
cinder basalt