#code-discussion

1 messages ยท Page 42 of 1

jaunty socket
#

it has to be the problem with the ragdoll

lost pebble
#

definitely not

celest thorn
#

how do i start doing commissions n stuff

jaunty socket
lost pebble
celest thorn
#

I have basic knowledge of scripting but i cant do Like fancy fps games or Vehicle movement system or fancy abilties

lost pebble
celest thorn
#

lol better keep learning then ig

tawdry elk
#

i hope roblox fix the exploiters

#

and have a anti cheat like fokin other games

#

it makes my scripting more anxious

jaunty socket
#

Like dude

hoary cedar
#

L

#

Get yourself a chronically online employee

#

Or spread out your workforce's timezones

#

Not too far, or your developers won't be able to coordinate effectively

jaunty socket
#

Bug's not being squashed:
Multiple UI's bug
Teleporting in a random location to prevent tp killing or spawn killing

hoary cedar
#

How's the latter a bug?

olive ingot
#

I don't want to stress over coding but it kinda feels like I have to... Despite ntk having to since I don't have a time frame

jaunty socket
olive ingot
# hoary cedar Stress over it how?

I'm the only scripter my small group has and I have... No real experience or knowledge.

And I struggle to see how I could code the game

#

I hate that I know how to go about making something yet can't...

#

Ig I'll just watch some videos before bed.

hoary cedar
hoary cedar
jaunty socket
#

can anyone help with the ragdoll death sound? It wont activate

olive ingot
young sorrel
olive ingot
#

But I'm just... weird.

I'm a perfectionist and I tend to not be willing to invest time into things

#

For example, I have dropped many things due to just fearing that the effort i put in will nto yield results I desire

#

it's why I dropped aim training completely

young sorrel
olive ingot
#

It's more of a stress thing I feel

spiral sable
young sorrel
olive ingot
#

true

lost pebble
#

it's the struggle that makes it worth it

jaunty socket
#

can anyone help with the ragdoll death sound? It wont activate

lost pebble
#

how are you doing the ragdoll?

hoary cedar
tawdry elk
#

does decompiler exploit still exist ๐Ÿ’€

lost pebble
tawdry elk
#

dang

mellow loom
#

anyone know anybody who i can pay to combine vfx with a cutscene

olive ingot
olive ingot
#

I'm trying to be kinder to myself

olive ingot
#

OK normie

#

tsk

hoary cedar
#

I'll never stop trying to improve the readability and efficiency of my scripts, and it's the first thing I look for in others'

#

Eventually, you'll reach a point where you can work with bad code

#

Even write some of your own

#

At the top of the perfectionist hierarchy is "eh, fuck it"

olive ingot
#

lol

#

Hmhow do I fix my script...

hoary cedar
lost pebble
spiral sable
lost pebble
#

console: ๐Ÿ˜”

mellow loom
#

if anyone knows anybody

hoary cedar
#

Calling it a flex means you think it's good

#

That's where the real ego boost is

#

But it really is just an example

lost pebble
#

i just skimmed through it

olive ingot
#

can someone help me out here?

hoary cedar
olive ingot
hoary cedar
#

Do your reading comprehension grade justice

spiral sable
hoary cedar
#
game.GetService

โŒ

game:GetService

โœ…

olive ingot
#

I tried switching out . for : wheever function was mentioned

#

and it did nothing

hoary cedar
olive ingot
#

๐Ÿ˜ญ

#

Bro Ig I'll tyr it again

hoary cedar
#

Let's see line 3

olive ingot
#

that was what I first did

#

and it did nothing

spiral sable
hoary cedar
#

(Suddenly it works)

olive ingot
#

oh, I was missing smth

hoary cedar
#

(There it is)

spiral sable
olive ingot
#

uhhh

#

ok so

hoary cedar
#

1/1/18 EDIT: Shuzo Matsuoka is a retired Japanese professional tennis player who does motivational speeches like this as a career and is a well known meme in the Japanese internets. HE IS NOT A JAPANESE FISHERMAN WHO ALWAYS FARMS ASIATIC CLAMS IN -10 DEGREE CELSIUS WEATHER AS SOCIAL MEDIA IS SUGGESTING. Sorry to burst some motivational bubbles b...

โ–ถ Play video
olive ingot
#

i think ym dash worked..?

#

but

#

only once..?

#

yeah nah

hoary cedar
#

That's a different problem

olive ingot
#

i was just trwekaing, it didn';t work

#

at all

hoary cedar
#

You fixed the error

#

Not your bad code

olive ingot
#

๐Ÿ˜ญ

#

I used a tutorial

#

and it worked perfectly for him

spiral sable
hoary cedar
#

Either,

  1. The tutorial's outdated
  2. You failed to follow the tutorial to the T
#

Y'all oughta be checking the release date of these YouTube videos like the expiry date on the back of milk cartons

olive ingot
#

here

hoary cedar
#

What on God's good Earth is that whitespace?

#

Don't tell me the YouTuber did that too?

olive ingot
#

.

#

๐Ÿ˜ญ

#

I was just following a tutorial

spiral sable
#

Wait...

olive ingot
#

not that old

hoary cedar
#

That is some ass code

olive ingot
#

Figured-

hoary cedar
#

These kids be release tutorials like they're engineered to perfection

spiral sable
#

Aren't bindable events only on one side either client or server?

hoary cedar
#

Correct

olive ingot
#

I'm just trying to make a universal direction dash

#

wha

hoary cedar
#

Your InputManager script is supposed to be a LocalScript

spiral sable
#

The events mostly do different things

olive ingot
#

so do I jsut delete all this code?

olive ingot
hoary cedar
#

UserInputService ties into the input devices of the clients. The server is not able to this

