#code-discussion

1 messages · Page 193 of 1

tall sedge
#

Like the properties tab? Or just the whole layout path.

south comet
#

Show properties and the gui in viewport

cloud atlas
#

how does this not make every pixel black?

south comet
#

It could be uiscale

#

Idk tho i dont use it

#

Try scaling the size directly

tall sedge
tall sedge
south comet
#

Weird

#

Its slightly offsetted to the left tho

#

Not fully centered

#

Can u select the frame

#

The smaller Player card

#

And show

tall sedge
south comet
tall sedge
tall sedge
south comet
#

The highlight

#

Of the frame

tall sedge
#

Ah okay

#

Bro

#

I found the freaking issue

south comet
#

Was it what i thought it was

dark cedar
#

can exploiters skip over a line of code?

tall sedge
south comet
#

I thought the issues were the elements inside

#

Not properly scaled and positioned

south comet
dull sphinx
#

@prisma mason can i also constantly raycast from the button upwards or is that more difficult?

dark cedar
# south comet Wdym?

can they prevent like a remote event from happening, or just skip an if statement and so not

tall sedge
south comet
#

But anythings possible on the hackers pc 🤷

dark cedar
south comet
dark cedar
#

client isnt detecting thats it on cooldown

south comet
#

Or some other timestamp function ur using

dark cedar
#

yes Im using tick() in the cooldown module

#

so should I use os.clock()

prisma mason
#

you're trying to raycast from the client, the button lives on the server

#

more costly to use the server

south comet
south comet
#

Try searching a way to get a timezone specific unix

dark cedar
south comet
#

I forgot how to do it

south comet
#

I remember theres a property in workspace that counts from when the server was created

#

ServerTime something use that

dark cedar
#

yeah atp I might just play the animations on the server

#

wait but remote event spamming...

south comet
south comet
south comet
#

Use workspace.DistributedGameTime

#

Replace tick with that

dark cedar
#

what I did before was get the cooldown times for certain moves from the server using a remote function, then setting the cooldowns on the client. Idk if that is safe proof though thats why I came here

dark cedar
south comet
#

Server check matters most

#

That was his issue

#

Before

dark cedar
#
so if workspace.DistributedTime - cooldownProfile.startTime(which is also distriputed time) > cooldownProfile.Duration then
-- the move is not oncooldown
end

so this would work?

#

DistributedGameTime mb

south comet
#

Im on a phone 😭

#

But if u just replaced it it should

dark cedar
#

alr

south comet
#

?

#

Oh wait i didnt see the

dark cedar
#

o

south comet
#

Mb it looks fine

dark cedar
#

alr lemme test it rn

south comet
#

Kk

dull sphinx
#
local lplayer = game.Players.LocalPlayer
local lplayerhumpart = lplayer.Character:WaitForChild("HumanoidRootPart")
    
local raycastParams = RaycastParams.new()
raycastParams.FilterDescendantsInstances = {game.Workspace:WaitForChild("rollButton")}
raycastParams.FilterType = Enum.RaycastFilterType.Include

local raycastResult = lplayer:Raycast(lplayerhumpart, Vector3.new( 0, -10, 0), raycastParams)

if raycastResult then
    if raycastResult.Instance then
        print(raycastResult.Instance.Name)
    else
        print("No instance")
    end
else
    print("No result")    
end

Im trying to do a raycast from the players humanoidrootpart but it gives an error of attempt to index nil with "WaitForChild"

south comet
# south comet Kk

Btw reset the cooldown on the client before the server overwrites it for lag or faster cooldowns

dark cedar
dark cedar
south comet
#

Just

#

The timestamp the client gets from the server

#

Overwrite that with one from the client before the server

dark cedar
#

yeah uhm my brain cant process ts

south comet
#

Hold on

dull sphinx
dark cedar
dull sphinx
#

clinet

south comet
#
so if workspace.DistributedTime - cooldownProfile.startTime(which is also distriputed time) > cooldownProfile.Duration then
-- the move is not oncooldown

cooldownProfile.timestamp = <gametime>

— then the server does it again
end
normal jasper
#

local Character = player.Character or player.CharacterAdded:Wait()
lplayerhumpart = Character:WaitForChild("HumanoidRootPart")

normal jasper
dull sphinx
#

should it be lplayer.Character?

normal jasper
south comet
dull sphinx
#

wait i think i just had a syntax but now it says raycast is not a valid member of player??

#

uhh

#

ooohh wait

dark cedar
normal jasper
#

pretty sure its raycast.new()

#

i could be tripping

south comet
south comet
#

Im ass at explaining

dark cedar
#

oh alr

south comet
dull sphinx
south comet
#

New one is workspace:Raycast(origin, direction, raycast_params)

normal jasper
dark cedar
normal jasper
#

yea you right i just remembered

dull sphinx
#

local raycastResult = lplayerhumpart:Raycast(lplayerhumpart, Vector3.new( 0, -10, 0), raycastParams)

#

yeah like this?

south comet
dark cedar
#

wait lemme do it in studio rq

dull sphinx
#

ah it does work i think

normal jasper
dull sphinx
#

but it fires instantly gotta make it wait until the correct part is there

south comet
dull sphinx
#
local raycastParams = RaycastParams.new()
raycastParams.FilterDescendantsInstances = {game.Workspace:WaitForChild("rollButton")}
raycastParams.FilterType = Enum.RaycastFilterType.Include
dark cedar
dull sphinx
#

