#📜︱scripting

3450 messages · Page 4 of 4 (latest)

devout oasis
#

🥀

lime flint
#

lets gooo

rapid ferry
#

really?

lime flint
#

are you the person who coded it? just wondering

broken delta
devout oasis
#

i made it

rapid ferry
#

im gonna make some deals like this

devout oasis
#

why

#

im glazing it

rapid ferry
#

with stock

lime flint
#

so your opinion isnt relative in this matter

broken delta
#

why do you think its called "Vetra"

broken delta
#

you need more fomo

mental cliff
#

hello

broken delta
#

add limiteds

devout oasis
lime flint
#

let actual games decide if its performant or not

#

✌️

devout oasis
#

fuck you ethan

hot otter
#

If this is a dumb question let me know, but I'm trying to make a simple flinging block but it stops working once I anchor it, has anyone had a similar problem?

lime flint
#

your test place was minimal

halcyon oak
#

KEY FRAME ANIMATOR FOR UI

lime flint
#

actual showcase games, detailed games decide the result

devout oasis
rapid ferry
#

i sell it for 300

halcyon oak
devout oasis
broken delta
#

oops

lethal heath
#

the UI juice is out of control

halcyon oak
#

I make like 50

#

and it pisses me off

rapid ferry
broken delta
#

hell nah 😂

#

let them poor mfs buy it full price

lime flint
#

i aint hating on it

broken delta
#

its called capitalism

lime flint
#

its cool

rapid ferry
lethal heath
devout oasis
rapid ferry
#

playing simulators and seeing the overpriced gamepasses

broken delta
#

and now you get to do it

#

isnt it peak

rapid ferry
lethal heath
earnest otter
lunar shell
#

where the hell did insert from part go

halcyon oak
lunar shell
#

guh

rapid ferry
#

best feeling

lethal heath
broken delta
#

congrats

halcyon oak
# lethal heath were you able to fix your UI
devout oasis
rapid ferry
lunar shell
#

ok seriously where the fuck did insert from file go

rapid ferry
#

i make 3k per day remember

broken delta
#

ohh

earnest otter
broken delta
#

nobody animates their ui with keyframes

#

wtf

devout oasis
halcyon oak
devout oasis
#

fucking david have me blocked

halcyon oak
devout oasis
#

fuck you david

broken delta
halcyon oak
broken delta
#

just use springs

#

like everyone else

halcyon oak
little halo
devout oasis
broken delta
#

chud

rapid ferry
halcyon oak
broken delta
#

yes

#

everyone uses springs

little halo
broken delta
#

ive never seen any pro use fkn keyframes for animating ui

mighty glade
broken delta
#

thats so unperformant and just shit

halcyon oak
earnest otter
rapid ferry
rapid ferry
little halo
rapid ferry
#

at 10-20 ccu i make 3k robux per day

broken delta
halcyon oak
broken delta
#

cus springs are smoother

#

hold on

#

let me show u an example

little halo
rapid ferry
halcyon oak
rapid ferry
#

i mean idc

little halo
#

interesting

#

did u buy advertisement?

broken delta
rapid ferry
broken delta
#

its not that hard

little halo
rapid ferry
little halo
#

oh

rapid ferry
#

but rn its running on home recs

#

not ads

dapper vapor
#

how do i return a value from a local script with a remote

lunar shell
#

tryna see how it works by actually using it and how do I type it again

devout oasis
#

connect

#

fire

halcyon oak
devout oasis
#

disconnect

halcyon oak
#

i;d rather make games

broken delta
lime flint
rough oracle
#

@steep flower hi lol

dapper vapor
vale crescent
dapper vapor
vale crescent
#

CANCER

#

yeah bro just use "const" only to reset it the very same line

outer path
#

do this on the server

vale crescent
#

it is on the server

vale crescent
outer path
dapper vapor
#

man i didnt think making a tower defense game would be this much work

vale crescent
outer path
#

or am i misunderstanding

vale crescent
#

yes but also no

outer path
#

fill me in then

vale crescent
#

where is the confusion

full sinew
#

i think its the amount parameter? but it doesnt look insecure

outer path
full sinew
outer path
#

they can override their own localscript code

vale crescent
#

yes

#

yes

full sinew
vale crescent
#

that is in fact true

outer path
#

lol

#

if she did then i missed it

#

that's what my question was.

tidal crest
vale crescent
#

this runs on thread identity 4 which is why it's so experimental

full sinew
vale crescent
outer path
dapper vapor
#

brooo im tired of coding but i got nothing else to do

full sinew
vale crescent
# vale crescent CANCER

Radiation will kill the player because on another script it detects the change in the "Radiation" attribute

full sinew
#

the client has no say in attributes on the server

#

so if the player gives themselves 3 trillion radiation then it only changes the client side

#

so its secure

vale crescent
#

yeah you're not wrong

outer path
# full sinew so its secure

i know this...the reason why i pointed her code out is because i thought the entire radiation logic was client-sided

#