#

That would be an infringement on the client's security

olive ingot
#

๐Ÿ’€...

spiral sable
#

From the point of view of the player

olive ingot
#

oh

#

CLient sided

spiral sable
#

Yeah

olive ingot
#

not server sided?

#

ahh

hoary cedar
#

Correct

spiral sable
#

A local script

olive ingot
#

oki

hoary cedar
#

This ^

olive ingot
#

alr

hoary cedar
#

Is supposed to be this ^

jaunty socket
#

Can anyone help with the death sound? It doesnt make a sound when i added ragdoll

olive ingot
#

can I keep the Input maanger script or do I delete that one too?

olive ingot
#

I might try make my own script per chance

spiral sable
jaunty socket
lost pebble
#

i mean how does it work?

hoary cedar
#

Scripts run on the server, while LocalScripts run on the client's device

olive ingot
#

ah

jaunty socket
hoary cedar
#

You're working with user input, so you need to operate on the client's device

olive ingot
#

If I wanted to give myself multiple dash charges, how could I do that?

#

also, how would I change the Cooldown of the dashes?

lost pebble
jaunty socket
#

and its not on characterscripts

#

and it still works

jaunty socket
lost pebble
#

the first 7 lines of the script you originally sent works completely fine. so the ragdoll script has to be getting in the way. can you send a video of it?

olive ingot
#

I put the same code into a normal script. It's not working-

#

btw, back onto the script

#

which part actually uses the dash?

#

I want to add another condition

olive ingot
#

wait, is that the right thing to say..

#

lemem think

hoary cedar
lost pebble
olive ingot
hoary cedar
#

You switched the wrong script. Both are now server-sided

#

Both scripts must be blue

olive ingot
#

what.

hoary cedar
#

^^^

olive ingot
#

I thoguht Gray was

#

local

hoary cedar
#

No

lost pebble
jaunty socket
#

just for checking

#

the sound id in the script?

lost pebble
#

no

#

in your character's hrp

dim epoch
#

I have this rig, it moves weirdly as if it's on a slippery platform, pretty sure it's because of it's design. Any way I can avoid this?

jaunty socket
#

like

#

where can i locate it

#

i forgot

olive ingot
#

OK so, good news. Dash works.
Bad news, It's HILARIOUSLY too fast

#

but uh

#

thanks

#

๐Ÿ‘

dull acorn
#

can a local script find properties of other things in serverscriptservice

lost pebble
dull acorn
lost pebble
#

you're welcome

dull acorn
#

what about in workspace though

lost pebble
#

of course

dull acorn
#

kk thanks

lost pebble
#

you're welcome

olive ingot
#

@hoary cedar btw, in my code, which part of it executes the dash itself?

I want to add charge system where I am able to spend 1 charge to dash which they regen over time. But idk the code behind it

jaunty socket
lost pebble
#

but yes. you would

#

well, replace the default sound

jaunty socket
lost pebble
#

so did it change the sound id?

jaunty socket
#

still dont hear anything

#

even thoi placed the sound in the humanoid root part

lost pebble
#

send a ss of the sound's id

frank pollen
#

dont fight explotiers

#

youll never win

hoary cedar
#

This line right here is where it all begins. You can add additional checks to stop the dash from proceeding

lost pebble
hoary cedar
#

This is what causes the dash to proceed:

frank pollen
#

Script kiddies are easy to find, someone who actually makes exploit youll never win

hoary cedar
#

This is what causes the dash:

frank pollen
hoary cedar
#

I dedicated myself to one exploit, around 800 lines

#

Sold it for $5 a pop

frank pollen
#

same my og phantom forces aimbot is stilll unpatched to this day

hoary cedar
#

I never needed aimbot

#

I'm rank 197

frank pollen
#

its been around for almost 9 years now

#

im rank like 250smtn on my legit acc

hoary cedar
#

I developed an ESP exploit for Phantom Forces though, just for fun

frank pollen
#

my exploiting acc is like rank 20

hollow forum
#

wow ya'll know alot about code ๐Ÿ™‚

frank pollen
#

i never needed to use it, but it essentially works in every fps out there

lost pebble
thick wyvern
#

hey where do yall learn lua?

frank pollen
#
#

^ this is a pretty good guideline for what to learn when

thick wyvern
#

i see a lot of tutorials but i dont know which one covers more

frank pollen
#

Tutorials are horrible

thick wyvern
frank pollen
#

dont use them, its called tutorial hell for a reason

olive ingot
# hoary cedar

btw, if I make a line of code that Regens a variable at a fixed rate, do I need something to loop it indefinitely? and do I need something to trigger that loop or will the loop jsut activate itself?

frank pollen
#

if ur unsure about something, look up a video on that one specific aspect. not full tutorials how to make x

hollow forum
frank pollen
#

you dont need a map or models for development early on

frank pollen
#

use place holders

hollow forum
#

ik

thick wyvern
hollow forum
#

plus i keep getting distracted by roblox games, so i don't get time to develop

frank pollen
#

9000 lines of code and this is my map

hollow forum
#

my scripting is ameatuer too

lost pebble
hollow forum
lost pebble
#

so that's good that you're making something

frank pollen
#

Visuals arent important, they are extra

hollow forum
lost pebble
frank pollen
#

A good framework with ugly visuals = good game.
A awful framework with gorgeous visuals = horrible game

hollow forum
#

ill try publish my game today, i have limited time tho, then ill get feedback! ๐Ÿ™‚

frank pollen
#

Visuals is like maybe 10-20% of development. the other 80% is just scripting and Planning features.

thick wyvern
jaunty socket
frank pollen
#

Never create a deadline for your self. things get done when they get done

