#code-discussion

1 messages · Page 293 of 1

near sonnet
#

but try ur best

proper violet
#

render stepped runs every frame

RunService.RenderStepped:Connect(function()
  print("tuna") -- will print every frame
end
near sonnet
#

ah so if i change cframe every frame its like flawless

bleak umbra
#

do u have like any code to show?

vapid radish
#

not physics

near sonnet
vapid radish
#

what do you mean by a part follow a player

civic garnet
#

just slap a lerp on it to make it animated

gleaming lantern
#

Why who are u

trim solstice
dense token
#

i have a vehicle chassis whose camera rotates randomly sometimes, could anyone help me understand why its doing this rather than acting like every other vehicle seat camera?

vale spire
#

is a scripting event a competition?

shut stump
#

whats the best way to get player in local script?

hoary cedar
hoary cedar
vale spire
silver surge
#

im struggling at learning scripting, where do you guys continue learn scripting after learning the basics?

glossy quiver
silver surge
glossy quiver
#

No loops?

silver surge
#

loops too

#

i watched thedevking

#

for basic

#

do i have to continue watching the advanced one?

glossy quiver
#

Are you just watching them or are you creating as well

silver surge
#

well each video i watch, i test how it works too, like function i try making something with it

hushed wind
#

how to make datastore

silver surge
#

yeah i dont whats that

#

so like how do i learn the complex stuff

glossy quiver
glossy quiver
#

Like if you wanna learn how to make combat games look at how other people make combat systems

#

Roblox documentation

silver surge
#

where you find that

hushed wind
#

i asked ai for small help and it broke my entire game

silver surge
#

is it createrobloxcom/docs

glossy quiver
#

It has all the documentation for every method use ai to figure out small details and use the community forums and have a look at how good systems are written

glossy quiver
silver surge
#

i see

#

thank you very much for the information

glossy quiver
#

It’s gonna take you a while just enjoy the journey

#

Find things that motivate you to make things and you can make things you love

silver surge
glossy quiver
#

Cause making games can be really demotivating so preserving is the most important skill

hushed wind
glossy quiver
cold forum
#

can anyone help me in blox fruits

#

pls gift me fruit anyone

regal salmon
#

for roblox developers to talk about developing

fading ermine
regal salmon
ancient tartan
#

anyone know any decent free ai website builders

#

i am trying to compare for a video 😭

haughty sapphire
hard garden
#

Hi guys

#

is it good if i update all of my managers into just one runservice connection or make them have their own runservice connections?

floral atlas
#

which is more efficent

haughty sapphire
hard garden
floral atlas
#

obviously if u put 10ton metal plate it would

#

but thats obvious

hard garden
haughty sapphire
floral atlas
hard garden
#

so its wrong to be curious?

#

damn that's cool

#

aight

#

fuck off

floral atlas
hard garden
#

yeah no fuck off

#

you do not understand my question

haughty sapphire
hard garden
#

that sucks but thats not my problem

haughty sapphire
#

he had to dumb it down for u and make a bus analogy and u still didnt understand

hard garden
#

cool

#

"useful" as fuck

haughty sapphire
#

cope 🤡

hard garden
#

uh huh

foggy pendant
#

You can't be serious..

foggy pendant
#

Guys I think 8536 lines might be too much.

peak jolt
#

canon ai nerf by roblox

foggy pendant
#

How can I write my complicatedly long code that have no reason for it to be like that then?!

peak jolt
#

The overhead of an event connection is necessarily always more than a stored callback in your own module

hard garden
peak jolt
#

They do not run in parallel whatsoever, the order is well defined, there is no "synchronization overhead," it just needs to create a new call stack which is more expensive than storing and calling a function

#

The performance gains are not dramatic either, its around 50% time saved per task, which only matters if you have a growing/variable number of tasks, such as "update entity health via a loop." The difference between 1 and 10 runservice connections is next to zero

willow maple
foggy pendant
snow veldt
#

I don't know what's up with all these blox fruit things

regal salmon
snow veldt
#

is this a new scam tactic or something

#

I don't get it

regal salmon
foggy pendant
#

I think they are just trolling.

hard garden
snow veldt
#

holy consumer

#

stuck in the matrix

foggy pendant
#

Do we really need this reminder all the time?

snow veldt
#

yes

regal salmon
winter spire
#

so for instance, a player clicks a button, and it goes from claim to "Claimed", how do i make data store save that information, so that when he logs on again its saved

remote bear
cinder flower
#

Is Roblox Studio still a good text editor or should i use tools like Rojo to link it up with VS Code? (I don't know why I need VS code)

cinder flower
weak whale
#

Hey

#

A gun system needs to have animations to be good right?

wary sluice
#

can exploiters spoof touchinterest?

regal salmon
weak whale
#

I’m not an animator tho is it easy?

regal salmon
regal salmon
weak whale
#

I don’t but there’s tutorials 💔

wary sluice
#

you dont necessarily need to be an animator to make a good gun system

#

if thats what ur asking

weak whale
#

Since I wanna get more into it

wary sluice
#

a really good one

weak whale
#

I thought there’s a other way since someone said so

weak whale
wary sluice
#

FPS or third person?

weak whale
#

Realistic

#

FPS

wary sluice
#

You can use a FPS viewmodel rig

#

and animate that

#

OR you can use normal roblox animation rig and animate on that while scripting it to show the arms etc using a Fake Torso

#

both methods have its advantages and disadvantages

wary sluice
#

Just playing the animation automatically replicates to other clients and they can see you

#

with the above method you will need additional code to handle the replication , and in some cases you might need separate animations just for the third person view

weak whale
wary sluice
wary sluice
weak whale
#

O

wary sluice
#

Its easier to replicate to other clients

wary sluice
#

Is it your first time making a gun system?

weak whale
#

Yes tbh

wary sluice
#

go to the toolbox and search "fps viewmodel"

willow maple
#

Making animations for cheap 😉 js doing it for hobby

wary sluice
#

also whats your scripting experience

weak whale
knotty bay
#

Me when a function expects an unknown as its 2nd argument, but it's being given a a:

hard garden
fathom hawk
#

hello im new in coding how do i learn it

remote phoenix
#

and then jump into it

fathom hawk
#

i can script basic things like doors

remote phoenix
#

then next I think the meta is to just ask AI like "here's what my end goal is, what's the first step to achieving it"

#

and then if you get stuck you can ask it for some pointers

fathom hawk
#

okay

#

thank you

remote phoenix
#

it can also explain different things and you can ask it what the best practice is

#

it's information will be slightly outdated but I don't think that'll cause any big issues

#

claude is the best coding AI as far as I know so I would ask claude specifically

dense spade
plush forge
versed arch
shell galleon
#

Tryna get hired as a scripter

vale spire
shell galleon
vale spire
#

are you good at data store and profile store?

shell galleon
#

Dms

finite roost
#

guys please
https://www.roblox.com/games/90642632414698/Roll-for-a-Brainrot
check my gameo out
and tell me if u have any feedback

Roblox

The ultimate RNG challenge is here. Claim your base, spin the machine, and collect the most cursed BRAINROT in the universe.

🛠️ HOW TO PLAY:
CLAIM: Grab a base and start your journey!

SPIN: Hit the machine to roll for random Brainrot items. 🎲

COLLECT: Build a massive collection of rarities to flex on the server.

UPGRADE: Spend your ...

fathom hawk
finite roost
fathom hawk
#

okay wait a min

dense spade
winter spire
#

can someone really help me in data store?

#

i really really need help, i got a deadline to meet, and like, i cant understand how i can make it work with yk buttons, how to save a clicked button in data store

#

can someone please help me?

hearty lion
winter spire
#

not a comission

#

like im making a game

#

and i need to finish the deadline before yk my team crashes out

hearty lion
winter spire
#

hm...

versed arch
winter spire
#

hmm alr alr

sweet flume
#

I'd just use profilestore as normal datastores are a pain to implement properly

winter spire
#

what is profilestore?

sweet flume
#

Its a datastore wrapper

cyan bobcat
#

Godot or roblox studio?

remote phoenix
cyan bobcat
#

Which better

cyan bobcat
remote phoenix
cyan bobcat
#

Ok

regal salmon
ebon frost
#

lowkey unreal engine

regal salmon
#

roblox studio is unmatched for easy multiplayer implementation and is easier to use as a beginner, however it has a lot of limitations and restrictions due to roblox's guidelines
godot does not have these restrictions, nor does it have any licensing fees (so you dont give money to the engine creator for making a game with the engine), however it's more manual as they don't automatically give you every system outright (e.g. multiplayer, player movement, etc), you have to make them yourself

regal salmon
#

blueprint brings its ease of use up but you gotta have a pretty decent pc to run it

versed arch
#

unity

regal salmon
#

and its also not for everyone, its very tailored to high quality games

regal salmon
#

best of both worlds imo

ebon frost
regal salmon
#

good with mid-range pcs, can make 2d+3d games, big community so lots of assets, and a lot of freedom for things you want to make
there is the licensing fees but they're too bad imo

regal salmon
#

its build times are also a lot higher

#

its biggest selling point is its graphical capabilities

ebon frost
#

people burn out to quickly and if they can't finish something on roblox studio then those other platforms are not made for them

regal salmon
#

it's possible to achieve the same thing in unity and godot, though they both take varying amounts of effort

#

godot being the most effort as youd probably have to rewrite parts of the engine im ngl lol

regal salmon
#

you're still making a whole game

#

it's a problem a lot of people face, but that doesn't mean that "game development isn't for you" because i don't think it's impossible to overcome

ebon frost
#

what i'm saying is that studio is easier to navigate especially for beginners

regal salmon
#

yes that is true

#

that isn't what you said, but that is true

azure coral
#

tbf roblox did start as a physics engine so maybe the term game engine does apply some bit

regal salmon
#

ehh i'd still call it a game engine

#

a game engine is just a program/framework that provides the necessary tools, libraries, and systems necessary to create a game

#

which is what roblox does

#

however, in terms of how it performs as a game engine, other engines do better

night schooner
#

how to learn scriping?

remote phoenix
versed arch
night schooner
versed arch
#

as for how to learn scripting, just go watch brawldev's tutorials and read the documentation

night schooner
#

watched all videos and doesnt learn me anything just basics how to usel local and other variables

#

and dont know how to use them in systems frameworks n other thing

versed arch
#

well you're supposed to learn the fundamentals before getting into complicated things

#

it's boring at first but it's necessary if you want to understand anything inside of a script

#

systems and frameworks are already on their own pretty complex for a beginner to make

night schooner
#

so i should just watch videos about ppl that making any game or system ?

#

whats thing thats easy to learn?

lapis yoke
#

Me and My friend is searching for job in roblox Studio.We can make to you scripts For Robux or Models.For Robux

versed arch
# night schooner whats thing thats easy to learn?

scripting isn't easy, it takes time and attention. the easiest way to start off, imo, is to just focus on one aspect of scripting, learn about it, then move onto the next (for example, you focus on learning about variables, and once you think you're ready for something else, you'd go for if statements)

#

and also, take notes about what you're learning so that you won't have to go back to a certain tutorial or webpage

night schooner
#

ahh

#

is there some1 who learn for some robux or money?

remote phoenix
#

yeah nah fuck allat just ask AI your questions and you'll remember what you've learned through muscle memory

#

actively writing code is how you learn

versed arch
weak radish
versed arch
# night schooner ahh

i'll tell you this; once you've learned how one thing works, it'll be easier later on

remote phoenix
#

AI is the easiest to use search engine and more. treat it just like you would treat google search, a tutor, and so on. just ask it all your questions while you write code

versed arch
weak radish
night schooner
#

so if i turn tutorial some1 that make for example framework and will copy it to the studio it will help me

versed arch
remote phoenix
regal salmon
#

it's worth a try as it can help you, but it won't have the same benefit for everyone

night schooner
#

ahh

weak radish
remote phoenix
#

well thank goodness I don't use chatgpt and I don't use AI for finding song references

versed arch
weak radish
#

because it was a sensitive topic

night drift
#

can someone give me something to make i know the basics and some advanced stuff

wooden harbor
weak radish
gaunt fog
#

Yall what do i do when i pick up a tool and my name tag flys away ? 🙁

regal salmon
#

your name tag..?

gaunt fog
#

Yeah!

night drift
#

is the tool anchored or is collision on?

regal salmon
gaunt fog
#

TYTY

gaunt fog
night drift
#

is stuff named correctly?

gaunt fog
#

Mhm!

potent igloo
#

theres probably a part inside it thats not connected to the player's hand

#

like not welded or whatever

gaunt fog
#

Ooh ok

graceful gyro
#

For knockbacks and follow ups are apply impulse or body velocity better

near sonnet
#

wsg guys can someone explain what .Unit does?

#

pwease

civic current
iron kraken
iron kraken
#

ye

cold marten
#

what is the usecase of raycast ?

shy cipher
near sonnet
#

guys i got a question. I have a laser that, when it hits an player deals 50 damage. The problem is that i want it to go through the first player and also hit the second player. If i now use a debouce so that u dont danke 50 damage every nanosek, the second player gets left out cuz the debounce restricts it

#

idk what to do

near sonnet
#

u gotta explain me im kinda new

gray mantle
#

Code got it

fading ermine
#

how do you tell if code was made by ai

gray mantle
#

Claude writes some pretty good code

fading ermine
remote phoenix
quaint tree
gray mantle
#

Sometimes its pretty obvious but

gray mantle
quaint tree
#

comments are considered AI most likely cuz people cant be organized

gray mantle
#

Ai writes comments like essays

quaint tree
#

AI has a style

fading ermine
quaint tree
#

on comments

gray mantle
remote phoenix
gray mantle
#

Yeah

fading ermine
dark rock
#

this

#

gotta be the most active chat

#

(besides general)

fading ermine
remote phoenix
gray mantle
#

Why does it matter vro

fading ermine
#

like when i used ai it jus gave me a bunch of local scripts

gray mantle
#

🙏💀

fading ermine
remote phoenix
#

well then learn how to script or find someone with reputation

gray mantle
fading ermine
gray mantle
#

Also asking said person programming questions is also a way of knowing if they are bs or not

gray mantle
remote phoenix
#

you could pay $20 for a Claude Code subscription and connect the roblox MCP directly to claude

fading ermine
#

most i would use it for is to comment code

#

plus dosent ai have limits

#

like after a certain ammount it jus dosent talk to u

remote phoenix
#

yeah but if you're working only on one project you'll rarely run into the limits and the limits only last up to a few hours at the most

#

you'll usually run into maybe 1 or 2 hour limits if you're abusing the AI for just 1 project

fading ermine
gray mantle
#

Yeah idk what you talking abt claude code is peak

fading ermine
gray mantle
#

Helped me with a bunch of stuff

near sonnet
#

oh i messed up

gray mantle
#

It also wrote me a whole chunk generator with noise

near sonnet
#

anyways

gray mantle
fading ermine
#

how much better is the paid version cz like claude's free seems to have a decent limit

near sonnet
#

so yes or no

remote phoenix
#

yes that looks fine I think

gray mantle
#

Rip

remote phoenix
#

hmm as long as this script is part of the laser itself

gray mantle
remote phoenix
#

or something like that... I'm really tired

remote phoenix
near sonnet
#

does debris work for deleting the laser?

remote phoenix
#

I dunno I'm still new to luau

near sonnet
#

ill jst try it

#

surely it will work : D

sick pasture
#

Guys I’m working on a rng game in which you buy dice from shop and roll it to get a character and place in your base for money and rebirth so what should I start with coding in here I’m new like started 6 days ago

#

I have no idea where to start in coding

remote phoenix
#

make a dice that rolls

sick pasture
#

….

#

Should I make a database with all the characters in it and a leaderboard and all

remote phoenix
#

you should focus on the core gameplay, one step at a time

#

first make your dice roll how you want it to, then get it to give you a character

#

make a base that you can place characters on

#

make the character give you money

#

add rebirthing

#

then you can focus on adding more characters, making good UI, balancing the rebirth costs and money amounts,

#

and so on

gray mantle
grand briar
#

how much would you guys charge for a full sonic movement system

remote phoenix
#

are you buying

grand briar
#

i am

remote phoenix
#

uhh I dunno

grand briar
#

i was expecting a full breakdown

near sonnet
#

guys there is a weird block always spawning in my character but its only client sided what could it be or where can i find it

quiet meteor
near sonnet
#

is that a thing?

quiet meteor
#

like its an invisible part in every character

near sonnet
#

ah right

#

how the hell do i set the transparency of it by accident

quiet meteor
#

idk

near sonnet
#

omg i know how

#

i tried to hide all players and if i make them visible i also make that part visible

#

but how to change that?

remote phoenix
quiet meteor
#

u can add a check like
if part.Name ~= "HumanoidRootPart"

remote phoenix
#

either filter it out (^), or after you make all parts visible, specifically re-hide the humanoid root part

near sonnet
#

alr

covert locust
#

is it normal to get overwhelmed by the code you scripted for a like 5 minutes?

#

like you go in studio see the code you made last night and tweak out for a lil before remembering how it works?

#

or is that just a me problem

remote phoenix
#

yeah but usually that's a sign of room for improvement

near sonnet
#

i normally understand things better the next day

remote phoenix
#

or a sign that things can be changed

quiet meteor
shadow sphinx
#
local gatesFolder = workspace:WaitForChild("Gates")
local buttonsFolder = workspace:WaitForChild("Buttons")
local players = game:GetService("Players")

local function gateOpen(gate, button)
    local debounce = false
    
    button.Touched:Connect(function(hit)
        local character = hit.Parent
        local player = players:GetPlayerFromCharacter(character)
        
        if player and not debounce then
            gate.Transparency = 0.5
            gate.CanCollide = false
            local debounce = true
            for i = 5, 0, -1 do
                print(i)
                task.wait(1)
                if i <= 0 then
                    gate.Transparency = 0
                    gate.CanCollide = true
                    debounce = false
                end
            end
        end
    end)
end

gateOpen(gatesFolder:GetChildren("Gate1"), buttonsFolder:GetChildren("Button1"))
```Can I have some help...
eternal apex
gray mantle
#

what are you tryna do here exactly

shadow sphinx
#

When the button is pressed the gate opens for 5 seconds

quiet meteor
gray mantle
#

yeah that too

quiet meteor
#

or just gatesFolder.Gate1

shadow sphinx
#

There's an error on script number 8

eternal apex
eternal apex
remote phoenix
kind shore
#

🔒.......................

eternal apex
#

And I also wanna see what it’s like when you’re not playing and others are

fresh moat
plush oxide
weak radish
weak radish
# fresh moat

because its 4 extra hours and black icon text instead of white

shut stump
#

how do i hide prompts from certain players?

near sonnet
#

yo guys if i shoot with my laser (dw its alr coded) a rig i created takes damage if i hit it but another player doesnt. Anyone know why that could be?

weak radish
livid maple
livid maple
livid maple
near sonnet
livid maple
supple spindle
near sonnet
#

now im not sure xD

shadow sphinx
#
local gatesFolder = workspace:WaitForChild("Gates")
local buttonsFolder = workspace:WaitForChild("Buttons")
local orbsFolder = workspace:WaitForChild("Orbs")

local players = game:GetService("Players")

players.PlayerAdded:Connect(function(plr)
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = plr
    
    local orbs = Instance.new("IntValue")
    orbs.Parent = leaderstats
    orbs.Name = "Orbs"
end)

local function gateOpen(gate, button)
    local debounce = false
    
    button.Touched:Connect(function(hit)
        local character = hit.Parent
        local player = players:GetPlayerFromCharacter(character)
        
        if player and not debounce then
            gate.Transparency = 0.5
            gate.CanCollide = false
            debounce = true
            for i = 5, 0, -1 do
                print(i)
                task.wait(1)
                if i == 0 then
                    gate.Transparency = 0
                    gate.CanCollide = true
                    debounce = false
                end
            end
        end
    end)
end

for _, orb in pairs(orbsFolder:GetChildren()) do
    local debounce = false

    orb.Touched:Connect(function(hit)
        local character = hit.Parent
        local player = players:GetPlayerFromCharacter(character)
        
        if player and not debounce then
            player.leaderstats.Orbs.Value += 1
            orb.Transparency = 0.9
            debounce = true
        end
    end)
end

gateOpen(gatesFolder:FindFirstChild("Gate1"), buttonsFolder:FindFirstChild("Button1"))
gateOpen(gatesFolder:FindFirstChild("Gate2"), buttonsFolder:FindFirstChild("Button2"))
gateOpen(gatesFolder:FindFirstChild("Gate3"), buttonsFolder:FindFirstChild("Button3"))
``` Nothing is wrong with the code but are there any improvements I need to make?
near sonnet
#

#stopsendingcodeswithnocontext

shadow sphinx
#

the context is right there bro

near sonnet
shadow sphinx
#

look directly above ur message

shadow sphinx
#

It's BrawlDev beginner series

near sonnet
#

ik xD

#

final game

#

its rlly fun

shadow sphinx
#

yeah fr

near sonnet
#

but the code is good imo

shadow sphinx
#

alr thx

#

I messed up a bit so I used claude to help me

#

all of them were really tiny mistakes

#

nothing big

near sonnet
#

jst dont overuse it and ur fine

shadow sphinx
#

alr

#

u have any idea what I should do next?

#

Should i keep practicing or move on?

shut stump
#

will developper products that dont work get me banned/striekd

shadow sphinx
near sonnet
cyan jacinth
#

what to use with triginometry in roblox

ripe plume
#

for example viewportframes, u can rotate the cam around an object

#

using sin and cos

crystal moat
#

Hello

#

Selling a game cashgrab

cyan jacinth
remote phoenix
#
local gatesFolder = workspace:WaitForChild("Gates")
local buttonsFolder = workspace:WaitForChild("Buttons")
local orbsFolder = workspace:WaitForChild("Orbs")

local players = game:GetService("Players")

local function onPlayerAdded(plr)
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = plr
    
    local orbs = Instance.new("IntValue")
    orbs.Name = "Orbs"
    orbs.Parent = leaderstats
end

players.PlayerAdded:Connect(onPlayerAdded)

local function gateOpen(gate, button)
    local debounce = false
    
    button.Touched:Connect(function(hit)
        local character = hit.Parent
        local player = players:GetPlayerFromCharacter(character)
        
        if not player then return end
        if debounce then return end
        
        debounce = true
        gate.Transparency = 0.5
        gate.CanCollide = false
        
        for i = 5, 0, -1 do
            print(i)
            task.wait(1)
        end
        
        gate.Transparency = 0
        gate.CanCollide = true
        debounce = false
    end)
end

for _, orb in pairs(orbsFolder:GetChildren()) do
    local debounce = false

    orb.Touched:Connect(function(hit)
        local character = hit.Parent
        local player = players:GetPlayerFromCharacter(character)
        
        if not player then return end
        if debounce then return end
        
        debounce = true
        player.leaderstats.Orbs.Value += 1
        orb.Transparency = 0.9
    end)
end

gateOpen(gatesFolder:FindFirstChild("Gate1"), buttonsFolder:FindFirstChild("Button1"))
gateOpen(gatesFolder:FindFirstChild("Gate2"), buttonsFolder:FindFirstChild("Button2"))
gateOpen(gatesFolder:FindFirstChild("Gate3"), buttonsFolder:FindFirstChild("Button3"))
near sonnet
#

@remote phoenix u gotta help me brov u the goat if u cant help noone can

remote phoenix
midnight canopy
#

guys im starting to like learn scripting, are there any good tutorials

midnight canopy
near sonnet
#

@remote phoenix here is my issue can you help me fix it [issue here: if i shoot with my laser (dw its alr coded) a rig i created takes damage if i hit it but another player doesnt. Anyone know why that could be?]

willow maple
#

THIS IS NOT GETTING ME CTR

cyan jacinth
willow maple
#

.

cyan jacinth
#

ITS +$999mil/sec LEGENDARY CARROT

near sonnet
#

chill its a experience only for this 1 thing

#

not for like a game

supple spindle
willow maple
remote phoenix
# willow maple

well it's like nothing unique bro it's just a lame carrot it seems really dead and plain and boring

willow maple
#

Ez click bait

remote phoenix
willow maple
#

Hmm

remote phoenix
#

it's like "I have money and some random... carrots and rocket ships.. on the moon for some reason.. and I don't even have an astronaut helmet"

willow maple
#

This da game

#

Suggest ideas lowk

remote phoenix
#

the game seems to be about carrots so focus on carrots, but have multiple

#

oh fuck no fuck you and your claude ass game

near sonnet
#

@supple spindle ```lua
function eventmodule.CreateLasers(player, rotation)
local character = player.Character
local root = character and character:FindFirstChild("HumanoidRootPart")
local humanoid = character and character:FindFirstChild("Humanoid")

if root and humanoid then

    root.Anchored = true 
    humanoid.PlatformStand = true
    root.AssemblyLinearVelocity = Vector3.new(0,0,0)

    task.wait(1)


    local laser = game.ReplicatedStorage:WaitForChild("LaserModel"):Clone()
    laser.Parent = game.Workspace:WaitForChild("activeEvent")
    laser.Transparency = 0
    laser.Anchored = true
    laser.CanCollide = false
    laser.CanTouch = true


    local Position = root.Position
    local middle = Position + (rotation * 50)
    laser.CFrame = CFrame.lookAt(middle, middle + rotation) * CFrame.Angles(0, math.rad(90), 0)


    local hitPlayers = {} 

    laser.Touched:Connect(function(hit)
        local target = hit.Parent

        if target:IsA("Accessory") then
            target = target.Parent
        end

        local humanoidTarget = target:FindFirstChild("Humanoid")

        
        if humanoidTarget and target ~= character and not hitPlayers[target] then
            hitPlayers[target] = true
            target.Health -= 80
            print("[SERVER] Treffer bei: " .. target.Name)
        end
    end)
    game:GetService("Debris"):AddItem(laser, 4)

    task.delay(4, function()
        if character and root and humanoid then
            root.Anchored = false
            humanoid.PlatformStand = false
        end
    end)
end

end

its the  whole function but the main "Hit aspect" is from local  hitPlayers = {}
south bridge
willow maple
#

I got investors tho

#

They paid me 25k each lol

#

2 investors

remote phoenix
willow maple
#

For 40%

supple spindle
brisk isle
#

hire ui devs

#

hire devs

willow maple
#

Ez money farm

near sonnet
remote phoenix
#

but I just don't care to help someone who is using AI cuz I'm better off just making a game with my own AI and ideas

supple spindle
willow maple
willow maple
#

The stats r pretty cool tho i like thag

near sonnet
supple spindle
near sonnet
#

cuz it doesnt event hit the player in the first place

remote phoenix
#

I can smell the jealousy like a claude-generated UI

#

from a mile away

remote phoenix
polar violet
cyan jacinth
polar violet
supple spindle
remote phoenix
# near sonnet alr
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Debris = game:GetService("Debris")

local laserModel = ReplicatedStorage:WaitForChild("LaserModel")
local activeEventFolder = workspace:WaitForChild("activeEvent")

local eventmodule = {}

function eventmodule.CreateLasers(player, rotation)
    local character = player.Character
    local root = character and character:FindFirstChild("HumanoidRootPart")
    local humanoid = character and character:FindFirstChild("Humanoid")

    if not root or not humanoid then return end 
    
    root.Anchored = true 
    humanoid.PlatformStand = true
    root.AssemblyLinearVelocity = Vector3.new(0,0,0)

    task.wait(1)

    local laser = laserModel:Clone()
    laser.Parent = activeEventFolder
    laser.Transparency = 0
    laser.Anchored = true
    laser.CanCollide = false
    laser.CanTouch = true

    local Position = root.Position
    local middle = Position + (rotation * 50)
    laser.CFrame = CFrame.lookAt(middle, middle + rotation) * CFrame.Angles(0, math.rad(90), 0)

    local hitPlayers = {} 

    laser.Touched:Connect(function(hit)
        local target = hit.Parent

        if target:IsA("Accessory") or target:IsA("Tool") then
            target = target.Parent
        end

        local humanoidTarget = target:FindFirstChild("Humanoid")
        
        if humanoidTarget and target ~= character and not hitPlayers[target] then
            hitPlayers[target] = true
            humanoidTarget.Health -= 80
            print("[SERVER] Treffer bei: " .. target.Name)
        end
    end)
    
    Debris:AddItem(laser, 4)

    task.delay(4, function()
        if character and root and humanoid then
            root.Anchored = false
            humanoid.PlatformStand = false
        end
    end)
end

return eventmodule
cyan jacinth
#

game = good

quiet meteor
#

game.Clildren:Destroy()

near sonnet
quiet meteor
near sonnet
#

the code u send

#

u changed some things

remote phoenix
#

yes

near sonnet
#

and i ask what u changed so i understand my code

remote phoenix
#

I moved the GetService's like Debris to the top of the script so you only use GetService one time (when the script loads)

near sonnet
#

ah alr

remote phoenix
#

I changed the health thingy from target.Health to humanoidTarget.Health

polar violet
near sonnet
#

yeah i saw taht

#

ty man

cyan jacinth
#

shit gen

near sonnet
cyan jacinth
#

iiii dont knowww

#

sigmaa

#

daymm

remote phoenix
#

it switches from LuaU mode to Java mode and makes a hashmap

polar violet
remote phoenix
#

but be careful, if you use it too many times then you're stuck in Assembly

polar violet
#

but if you call it too many times it starts wiping random hash stacks

cyan jacinth
#

flow modecrapcrapcrapsht

#

shits you meant

polar violet
cyan jacinth
#

bro got embrassed

polar violet
#

high five!

remote phoenix
near sonnet
#

@remote phoenix here is my issue can you help me fix it: [it still doesnt work, could it be of smth else like test mode or smth]

remote phoenix
#

make some debug print statements to see what is failing or not having the intended value

cyan jacinth
near sonnet
remote phoenix
near sonnet
#

the touch doesnt even get regiserd

#

bruh

remote phoenix
#

oh yeah the function is never called

near sonnet
#

it is in my main script

night drift
#

I dont know if this is good or bad but i was able to create this super basic shop system without help i started 3 days ago

night drift
#

this is the ui 😭

icy heron
#

looks good tho

night drift
icy heron
#

but its prob irrelevant to you rn jst ignore it

night drift
#

okey ty

remote phoenix
#

you should use a dictionairy (table)

hearty lion
remote phoenix
#
local items = {
    -- name = price
    "Hammer" = 50,
    "Screw" = 100
}```
icy heron
night drift
remote phoenix
#

fuck

icy heron
#

this aint JS 😭

supple spindle
remote phoenix
#

no not lame ass JS, I'm used to Kotlin

icy heron
#

ohhh

hearty lion
remote phoenix
#

I'm a real pro dev 🤑 😍

icy heron
remote phoenix
icy heron
#

i gotta learn it but its so weird

remote phoenix
hearty lion
#

but buffer serdes and allat is unnecessary most of the time

near sonnet
#

guys is there a way to prevent players from moving besides anchoring them

#

cuz then i can fix my problem

supple spindle
#

one is set their walkspeed to 0

#

second one is to decline their contextactionservice registering

#

third on is to teleport them to that spot

#

fourth one could be seating them and not allowing them to stand up

near sonnet
#

nah i wanna do that they can aim for like 6 seconds and then they cant move or rotate

supple spindle
#

note that this is done locally, so exploiters could potentially make themselves move

near sonnet
#

hmm

#

i mean its jst for practise anyways

#

but the thing is i did it with anchored and then my touched event didnt work on them

#

so idk what to do else

#

then AI gave me an code that works but i dont rlly wanna use it cuz i dont understand it. It uses GetPartsInPart and i rlly dont know how that works

remote phoenix
#

GetPartsInParts gets all the parts basically that are touching your laser

#

even if it's anchored

#

cuz touch event might not work if it's anchored idk

near sonnet
#

i guess ill just go with GetPartsInPart

#

at least it works now

ember pollen
#

"No, ModuleScripts in ReplicatedStorage do not share tables or their internal states between the client and the server."

This caused me burnout 🥀

#

I wish I knew that sooner

near sonnet
#

lol

ember pollen
near sonnet
#

ill jst keep it for now

#

i spend my whole day on this

#

on this 1 problem

ember pollen
#

I feel you XD, I hate when things like that happen

wanton drum
#

Does anyone know why r15 is so glitchty when it comes to making a ragdoll? Maybe I'm just ill informed.
I want to learn more complex code, but r15 is challenging with how many more limbs are actually present , especially when cloning

ember pollen
#

But I'm into cloning

#

R15 specifically this time

#

character:Clone() didn't work for me ✌️

wanton drum
#

r15 makes it hard to clone a full body part because they're all split

ember pollen
wanton drum
#

Like how do you move/ clone that stuff in all

#

not just one of the singular parts of the arm.

#

but the arms and the hand

#

I wanted to make an arm cloning system similar to jojo games where you clone your hands to show a barrage animation, but r15 makes that a bit of a challenge. r6 has the arm as one full limb which would make it easy

#

r15 on the other hand is a different beast.

ember pollen
#

For what I have learned, it is not viable to clone character parts because that would pretty much not work

#

But you can still make it I think

#

What I did was: I create a R15 rig template and put it into replicated storage

#

Then I transfer the player's humanoid description to the rig, so it can copy the player's avatar

#

Then I parent the rig to the workspace. From now on I think you could maybe do a loop on the rig parts and destroy everything except for the arm

ember pollen
#

Or you could instead of destroying the other parts, making them invisible and CanCollide = false. Showing only the arm and animating the rig (which would only show the arm as it's transparency ≠ 1)

#

Perhaps what I said was more than necessary

rocky idol
#

as i've watched more videos i started to wander, are type checking and using visual studio code just preferences? ik type checking is useful, but wouldn't checking in the code do the same thing? aka print a error in case the type is incorrect?

weak radish
#

also visual studio code is mostly a preference however it lets you use things like rojo

rocky idol
#

i can't seem to find alternatives, and that was my question, cause i wasn't sure if there were more of a preference or advice

weak radish
iron kraken
#

ye

#

even react can be good but u need the right situation

vapid radish
#

type checking helps catch stuff before it runs so it’s just faster than relying on prints

#

using an ide is mostly just preference

#

and yea OOP isn’t needed, it’s just useful depending on what you’re making

weak nest
#

how do you guys put a lot of stuff on your portfoli

#

i can only put 6

#

im tryna put like 20

haughty sapphire
haughty sapphire
#

if u want to have like 20 connections instead of 1 and have shit performance go right ahead

stable verge
near sonnet
#

anyone has a begginner- medium challange for me i just finished mine.

graceful wagon
near sonnet
graceful wagon
#

Create real life on roblox

#

Also it must be supported on mobile

near sonnet
#

"build a particle accelerator"

versed arch
near sonnet
remote bear
untold flint
#

ILF an investor for a big game plan. If any investor would see this message text me

left ginkgo
remote bear
remote bear
wide mauve
#

anyone knows how to use cframe for animations?

frail plaza
#

this optimized enough? (for a tower defense game)

dark juniper
#

That’s just laggier

#

Just use Roblox animations

#

It’s made for those kinda motions and it does it efficiently

plush zenith
#

how would you guys handle Resident Evil style of dialoguing in your game?

plush zenith
# frail plaza what it look like?

you know how when a character begins speaking or when a noise plays in a game, then subtitles would appear at the bottom of the window showing what that character said or what noise played?

#

my question is how would i organize character lines and noise queues in my code

frail plaza
#

and the noise queues i would have a soundcontrolelr

#

or a dialougecontroller

#

with a table of all que'd dialouges and sounds

#

and play them until there's none left

#

i believe it shouldn't be too hard

uncut arch
#

woah woah lets calm down here

#

talm bout some spanish or sum

distant hamlet
frail plaza
#

so none of the physics are being calculated

#

realisticaly could work without humanoid too

#

but humanoid makes it easier to edit things like health and speed

#

without using attributes

#

might go for an attribute based solution later

frail plaza
upper pier
#

How long does it take for your applications to go through if any of you guys have sent them for this channel?

upper pier
#

yep

regal salmon
#

it depends on how many applications are in the queue and how many ARs are active during and after the time you submit it

upper pier
#

ahh ok

regal salmon
#

if your application hasnt been reviewed in 72 hours, you can submit an application ticket in #open-ticket to request it be reviewed

upper pier
#

ok

#

I submitted it today

#

So I guess I'll just wait

upper pier
regal salmon
upper pier
#

oof

#

ok

#

I'll just wait and see then, thanks for the help

regal salmon
#

np

median bay
#

is there like a proper way to document code in luau

#

like jsdoc or javadoc

vapid radish
#

EmmyLua annotations

vapid radish
frail plaza
#

luckily haven't made my tower classes yet

#

so i'll just go for the attribute solution

#

do towers also need to be dealt with in the same way as attackers?

#

where the server doesn't render them

#

i suppose this is better?

thorny osprey
#

aaa game movement n camera in roblox

frail plaza
thorny osprey
#

just check it man

frail plaza
#

any experienced scripter could make this in an afternoon

thorny osprey
#

it's

frail plaza
#

not to discredit you but it's mid

vapid radish
#

i appreciate your confidence though

frail plaza
#

yea

thorny osprey
#

have every thing aa horrror survival have

vapid radish
frail plaza
#

really wish more scripting tutorials taught about that

vapid radish
#

yeah exactly, server handles the logic and just replicates the results to the client

frail plaza
#

so i could have had it as a habit

#

when i started

vapid radish
#

lol yea

#

it's alright though don't worry

thorny osprey
#

client just show models, vfx

frail plaza
#

yeah no i know that

#

just learned abt it recently tho

thorny osprey
#

everything else sever have to handle

frail plaza
#

while researching optimization

vapid radish
# thorny osprey

it's just directional looking, it doesn't look bad at all it's just def not AAA or even AA. it's nice but you need some real math that goes into it because it doesn't look smooth right now.

vapid radish
#

well yeah that too, but i'm talking about the camera smoothing

thorny osprey
#

but i will try if can fix or not

vapid radish
#

you can just make a simple spring

#

wait

#

idk something like this:

local RS = game:GetService("RunService")
local camera = workspace.CurrentCamera

local currentPos = camera.CFrame.Position
local currentLook = camera.CFrame.LookVector
local posVel = Vector3.zero
local lookVel = Vector3.zero

local stiffness = 10
local damping = 6

RS.RenderStepped:Connect(function(dt)
    local targetCFrame = -- your target camera CFrame
    local targetPos = targetCFrame.Position
    local targetLook = targetCFrame.LookVector

    -- spring pos
    local posForce = (targetPos - currentPos) * stiffness
    posVel = posVel * (1 - damping * dt) + posForce * dt
    currentPos = currentPos + posVel * dt

    -- spring look
    local lookForce = (targetLook - currentLook) * stiffness
    lookVel = lookVel * (1 - damping * dt) + lookForce * dt
    currentLook = currentLook + lookVel * dt

    camera.CFrame = CFrame.lookAt(currentPos, currentPos + currentLook)
end)```
wooden harbor
vapid radish
#

thats what delta time is for

#

🤦‍♂️

#

it scales with whatever framerate you're on

wooden harbor
vapid radish
#

if the spring blows up, it's because of bad integration or not enough damping

wooden harbor
wooden harbor
#

nvm

#

my fault for arguing with a skid

vapid radish
#

i guess

wide mauve
versed arch
balmy sorrel
#

That's why I posted it

past hill
wide mauve
#

is it possible to animate using these cframes?

ivory bronze
shell galleon
ivory bronze
balmy sorrel
ivory bronze
balmy sorrel
ivory bronze
versed arch
#

nice

frail plaza
#

optimized?

shell galleon
balmy sorrel
# ivory bronze

Is the fire function called every single time you want to shoot?

balmy sorrel
frail plaza
shell galleon
ivory bronze
#

btw how can i get those arrows it seems so nice

frail plaza
#

its a settings

balmy sorrel
# ivory bronze

A lot of things here can be called once instead of every time you want to fire

frail plaza
#

show whitespace

#

in the studio settings

ivory bronze
frail plaza
#

is this good for an optimized projectile?

ivory bronze
balmy sorrel
potent maple
#

Btw, should I keep only functions in module script for ui or I can control ui without them and just keep the init function?

balmy sorrel
#

Do you use OOP for each gun or are you using a gun controller?

ivory bronze
balmy sorrel
#

So each gun created has it's own data

ivory bronze
#

yes

#

btw should i use fast cast for bullets or keep the one i have rn (ray cast)

balmy sorrel
#

Either raycast or create your own projectile system

#

using raycasts

balmy sorrel
wooden harbor
ivory bronze
#

is it bad for optimization?

balmy sorrel
#

Fastcast is old

balmy sorrel
# ivory bronze i use ray cast rn but i am planning on using fast cast

In this video I talk about creating a projectile system, the basics of client sided replication, custom physics, and I go over some examples in my own work.

💬 Want to join the community, learn, ask questions, and hear about new uploads? Join the Discord!
https://discord.gg/ujsTNxTaCF

🛠️ Check out the code for yourself:
https://www.robl...

▶ Play video
#

I would recommend creating your own

ivory bronze
#

alr ty, imma watch this vid rn

pine plinth
#

holy crap my first time using claude and this thing is insane

harsh geyser
#

Did roblox remove the feature to join groups in game?

pine plinth
#

@remote phoenix ty for putting me on

harsh geyser
#

For some reason my in game join group UI isnt popping up but the script is activating

frail plaza
#

needing an ai to churn out code for you is lazywork

harsh geyser
delicate shoal
#

Do someone know how to make an ai in Roblox studio

frail plaza
delicate shoal
#

Yes

#

Cuz I had an idea of making digital circus

frail plaza
# delicate shoal Cuz I had an idea of making digital circus

AI is cool to use, but have you ever wanted to make one yourself? Follow along as I make one from beginning to end live! All in Roblox Studio!

0:00 Intro
0:40 Creating the module script
2:35 Creating the network functions
5:25 Creating network constant variables
8:05 Defining a Neuron
9:35 Building the network
26:35 Feed function
38:40 Activati...

▶ Play video
#

gl hf

#

also sorry to tell ya but how on earth is a neural network gonna help you make tadc

harsh geyser
#

robert do yk what im doing wrong

#

or nah

frail plaza
#

with waht

#

i'm sleep deprived as fuckkkk

delicate shoal
frail plaza
delicate shoal
#

It’s to like make an AI that respond to you?

#

Cuz my idea it’s making digital circus Caine have you watch itv

frail plaza
#

it's a neural network or a machine learning alg

delicate shoal
frail plaza
delicate shoal
#

That’s peak I might watch it

frail plaza
#

the only reason why chatgpt and stuff talks the wsay it does

#

is cus it has a lot of data

#

trained on

#

its a machine learning alg trained on a TON of data

#

if you wanted to make caine you would prolly need to use httpsservice to get an external already trained ai hooked up and make its personality be caine

delicate shoal
#

Ohhh

frail plaza
#

alas a true caine is never possible in roblox

frail plaza
#

cus caine is a VERY complex character

delicate shoal
#

Ik

#

But like just him to do simple things in the game

#

Not like complex like actually complex things

frail plaza
#

like?

#

exmples

delicate shoal
# frail plaza like?

Like talk and interact with the player or just teleport himself and ask the server or make a suggestion for a map

#

I might be wrong

light fable
#

yea its bad roblox game i get i t

kindred pulsar
#

whats the best way to make a hitox

delicate shoal
frail plaza
delicate shoal
frail plaza
#

just make it a npc

#

with premade dialouge

light fable
#

depends on the character type

frail plaza
kindred pulsar
#

r6

light fable
frail plaza
delicate shoal
#

That will be lwk easy but I don’t want to add too many lines

hasty mesa
delicate shoal
hasty mesa
#

and api

#

to talk to an llm

frail plaza
delicate shoal
frail plaza
#

but tbh for someone like caine i doubt a llm can get him down

delicate shoal
#

I use api and paste it into the script to make it go to storage and that the npc will respond

delicate shoal
#

I was trying many first I I was using anthropic I think it’s called?

#

And other I forgot

#

Qrorc

#

Or whatever

hasty mesa
#
local generator = Instance.new("TextGenerator", workspace)
print(generator:GenerateTextAsync({
    UserPrompt = "hello"
}).GeneratedText)

this is roblox's built in

hasty mesa
#

you can give it a system prompt

delicate shoal
#

Ohhh

#

Wait I alr remember

#

I was using Claude ai and get its api to send message to Roblox studio but it wasn’t working for some reason

remote phoenix
pine plinth
#

i have no iamge perms

#

lets talk about life until i get my image perms and than we can continue this conversation

remote phoenix
#

you need bronze 2 trillion which takes infinite messages

#

im like the time lord or something bro

pine plinth
#

so life

willow maple
pine plinth
#

it hasnt been great

willow maple
#

I think i should stop the ad

remote phoenix
pine plinth
#

ik nothing about scripting btw and im in code discussion

remote phoenix
#

I was about to send a DEV about my DEV until I seen this message and I DEV

vast comet
#

js shut up

#

u might have ADHD

remote phoenix
#

yeah I have audhd its in my bio

remote phoenix
pine plinth
remote phoenix
#

wtf!!!

#

j×b

willow maple
pine plinth
#

yo claude is slaving for me rn holy crap ty so much @remote phoenix

pine plinth
remote phoenix
delicate shoal
#

to claude

#

i just lwk use it to solve errors cuz i lwk am lazy

#

😭

coral vine
#

Hey uhh beginner here was wondering how to move a model without setting primary part bc whenever I try to use to pivot or anything like that it doesn't work

coral vine
#

It doesn't

#

I am trying

weak radish
coral vine
#

Bc I am cloning it

#

Don't have it rn