but now that i know there's server vailidation, all is good.

#

🥴

full sinew
#

brotine

outer path
vale crescent
#

where

#

oh the rate limit yes

outer path
# vale crescent there isn't

you said the radiation logic was on the server, and changing the attribute on the client only changed what the client saw

#

right?

storm fern
#

So like studio documents and stuff?

full sinew
outer path
full sinew
#

its very boring so i recommend you watch a tutorial instead to learn the very basics

storm fern
full sinew
#

after that your basically reading english on the documents

vale crescent
full sinew
outer path
#

depending on how its setup, you might not need to worry

vale crescent
#

this sets the attribute, another script checks for the attribute change, then it deducts their health

manic dirge
outer path
outer path
manic dirge
#

That's not what I asked

outer path
#

🥴

vale crescent
vale crescent
outer path
vale crescent
#

that would cause deadlocking

outer path
#

meaning only the client can see the radiation attribute. the server can't see it

#

so how can the server listen for changes on data it has no access to

vale crescent
#

& so he did, he knows the ins & outs of lua

#

i'm scared of him

manic dirge
manic dirge
#

Which i think is the more likely case

vale crescent
#

a metamethod gives your table super powers

outer path
arctic anvil
outer path
#

im making my game right now but i can test this out right now jade

arctic anvil
#

Powers like homander?

outer path
#

if i set an attribute on the client, then switch to server view, i will be able to see it on the server right?

arctic anvil
#

Oh it's the ability to be pregnant

#

This super power sucks

dapper vapor
#

god DAMNIT!!! theres MORE BUGS

vale crescent
# arctic anvil Such as?