thats the parameters

normal jasper
south comet
#

Mess around w the direction

normal jasper
#

ye

dull sphinx
#

is it because it fired instantly when my character loaded in?

#

the button wasnt underneath me

normal jasper
#

also you did just say it needs to wait until the part spawn there

#

yea

dull sphinx
#

no until the player steps on the part

#

ok it does work

#

just gotta make it wait until its the part

normal jasper
#

you can use an event too

dull sphinx
#

uhh im not good with them

normal jasper
#

its better to use events on roblox

normal jasper
#

yte

dull sphinx
#

is there a way to constantly shoot the raycast?

dark cedar
#

@south comet should I just show you my cooldown module

normal jasper
dull sphinx
#

k

south comet
normal jasper
#

you dont have to do that though just connect an event then fire the function when the event listener fires

normal jasper
dull sphinx
#

oh no i think i just crashed my studio

#

forgot the wait

dull sphinx
#

aha i got it to work

south comet
#

What do u need help with?

dull sphinx
#

no ur advice got it to work lol

south comet
#

Or did*

south comet
#

Sweet

dull sphinx
#

when it says attempt to index nil with instance

dark cedar
dull sphinx
#

im just running an if loop to check if the result is eqyal to a part

#

like the names match up

south comet
dull sphinx
#
while shootRay do
    wait(0.5)
    local raycastResult = workspace:Raycast(lplayerhumpart.Position, Vector3.new( 0, -10, 0), raycastParams)

    if raycastResult then
        if raycastResult.Instance then
            print(raycastResult.Instance.Name)
        else
            print("No instance")
        end
    else
        print("No result")    
    end
if raycastResult.Instance.Name == "rollButton" then
    wait(0.5)
    print("correct button")
end
    
    
end
#

oh i think i forgot to indent

#

no

south comet
#

Its fine im on mobile anyway

south comet
#

Its better and newer

dull sphinx
#

yeah

#

what does the instance bit actually do?

#

like what is the instance referring to? the part?

south comet
#

Instance is whatever the raycast hit

dull sphinx
#

oh ok

south comet
#

If it hits terrain instance is workspace.Terrain and so on

south comet
dull sphinx
#

yeah just noticed that lol

#

its still got the index nil

south comet
#

Can i see the output?

dull sphinx
#

ooooh i forgot an else statement?

#
  • Server
    18:24:50.565 No result - Client - rollScript:21
    18:24:50.565 Players.WAP9876.PlayerScripts.rollScript:23: attempt to index nil with 'Instance' - Client - rollScript:23
    18:24:50.565 Stack Begin - Studio
    18:24:50.565 Script 'Players.WAP9876.PlayerScripts.rollScript', Line 23 - Studio - rollScript:23
    18:24:50.566 Stack End - Studio
#

if i get rid of the if statement checking if its the correct part it works absolutely fine

south comet
#

I cant see cuz its bugged on mobile but it looks like raycast.instance == is outside of the condition for whether it isnt nil

dark cedar
#

asmole gang

#

should I just set the cooldowns on both

south comet
#

Put it inside if raycast_result then

dark cedar
#

bcuz this isnt working

south comet
#

Ok yk how u store the timestamp in cooldownprofile

#

So the client side version gets updated by the server right?

dull sphinx
#

ok i got it to work now

#

thanks!

south comet
dark cedar
olive summit
#

anyone know how to check whther a sound ended playing .. i.Ended isnt working

south comet
dark cedar
south comet
#

Client cooldown is fake and is just for the client

#

To make it resistant against lag

dark cedar
#

so the exploiter can only spam animations and not hitboxes?

south comet
#

Its more like for the vfx

#

Cuz theres a delay before the server updates the client sided cooldown

dark cedar
#

wdym server updates client sided cooldown 😭

south comet
#

And sometimes that delay can make the ppl replay the animation twice yk

south comet
#

Theyre separate objects

normal jasper
dark cedar
#

so I should use AddCooldown on both?

south comet
#

Lemme get on pc

#

Give like 10 mins

dark cedar
#

why are yall sending ts then deleting it

olive summit
#

i sent his code

#

he sent some github link

dark cedar
#

oh

dull sphinx
#
while shootRay do
    task.wait(0.5)
    local raycastResult = workspace:Raycast(lplayerhumpart.Position, Vector3.new( 0, -10, 0), raycastParams)

    if raycastResult then
        if raycastResult.Instance then
            print(raycastResult.Instance.Name)
            if raycastResult.Instance.Name == "rollButton" then
                roll = true
                print(roll)
                while roll do
                    task.wait(0.5)
                    print("rolling")
                end
            else
                roll = false
                print(roll)


            
            end
        
        else
            print("No instance")
        end
    else
        print("No result")    
    end

    
end

why does it stop shooting the raycast once the while statement starts?

snow raft
#

i was going to say

#

it got denied and i have zero clue how

#

its some of the most beautiful code

#
    -- Create Proxy Table for states to get __newindex signal for DataChanged event 
    setmetatable(obj.data, {
        __newindex = function(self, key, value)
            -- Reset values
            rawset(self, key, nil);

            -- Verify state update and make necessary changes
            local callback = DataChangedCallbacks[key];
            local query = not callback or callback(self, value);
            if (not query) then return end;

            -- Update value and cooldown
            data[key] = value;
            obj.events.DataChanged:Fire(key);
        end,
        __index = data,
    });
    
