#code-discussion

1 messages ยท Page 167 of 1

rapid eagle
#

so i'd say

fair copper
#

its different

waxen edge
#

if you want good anti cheat
make employment ui
and make the error message
Get a job

fair copper
#

it reduces the data into packets

#

its from suphi kaner

rapid eagle
#
RemoteHandler:FireServer(remoteName, args ...)
rapid eagle
fair copper
#

blink

rapid eagle
#

i am currently working

#

on normal m1s

#

lightattacks

#

thhen i will be optimizing and fixing allat stuff

#

then i will work on crit

#

dash

#

dashing is easy and sprint and allat stuff

#

will focus on making skill framework

#

which will be easy

#

and after that will work on aerial lightattack and lunge

fair copper
#

yeah i mean its just data driven

rapid eagle
#

then will do the prog

rapid eagle
#

i like to make my own

#

idc about much only if i fiind a problem

astral shale
#

its like one script for a whole mma grappling system where there is take downs grappling ground and pound its combined one combat tool is like 1500 lines

#

am just flexing the lines xd

astral shale
rapid eagle
fair copper
#

i basically editted the networking module to fit my game

astral shale
fair copper
#

but the logic behind intercepting the networks is fire

#

i might add it

fair copper
astral shale
fair copper
#

i will take away features from it

#

good to learn something good

rapid eagle
#

i am so tired anyways

#

i will now focus on improving my scripts

#

later i work on addingg more

fair copper
#

im basically done with my melee combat

rapid eagle
#

i just made hitboxing

fair copper
#

i just gotta fix my damage calculation logic

rapid eagle
#

oh yea i gotta make damage calculation

#

but for later

fair copper
rapid eagle
#

for buffs and debuffs

fair copper
#

just use some module no?

rapid eagle
fair copper
#

like why do u want to recreate hitboxes from scratch

#

is there a thought behind that

rapid eagle
#

i hhave a lot of hitboxing methods

fair copper
#

so u gotta build custom ones?

rapid eagle
fair copper
#

yk i used to use a blockcast from my character's hrp

#

back when i started this

#

cus i thought it was a rpg

#

and it wouldnt matter

#

LOL

#

but i realized i can just instead use raycasts and give blocky hitboxes to npcs instead for accuracy

ebon saffron
#

Does anyone here know how to script good

astral shale
#

i think most of the people here can script good

granite badge
#

Does anyone here have a Cross-Server Party System optimized for large quantity of players I can just buy off of them? We made one ourselves, but the issue is its scalability, which isn't able to handle more than 200+ active users at once creating & deleting parties constantly.

fair copper
#

since ur main issue seems to be traffic

#

or is it something else? the reasons of ur code failing

languid meadow
#

how did Ink Game on Roblox created ip ban

fresh yacht
languid meadow
#

they added banasync

fresh yacht
#

Yea

languid meadow
#

ty

warped sundial
#

who wanna join my community for making simple roblox games

solemn berry
#

e

charred storm
#

what functions can i utilize to make this:

server hub who teleport's player from start place to destination place (same universe)<-- done
teleport's player's to reservedserver's of the destination place.
<-- done
make destination reservedservers send data such as
PlayerCount
Friend's in server (example we're friend's and im in one of the reservedserver's, it will display my username and the server im in.)
Server Running Time.
And the startplace should receive and display that data?

what functions can i utilize?

untold gate
#

guys for 50 robux who can fix a script

muted canyon
#

What type of script

stoic radish
#

Hey guys, so I made my whole script inside a Touched function. I have many variables I need to get from there so I can add on my when humanoid dies event. How can I bring these variables to the humanoid died event?

The variables are located in :
Server Script > Module Script > Function > Function

The died event is located in the Server Script

bold hound
#

Move them out the code and assign them from the code.

fallen summit
#

ts finally workssss

#

itโ€™s got a yaw problem right now but it works

bold hound
#

Looks nice.

raven yew
#

One message removed from a suspended account.

#

One message removed from a suspended account.

fallen summit
#

lol

proper sonnet
#
raven yew
raven yew
glacial mountain
#

i need to send a link but im lvl 1 where do i send guys

gilded ruin
#

rate the emote i just made

#

ts

surreal zodiac
#

/_/\
( o.o )

^ <
/ \
( )
^^ ^^

#

AHH

#

HIS BODY

#

FUCK

chrome ice
#

yo anyone know how to add like velocity on a part when you spawn it like i want that when i spawn a part its like launch with force yk what i mean

tame iron
#

who needs scripting help dm me

mystic dagger
#

can anybody help me fix or improve my code its kinda broken

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local characterLoader = {}

function characterLoader.loadCharacter(player, characterType)
    if not player then return end

    local equippedName
    local folder

    if characterType == "Killer" then
        equippedName = player:WaitForChild("EquippedKiller").Value
        folder = ReplicatedStorage:WaitForChild("Characters"):WaitForChild("Killers")
    elseif characterType == "Survivor" then
        equippedName = player:WaitForChild("EquippedSurvivor").Value
        folder = ReplicatedStorage:WaitForChild("Characters"):WaitForChild("Survivors")
    else
        return
    end

    local avatarFolder = folder:FindFirstChild(equippedName)
    if not avatarFolder then return end

    local newChar = avatarFolder:FindFirstChild(equippedName):Clone()
    newChar.Name = player.Name

    local humanoid = newChar:FindFirstChildOfClass("Humanoid")
    local hrp = newChar:FindFirstChild("HumanoidRootPart")
    if not humanoid or not hrp then
        return
    end

    if player.Character then
        player.Character:Destroy()
    end

    newChar.Parent = workspace
    player.Character = newChar


    newChar:WaitForChild("HumanoidRootPart")
    task.defer(function()
        local cam = workspace.CurrentCamera
        if cam and humanoid then
            cam.CameraSubject = humanoid
            cam.CameraType = Enum.CameraType.Custom
        end
    end)


    if avatarFolder:FindFirstChild("WalkSpeed") then
        humanoid.WalkSpeed = avatarFolder.WalkSpeed.Value
    end
    if avatarFolder:FindFirstChild("Health") then
        humanoid.MaxHealth = avatarFolder.Health.Value
        humanoid.Health = avatarFolder.Health.Value
    end