print(setmetatable({}, {__tostring = function(...) pcall(function() for i = 1, 12 do print(debug.getinfo(i).short_src) end end return ":blush::sparkling_heart::sparkling_heart:" end}))

#

my code :(

dapper vapor
#

the enemies just stop movinh half waythru bro

vale crescent
#

if the client were to do it nothing would happen

outer path
vale crescent
#

it's not in a localscript it's in a modulescript

outer path
#

is the module script ran by the client or server

vale crescent
#

well technically in runtime it gets set to a server script

vale crescent
#

if the client tried to use it nothing would happen because SecureFunction doesn't exist on the client

outer path
#

mhm i get you

#

so the server creates the attribute then?

vale crescent
#

precisely

plucky boltBOT
#

studio** You are now Level 5! **studio

outer path
#

got it

#

and the client just updates it locally?

manic dirge
#

I'm smart too guys

vale crescent
outer path
vale crescent
#

the server handles everything because i'm scared the client would make a godmode

outer path
#

this is local code

vale crescent
#

no

outer path
#

wait

#

OHHHHHH

#

im sorry

vale crescent
#

hm?

outer path
#

goodness you have terrible naming conventions

#

all this time i thought that

#

i thought that LocalPlayer refers to game.Player.LocalPlayer

vale crescent
#

why would that be the case

#

i wouldn't pass the localplayer as an argument

full sinew
vale crescent
#

i'd just get it from players

manic dirge
#

Because he larps

full sinew
#

parameters*

manic dirge
#

We all larp

full sinew
vale crescent
#

on occasion

outer path
#

so ur running this on the server?

#

i am so sorry

#

lol

#

pls forgive me

manic dirge
#

Or it could be a local player

vale crescent
#

yes

vale crescent
outer path
vale crescent
#

the module script gets deleted at runtime & replaced with a server script

outer path
#

go men nah sai

vale crescent
#

unless specified to stay shared it will do that, same with client scripts

#

except some functions don't get added such as SecureFunction

manic dirge
outer path
vale crescent
outer path
#

its explained in this channel

manic dirge
#

So its useless just like const

vale crescent
#

no, secure function is useful unlike const

manic dirge
#

So the const is just for the vibes

#

Like type checking

vale crescent
#

if it's not present in module scripts then when they get set to normal server scripts it will add it to them automatically anyway to protect them

vale crescent
#

it's not even relevant here because it literally gets changed in not even the next line but the same one

manic dirge
#

Fortnite

echo panther
tidal crest
outer path
vale crescent
tidal crest
#

old?

echo panther
#

bros writing some bullshit

vale crescent
#

i was testing something

vale crescent
tidal crest
#

const has been out for like a month

#

yeah

#

😭

vale crescent
#

i was testing something

outer path
#

i love this gif so much

#

cracks me up

devout oasis
#

bruh

tidal crest
outer path
hexed thunder
#

hi cat

vale crescent
hexed thunder
#

hi Ve

devout oasis
#

hay

devout oasis
tidal crest
#

star my post too

tidal crest
#

everyone must

#

or they will face my wrath

hexed thunder
#

WHERE

devout oasis
hexed thunder
#

where

hexed thunder
tidal crest
manic dirge
hexed thunder
tidal crest
vale crescent
devout oasis
vale crescent
#

well, ex friend now but

echo panther
#

bros onto nothing i think

vale crescent
#

i suppose now that we're no longer friends i could get rid of it

manic dirge
tidal crest
echo panther
#

u right

devout oasis
#

like maximum security?

tidal crest
#

i wrap all my functions in pcalls btw

devout oasis
#

top secured function?

devout oasis
tidal crest
#

bc what if i get a solar flare bitflip

vale crescent
#

just kidding i could never

manic dirge
vale crescent
#

heart attack

devout oasis
#

i wrap pcalls inside pcalls

#

im scared if the pcall will error

echo panther
#

is my script secure

hexed thunder
#

pp calls >>>

viscid swallowBOT
#
Program Output
Hello World

vale crescent
devout oasis
tidal crest
#

chris is there a simple way to make a quine in luau

devout oasis
#

sometimes my pcall errors

echo panther
#

my entire game is wrapped in a pcall

manic dirge
#

My code doesnt have errors

devout oasis
#

so i put another pcall

devout oasis
#

thatd why

#

u cant even see if it errors

manic dirge
devout oasis
#

i use xpcall

vale crescent
#

"pcall = protect_function(pcall) ✅ "

devout oasis
#

and ypcall

echo panther
#

xpcall on top

#

lowkey

#

u can use it for so much bullshit

vale crescent
#

yes

manic dirge
vale crescent
#

SKIDDING!

manic dirge
#

Who skidded my pants

echo panther
#

xpcall is goated cuz u can pcall indexing objects quickly

manic dirge
#

It also gives xp

vale crescent
#

wasn't xpcall deprecated for some time or am i thinking of another function

sharp mirageBOT
#
Luau Compiler Results | Server #23

Requested by: @devout oasis```ansi
[Warning] Detected comments in command this may cause issues, try an application command instead or remove comments.
true true

#
Luau Compiler Results | Server #23

Requested by: @devout oasis```ansi
true true

echo panther
#
local __index do
    xpcall(function()
        return game.fortnite
    end, function()
        __index = debug.info(2, "f")
    end)
end

print(__index(game, "Workspace"))```
#

xpcall goated for shit like this

manic dirge
#

Fortmite

devout oasis
#

fortnite

echo panther
#

xpcall giving u the callstack of the called func is op

vale crescent
outer path
#

doing this makes you call directly into the c environment

#

🥴

#

i personally never had to do this

echo panther
#

its a useful micro-optimization sometimes

weak adder
#

require(script.Parent:GetAttribute("tag"))

echo panther
#

u can do it for any namecall func

outer path
#

ooh when i start making my smash game again, ima do this

#

my custom engine will need it

echo panther
#

shit like that is only really useful in render stepped

outer path
#

oh

echo panther
#

where u need as many optimizations as u can get

jade grotto
#

render stepped dosn't block rendering anymore

outer path
#

it blocked rendering?

echo panther
#

ye

#

new task scheduler op but they seem to have broken the datamodel

outer path
#

interesting

silver obsidian
#

@jade grotto

#

yo

#

how ar e yo today

full sinew
manic dirge
#

By being part of the big leagues

tidal crest
#

.org is actually cheaper than com p sure

full sinew
#

oh

#

i thought it was only for nonprofits

silver obsidian
#

@full sinew

#

we are a nonprofit

#

where we make money

#

to give to poor people

#

in what wwe classify as the ceo

manic dirge
silver obsidian
#

u are not the ceo

manic dirge
#

Can I be

late vapor
#

guys anyone know who can texture a bit Sad Ive been looking for a while now

manic dirge
#

No

late vapor
manic dirge
#

Np

#

Can someone teach me how to script

hallow ruin
manic dirge
vague carbon
#

a bunch of nerds

full sinew
manic dirge
vague carbon
manic dirge
manic dirge
#

Im tired

full sinew
#

i gotta sleep soon

manic dirge
#

Wtf

quaint temple
manic dirge
#

And .skid

hot mirage
#

yerrr

gentle sluice
hexed thunder
fallow viper
#

anyone tryna script fo me fo free heh

manic dirge
manic dirge
broken delta
manic dirge
abstract ermine
#

youtube twin

vague carbon
#

skid

#

skids skids skids

broken delta
#

fuck your skids

manic dirge
#

Skid this skid that

vague carbon
broken delta
manic dirge
#

Maybe none of us are skids

vague carbon
broken delta
#

you're all skids

#

I'm the only none skid

manic dirge
vague carbon
#

lol skid mark

broken delta
#

get back to work modelerb

vague carbon
#

director

#

no

#

shut up david

broken delta
#

this you

broken delta
vague carbon
#

shut up scripters

vague carbon
vague carbon
broken delta
#

cus you can't code

tidal crest
#

ill let it slide since its almost ur month

broken delta
#

boy

#

you're close to the sun

#

or soemthingn

#

idk how itsbsupposed to be said

tidal crest
#

bruh

#

larp

broken delta
#

bruh

#

fkn scalor

tidal crest
#

also its not even applicable here

broken delta
#

fkn documenter

broken delta