neat sigil
snow raft
#

here is an excerpt

dull sphinx
#

lowkey forgot it was originally a while loop

#

could i make it call a function until the part is not called rollbutton

wraith shadow
#

lowk hate it when the player cant play

dark cedar
wraith shadow
#

and the buyer has to become the server

snow raft
#

oop is 100x better than dop and fop in terms of efficiency and readability

wraith shadow
#

agree totally

#

(no sarcasm) fr

dark cedar
wraith shadow
#

And then replicated storage

#

And start loading server and client

south comet
dark cedar
south comet
#

@dark cedar

wraith shadow
south comet
#

ts took a lil longer

#

than 10 mins mb

dark cedar
#

np

dull sphinx
dark cedar
#

anything that can fix my shi vro praysob

dark cedar
dull sphinx
#

because u cant put an while in a while loop

south comet
#

task.spawn()

#

task.spawn(function()

end)

#

so that loop doesnt yield the parent loop

dull sphinx
#

and it just runs the function until the part isnt called rollbutton?

south comet
#

but the loop never ends

#

meaning the outside loop never continues

dull sphinx
#

yeah how do i counter that?

#

is it with repeat until?

south comet
deft coral
#

bro said counter

deft coral
dull sphinx
#

i need them counters

south comet
#

if u want to have the 2 whiles run alongside each other

wraith shadow
#

Print table

south comet
#

without one yielding the other forever

dull sphinx
#

pretty much its a while statement in a whilel statement

wraith shadow
#

I print me tabels

dark cedar
#
task.spawn(function()
while roll do
print("rolling")
task.wait(0.5)
end
end)
wraith shadow
#

and roll

dark cedar
deft coral
south comet
#

but it waits for that code to finish executing

#

that while loop inside never ends meaning the loop never progresses essentially

dull sphinx
#