hollow forum
frank pollen
#

Dont create deadlines

frank pollen
#

youll break them every time, and feel awful

hollow forum
jaunty socket
hollow forum
#

i have 1 hr today ๐Ÿ˜ญ

frank pollen
#

How many Triple A games ahve pushed back launch dates?

lost pebble
frank pollen
#

Their funding is million times yours. and still cant keep deadlines

frank pollen
#

teams of thousands of people sometimes

jaunty socket
hollow forum
#

they used to update like every weekend

#

but they do it early monday

lost pebble
frank pollen
#

Triple A is like GTA, COD, etc...

#

games with hundrred million dollar budgets

#

If they cant meet a deadline, you dont need to.

lost pebble
hollow forum
jaunty socket
lost pebble
hollow forum
#

anyway

#

gtg

frank pollen
#

relax, have fun things get done as they get done. Me scripting a simple Ui to get its buttons work took over a day

hollow forum
#

ill come back!

hollow forum
frank pollen
#

But this Ui is different..

hollow forum
olive ingot
#

guys, does this look like it'll work?

I'm tyring to make it so I have to use a dodge charge in order to dash

jaunty socket
hollow forum
frank pollen
#

It exists in the Workspace, but its client sided. so no local script or server script can interact with it

lost pebble
olive ingot
#

oh wait I just realised, there's somehting I should fix

olive ingot
#

making sure Charge doesn't go above 2

jaunty socket
hoary cedar
lost pebble
olive ingot
#

nope

#

charges jsut get ignored

#

"Us Saiyans have no limits!"

lost pebble
#

bc the script works fine for me

olive ingot
#

made a small change, still don't work. Why do you guys think it's ignoring the condition for there to be 1 or more charges

#

oh wiat

#

im dumb

#

I just realise,d I forgot to remove a charge each dash

#

๐Ÿ’€

#

"YOu are my special"

#

ok the charges work

olive ingot
#

but regen doesn't work

lost pebble
olive ingot
#

Will this code be running every 1 seconds or do I need to add somehting to make it run every 1 second?

jaunty socket
# lost pebble maybe. does it delete the hrp?
game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        local humanoid = character:FindFirstChild("Humanoid")
        if humanoid then
            local deathSound = Instance.new("Sound")
            deathSound.SoundId = "rbxassetid://135021800852257"
            deathSound.Volume = 1
            deathSound.Parent = character -- Attach to the character

            humanoid.Died:Connect(function()
                deathSound:Play()
            end)
        end
    end)
end)
#

does this one work

lost pebble
olive ingot
#

alr

#

things still aren't regenerating tho..

#

hm. That implies the regeneration isn't infact working

lost pebble
hybrid horizon
#

where do i learn

jaunty socket
lost pebble
azure granite
#
local PartsIWant = workspace.PartsIWant
local LocalPlayer = game.Players.LocalPlayer

for _, part in PartsIWant:GetChildren() do
    task.spawn(function()
        while true do
            local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
            local Params = OverlapParams.new()
            Params.FilterType = Enum.RaycastFilterType.Include
            Params.FilterDescendantsInstances = {Character}
            local HitBox = workspace:GetPartsInPart(part,Params) 
            if HitBox then
                LocalPlayer.PlayerGui.PopUps.Frame.Visible = true
            else
                LocalPlayer.PlayerGui.PopUps.Frame.Visible = false
            end
            task.wait()
        end
    end)
end

Would this be laggy if i have 50 parts doing this

olive ingot
#

guys

#

Will an if statement be retriggered after being previously triggered if the statement that it's for becomes true again?

azure granite
#

it will only trigger if the code runs on it and it meets requjirements

hybrid horizon
lost pebble
lost pebble
lost pebble
olive ingot
#

uh oh

#

wait, shit

#

i had a heart attack

#

I thought roblox went "Oh, an infinite loop? Imma kms)

lost pebble
lost pebble
olive ingot
#

that's enough blowing up my laptop for today

lost pebble
#

you arent changing infiniteLoop so the requirement is never met

olive ingot
#

I want to be able to make that main if statement constantly check for if dodgecharge is < 2

#

but it just seems to stop

olive ingot
#

so it's infinite no?

lost pebble
#

that's what you want?

olive ingot
#

yeah..?

#

so that code block keeps running

#

keep checking and regening

lost pebble
#

you could use```lua
while true do

end```

olive ingot
#

o

hoary cedar
olive ingot
#

that looks good

hoary cedar
#

Any looping at all, really

olive ingot
azure granite
lost pebble
olive ingot
#

uhhh

#

how do I format a while true do statement?

#

where do I put the statement that it's checking whether it's true ro not

lost pebble
#

true is the statement

lost pebble
#

since true is always true, it runs forever

olive ingot
#

oh damn

#

I may be stoopid

lost pebble
#

nah you're good

olive ingot
#

it doesn't work..?

lost pebble
#

wdym?

olive ingot
#

lemme check smth...

hoary cedar
#

There's a way to do this entirely out of math

#

Ideally, you wouldn't busy-wait

#

The next best solution is to use an IntValue

olive ingot
#

i think I fixed it..?

hoary cedar
#

Or to start threads to recover lost charges

#

Me personally, I would use math

#

But that is a lot less obvious

olive ingot
#

not work

#