end

return characterLoader
mystic dagger
#

theres no error it just doesnt like pos the cam correctly

#

like it changes the char but

#

the cam is at the original position of where the character was before their character changed

cloud atlas
#

is this something cool? I wanted to make it so roblox players could add songs to my own spotify playlist for jokes

mystic dagger
#

you should actyually do that

cloud atlas
#

uhh

#

would it be tos???

#

I would have to do the cencorship on the song names or I would get nuked

mystic dagger
#

true

somber vault
#

bro imagine listening to music in 2025

#

No one makes good songs anymore

royal marten
#

what does local means in roblox studio?

glass narwhal
#

does anyone know how to enable this inventory button in studio?

mental grove
glass narwhal
mental grove
#

ye

warped sundial
#

who wanna join a community for making simple roblox games

copper gorge
#

does anyone know how to put dev products in a game if so dm me

agile fulcrum
#

guys is there a way i cna open a published version of my game instead of the newly edited one?

stark geyser
#

unless you have a backup i doubt it

spare ocean
stray oak
#

Yabadaba

rapid verge
rapid verge
warped sundial
spare ocean
rapid verge
glacial mountain
#

i found this showcase on yt and i rlly liked the button sounds can someone please find the sounds for the buttons!!๐Ÿฅ€

spare ocean
glacial mountain
#

nvm

#

i still cant find pls give id

spare ocean
glacial mountain
glacial mountain
bright scarab
glacial mountain
#

wait gng can someone give me the id tho

spare ocean
spare ocean
glacial mountain
spare ocean
glacial mountain
#

y not today

ember barn
#

CAN SOMEONE FUCKING HELP ME WITH MY SCRIPT GNG

#

IMA KILL MY SLEF

mellow dagger
#

im working on knockback in my combat systems and theyre usually pretty choppy or feel weird, anyone have any advice for scripting smooth knockback?

fair copper
#

the knockbacks

warped sundial
mellow dagger
#

should i be replicating it on client?

spare ocean
warped sundial
#

i js need members

spare ocean
#

Bruh

#

Ah mi good

fair copper
#

and just make server update the positions

#

it should feel smoother

#

as a security measure, add sanity checks that checks if the knockback distance is even sensible or not

#

and ur done

mellow dagger
glacial mountain
warped sundial
#

who wanna join a community for making simple roblox games

civic oxide
#

me