oooh ok so task.spawn(function()
while roll do
print("hi"

end

that just runs until roll isnt true?

wraith shadow
dark cedar
#

crazyyy

wraith shadow
wraith shadow
dull sphinx
#

failsafe????

dark cedar
wraith shadow
dull sphinx
#

saving it from what??

deft coral
#

cuz ur yielding during expression eval

wraith shadow
south comet
# dull sphinx failsafe????

roblox runs on coroutines which are different parts of code running alongside each other, and it works by giving one thread (coroutine) control until it yields, this never yields, so theres no room for the task scheduler etc

south comet
#

hence it, auto ends

deft coral
south comet
deft coral
#

you're hanging the script from finishing in that frame

dull sphinx
#

ooooh ok

wraith shadow
dull sphinx
#

so there is just nothing stopping it?

deft coral
wraith shadow
dull sphinx
#

oooo ok

deft coral
#

roblox has a built-in fail safe to detect this

dull sphinx
#

i just need it to stop then

deft coral
#

and it'll shut the session down

wraith shadow
deft coral
#

its not just stopping it, its ensuring it yields as well

deft coral
wraith shadow
#

lowk hepled me too

dull sphinx
#

so how would i yield it?

deft coral
# dull sphinx so how would i yield it?

loops go from the statement while to the end, end and do this repeatedly until a condition is met.

The condition is what goes between while and do, like while rolling == true do will repeat the code until rolling no longer equals true

wraith shadow
deft coral
dull sphinx
#

yeah i was doing that? with task.wait(0.5)?

wraith shadow
dull sphinx
#

pretty much i got a raycast always shooting and if the part it hits is called "rollButton" it runs something until its not called it

south comet
dull sphinx
#

i was using a while loop to run it until its not caleld that

deft coral
#
local c = 1
while rolling == true do

c+= 1 -- example count, add 1

if c == 5 then
rolling = false
end

task.wait(0.5) -- yields 0.5 seconds to let the computer do other stuff
end


print("rolling done!")

In this example this counts c up by 1 till it hits 5, then it sets rolling to false, so when the loop starts again, it'll evaluate the expression rolling == true and realize rolling is now false, and not go again. Then, it'll finally print "rolling done!"

wraith shadow
deft coral
#

this isnt the best way to do it but again, teaching sake

dull sphinx
#

ok i understand it a bit better

#

but my original statement was a while

#

a while statement to constantly shoot the raycast

#

and then a while for when the part hit is called "rollButton"

deft coral
#

i would use event-based stuff for that

wraith shadow
#

you can also do a while true loop on a task.spawn but you still have to give it air

deft coral
#

rather than a loop

normal jasper
dull sphinx
#

yeah i need to learn them properly

dark cedar
#

@dull sphinx
This is how you check roblox's fail safe. Put it in a server script and play the game it will tell you.


local RunService = game:GetService("RunService")

RunService.Stepped:Connect(function()
RunService.Heartbeat:Connect(function()
while true do
task.wait()

local Safe, Fail = pcall(function()
xpcall()
end)
print(Safe)
end
end)
end)
south comet
wraith shadow
deft coral
# dull sphinx yeah i need to learn them properly

the game engine beneath the surface is kind of just a giant loop itself. It's a big giant while loop that constantly evaluates the game's state and tells the computer to render the game, does the math, does the graphics, the sound, etc

dark cedar
deft coral
wraith shadow
#

Safe is a boolean

deft coral
#

specifically engineers at work stations

#

so they didnt wanna expose odd syntax

dark cedar
#

@wraith shadow run the code lets find out

wraith shadow
dull sphinx
#

okay gotta lock in got a farming contest iykyk be back in 20

wraith shadow
#

Mobile

deft coral
#

its easier for someone to grasp assignment if a = is always involved

#

rather than the classic i++

dark cedar
south comet
#

💀

deft coral
#

i didnt say it was perfect lmao

south comet
wraith shadow
deft coral
#

roblox didnt invent lua but yeah

south comet
wraith shadow
deft coral
#

i mean yeah but they didnt add new expression syntax

#

lol

wraith shadow
deft coral
south comet
wraith shadow
dark cedar
#

asmole

south comet
south comet
deft coral
#

how do i explain this

wraith shadow
#

WHAT IS A XPCALL?!?!

deft coral
#

lua was made to be implemented and modded. its the garry's mod of programming languages

wraith shadow
#

EXCUSE ME WHAT

deft coral
dark cedar
wraith shadow
deft coral
#

its not to do that

dark cedar
#

it is

#

stop lying to him

deft coral
#

😐

wraith shadow
south comet
wraith shadow
#

how ironic

deft coral
# wraith shadow Wtvr ill just stick to pcall

I only use xpcall for network requests. I use assert to sanity check client info and I use the custom error handler to send client responses so it interprets it from my code's error messages into a user-friendly message, and handles any logic such as reversion or kicking exploiters

wraith shadow
#

Well mods atleast

south comet
deft coral
dense lily
#

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

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

▶ Play video
wraith shadow
#

Id rather punish a cheater by making them code a part of the game in roblox studio

#

i want to see them burn

#

see them crumble in despair

dense lily
wraith shadow
#

not by watching

dense lily
#

wheres is view tab???

wraith shadow
#

Script or ui i think

dense lily
wraith shadow
#

not by doing what other people did

south comet
#

coupled api spread across different languages sounds cool

deft coral
# south comet cant remember the last time i used xpcalls tbh, im curious can u write a good ex...


local methods = {
example = function(plr, arg1 : string)
assert(typeof(arg1) == "string", "Argument 1 should be a string!") -- sent to 'err' function

return true
end
}

local function eval(plr, method, ...)
assert(methods[method], "No such server operation exists.")

return methods[method](plr, ...)
end

invoke.OnServerInvoke = function(plr, method, ...)
local function err(code : string)
if code:find("!") then
plr:Kick("exploiting") -- i put an ! in the error msg so that means its really bad
end

warn("Error occurred from " .. plr.Name .. " in invoke!" .. "\n" .. debug.traceback()) -- unlike pcall, xpcall preserves trace

-- some other example of string reading via if statements/mapping to make it user safe

return "An error occurred."
end

return xpcall(eval, err, plr, method, ...)
end

Client gets if it was successful or not and the returned error message if not, or expected returned value(s)

#

mb i bullshitted it on the spot but yeah

south comet
#

damn what an interesting

#

coding style 💀

deft coral
#

yeah i call it discord text box 💀

south comet
#

ye it buns

deft coral
#

but do u see structurally what i mean

#

like with the xpcall and how it lets you handle that stuff

south comet
deft coral
#

u have to provide a string to the error handler

south comet
#

o ic

deft coral
#

yeah

#

at least in roblox lua, again its lua just

#

do whatever you want in ur own thing

south comet
#

hold on lemme paste this to a

#

an editor 💀

#

hm

#

oh ye xpcall doesnt fuck up the stack

#

thats useful

#

i completely forgot abt that feature ngl

deft coral
#

hope its helpful in the future

south comet
south comet
#

thanks

deft coral
#

Np thanks for being good conversation partner lol

#

Real OGs remember ypcall

dense lily
#

found it

south comet
#

not og enough

#

wait NO like i started coding during that time

#

no discord ban

stray heron
south comet
#

didnt play roblox on stone tablets

random nebula
#

its extra syntax that serves zero purpose

#

just do += 1

#

i do it in c also

deft coral
#

well it has an actual purpose but ok

random nebula
#

it doesnt

deft coral
#

it does in C, it can determine operation order

random nebula
#

you dont need that

deft coral
#

and unlike lua it goes into the for loop syntax

random nebula
#

just create a temporary lmao

deft coral
#

why would i do that if i can determine operation order

random nebula
#

it does the same thing

#

when will you ever want post fix increment over pre fix

#

its so rare u can just make a macro

#

and use that

deft coral
#

its not rare in systems programming at all, like tokenizing, parsing, delimiters, fixed size ring buffers

south comet
deft coral
#

had to think i admit you rose a good like question

random nebula
south comet
#

either way, its just like how everyone is used to == being for equals, and other shit, its just standards

wraith shadow
random nebula
deft coral
#
int ring_lepop(struct Ring *r) {
int val = r->data[r-head++];
if (r->head == r->capacity) r->head = 0;
return val;
}
deft coral
#

they got rid of it cuz it was stupid to call it that

wraith shadow
south comet
#

hes got a point on that

wraith shadow
#

but anyways

deft coral
#

he does, i just dislike hard "x is useless" cuz if it was useless it wouldn't be here lol

#

"just do x instead" well im not gonna do that cuz i have this feature already here

#

etc

south comet
south comet
#

🙏

wraith shadow
#

Anyway to check for ability usage both on client and on server?

south comet
random nebula
random nebula
deft coral
#

cant argue that one

south comet
south comet
#

o

#

wait u can use -> pointers for structs in c?

random nebula
random nebula
south comet
#

oh ye

#

bro i havent used c in so long

spark willow
#

does anybody here use mise-en-place? I was going to use aftman but I checked out their repo, it's no longer maintained, and they suggest using mise-en-place

spark willow
south comet
#

oh damn

spark willow
#

I was following this guide on how to setup fully managed rojo but I wanted to use something more up to date than foreman and now I'm 2 layers deep of deprecation lol

#

the guide is only 3 years old things move fast ig

timid light
#

nice

south comet
dark cedar
#

asmole gangy praysob

south comet
#

i keep

#

forgetting

#

LOL

timid light
#

I made 40k robux today

#

from modeling

#

for 3 hours

dark cedar
timid light
#

is 40k for one day good?

full crest
dark cedar
timid light
#

random shi

south comet
full crest
# timid light why new ui🥀

i am more than happy to go into detail for why its not only better but why youre holding yourself back for using the old ui

full crest
timid light
#

is it better?

full crest
timid light
#

YES PLS

full crest
#

dms?

sour jetty
#

its marked like as if its like "if" or "for"

deft coral
#

it was just an example

sour jetty
south comet
deft coral
#

it was for ring popping

deft coral
#

variables are alive and such

south comet
#

bro i

sour jetty
#

there is no way that is lua

deft coral
#

thats not lua

#

its c

sour jetty
#

oh okay

deft coral
#

we were talking abt c and stuff yea

sour jetty
#

okay

south comet
# south comet bro i

was searching how like javascript or something managed to make dynamically typed arrays, when i realised the moment it stops having the same type it turns into a hashmap 💀

#

i was like mesmerized at what i considered a work of art until i found out the truth

deft coral
south comet
deft coral
#

No they can be arrays

south comet
#

oh fr?

deft coral
#

It starts as an array unless you break the sequence (swiss cheese) or non-int key

#

Then it swaps to hash

south comet
#

ic

#

its smart i guess, just not what i expected

#

i thought there was like a super genius buffer move done

deft coral
#

I think it was just a small micro-optimization, though it created headache

deft coral
#

Is he ur commissioner

dark cedar
#

mb mb

south comet
deft coral
#

lool

crystal knot
#

Remote event invocation discarded event for RobloxReplicatedStorage.SendLikelySpeakingUsers; did you forget to implement OnClientEvent? (1 events dropped) - Studio

what is this?

south comet
#

-- client ----------------------

local cached_timestamp

local event = ...
local function perform()
  if not cooldown stuff then
    return
  end

  cached_timestamp = workspace.DistributedGameTime -- now the action wont get spammed 
  cached_timestamp = event:InvokeServer( ... )
end

-- server ----------------------
local real_timestamp

function event.OnServerInvoke()
  if not cooldown stuff then
    return
  end

  real_timestamp = workspace.DistributedGameTime
  return real_timestamp
end

#

something i whipped up idk

#

@dark cedar

#

u essentially make a fake cooldown that gets replaced by the real one after the server processes the request

#

so client perform() doesnt get false positives

#

from lag delay

dark cedar
#

yeah uhm

#

my brain is so fried

#

so the thing is

#

I fire a remote

#

that finds a module

#

based on the stuff in the data that gets passed through and does the action

#

so idk how I would implement ts in my game

#

yeah ima just play anims on the server atp I give in

teal yacht
#

.

dull sphinx
#

yoooooo i finally got my code working how i wanted it to, i just made a function and called it when roll was true

storm saffron
#

yo gu

errant tulip
#

dm if u want to co own a chicago hood game / still in the making so pls lmk if u can help in studio too

south comet
deft coral
#

Tables are both array and hash at the same time, they get solved to either one depending on the key

#

It doesnt swap

#

I mean it swaps to either one but it doesnt remove the other

south comet
#

O

quaint escarp
#

HOLY SHIT is there any way to go back to the old studio UI

molten scarab
#

i love cp aswell are u doing comms?

dense lily
molten scarab
dense lily
#

its too violent

#

it has guns

#

messing

#

i jut never playe

molten scarab
#

watch the anime its cold

ebon viper
#

i need some game icons where can i get good free game icons

dense lily
#

WHERE DID I GO WRONG???

vast dagger
#

Idk but I know that print needs the be print(“your words…..”)

foggy isle
#

Give up at this situation

dense lily
#

i dont give up

#

why is it not printing

#

do i need to put local ("freeZuk")??

foggy isle
#

Its have to be inside "

foggy isle
dense lily
foggy isle
#

print("i love macaroni") type thing

dense lily
#

so print is not working

foggy isle
#

Like join a game after ?

median tree
#

gl

dense lily
foggy isle
#

Honestly at this point go watch YouTube tutorials

static stone
dense lily
static stone
dense lily
static stone
dense lily
dense lily
#

thank you

#

knew i wasnt stupid

foggy isle
#

🎉

dense lily
#

for that you get a speicla

foggy isle
#

Did nothing low-key

dense lily
#

ooooooooo

#

sllow motionnnn

foggy isle
rotund mist
dense lily
#

okay i remember properties and i sprinkled some variable in there

#

someone give me a task to try

winged atlas
#

Guys do dungeon games have good demand rn

foggy isle
#

Use bob.touched:connect(function ()

proper sundial
#

yo i wanna make a "tag" like game but i want it to be unique and fun
ik that game detonate is pretty cool
but i need an idea

quaint escarp
#

Can someone help me out?! I have a server script with 3,000 lines and sometimes when a new server is made, playerAdded wont run. Is this because there's so many lines in one script or what?! Ive tried everything

median tree
lean ocean
#

instead of wait()

#

before u get a bad habit

cyan sluice
#

whos willing to join my dev team for percentage, currently making a game u will be getting about 15% when the game releases, need a scripter

lost pebble
quaint escarp
young yoke
#

but still

#

1k line code a bit too much dont you think?

magic bough
#

can you use remote events in module scripts

#

i forgot cause i never use them

lean ocean
#

yes

#

they act like local / server scripts depending if u required it from the client or server

quaint escarp
radiant void
#

Hello, I'm making a dash attack script but the ray is for some reason really inconsistent.

#

It only activates the if statement if im right next to the player.

#

Oh I can't even send images

cyan sluice
static hornet
#

any1 know why path:getwaypoints returns as an empty table?

young yoke
young yoke
radiant void
#

oh okay

static hornet
young yoke
#

maybe the error is whitin the parameters

static hornet
#
PathTo.Pathfinding = function(CharacterModel: Model, NewPosition: Vector3)
    
    local Path: Path = PathFindingService:CreatePath()
    local Waypoints
    local PointFound
    local NextPoint = 0
    local Humanoid = CharacterModel.Humanoid
    
    local s, e = pcall(function()
        Path:ComputeAsync(CharacterModel.PrimaryPart.Position, NewPosition)
    end)
    
    if s and Path.Status == Enum.PathStatus.Success then
        Waypoints = Path:GetWaypoints()
#

i alr checked the positions and they r correct

hollow aurora
#

have u tried not wrapping the computeasync in a pcall 2 c if it still returns an empty array

static hornet
#

lemme check

#

ok so this is weird

radiant void
#

bro

#

What can i do? 😭

static hornet
#

when standing completely still, it returns empty 90% of the time, but sometimes returns a list of waypoints

hollow aurora
#

when standing completely still?

static hornet
#

yeah

#

might be important to note that its r15

hollow aurora
#

shouldnt matter if its a normal humanoid character

#

erm

#

and the status is success

#

try tracing the stack w breakpoints to see if u find anything idk im going to sleep Good luck

static hornet
#

alr then

tired rampart
#

@crystal marten

real solar
#

yo can anyone script in my animations and simple weapon effects ill pay 2k

signal crypt
#

Hi! can anyone script well with a friend to help us with out game? We will pay a good salary!

young yoke
#

takes max 30 mins for both iirc

#

*to learn

slender iris
#

hey uh i cant make a post in #scripter-hiring for some reason but im looking for a scripter to help me code a game; offering 200k robux after it's completed, and more if the game does well in terms of revenue

young crystal
#

is this safe enough? im scared of datstores 😭

local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")
local RealmNamesTable = require(game.ReplicatedStorage.RealmNames)

local PlayerStatsStore = DataStoreService:GetDataStore("PlayerStats")
local StatTable = {}

local function TableCopy(original)
    local copy = {}
    for k, v in pairs(original) do
        copy[k] = v
    end
    return copy
end

local function LoadPlayerData(player)
    local data = PlayerStatsStore:GetAsync(tostring(player.UserId))
    if data then 
        return data 
    end

    local FirstRealm = RealmNamesTable.Realms[1]
    return {
        Qi = 0,
        Health = 100,
        Damage = 5,
        Talent = 2.0, 
        Realm = FirstRealm.Name,
        ZoneMultiplyer = 0
    }
end

local function SavePlayerData(player)
    local stats = StatTable[player]  
    if stats then
        PlayerStatsStore:SetAsync(tostring(player.UserId), stats)
        print("Data saved for " .. player.Name)
    else
        warn("No stats found to save for " .. player.Name)
    end
end

Players.PlayerAdded:Connect(function(player)
    local playerData = LoadPlayerData(player)
    StatTable[player] = TableCopy(playerData)
end)

Players.PlayerRemoving:Connect(function(player)
    SavePlayerData(player)
    StatTable[player] = nil
end)

return StatTable
faint ore
#

sounds legit enough

ebon pike
#

Someone give me an idea of what to do for an scripter app

fresh beacon
#

I got bored and wanted to make 4 new games solo

cinder basalt
#

You had everything

#

And you gave it up

real solar
#

fr?

#

dms

ionic horizon
#

Doing anything scripting wise for $4 worth of ltc 😄

ionic horizon
lusty barn
#

wtf lol

ionic horizon
#

i only need $18

slender iris
hollow gull
hollow gull
#

the data itself is safe but could use better security

young crystal
hollow gull
#

which includes session locking

fierce pine
#

I have two custom rigs/morphs/characters that I made for the two teams in my shooter game, but how do I make it so that depending on which team the player is on, it gives them a certain morph for that team?

west plover
#

Anyone trying to join our dev group? we help each other suceed.

somber vault
#

@west plover me

chilly fern
#

Best way to start scripting? I wanna improve but idk how to

tardy pasture
chilly fern
#

That sounds like complicated knowing how they work

ocean oasis
#

Like a handgrenade thrown in a hurricane

chilly fern
#

Ive been following a YouTuber guide Bur Im almost done with it and Idrk how to improve on scripting after

chilly fern
#

Except on just practicing what I got taught

chilly fern
#

It’s my tag

#

Almost done w his advance scripting series

ocean oasis
chilly fern
#

I was planning to experiment with a team based game

#

And animations

ocean oasis
#

Do so

chilly fern
#

It’s just a lil complicated with only those videos

prisma path
#

@everyone hello, can anyone suggest how to get robux for commission or can anyone provide me with robux

we are making a game on INDIAN kingdom named maratha confederacy which shows the maratha army and empire in WW2 we need to buy artillery guns so we needs funds.

Can anyone provide or help.

junior geyser
#

can i have some help with this script im trying to make

#

?

lean ocean
#

nah you can't it's illegal

tardy pasture
slate delta
#

Hii guyss

#

I need a really good scripter and I got all the maps, UI thumbnail, icon, and investment ready!

#

Although you will be getting a percentage, we can talk about the percentage

#

That how much you want

lean ocean
#

ew

slate delta
#

The scripters, even when I offered $150, rejected me. 🥲

hollow hemlock
#

and youre telling me youll be paying 150$ for an entire gameto be programmed

hollow hemlock
#

thats at most 20 hours of work you're paying for

slate delta
hollow hemlock
slate delta
#

And hourly payment is different for different countries

#

If you live in America then a dozen eggs cost you around 4 dollars i think

#

But in my country, they cost 1 dollar

#

So we got different hourly pay

inland agate
#

But you should pay freelance work with standard payment

hollow hemlock
slate delta
slate delta
modern seal
neon stirrup
#

is it possible to change r6 height without affecting width?

smoky condor
spice cypress
somber vault
west plover
lusty barn
#

it’s like 4 dollars

dense lily
dense lily
somber vault
#

x = 1
if x == 1 :
print(x)

#

rate code 🙏

wraith shadow
somber vault
wraith shadow
junior horizon
#

i made this script and idk why when the tween starts instead of starting at the currentcam it starts at the humanoidrootpart, does anyone know how to fix?

obsidian totem
#

would this work?

chilly valley
#

might work

frail stone
#

anyone got an idea how this works

static coral
static coral
#

?

frail stone
#

its not a normal texture

#

focus

#

it moves with the camera

#

and the vehicle

#

yet not reflection

static coral
#

wdym

frail stone
#

hold on

static coral
#

also it could just be neon

#

the cars body

#

and then the texture is semi transparent

frail stone
#

not that

#

thats not even possible to have it that smooth

static coral
#

then idk vro ask badcc

frail stone
dense lily
static coral
#

nah not sure then its probably some weird visual effect they doing

#

maybe viewport frame? but i doubt it

#

or the car’s body has negative reflectance or smt like that

frail stone
#

just negative reflection

#

but roblox patched that long ago

static coral
#

negative reflection still works to some extent

#

but yea as i said not sure what exactly it is

junior horizon
dense lily
#

how do i get rid of the blinking light

chilly valley
formal abyss
#

How ı can make a block placing script

chilly valley
formal abyss
#

Grip placing system

opal hare
# frail stone its a bright texture

you can clearly see separation of some parts of the car as a different mesh, which leads us to conclusion that a part is using checkered texture surface appearance, not even with alpha or anything as the squares don't change color, other part is using neon material, thus can glow

#

god make david bazuki add emission maps to roblox

#

the separation is harder to see on the gif because it's shitty quality and blurred

dense lily
#

didnt work

opal hare
# frail stone

this one has to be something with reflectance and surface appearance

hollow forum
#

when making a td game, if you have lets say like 50 units, and all of them have different attacks, how to you do that?

torpid condor
#

Guys ive been struggling with this for a while, how do i make a steady moving object (via VectorForce constraint) while mentaining the character welded to it

#

cuz for me it kind of always starts shaking and glitches even with collisions off an massless set to true on the character

native sail
#

just kidding

#

press the 0 key on your num pad side or serch for insert button and click it

hollow forum
# fair tusk wdym?

like how to make different attacks for each of them, what if all of them need a script to function or have different attacks?

fair tusk
#

or maybe just different damage or range?

#

or cooldown too

static stone
proud idol
#

theres plenty of ways, but you are looking for modularity

prisma mason
#

break each attack down to its simple parts, code the simple parts -> making attacks becomes a game of lego stacking

hollow forum
hollow forum
prisma mason
#

this is for godot but it explains composition
https://www.youtube.com/watch?v=74y6zWZfQKk

In this video we look at Inheritance vs Composition and a scenario where Composition is preferable in Godot 4.

Both Inheritance and Composition have their pros and cons, but Inheritance is for more often taught, despite Composition being very important in Game Development. I recently ran into Composition in my own projects and felt that it was...

▶ Play video
#

have fun

sour jetty
#

why does :destroy() always causes a sec freeze

strong fog
sour jetty
#

what does task.spawn do again?

strong fog
#

it opens new a tread where you gonna handle of destruction of your part

#

so you wont get freezes

sour jetty
#

would it be okay if you put it in here

strong fog
#

wdym?

sour jetty
#

task.delay(2, function()
SignClone2:Destroy()
end)

sour jetty
#

so I wont need :destroy right

strong fog
static stone
sour jetty
#

:destroy might get deprecated

#

its useless cause it always lags

static stone
#

yea

#

avoid using it
its better you use debris (for timed destroy) or .Parent = nil

lean ocean
#

stop trolling

#

@sour jetty dont listen to the dumbasses

proud idol
wheat trail
blazing oasis
#

Would you sacrifice a cat or dog for 20 bucks

wheat trail
#

Even better like this

local part = workspace.Part
task.delay(2, part.Destroy, part)
junior cave
#

||print("hello||

#

almost done my script

lost pebble
sacred lily
#

Roblox's built-in soft shut down system kicks players instead of teleporting them to a newer server, why could it be?

wraith shadow
lost pebble
wraith shadow
lost pebble
wraith shadow
#

cool i mustve not been explaining myself correctly

bronze path
#

if you are creating and destroying a lot of stuff, a real way to optimize would be to pool the items and reuse them

#

look into an object cache module

wispy ingot
#

selling a script that randomly generate flying island made of blocs with infinite patern and variations dm if interested

static coral
#

check devforum

#

or just use soft shutdown module

bronze path
#

but sometimes the teleport could just fail too

jaunty yarrow
#

wheres the best place to learn react-lua cuz lowk the roblox tutorial only shows the basics cuz like how do I structure my shit in vscode

cinder basalt
#

you dont need it

#

turn back while you can

jaunty yarrow
#

a declarative workflow seems better no??

cinder basalt
honest sierra
#

How do i start scripting i alr know a few basics

somber vault
#

u js do

static stone
honest sierra
honest sierra
#

Where

static stone
#

and looping methods like while and for

honest sierra
#

i alr know that

static stone
#

good

static stone
honest sierra
#

but like how do i start like really scripting for example a combat system i have no idea how to do that

blissful torrent
#

does anyone know how to script a rolling or gacha type system

#

something like sol's rng's roll

static stone
honest sierra
#

i know everything but tables

#

i just havent mastered it

#

do i master it first

jovial crown
#

Yes extremly needed

sour jetty
#

DUDE

#

what happened bruh 5 pings

#

cause I said destroy might get deprecated

#

I used debris is good

#

destroy makes lag everytime

static stone
#

just dont use destroy

#

use debris:AddItem(game, 1)

sour jetty
#

why they ping 5 times then lol

sour jetty
static stone
#

idk they like useless ping

sour jetty
#

wdym game bruh

#

you can get banned for this I guess

static stone
#

yes roblox might ban me for destroying their game

#

never do it at home

sour jetty
#

I mean in this server

#

corny ahh nasty ahh pfp btw

static stone
#

ok

pale laurel
#

yo does anyone know how to script the Height system with 7'0 average and higher=more rare?

sour jetty
regal temple
#

guys any game ideas, i cant come up wqith anything

torn cargo
#

can u get a player from a clickdetector

lavish summit
#

Hello everyone, are you doing well? Tell me, I have a problem with the Adonis system. My staffs did SpeedBoost on a significant number of people (10–15) and they were banned by Adonis’s anti-cheat, and when I run the command :banlist none appear. How can I unban them?

real hemlock
#

Just amend the datastore.

#

src code should outline how it's stored

real hemlock
#

Cmdr >>

random nebula
#

loadstring >>

west plover
#

Who wants to join our Dev Group? We build and help each other grow

static stone
#

best plugins/libraries for scripting?

#

i feel so dumb using only rojo idk

cinder basalt
#

Stay clean

static stone
#

rlly?

#

ok then

cinder basalt
#

Learn those when you have nothing else to learn

kind ibex
#

Can someone teach me How to make fortfolio

sturdy dagger
#

who let this 8 year old in

foggy burrow
#

lmao

quartz beacon
#

paying someone in robux or crypto to finish a project for me dm

light shadow
#

me

grand steeple
#

For badges that that you award for things players have to earn over longer time things/multiple play sessions - do you all just tap into whenever you save that data and see if they need the badge and award it? I take it you have to build some sort of resiliency in case the call fails so they are not locked out from ever earning the badge?

cinder basalt
#

How could it fail sad_hamster

grand steeple
# cinder basalt How could it fail <:sad_hamster:1274277118339190826>

network issues I suppose like server crash or idk just thinking like if you have a badge for "player does X thing 100 times" and somehow award badge fails. I take it you'd have to check each time of 100 times they did something if it was previously awarded and if not award it but that seems like some bloat... (though can be optimized for sure)

cinder basalt
#

and if player thing > 100 and not has badge theh
Award badge

#

I dont think theres a way to simplify that

grand steeple
#

got it - and is it universal that profileservice is the recommend way to save data? I've avoided all other 3rd party modules to date in my game but about to have to add saving so I can implement badges

rigid cedar
#

profile locking basically solves most of the basic duplication glitches that many games hage suffered from

cinder basalt
#

It has the essentials

rigid cedar
#

cant speak on that i've actually never heard of profilestore

median tree
cinder basalt
rigid cedar
grand steeple
median tree
#

Full stack in what

grand steeple
#

web dev

rigid cedar
cinder basalt