:[ and idk if they game liked that

#

it scared me for a second

lost pebble
#

btw, if you wanted to use repeat for an infinite loop, you would do:```lua
repeat

until false```

olive ingot
#

idk if it likes the infinite loop or not

#

keeping doing "not responding"

hybrid horizon
olive ingot
#

this is what it looks like now

olive ingot
hybrid horizon
olive ingot
#

e

hoary cedar
#
-- If there are no charges, check how much time has elapsed since the last recharge
if dashCharges == 0 then
    dashCharges = math.min(MAX_DASH_CHARGES, math.floor(time() - dashChargeTimestamp))
end

-- Still no charges.
if dashCharges == 0 then
    return
end

-- A charge was awarded or used
dashChargeTimestamp = time()
dashCharges -= 1

-- Do dash
#

Basically

olive ingot
#

o

azure granite
#

whats a good way to make a localscript check if a player is inside the blue zone? and it needs to also know if the player is not in the blue zone

olive ingot
#

comments, i kinda forget about those

#

they seem real useful

olive ingot
hoary cedar
#

Ignore it

olive ingot
#

wild

hoary cedar
#

Use an IntValue

#

That's the most convenient method

olive ingot
olive ingot
#

o

#

integer

#

๐Ÿ’€

hoary cedar
#

I would use threads

olive ingot
#

que

hoary cedar
#

Busy-waiting might be simpler for you though

#

I'm probably overengineering this

#

Yeah

olive ingot
#

Sooo

#

uh

#

what do I change here..?

hoary cedar
#

I can definitely do it with threads, but making it elegant is where it becomes overkill

olive ingot
hoary cedar
#

You can't have that loop before the event

hoary cedar
olive ingot
#

uhhh

#

oh.

#

it interrupts?

frank pollen
#

whats he trying to do Ziffix?

hoary cedar
#

Code is read from top -> bottom, left -> right

frank pollen
#

Zereal so since your new, for good practize never use While True Do

olive ingot
#

and...

frank pollen
#

If you need While True Do at ur current level, find another solution trust me

olive ingot
#

square fucking one. It won't regen still

frank pollen
#

Zereal explain to me what your trying to do

#

ill write up some quick Pseudo code

hoary cedar
#

Essentially freezing a part of code in a time loop

#

Code execution will never go beyond that loop

olive ingot
frank pollen
#

alright gimme a moment to think

olive ingot
#

I want the regen to loop in the background whenever my charges aren't maxed

hoary cedar
#

It always will be

#

That's the consequence of busy-waiting

olive ingot
#

aight

frank pollen
#

okay zereal got smtn gimme a moment

hoary cedar
#

Your thread will constantly occupy unnecessary execution time

olive ingot
#

ty

hoary cedar
#

Hm. Wait

#

I might have something good

olive ingot
#

Who figured listneing to Jpop makes coding feel less painful

frank pollen
#

For your regen youll do something similar to this :

local dashCounter = 3

while dashCounter < 3 then
    dashCounter = dashCounter + 1
    wait(3)
end
merry karma
frank pollen
#

Zereal do you understand funcftions and how to write custom ones?

olive ingot
frank pollen
#

Since we will put all of your Regen into a RegenFunction, then call it when ever you use a Charge

frank pollen
#

Alright so Functions, run a block of code

#

you see your

 if dodgeCharge > 2 then
    dodgeCharge = 2
end
#

This is one block of code

#

With a function we can Run a single block of code from anywhere, just by calling its name

#

(as long as its inside the same script)

olive ingot
#

ohh

#

I think I understand..?

frank pollen
#
local dashCounter = 3

local function dashRecharge()
    while dashCounter < 3 then
        dashCounter = dashCounter + 1
        task.wait(3)
    end
end

dashRecharge()
olive ingot
#

SO I make a new script that's under this one

#

with it?

frank pollen
#

So that last line, calls the function

#

any where we use DashRecharge, now runs that function

#

So to simplify this and MultiThread to not create a bottle neck

#

we will use Task.Spawn()

hoary cedar
#
local MAX_DASH_CHARGES   = 2
local DASH_RECHARGE_RATE = 3 

local dashCharges = MAX_DASH_CHARGES
local dashRechargeThread = nil 
local function tryRechargeDashes()
    while true do
        task.wait(DASH_RECHARGE_RATE)
      
        if dashCharges < MAX_DASH_CHARGES then
            dashCharges += 1
        else
            break
        end
    end

    dashRechargeThread = nil
end
if not dashRechargeThread then
    dashRechargeThread = task.spawn(tryRechargeDashes)
end

if dashCharges > 0 then
    dashCharges -= 1
else
    return
end

-- Do dash
frank pollen
#

(Dont worry about what this does)

hoary cedar
#

โœจ

frank pollen
#

Ziff got it

#

Look into Functions a bit and practice with those

#

they are a crucial foundation piece

olive ingot
frank pollen
#

you cant make anything with out it

craggy niche
#

can you use modules from module scripts in local scripts or is it only server

frank pollen
craggy niche
frank pollen
#

Except for ReplicatedStorage...

#

and ServerStorage

#

Code does not run in those 2

#

(i might be wrong with this)

craggy niche
#

yeah alr thanks

frank pollen
olive ingot
#

yeah

hoary cedar
frank pollen
#

His last code block is basically running that, as a spawned Task

frank pollen
#

OH YEAH im tossing my EventListeners inside there

#

then crying it dont work lmao

#

but they are just serverScripts

olive ingot
#

ok so... how do I make and use a function..?

jade cosmos
#

guys whats a bindable event

frank pollen
frank pollen
olive ingot
#

alr

frank pollen
#
#

Basic, Chapter 3

#

With out the basics you wont be able to script anything

#
Functions are blocks of code that you can execute multiple times on command. You can also connect them to events or assign them as callbacks.
#
local a = 5
local b = 11

local function addstuff()
local total = a + B
print(total)
end

addstuff()
#

this takes a and b adds them to total, then prints it

#

anytime you call the function name, it will run what ever code is inside that block

olive ingot
#

alr

frank pollen
#

Focus on Basif Functions, Return and thats all

#

Methods, Callback, Event handlers, anon functions are above your level rn

#

Not important for you atm, youll learn it when you need it

#

Focusing on code you cant understand yet will only waste ur time

#

Once you get the all of basics down, then come back to fill in the blanks of your knowledge

#

(i still dont understand Self) ive never actually used it.

frank pollen
#

this is a big one

#

Until you understand Task.Spawn, Never use while true do.

#

Think of another alternative.

#

Most of the time a function will work in replace of a Inf Loop

#

or RunService.RenderStepped:Connect(Function())

#

will work instead of While true do

olive ingot
frank pollen
#

RunService is basically the games internal clock

#

*the game engines

#

Render Stepped runs every single frame

#

So every frame, The function attached runs.

celest thorn
#

RenderStepped being deprecated

olive ingot
#

oh sick

frank pollen
#

Its like While True Do for a loop, except its not halting any code

olive ingot
#

btw, how does a function decide what's part of the function?

#

like what code is executed when the function is

frank pollen
#

local function ThisIsAFunction()

end

hoary cedar
# olive ingot I can't really understand it ๐Ÿ˜ญ

Every time you dash, it checks if a recovery operation is active. There always should be one when you dash as your dash charges will never be full. If one is not currently active, it will start one. The process does not impede the flow of code execution as the operation starts in a new thread. When the recovery operation is over, it will not continue awaiting to recharge the dashes. The dash charge is removed and the dash proceeds, otherwise the dash doesn't continue because no charges are available

frank pollen
#

Everything between the () and "end" is inside the function

olive ingot
#

set

jade cosmos
#

i see a lot of people using self in tables/metatables but i have no clue what its for

olive ingot
frank pollen
#

^ same i usetables all the time, but never needed self

frank pollen
hoary cedar
#

It's used in the emulation of OOP

frank pollen
#

^ i fr cant understand oop

olive ingot
#

RunService.RenderStepped:Connect(Function())

In this one ^

#

where would I put my function

jade cosmos
frank pollen
frozen swift
#

Script

olive ingot
#

sweet

frank pollen
#

For now dont worry about RenderStepped

#

Focus on learning basic functions for now

#

when you start abusing renderStepped

#

youll lag your game

olive ingot
#

o

frank pollen
#

if it MUST be a inf loop, for your case, use render stepped. if it doesnt have to be, dont use a inf loop

olive ingot
#

well uh

#

idk how else to handle it

frank pollen
#

Everything attached to RenderStepped runs every single frame

frozen swift
#

Whos darequk and why is he typing so long

celest thorn
#

Im trying to figure smth out

frank pollen
#

(also someone here just asid RenderStepped is being Depricated i gotta check the replacement)

frank pollen
celest thorn
#

Idk how to word it

frank pollen
#

like how Ziffix wrote it for you

#

Just know inf loops are very dangerous if you arent aware what your doing

olive ingot
#

this is what I made but it ain't working

celest thorn
#

Also renderstepped cant be used serverside

olive ingot
#

Infinity is a big number after all

frank pollen
celest thorn
#

Only heartbeat

#

For server

frank pollen
#

OHhhh alr makes sense

#

i use them interchangably naturally

olive ingot
frank pollen
olive ingot
#

and waht if I choose to repalce this system at a later date, it won't affect me badly will it?

frank pollen
#

Learn Functions

#

and Loops

olive ingot
#

fair

frank pollen
#

you cant make anything with out those

#

This is all you need

olive ingot
#

Is there a way to make something trigger instantly when a condition is met without having to check constantly?

frank pollen
#

Dont worry about Methods and anything after

frank pollen
#

but this isnt efficient

olive ingot
frank pollen
#

Manually trigger the stuff when you need it to run

#

When do you need your dash to recharge?

celest thorn
#

Like if a property changes u Can do object.changed:connect(function(property)

frank pollen
#

^TYSM i swore you could do this

olive ingot
frank pollen
#

but i forgot how

frank pollen
olive ingot
#

using a dash

frank pollen
#

When you use a dash, Start your recharge function.

#

Boom, done.

olive ingot
#

ooo

frank pollen
#

your dash, is your trigger

frank pollen
#

You dont need it checking 24/7 only when you use it

olive ingot
#

wait....

#

ok but

#

since it has a wait of 3 seconds to regen

#

what if it just...

#

got overlapped with another dash use

#

but it's on wait, so it can't be used again

frank pollen
#

thats why we use Task.Spawn()

#

so it runs along side its normal use

olive ingot
#

wha

#

wait I got an idea maybe

#

I could use

frank pollen
#

Dont worry about Task its multi threading

olive ingot
#

a for loop

azure granite
#

any thoughts on code that looks like this

olive ingot
#

so it does a little bit each time maybe

#

? but i think the problem si still there

#

idk

frank pollen
#

Zereal gimme 10min to get music ill write smtn

#

Dm me your screenshots

olive ingot
#

alr

frank pollen
#

(my dms arent open for free bug fixing pls dont send me random stuff) i have literally 100+ dms of ppl asking me to bugfix

#

lmk when u send it

olive ingot
#

sent

frank pollen
# olive ingot that's fair

it gets annoying, in Roblox Developers i help with bug fixing all the time, for longer stuff i do it in dms

olive ingot
#

after this.. I'll need to make a sprint thing too

#

which should be easy

#

I just need to make it so you will sprint if you are in sprint state, which activates in combat or after a dash.

The question is how I'd go about removing the sprinting state after stopping moving

#

It'd probs just be a sprint function, which can get cleared after all of the movement keys are stoopped being pressed

jade cosmos
#

guys sometimes my character is not even in the part and it detects it , any fixes to make it more precise?

frank pollen
#

@hoary cedar do you think this is simplified enough to be easy to understand?

#
local dodgeCharges = 2
local DodgeCoolDownTimer = 3
local isRecharging = false

local function startRecharging()
    if isRecharging == false then
        while dodgeCharges < 2 do
            dodgeCharges = dodgeCharges + 1
            task.wait(DodgeCoolDownTimer)
        end
    else
        return
    end
end

task.spawn(startRecharging)
#

I tried to keep it simple with out overBuilding it

hoary cedar
frank pollen
#

looking at it i think i might've compressed it too much

spice badge
#

i need an scripter to help me with my game

frank pollen
#

check out the hiring channels

stiff cave
#

how do i make scripting spawn in my head

lost pebble
merry karma
#

why does it not collapse on me??

merry karma
lost pebble
# merry karma why does it not collapse on me??

Try checking if theyโ€™re sleeping by opening up the menu with the little gear symbol with the eye in the top right corner of the viewport and checking โ€œAwake partsโ€. Any part not outlined in red is sleeping.

thin nova
#

python donโ€™t require semicolons ๐Ÿ’€ ๐Ÿ’€ ๐Ÿ’€

lost pebble
#

But ngl, thatโ€™s a fair point

shy cipher
#

guyz I'm making a custom admin and so far have crammed everything into one script because I don't want to deal with modules. it's still small enough to be reworkable, so should I turn back?

heady wyvern
#

that wouldnt take hella ressources

jade cosmos
heady wyvern
#

how big is the part ur casting

jade cosmos
frank pollen
jade cosmos
heady wyvern
frank pollen
#

you might not see it

heady wyvern
#

like a single pixel

frank pollen
#

but .001 studs is enough to trigger it

#

how far away are you when it detects?

#

you could specify it to wait for your Torso

#

Shapecast is perfectly precise

#

same with get parts in bounds

jade cosmos
#

thats the part pretty much, between the character

frank pollen
#

OH??

#

remove the clothing item

#

the dragon/serpent

#

and test again

#

i doubt this is the cause, but idk how UGC effects hitboxes

jade cosmos
#

fixed now lol

frank pollen
#

might have invisible Parts or Topology

#

alr glad its working

jade cosmos
#

that is crazy precise man

frank pollen
#

theres a good chance the invisible topology extended far beyond the dragon

jade cosmos
#

so its better to just check for torso right, or use another hidden part inside it

frank pollen
#

only takes 1 plane

frank pollen
#

you can specify a body part

#

like torso

#

because the knees and head extend beyond the torso

jade cosmos
#

aight

#

thanks for the help

frank pollen
#

if ur not doing hit detection for combat

#

it doesnt matter

#

Np

craggy niche
#

can i change a variable that is in a module script from another script where i have required it? like can i require it in a local script and then change the value of that module script variable from the local script

craggy niche
rotund igloo
#

guys

#

how to add scripting role

craggy niche
hollow forum
hollow forum
golden yoke
#

this is really useful script to have in game, cleaning up trash for perfomance

frank pollen
#

this is a literal headache

#
local player = game.Players.LocalPlayer
local replicatedStorage = game:GetService("ReplicatedStorage")
local UI_Transfer = replicatedStorage.Remotes.UI_Transfer

local Ui

local function CheckForUiUpdate()
    while Ui do
        print("test")
        local mainFrame = Ui.SelectionUi.MainFrame
        local title = mainFrame.Title.Text
        local interactionHolder = mainFrame.InteractionHolder
        local copyButton = interactionHolder.CopyButton
        local moveButton = interactionHolder.MoveButton
        local sellButton = interactionHolder.SellButton
        local withdrawalButton = interactionHolder.WithdrawalButton

        if title and copyButton and moveButton and sellButton and withdrawalButton then
            copyButton.Activated:Connect(function()
                print("Copy button clicked!")
            end)
        else
            print("Missing UI elements")
        end
        task.wait(0.1) 
    end
end

UI_Transfer.Event:Connect(function(SentUi)
    Ui = SentUi
    print("UI transferred to client: " .. Ui.Name)
    task.spawn(CheckForUiUpdate) 
end)

lmao got 0 clue so imma take a break

tame dagger
#

Please where i can learn full lua?

lean ocean
frank pollen
surreal scarab
#

guys do you guys know how to make a countdown script that counts down every second down from 10M and stops when no players are playing, but also make gamepasses for minus seconds and the end of an obby takes certain seconds off it

frank pollen
#

CheckForUiUpdate() is literally a Int Main Virtual-Enviroment

lean ocean
#

U should know

surreal scarab
#

nope, just had the name lol

lean ocean
hollow forum
surreal scarab
#

never heard of that lol

#

well most likely anyway

hollow forum
#

but do

#

lua

surreal scarab
#

no not like this

#

its like wait 1 million seconds

hollow forum
#

mk

#

local seconds = 1,000,000

while true do
seconds = seconds - 1
task.wait(1)
end

#

idk how to make the text to lua

surreal scarab
#

but with 10M

#

why do lua?

hollow forum
surreal scarab
#

local seconds = 10000000

while true do
seconds = seconds - 1
task.wait(1)
end

viscid canopy
#
local seconds = 1,000,000

while true do
     seconds = seconds - 1
     task.wait(1)
end
surreal scarab
#

this is my first game

viscid canopy
hollow forum
#

thx

frank pollen
#

you could create a global data store, to store the timer.

surreal scarab
#

so is that all i do

frank pollen
#

and use Global Messaging service to connect every server

surreal scarab
#

im new so im not really sure what you talkin about lol

surreal scarab
lean ocean
frank pollen
#

no, on roblox Docs look up Global Messaging service

#

it bascially lets Server A talk to Server B

lean ocean
#

y you trying to make something that u can't cause you aren't good enough

frank pollen
#

its normally used for global chat

surreal scarab
#

but a countdown in the middle

frank pollen
#

its not a super complicated idea, its just more complicated than he realized

#

What your idea requires is a a Data store, to store the Timer value

surreal scarab
left crypt
frank pollen
#

^ roblox server will force shut down LONG before this lmao

surreal scarab
#

i copied it now what?

hollow forum
frank pollen
#

The code wont work for you

left crypt
surreal scarab
frank pollen
viscid canopy
#

if theres 0 players then the code wont even be running WHYYYYY

hollow forum
frank pollen
#

what you want to di is not as easy as you imagine

surreal scarab
#

exactly

left crypt
viscid canopy
hollow forum
frank pollen
#

So he needs a data store

left crypt
frank pollen
#

a Global Data store that just holds the Counter value

surreal scarab
frank pollen
#

no one just has one

#

its one of those things that no one "needs" so on one really "has" one

#

That alone will be the hard part, either Customize an Existing data store library, or create your own

#

maybe if you store the data with a General key, instead of playerId, you can simulate it easily

lean ocean
#

I'm pretty sure he has 0 scripting knowledge

#

๐Ÿ‘ฝ

surreal scarab
#

exxxxactly

frank pollen
#

Its not something a beginner can make

#

ill show you what youll need to recreate basically

#

lemme get my data store

#

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


local ProfileStore = require(ServerScriptService.Libraries.ProfileStore)

local function GetStoreName()
    return RunService:IsStudio() and "Test" or "Live"
end

local Template = require(ServerScriptService.Data.DataTemplate)
local DataManager = require(ServerScriptService.Data.DataManager)


local PlayerStore = ProfileStore.New(GetStoreName(), Template)


local function Initialize(player, profile)

end



local function PlayerAdded(player)
    print("Attempting to start session for player:", player.UserId)


    local profile = PlayerStore:StartSessionAsync("Player_" .. player.UserId, {
        Cancel = function()
            return player.Parent ~= Players
        end,
    })

    if profile == nil then
        print("Failed to create profile for player: ".. tostring(player.UserId))
        player:Kick("Data error occurred. Please rejoin.")
        return
    end

    --print("Profile created for player:", player.UserId)
    profile:AddUserId(player.UserId) 
    profile:Reconcile()

    
    profile.OnSessionEnd:Connect(function()
        DataManager.Profiles[player] = nil
        player:Kick("Data error occurred. Please rejoin.")
    end)

    
    if player.Parent == Players then
        DataManager.Profiles[player] = profile
        Initialize(player, profile)
    else
        profile:EndSession()
    end
end



for _, player in Players:GetPlayers() do
    task.spawn(PlayerAdded, player)
end
Players.PlayerAdded:Connect(PlayerAdded)

Players.PlayerRemoving:Connect(function(player)
    local profile = DataManager.Profiles[player]
    if not profile then return end
    profile:EndSession()
    DataManager.Profiles[player] = nil
end)
#

youll basically re-write this but everything that says "player :getPlayers()" is removed

surreal scarab
#

wym re-write

frank pollen
#

Dont even attempt a custom data store, its.... a nightmare, im afraid to even attempt it

surreal scarab
#

chat gpt

frank pollen
#

What your asking for is super niche, idk if gpt can help but it might

surreal scarab
#

so what do i re-write

frank pollen
#

Whole thing

surreal scarab
#

bruh so it basically dont help me

#

?

lean ocean
#

bro u need scripting knowledge

frank pollen
#

What i imagine is youll remove the PlayerStore:StartSessionAsync("Player_" .. player.UserId, {

and set your key with a general Server Key

lean ocean
#

you won't accomplish much without any scripting knowledge

frank pollen
#

I was showing you an example of a data store for what youd need to customize

surreal scarab
#

yea nvm

#

lol

frank pollen
#

This is the EASY part

viscid canopy
#

๐Ÿ˜ญ

surreal scarab
#

im asking tho

frank pollen
surreal scarab
#

oof

#

how about i just stick to the wait for a year one

#

yk

#

its your own timer

frank pollen
#

Servers automatically shut down after around 30-40 hours

#

if that server ever closes, your counter resets

surreal scarab
#

even if its your own countdown?

frank pollen
#

Yep

#

you need to save the countdown progress

#

so it can continue after servers shut down

#

Roblox servers automatically shut down after a while, even if players are inside it

#

its not going to last 10 million seconds since thats 4 months

#

You wont even last 1 week

#

Learn scripting first, then tackle it

#

or pay a scripter to write a custom data store + messaging service for you

#

this task is probably above my level would take me a few weeks tbh

surreal scarab
#

wow

frank pollen
#

its lots of stuff ive never done before

#

I know what it would require, but how to do it exactly i have 0 clue.

#

Writing a Global Data store, that stores Data globally for all servers, but doesnt overwrite its self endlessly???

#

Then learning messaging service

frank pollen
#

Unless your not doing it for the whole server but each individual player

#

then that becomes super easy

fringe barn
#

Rabbtofficial

surreal scarab
#

guys

#

if i shut my computer off

#

will my friend still be able to edit and make the server?

#

the game*

fringe barn
#

When your team creating? Yes

surreal scarab
#

ohkk

fringe barn
#

Not sure if they can publish it

surreal scarab
#

wait

fringe barn
#

But they can still edit it

sonic burrow
#

Is there a way to make my combat systems feel smoother? i am using raycasting

surreal scarab
#

do i have to save my world before we both turn our pc off?

#

or no

fringe barn
surreal scarab
#

oh ok

frank pollen
frank pollen
fringe barn
frank pollen
#

so you have a local save too

surreal scarab
#

yea i did

frank pollen
#

i asked copilot

#

Yeah definately a custom system that very few people have ever attempted

surreal scarab
#

the game called

#

wait for 1 million seconds

frank pollen
#

Normal data store = easy, but global.... thats like very difficult

surreal scarab
#

thats his first game ever made

#

and he does it

frank pollen
#

on this account

surreal scarab
#

somehow

frank pollen
#

it could easily be an alt dev account

surreal scarab
#

i know him

#

its his main

frank pollen
#

Then ask him how he handled the Messaging service and global data store

surreal scarab
#

kk

#

im going bed anyway

#

night

frank pollen
#

gnite, he would hae the best answer

fringe barn
#

โ€œOkโ€ โ€œim going to bedโ€ ๐Ÿ’”

surreal scarab
#

appreciate the help

frank pollen
#

...

#

he did it horribly

#

imma screenshot

#

nvm btu basically there is 300 seconds worth of desync

#

wait what ๐Ÿ˜ญ idk im seeing it twitch between numbers +-1 or +-200

#

@surreal scarab i have a way to make it easily

#

like elementrary easy, but you cant manipulate it like the other one

#

Create os.time() of the start day, then do os.time for 10 million seconds from now

#

then slowly tick this down

wet zealot
#

whats the best way to make a ragdoll?

frank pollen
#

Its 100% in sync for every server

wet zealot
frank pollen
#
wet zealot
#

ty

frank pollen
#

Theres ragdoll tools out there for free

#

no need to make a custom one if you dont need one

mellow dune
#

Anyone need help?

maiden cedar
#

@haughty pine dms

white seal
#

@frank pollen she doing devs shit don't bother her

crimson yacht
#

anyone know how to work on vehicle chassis?

golden yoke
#

is there way to add little textlabel over that click to press text in the roblox chat and make that label say names of ppl who are typing something like "username is typing..." or "username and username is typing..." like in discord?

twilit garden
#

Anyone can feedback my new combat sys?

short notch
#

how to make a serverscript handling accessory equiption that weld consaint each mesh to upper torso and the Accessory is named after the specific model like ''Prada Dress'' and theres a gui where the textlabel gets updated on the new equipted accessory and shows a meshname and you can switch from Top to Skirt mesh part from the accessory using Left to previous and Right to next and scrolling frame with colorbuttons textbuttons clicking on backgroundcolor3 applies to the selected mesh

#

basicly dress to impress

elder mica
#

Does anyone know how to make aimbot Iโ€™m tryna make a aimbot ffa game

mellow dune
#

I know

craggy niche
#

can someone help me make a blocking system in my game? i canโ€™t work out how to take 0 damage when blocking

weak radish
frank pollen
craggy niche
frank pollen
#

yeah it wont be called take damage

#

add a conditional to check if they are invincible

craggy niche
#

i tried to make attribute when blocking and then make code checking if enemy has attribute, then donโ€™t deal dmg

craggy niche
frank pollen
#

have the one check if the enemy is invincible

craggy niche
#

and how do i check

frank pollen
#

create a state handler and store it in a table on the server

dull acorn
#

how do i get variables from diff scripts

burnt dock
#

I want some free scripters

#

Anyonr?

whole solar
#

anyone know alot about robloxs audio player and audio analzyer?

bleak glade
whole solar
#

anyone know how i can use audio analzyer to create a beat map for rythm games

timid forge
#

does anyone need a quick comm for robux? (Im hiring)

silent niche
#

i have a question i'd like to make an Automatic Metro With sensor like when the vehicule go throught the part it do an action and there will be multiple one for different uses. so my question is i'd like to know how much this would probaly cost

worn vapor
#

sniff

#

do i sense

#

aura?

static coral
#

no

frank pollen
static coral
#

@strong mauve

spring orchid
light igloo
worn vapor
nimble dawn
candid kestrel
candid kestrel
candid kestrel
nimble dawn
#

Hey since code help is helpless could you help me rq ๐Ÿฅบ

candid kestrel
nimble dawn
#

I'm trying to make a two way door

#

I did the one way but I can't figure out how to tell the game which side of the door I'm on

candid kestrel
#

well, how do u have the door activate

nimble dawn
#

Hitbox

#

Big ole transparent box

candid kestrel
#

well, just add 2 hitboxes then, one on each side

#

name them seperate things

#

and if getpartsinpart

#

do diff things for diff hitbox

thorn helm
#

yo, im super new to coding and if anyone could give me some basic tips, that would be great. I'm trying to work on a horror game and I need like some idea with maybe a hiding system. I haven't made the monster models yet, but im planning to. any tips?

nimble dawn
#

Hm

#

Never thought ab that

#

ty

candid kestrel
#

ofc

left crypt
#

@candid kestrel u working alone on that one?

candid kestrel
candid kestrel
thorn helm
candid kestrel
#

but i do all the building, ui, modelling, etc

candid kestrel
thorn helm
#

no its simple, i js dont understand coding ๐Ÿ˜ญ

candid kestrel
#

think of it like your learning a new language, literally

#

because thats what it is

nimble dawn
candid kestrel
#

think of how to learn basics in a language, you learn the basic words first (variables, prints, etc) then you learn how to connect them (functions, tables, etc)

nimble dawn
#

I've been learning for like a week if I cut out all the time I spent not learning

thorn helm
#

om this keyboard so sticky

candid kestrel
#

now you need to learn how to use those basics, by putting them together in functions

#

or other things

nimble dawn
candid kestrel
#

or using his

#

shorter 5 minute video

nimble dawn
#

I like