waxen edge
#
function RoundSystem:AssignPlayersToChairs()
    local players = self:GetActivePlayers()
    local availableChairs = self:GetAvailableChairs()
    players = self:ShuffleArray(players)
    availableChairs = self:ShuffleArray(availableChairs)

    self.assignedChairs = {}
    local assignmentCount = math.min(#players, #availableChairs)

    for i = 1, assignmentCount do
        self.assignedChairs[players[i]] = availableChairs[i]
    end

    return self.assignedChairs
end

function RoundSystem:TeleportPlayersToChairs()
    for player, seat in pairs(self.assignedChairs) do
        if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            local character = player.Character
            local seatCFrame = seat.CFrame
            local offsetY = 2.5
            local targetCFrame = seatCFrame + Vector3.new(0, offsetY, 0)
            character:PivotTo(targetCFrame)
            if character:FindFirstChild("Humanoid") then
                character.Humanoid.Sit = true
                seat:Sit(character.Humanoid)
            end
        end
    end
end

function RoundSystem:GetAvailableChairs()
    local availableChairs = {}
    for i = 1, 6 do
        local chair = chairs:FindFirstChild("Chair" .. i)
        if chair and chair:FindFirstChild("Seat") then
            table.insert(availableChairs, chair.Seat)
        end
    end
    return availableChairs
end```


Hello, so this is my current function of the teleporting to chairs system is similar to breaking point however the teleport is inaccurate and it doesn't even seat the player it tilts and its very buggy.
native sail
#

Looking for scripter to help fix two bugs in my game it's easy bug but I am not able to fix it my game is almost done

native sail
warped sundial
#

who wanna join a community for making simple roblox games

gaunt pelican
warped sundial
gaunt pelican
tame egret
#

So anyway wants to script the photo shoot scene from squid game for quick money

gaunt pelican
#

my brain ๐Ÿ”ฅ

#

my brain burn

inland sierra
#

nah its peak

#

def not inspired by ANY popular languages

tame egret
native sail
tame egret
native sail
tame egret
#

We can do 2.5k Iโ€™m paying 25

native sail
tame egret
native sail
warped sundial
#

who wanna join a community for making simple roblox games

abstract belfry
#

guys how can i make โ€œJoin group + like the gameโ€ for free rewards?

gaunt pelican
abstract belfry
warped sundial
#

who wanna join a community for making simple roblox games

gloomy gate
#

hi

#

hidden devs so tuff

jaunty ermine
#

who ever need a anti cheat hit me up โœŒ๏ธ

fading hamlet
warped sundial
unreal nest
visual vector
#

anyone down to make games togethere

sharp creek
#

is this channel real

#

do any of you really exist

subtle sage
waxen edge
subtle sage
hallow crag
#

thats slavery

weak radish
#

Icba to check what the task was

weak radish
empty wind
#

guys, if i replicate a gui from a local script into player will it be accessible from server?

warped sundial
#

who wanna join a community for making simple roblox games

fading hamlet
fading hamlet
subtle sage
gaunt pelican
#

XD

#

no it's a joke

subtle sage
#

like the bar thing moving

#

thats all

gaunt pelican
gaunt pelican
subtle sage
#

end Udim2

#

idk if u get what i mean

#

do you just repeat the tween?

gaunt pelican
subtle sage
#

oh alr

ebon saffron
#

Anyone down to be my scripter for game projects

#

Ill give 50% of profit

subtle sage
#

% is ass

#

whenever ur good enough

ebon saffron
subtle sage
ebon saffron
#

its a risk but it can pay off

subtle sage
#

10

ebon saffron
#

sry I meant 100k

subtle sage
#

still

ebon saffron
#

wdym

subtle sage
#

if people dont like the game

#

u wont get any retention

#

and no money back

ebon saffron
#

If it is well made people will like it

gaunt pelican
#

I am the only guy to find that 10k is a lot

ebon saffron
#

ok good idea

#

its $100

gaunt pelican
ebon saffron
gaunt pelican
ebon saffron
#

Its a shooter

oblique oyster
ebon saffron
ebon saffron
gaunt pelican
ebon saffron
#

no I didnt

ebon saffron
#

How do I post a job in the script hiring

subtle sage
#

run /post in cmds

warped sundial
#

who wanna join a community for making simple roblox games

modest prism
#

where would i find scripting work for small jobs, to increase my portfolio and earn

modest prism
#

lol

slate thicket
#

hai guys, i had some problem, idk its within my code or not, but the problem is, i try to make some system that u collecting a coin with some radius given. My main account can do that, in roblox studio or roblox player, but my friend account, my other account cannot collect the coin. Do someone had some ideas?

warped sundial
#

who wanna join a community for making simple roblox games

sick sandal
primal python
little marten
#

yo guys im a new coder, just learning

#
local Player = game:GetService("Players")


local PlayerStats = {}

local function StatsOutput(player)
    local stats = PlayerStats[player]
    if not stats then
        return print("No stats found!")
    end
    print(`Player: {player.Name}`)
    print(`--> Coins: {stats.Coins}`)
    print(`--> Level: {stats.Level}`)
    print(`--> Inventory: {table.concat(stats.Inventory, ", ")}`)

end

Player.PlayerAdded:Connect(function(player) 
    local NewStats = {
        Coins = 0,
        Level = 0,
        Inventory = {},
    }

    PlayerStats[player] = NewStats

    StatsOutput(player)

    task.wait(5)

    if PlayerStats[player] then
        local GainedLoot = {"Wooden sword", "Health Potion", "Basic Shield"}
        for _, item in ipairs(GainedLoot) do
            table.insert(NewStats.Inventory, item)
        end
        NewStats.Coins += 50

        StatsOutput(player)

    end

end)

Player.PlayerRemoving:Connect(function(player) 
    PlayerStats[player] = nil
end)
#

what do u guys think

native sail
#

Any coder available to help fix a small big @ me asap

untold gate
#

guys i really need help in make a door animation like a door for a crate to open
who can do it pls quick
i will pay him 50 robux

azure quest
charred storm
#

what functions can i utilize to make this:

server hub who teleport's player from start place to destination place (same universe)<-- done
teleport's player's to reservedserver's of the destination place.
<-- done
make destination reservedservers send data such as
PlayerCount
Friend's in server (example we're friend's and im in one of the reservedserver's, it will display my username and the server im in.)
Server Running Time.
And the startplace should receive and display that data?

what functions can i utilize?

drifting fern
#

and saying โ€œpls quickโ€ wont make animating faster.

somber vault
#

Its all in it

static coral
little marten
#
local module = {}
module.__index = module

function module.Create(player: Player)
    local self = setmetatable({}, module)
    self.Player = player
    self.Ammo = 12
    self.SecondModule = require(game.ReplicatedStorage.Gun)
    return self
end

function module:Print()
    while true do
        task.wait(1)
        local newAmmo = self.SecondModule:Shoot(self.Ammo)
        self.Ammo = newAmmo
        print("Current Ammo:", self.Ammo)
        
        if self.Ammo <= 0 then
            print("Out of ammo!")
            break
        end
    end
end

return module
#

what do u guys think

tropic plume
timber bramble
static coral
tropic plume
narrow vault
#

false icl

#

saw a guy once get reviewed by another guy, you saw their app and you done grabbed their role and threw it in a volcano

#

๐Ÿ™

stuck radish
#

I go over every single application since I became AR*

stuck radish
tropic plume
stuck radish
#

I was expecting a crashout already

tropic plume
spark estuary
#

you have to be a member in the roblox dev forum

#

i forgot the requirements

fervent belfryBOT
#

To obtain any of the 2 DevForum roles, you must first have the respective Trust Level on the DevForum website.

Secondly, make sure your ROBLOX account which has the right Trust Level is linked to your Discord account through HiddenDevs' website.

After, make a "General Ticket" through the /ticket command; follow the prompt and add in the description that you wish to obtain the role(s).

The two DevForum Trust Levels are "Member", and "Regular".

Common Misconceptions
green_dot Linking your DevForum profile in the ticket
gray_dot We do not use this link, instead we use the username of the account linked to your HiddenDevs account.

green_dot Requesting without Trust Level
gray_dot You must have a Trust Level displayed on your profile, if not; you cannot get the roles

For more information visit the DevForum FAQ

spark estuary
#

here

tropic plume
little marten
crimson drum
#

probably attributes

#

i never use values

static coral
# little marten y

they are slower than normal methods and its slower the more keys you have because it has to search the entire table first. not too mention its rather ugly and why use weird features to replicate oop if you can just use structs or function references inside tables?

little marten
static coral
static coral
crimson drum
#

how exactly?

little marten
#

if this tech had no purpose then why would it be added

crimson drum
#

im kinda new to oop but i have only been using meta tables dont know of any other ways

static coral
#

basically

#

when you assign a key in a table to a function, it passes a reference to it instead of duplicating the entire function. this way its still effective for doing oop

#

you can also just

#

have a utility library with functions for manipulating your data structures

#

like for example the buffer library or string library

crimson drum
#

your passing by reference and not value essentially

static coral
#

where you dont attach any methods to the object and they only contain data

static coral
crimson drum
#

ok but what if you need multiple copies and not just references

#

to store values

static coral
#

you dont need multiple copies of functions

crimson drum
#

like you have a class

static coral
#

unless you are overloading a function or its polymorphism type shi

crimson drum
#

yh if you need to override

static coral
#

in which case you can just add behaviour to simulate this

#

you can also use types to do function overloads and just use the same function

#

by making an intersection of 2 function types you can create an overloaded function

crimson drum
#

is this what most people do?

static coral
#

no

little marten
static coral
#

its a little more effort but its less shitty and faster

#

its similiar โ€œoopโ€ method to what is used in C

#

like the structs fake oop

crimson drum
#

aight ill look into it whats it called so i can learn it

static coral
#

basically the exact same

little marten
#

when will roblox add an actual oop

static coral
static coral
crimson drum
static coral
# crimson drum .

well it doesnt really have a name. i just meant like this:
function declaration

instance.key = function (function is cached, new one is not created)

gilded crown
#

looking for a scripter to do a basic incremntal game will get percentage and robux

cinder basalt
gilded crown
cinder basalt
#

-like

crimson drum
cinder basalt
versed jasper
#

just made my first obby kill brick

#

its begun

crimson drum
#

nice

static coral
#

why make bad code on purpose though?

#

it is an objectively worse way of coding

#

its standardized because skidding is normalized

#

straight bars

#

kind of but my point still stands, it is an objectively worse way of coding

#

why use the worst method of oop when there are better methods

#

yes

orchid cipher
#

guys what should i make wihth only a part im 1 week into scripting

static coral
#

theres no reason to use them. the only use for metatables is when exploiting

#

no, you can use function references. or structs fake oop as i said. and you can implement inheritance pretty easily too. you can implement polymorphism too actually

#

probably because you are using metatables

#

access what? and wym expose the base class? that is the point of inheriting from it

orchid cipher
#
local DragSystem = Drag:WaitForChild("DragDetector")
local Higlight = Drag:FindFirstChild("Highlight")


DragSystem.MouseHoverEnter:Connect(function()
    Higlight.Enabled = true
end)

DragSystem.MouseHoverLeave:Connect(function()
    Higlight.Enabled = false
end)``` my first drag system
static coral
#

there is a way to achieve private fields pretty simply as well. and how do you expect to implement this with metatables? you will still be able to access it in the metatable

#

.Sides will still show up in intellisense im p sure

bleak glade
#

tuff but id probably do

 local Triangle = setmetatable({}, {__index = Shape})
Triangle.__index = Triangle
static coral
#

you can just play with custom types to achieve better. you can create a type for private members and then a type for public members then return the public type from constructor

#

and then dont use metatables obviously

rough gust
#

does anyone here know how to use IK and procedural animation? i am so confused over it, making a horse but it wont move

stiff lantern
#

does anyone have good recommendation on learning Lua for beginners?

rocky snow
#

Rate 1-10

astral shale
#

toint 5o to make it for my self

cinder basalt
cinder basalt
astral shale
cinder basalt
astral shale
dawn sphinx
#

yo any1 free test my game real quick plss

crimson drum
#

what game is it

dawn sphinx
#

dm

stiff lantern
median quail
#

Anyone know how to make it so that a certian team spawns with an item? Ive been stuck on this for top long๐Ÿ˜”

#

Too*

astral shale
#

i test games

stiff citrus
#

Can yall tell me how you organize your code or if you use any frameworks or you can recommend using them

sweet herald
#

How to edit module code in a different script help

#

Plss

balmy wedge
#

require it twin

runic quarry
#

guys how do i invert a camera view frfr

#

made this viewport mirror

#

issue is i am inverting viewport camera view by setting R00 to -1

#

that causes some

#

issues to say the least

#

Like the character will appear inside out

#

any other way to invert the camera view?

timber bramble
runic quarry
#

so i mean if setting R00 to -1 isnt a way i can invert the camera view

#

without fucking up generally everything else

#

then what is

untold vale
#

I need help - whats the best way to learn eg who is the best on yt or any websites that help with practise , thank you

#

like i need actual advice

hoary zenith
#

sa

fair copper
#

but i would recommend sleitnick and suphi kaner

#

also docs are great

marsh kelp
fair copper
#

exempli gratia

#

in latin..

marsh kelp
#

oh, it was e.g.
I'm stupid

#

I thought it was a word, and he was asking to learn "eg" ๐Ÿ˜ญ

fair copper
#

yea online punctuations make u go insane

#

๐Ÿฅ€

ripe plume
#

sup

untold vale
marsh kelp
fair copper
#

o and u got paulrb1

#

guy worked on fruit ninja n shit knows what hes doin

ember barn
#

who scripts?

flint merlin
#

does anyone have a basic script for vfx?

untold vale
stable urchin
marsh kelp
# untold vale is it some kind of russian yoututber

I donโ€™t think any of them are russian
https://www.youtube.com/@5uphi
https://www.youtube.com/@sleitnick1

queen parcel
#

anybody wanna make a game with me? dm me if you want to

grand briar
#

how do i give a r6 dummy default anims?

sweet herald
vestal sierra
#

how do I autocomplete this?

cyan linden
#

yo why when I create a part set to HRP's position, fire a remote to the server and create another part set to HRP's position there's a significant displacement between the two parts? I thought the character physics replicating to the server took ~Xms (ping), so when I fire a remote event which takes X ms to arrive, the HRP's position should have been updated to the server no?

frigid thorn
#

Just do any variable

#

The variable will be the player

normal verge
#

im an animator in a code discussion channel

#

lets goo

valid coyote
#

should i make steal a labubu

frigid thorn
uncut cloud
#

whats better for knockback? applyimpulse linear velocity or body velocity?

fair copper
#

one does a parabolic arc type of knockback and another is just impulse

#

body velocity if u wanna manipulate the path

uncut cloud
dense crater
#

guys is there any way i can make a global leaderboard using profilestore?

uncut cloud
dense crater
#

both actually

#

just give me a pointer i'll figure it out, just discovering profilestore and yeah wondering what it can do

fair copper
uncut cloud
uncut cloud
dense crater
#

atm was thinking about just making an ordered data store that just saves and leaves the loading to profilestore

#

just wanted to know if there are better options

#

i really like the way profilestore handles player data, i find it quite elegant so that's why i attempt to keep it as the main data handler

unreal nest
warm nova
#

my reset button is not being disable

#

how to disable it?

near sonnet
#

U can do it in a Script

#

@warm nova

rigid willow
#

why do local scripts and module scripts run in different environments

clever shuttle
#

hdy guys handle getting attacked midway through a attack in a combat system?

glass narwhal
#

does anyone know how to make a global restock shop like the ones you see in games like grow a garden etc where the restock is the same across all servers?

near sonnet
fair copper
#

How do people make smooth vfx like synced with the weapon's path or whatever

rigid willow
#

im having a weird issue right now

near sonnet
#

Ehm

#

Idk abt vfx

#

Iโ€™m abt to get a poem from Nxen

rigid willow
#

im initializing my module in a local script and it connects an event that uses a table assigned in global scope but when other modules try to add stuff to that table it adds it on a different environment from where it was initialized, and the event never uses the elements added to that table

static coral
rigid willow
#

yea im just not sure how to get around this

near sonnet
rigid willow
#
local OnCharacterHooks = {} :: { CharacterHook }?

-- adds the hooks in another environment
function Module.AddCharacterHook(Hook: CharacterHook)
    table.insert(OnCharacterHooks, Hook)

    if Player.Character then
        task.spawn(Hook, Player.Character)
    end
end

function Module.OnCharacterAdded(Character: Character)
    Character:AddTag("Player")

    for _, Hook in OnCharacterHooks do
        Hook(Character)
    end
end

function Module.Init()
        -- the init was only called in another environment, so it never gets the hooks, and the hooks never get called
    Player.CharacterAdded:Connect(Module.OnCharacterAdded)

    if Player.Character then
        task.spawn(Module.OnCharacterAdded, Player.Character)
    end
end

this is pseudocode

#

environment not scope mb

#

and

#

im not talking about client and server

#

this is only happening on the client

static coral
rigid willow
#

wdym

static coral
#

function module.get() return hooks end

#

something like that

rigid willow
#

uh

#

but they re in a different environment

static coral
#

wdym

#

wait

#

you mean in a different thread?

rigid willow
#

no

static coral
#

then wdym different environment

rigid willow
#

wait

#

this could be a task.spawn issue

#

nope

#

its not

hasty mesa
static coral
#

do you mean when you add a value to the table, you cant access it from another script?

rigid willow
#

oh hi hao

hasty mesa
#

is it an actor

#

is it on the server

rigid willow
#

no nothing like that

#

they re both on the client

#

i dont quite understand tho

hasty mesa
#

modules only run once

#

on the same context

rigid willow
#

yea thats what i thought

#

but

#

it prints required twice

#

and i cant figure out why

hasty mesa
#

where is the module script located

rigid willow
static coral
rigid willow
#

first line

static coral
#

show

hasty mesa
rigid willow
hasty mesa
#

so not a script with run context

cloud scroll
#

Does anyone have an idea why the .Activated and .MouseButtonClick1 work well on pc and controller but don't on mobile?

rigid willow
#

nope

hasty mesa
#

print

#

and see where it takes you

rigid willow
#

very good idea

#

its 2 different ones

hasty mesa
rigid willow
#

doesnt show in the explorer tho

native quest
#

are you trying to modify a table in the module script using other local scripts/module scripts?

static coral
native quest
#

okay how are you doing that

static coral
#

looks like you have a duplicate script, just delete one

rigid willow
#

wait wtf

native quest
#

lol

hasty mesa
violet folio
rigid willow
#

oh.

violet folio
rigid willow
#

i found the issue ๐Ÿ˜ญ

#

sooo uhh

violet folio
#

supposedly there is a bug where a module gets required twice

rigid willow
#

luau lsp sometimes auto import absolutely, which works for server scripts
not as much for client scripts..

violet folio
#

and the return value gets cached twice

native quest
#

if you want true 'global scopes' as you put it , you can get a public module that allows you to do that, like suphis Global Framework module.

hasty mesa
rigid willow
violet folio
vestal sierra
# frigid thorn Huh

But you know there is parameters already defined in the picture How do I autocomplete that

native quest
#

modules can be everywhere they can run, depends on what your using them for

rigid willow
fair copper
#

i got some camera modules n stuff in my starters

violet folio
#

because it ensures that they are loaded before any localscripts in starter player run

fair copper
#

i hate frontend

#

goddamn

hybrid ice
#

making my own ai chatbot within roblox maybe making it open source, anyone down to test it dm me

fair copper
#

ur using chatgpt api

#

luh bro

hybrid ice
#

na not even

fair copper
#

then what

hybrid ice
#

no api

fair copper
#

are u data training ur roblox ai chatbot bro

hybrid ice
#

js scripting

hybrid ice
fair copper
#

๐Ÿ‘‰ ๐Ÿ‘ˆ

#

wheres the machine learning man

#

fair work tho its just roblox

hybrid ice
#

tbh its pretty bad but the more ppl use it the more i can learn from it

fair copper
#

u mean u need people to find bugs

#

๐Ÿฅ€

stuck hollow
#

hi guys Iโ€™m day 3 in scripting and Iโ€™m able to make kill bricks, speed bricks, basically Iโ€™m just learning and using events like playeradded touched connect find first child wait for child etc
I want to make a kill brick that gives you 2 chances but Iโ€™ve not been successful, the best I did was make it so it puts you to 1 hp then I made it wait 3 seconds so you can get off it and then made it so you die but I canโ€™t get that to be conditioned to if you touch it again, I know this is confusing but any suggestions?

hybrid ice
#

i dont have 7 billion to train the ai so i js want ppl to ask it more questions

fair copper
#

my brain just an_BufferingKagura

fair copper
#

do u store those questions and connect somewhere to answer them?

#

idk

hybrid ice
#

thats what i was thinking

#

idk i js need time to do it

fair copper
#

then just use a http smthn shit i havent dabbed up on that shit yet

#

some outer api

#

lol

hybrid ice
#

yh

fair copper
#

interesting project tho u could learn alto

#

๐Ÿ‘

stuck hollow
# fair copper can u explain ur 2nd part more bro

Iโ€™m sorry Iโ€™m not good at explanation LOL, ok so my coding is on my computer and Iโ€™m using my iPad rifht now to talk but Iโ€™ll try..

so I made a kill brick that when touched by a humanoid, will set your HP to 1 and print โ€˜you have 3 secodns to get off, you have been warnedโ€™
then I put warning = true (before it was just warning = false, idk if this is needed but I made it a conditional for if you step on it again)
Then I put task.wait(3)
so I then put another if statement below this
if humanoid and warning = true then
humanoid.health = 0
print (โ€œyou was warnedโ€)
Iโ€™m pretty aware this obviously has no way to let the character touch it again without dying in 3 seconds but I tried copying the events that made this run above the if statement and that didnโ€™t work, any way I can make it so you have to touch the brick again to die?

fair copper
#

hmm

hybrid ice
#

twin what

fair copper
#

so i think

#

once a player touches the brick, the script pauses for 3 seconds before continuing to the health = 0

#

right

stuck hollow
#

yea

#

but I want the player to have a second chance

fair copper
#

so if the player is still on the brick and the script is already running its course, so touching it again won't reset the timer or change the outcome.

stuck hollow
#

not just die after 3 seconds, the 3 seconds is to give the player time to get off

fair copper
#

the best way to handle this scenario would be

#

use a debouncer and a a separate conditional check that handles the second touch

stuck hollow
#

hmm

#

how would it handle the second touch

fair copper
#

so before touched event u add the local debounce = true

#

and add conditions maybe hmm

#

debounce is true, it means this is the first time the player has touched the part or something

stuck hollow
#

my only conditions for the second touch was

#

if humanoid and warning = true

fair copper
#

make the debounce false on the second touch instead

#

they touch the brick again while debounce is false, their health is set to 0.

#

then u just reset ur debounce back again

stuck hollow
#

alright Iโ€™ll try do that tomorrow, quite late for me xd

#

is my progress good for day 3 of scripting?

#

day 3 was mainly learning about events but I didnโ€™t have much time but I think I got it

fair copper
#

i mean i think u need some work at logic gates and oop

#

but its fine we all get better

stuck hollow
fair copper
#

well basically like i used that debounce = true/false

#

stuff like that

stuck hollow
#

yea I learnt about that

#

itโ€™s quite cool

#

I used it for when a part is touched

#

so I made 2 parts and if I touch 1 then the other one goes transparent

#

I used a de bouncer to reset it after 2 seconds

#

so I gotta do that to the kill brick

#

Iโ€™ll find a way to get that in there and test it out

fair copper
#

hmm yeah so basicallly its something this ?

#

if humanoid then
if debounce then
humanoid.Health = 1
debounce = false
task.wait(3) -- your wait timer
if humanoid.Health > 0 then
debounce = true
print("The warning timer has expired.")
end
else
humanoid.Health = 0
debounce = true -- Reset the debounce so it can be used again.
end
end

#

yeah thats how u would go on about it

#

Lol

#

obviously add conditions n whatever make it complex as fuck

stuck hollow
#

thank you man

stuck hollow
#

by the end of this summer or well when I return to school (sep 5th)

#

I want to have been enrolled or completed 1 commission

fair copper
#

nice stuff.

#

i think u should hop into frameworks and better things

stuck hollow
#

got about a week and a halfish

#

whatโ€™s frameworks?

fair copper
#

patterns to use for better coding and more complex logic idk

#

it helps knowing them beforehand

stuck hollow
#

ah so itโ€™s like a frame for codes

fair copper
#

some frameworks eliminate server lag

#

hahaha no

stuck hollow
#

basically optimised coding

fair copper
#

yeah just learn about it you know

#

if u know basic coding

#

whats what

stuck hollow
#

yea the people who could hire me wouldnโ€™t like spaghetti code that hurts the performance of the game xd

fair copper
#

no its because well, its impossible to make quality games without those

stuck hollow
#

yea thatโ€™s also true

fair copper
#

so set a goal or something because you'll feel bored after making killbricks

#

lol

stuck hollow
#

but also learning scripting to me is quite fun

fair copper
#

cool enough

#

i guess

stuck hollow
#

By the way

#

what is a portfolio? Is that basically a resume for jobs

fair copper
#

put ur best showcases on the portfolio

#

most interesting ones would be physics based systems

stuck hollow
fair copper
#

yeaah dont worry about portfolio stuff lol

#

u make those when u can atleast make full fledged systems

twilit bay
#

yea yea im saying

graceful berry
#

yo , anyone have a script to show 3d models in front of camera

#

I'm too lazy to do it if anyone has already done it WHYYYYY

twilit bay
#

100k robux for who ever fixes my external data not transferring to a new universe/place

serene fractal
#

Someone put me on some goated combat scripters anime specifically

surreal zodiac
craggy heron
#

crazy how even the speedometer moves up

#

even tho speed isn't matched

tranquil tide
#

why do it tell me that item is not in sale ๐Ÿ˜ญ

dull sleet
#

i love scripting

#

nothing else makes you feel like a complete idiot and a genius at the same time

spare ocean
vestal mason
vale flax
vestal mason
royal marten
#

HP = 50

Local MaxHealth = HP

Why doesnโ€™t it work?

wraith fog
tacit jewel
#

hello

#

does anyone know why my studio is stuck on connecting to server on mac?

craggy heron
#

jus try re installing

#

happens once in a while

tacit jewel
#

restarted pc. waited hrs. reinstalled studio

#

nothing

craggy heron
#

make a post on devforum

#

or contact support

tacit jewel
#

i dont have perms to post on it but ill check if anyone has a fix thx

tacit jewel
craggy heron
#

jus search

#

i dont think u can make bug reports

#

cuz u need to be accepted into it

#

idk why but yeah

tacit jewel
craggy heron
#

contact support

tacit jewel
#

they gon take forever

craggy heron
#

nd wait 7 years for the earliest reply

runic quarry
#

Hallo guys is it possible to mirror a camera view

tacit jewel
#

or pip?

runic quarry
#

no more like

#

flipping the players camera view

#

like from this

#

to this

#

@tacit jewel

#

excluding the gui mirroring

tacit jewel
royal marten
#

Yo how do i set base HP for a character? Whatโ€™s the code that Roblox accepts?

Is it humanoid.maxhealth?

agile igloo
#

Does anyone know how to change the keybind for a tool? For example when you have a tool you press numbers to hold it like 123, but how can I change that to a different thing like G?

weak folio
#

Where would be a place for a noob like me to start coding?

cinder basalt
#

and make it

chilly heart
cinder basalt
#

learn everything on the way when u need it

#

works like a charm

chilly heart
#

youtube, devforums, github

cinder basalt
#

he better stick to youtube

chilly heart
#

real

narrow crescent
#

is there an aura farming channel

cinder basalt
cinder basalt
#

dont read the shitpost

violet folio
#

holy cap

cinder basalt
#

BUT

pseudo stream
#

yo

cinder basalt
#

code help used to be different back then

pseudo stream
#

Am I only th e only one

#

that has this quick search?

cinder basalt
#

80% code 20% whatever it is rn

#

now its 80% whatever and 20% code

violet folio
#

now it's just #chat replacement

cinder basalt
#

and they come to code help

weak folio
cinder basalt
weak folio
#

how bad was it

cinder basalt
weak folio
tame egret
#

Anyone wants 11k Robux to script for me six leg from squid game

sweet acorn
#

how long did it take for you guys to learn how to code? please be realistic

orchid merlin
#

is there a way to check when someone buys something from ur roblox group using api? i know how to do this with my personal token but i dont want my bot to rely on me staying logged in

calm olive
#

Failed to generate purchase auth token: MarketplaceService:getProductInfo() failed because HTTP 400 (Bad Request) - Studio
Internal error while fetching asset type because MarketplaceService:getProductInfo() failed because HTTP 400 (Bad Request) - Studio
why we doing this dude

wet briar
#

and after you start to understant the language

#

learning more advanced stuff comes easier

regal bough
#

how do u make maps bro i only know cod

#

code

buoyant junco
torpid blaze
#

who wanna join my community for making simple roblox games dm fast

tough obsidian
#

if anyone need any game assets for cheap dm

placid matrix
runic quarry
buoyant junco
#

1second debounce

#

if it fast it doesnt looks that Smooth

sudden python
#

w hidden devs mod

#

approved my post

fair copper
#

should i add a point at the tip of the sword instead or something like a trail

#

instead of this vfx stuff

#

what yall think

placid matrix
#

maybe have a better interval for the swings, the animation looks too linear, greatsword needs more weight behind its swings

fair copper
#

yeah it some frame skips

#

has*

#

in between

#

to make it fast

placid matrix
#

ye i think its a good style

#

just saying though if u have a katana how much faster would that be compared to that greatsword

fair copper
#

i got a katana

#

just no vfx on it

placid matrix
#

yeah i saw

fair copper
#

watch this

#

i think its similar

#

havent really dabbed up on animation speeds

#

i just use what i get and add events n stuff for hitboxes n vfx

#

can get them editted tho

blazing oasis
#

Whats a goo name for recipie coins

#

the best i thought of whas rupees

blazing oasis
# fair copper

lowk meeleee systems are easy if u have the animations models and vfx

#

did u make ther anims

fair copper
#

nah i got them made

placid matrix
fair copper
#

i wanted something good

placid matrix
#

hand is so far away from the hilt lmao

fair copper
#

yea

blazing oasis
placid matrix
#

ur combat looks good it just needs better ui honestly then it could really look stunning

blazing oasis
#

portfolio game or wha

placid matrix
#

sfx and minor vfx polishes

fair copper
#

i mean its just a lil bit more than 1 week of work

#

๐Ÿฅ€

#

i just have basic class vfx n some charging vfx n stuff

#

and ive only added vfx for greatsword so far

#

i was figuring out a scalable way to use ECS and deploy vfx for different types of weapons

#

took a bit of time

placid matrix
#

why are u using ECS for this

#

do u have 500 weapons

fair copper
#

yh js planning for future

#

i already got 30

#

lol

#

i made the selection n setups scalable

placid matrix
#

doesnt really matter unless ur doing queries on all of these weapons for some reason

ancient crag
#

klama not ragebaiting???

placid matrix
#

and theres nothing to hate on

#

something interesting on this platform for once

ancient crag
#

i can agree with you

#

except the 1st part

fair shoal
#

any open sourced cashgrab shit anywhere

#

sm w like the wheel spins and daily rewards n shit

fair copper
#

look at this

#

its a rough setup for now

#

but basically i had to make sure that each weapon was handled and sheathed properly

#

so i had to store their data

#

cframes n whatever

ancient crag
#

how do you handle your sheathe

fair copper
#

and it also uses classes based on what tool its using

#

so if i just pick a katana from my inventory it destroys the motors and recreates the motors for that particular class ig

fair copper
fair copper
#

i know

narrow vault
#

i do that for my tools 2

fair copper
#

i aint saying its hard tho

#

lol

narrow vault
#

i see

fair copper
#

he asked about stuff so i showed him, i get ur point ur experienced

placid matrix
placid matrix
#

i think the actions need more fluidity though

narrow vault
fair copper
#

better state management

placid matrix
#

yeah they look staggered instead of flowing into eachother

fair copper
#

im using observers for now

#

yeaah its configured to instantly fall into default state

#

after an attack

placid matrix
#

like your jump action jitters into the character attacking midair

blazing oasis
placid matrix
#

doesnt seem natural

fair copper
placid matrix
#

yeah

fair copper
#

hmmm

#

well certainly thanks for pointing it out i'll try to improve it

placid matrix
#

like u can jump and instantly attack lmao

#

theres no indicator

#

if ur against that how would u react

fair copper
#

the charged jump is a specific feature for greatswords

#

since they will have slower movement, they will have more leaping attacks

#

its real feature is highlighted when used with a target lock

placid matrix
#

yeah its just not very fluid

fair copper
#

i need to adjust the charge times

#

n stuff

placid matrix
#

think u can have a much smoother system if u changed the way u handled velocities

#

right now its all linear lol

#

theres no deceleration or windup

fair copper
#

hmmm good point i havent polished it yet

placid matrix
#

definitely lol

#

like with some of the heavy swords, they have charge attacks that jumps them forward then abruptly stops

fair copper
#

its something like this for now

#

i dont have much on the groundsmash

placid matrix
#

if theyre swinging in an arc the velocity would realistically be more quadratic

fair copper
#

hmmm ur right

#

right now i just have the hitbox deploy after landing and im lowkey just confused on how to deal with different distances

#

lol

placid matrix
fair copper
#

yeah its a simple parabolic leap

#

type of thing

placid matrix
#

its all a constant speed

fair copper
#

so ur saying i need a min max

placid matrix
#

instead of an initial slow jump and as theyre jumping down its accelerated

fair copper
#

type

#

for my arc

#

i actually have a linear config now that u point it out

#

๐Ÿ˜‚

placid matrix
fair copper
#

LeapSpeed = 25, MinPounceTime = 0.5, MaxPounceTime = 1.2, DefaultLeapDistance = 10 , MaxTargetedLeapDistance = 20, arcHeight = 6,

#

i got this type of stuff making the leap

placid matrix
#

just thinking that the overall feel would be much better if u had a realistic physics motion

fair copper
#

hmm yeah def

#

i'll do something about that

placid matrix
#

just basic lerping would probably improve it lol

#

do u destroy the velocity after its duration is over?

fair copper
#

yeah

#

it was glitching into the ground n stuff

#

ive over the days i spent trying to make this motion

#

for now

#

hahahha

#

it does need more features tho

placid matrix
#

yea lol it has potential

#

as a tip though u can re use mover constraints instead of instantiating them everytime

#

unless u need multiple of them at a time

fair copper
#

move constraints yeah hmm i havent looked into other ways yet i was on body velocity stuff and linears

#

align

#

right now it just uses a trajectory equation, heartbeat for position updates and
an extra vertical offset using a sine function

#

the trajectory equation does use velocity, but only initial

placid matrix
#

yeah

#

my main qualm with ur physic movements as a whole is that its all constant

#

speed doesnt change, no acceleration or drop off

#

as u would see in real life

fair copper
#

yeah well we added a constraint to it

#

like max time it would take for player to do this move

placid matrix
#

if u tossed a ball u would see it speed up initially then fall down slowly

fair copper
#

after launch

#

like it doesnt really strictly follow laws

#

for now

#

as u can see i added a max and min time on pounce, so it can take maximum 1.5 seconds depending on relative position

#

and 0.4 sec minimum..

#

might change the approach

placid matrix
#

yeah so its deterministic

fair copper
#

yep for now

#

it'll force the body to move fast in that 1.5 seconds

#

its pretty much defying laws

#

im gonna perfect it

#

๐Ÿ’ช

placid matrix
#

ofc

scarlet viper
#

Guys how much to script a bike

narrow vault
#

hit me up in dms

warm nova
#

HOW TO DISABLE RESET WITH NEW ROBLOX

#

UPDATE?

near sonnet
#

In starter gui