#code-discussion
1 messages ยท Page 96 of 1
try it
no
other than awp i think
I promised myself I wouldn't use AI.
I can see the detail... I'm going to say it's AI.
how hard would it actually be to make a roblox executor? anyone have any idea???
nezur, evon
Correct but really does look real
who wanna make a roblox executor
The mouth motion gives it away
yea the mouth looked so weird
Yeh
I just look closely like I'm inspecting a gem at a jewelry store.
you were right
they're detected gngling
LOL
bro made chatgpt say these things haha
i forg how u do that tho
doesnt matter since roblox doesnt ban you for some reason
it does, just takes time
theres loads of ban waves, what u talking bout?
That's because its model has to abide by OpenAI Terms of Service.
obviously
why do you talk like ai tho
are you ai..?
hate your own kind
i mean that COULd be possible
I do not know. My creative writing teacher tought me more on grammar.
its just mass reporting that gets you banned just use private servers (not giving advise obv.)
Tought.. I don't think so
I know I'm not AI, but I more than ever HATE AI.
why's that
prob the image generation limit
It's fucking up children, and developers are using it, with them having the audacity to stomp over REAL DEVS.
how's it f'ing children
Generation beta...
its their parents that leave them unsupervised what else would you expect
not only that, but technology will make their minds rot away
ok i need to take a break, I've let out my anger enough for one day...
no good dev uses ai tho
it's what children
fr tho creativity is on a all time low
I'll be right back, guys.
They already are, Grow a garden hit a 11m CCU in it's event
quick question, am i allowed to use the ai in roblox to just like explain a line of code to me
not make just purely explain
you're allowed to do anything..?
why wouldn't u be
openai trying to psyop their users
like i don't want chat gpt codeswitching ๐
โค๏ธ
i mean it helps with complex problems, it doesn't really solve them tho..
im okay
this feels SOOO much better
local MarketplaceService = game:GetService("MarketplaceService")
local function handlePurchase(info)
local ReceivedProductID = info.ProductId
local Player = game.Players:GetPlayerByUserId(info.PlayerId)
if ReceivedProductID == ProductID then
if Player then
for i = 1, 1000 do
local y = 50
local Part = Instance.new("Part")
Part.Parent = workspace
Part.Position = Vector3.new(x, y, z)
Part.Color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end
end
end
end
MarketplaceService.ProcessReceipt = handlePurchase``` Does anyone know how to wrap this in a pcall
idk
so it actually buys instead of giving me an error likek this
Do pcall(func_name)
This do
OMG LEMME IN
around the entire script?
okk
local ProductID = 1234567890
local MarketplaceService = game:GetService("MarketplaceService")
pcall(local function handlePurchase(info)
local ReceivedProductID = info.ProductId
local Player = game.Players:GetPlayerByUserId(info.PlayerId)
if ReceivedProductID == ProductID then
if Player then
for i = 1, 1000 do
local y = 50
local Part = Instance.new("Part")
Part.Parent = workspace
Part.Position = Vector3.new(x, y, z)
Part.Color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end
end
end
end
MarketplaceService.ProcessReceipt = handlePurchase
)
liek that?
putitinacodeblock
no, do pcall(handlePurchase(put in your info))
okay
local MarketplaceService = game:GetService("MarketplaceService")
pcall(handlePurchase()
local ReceivedProductID = info.ProductId
local Player = game.Players:GetPlayerByUserId(info.PlayerId)
if ReceivedProductID == ProductID then
if Player then
for i = 1, 1000 do
local y = 50
local Part = Instance.new("Part")
Part.Parent = workspace
Part.Position = Vector3.new(x, y, z)
Part.Color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end
end
end
)
MarketplaceService.ProcessReceipt = handlePurchase
``` would this work?
?
would this script work
Hey everyone,
Iโm searching for a solution or a toolโlike a virtual animatorโthat can play animations directly on models or rigs without relying on Humanoids or Animator instances.
The reason is, I want to protect my animations from being stolen by exploiters who use GetPlayingAnimationTracks() to detect and copy them.
If anyone knows of any existing modules, plugins, or custom scripts that handle animation playback completely off the Humanoid system (for example, by directly manipulating CFrames or joint transforms), Iโd love to hear about it.
wait no
i thought you were going to do that upon a button being clicked or smth
mb
yea
when spawn 1000 parts is pressed
the buy thing shows up
you need to make it function handlePurchase
how?
where should i make it funciton?
remove the pcall
okay
function handlePurchase()
local ProductID = 1234567890
local MarketplaceService = game:GetService("MarketplaceService")
local function handlePurchase(info)
local ReceivedProductID = info.ProductId
local Player = game.Players:GetPlayerByUserId(info.PlayerId)
if ReceivedProductID == ProductID then
if Player then
for i = 1, 1000 do
local y = 50
local Part = Instance.new("Part")
Part.Parent = workspace
Part.Position = Vector3.new(x, y, z)
Part.Color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end
end
end
end
MarketplaceService.ProcessReceipt = handlePurchase```
like this?
Hey guys, does anyone have experience with viewport frames?
incorrect id
make sure on the gamepass page to click copy pass id not copy asset id
๐ญ
one sec lemme send ss
they'd still find a way to steal them, not worth the time
but most exploiter arent too smart tho
unfortunately people can pay exploiters
hm
its a dev product tho
technically they would need a decompile/ use dark dex but my game has dark dex protection
and it detects saveinstance()
it doesn't sorry to tell you
ive tested it mate
what exec
Multiple
any of them include ones that actually have cloneref?
bro UGCValidationService detection is patched now buddy
okay
Bro im not using that
is my code wrong? Idk why this keeps happening
yes
๐ญ
lol
does anyone know the best way to get better at scripting? ive tried yt and it doesnt help
Most people dont Add that in tho
oop
should i use smth else instead?
bro thats the source code of the most popular save instance script
oh yeaaa its not a gamepass its a dev product-
synsaveinstance?
yh
my brain
i wanna do
PromptProductPurchase
but i am only learning how to code
okay
i am a scripter
also lemme guess ur using preloadasync for dex detection
lemme check
np man
x and z are nil
One of them does but their is different types of detection
thats not the issue he was talking about
you realize people can just use getcustomasset
right
yeah preloadasync is shit
this is my dex detection
local ContentProvider = game:GetService("ContentProvider")
local LocalPlayer = Players.LocalPlayer
local BlacklistedAssets = {
"rbxassetid://5642383285",
}
table.freeze(BlacklistedAssets)
local OldCount = #BlacklistedAssets
while task.wait() do
if not table.isfrozen(BlacklistedAssets) then
LocalPlayer:Kick()
end
if #BlacklistedAssets ~= OldCount then
LocalPlayer:Kick()
end
for _, asset in BlacklistedAssets do
if ContentProvider:GetAssetFetchStatus(asset) == Enum.AssetFetchStatus.Success then
LocalPlayer:Kick()
end
end
end```
kicks them instantly
horrible btw
yield*
you're calling ContentProvider asset MULTIPLE times per second
also, it takes just this to bypass it:
local old;
old = hookfunction(game:GetService("ContentProvider").GetAssetFetchStatus, function(Self, Asset)
if Asset == "rbxassetid://5642383285" then return end
return old(Self, Asset)
end)
so what
lmao
it doesnt affect peformance
do you realize how bad that is for performance?
just to get bypassed by 1 hookfunction?
are u joking
should i send u mine and u comment on it?
go on
not if i have the localscript running under a actor, runcontext set to client in a part in workspace, script destroyed and everything
script destroyed wont change anything, you're indexing a global every frame, (task.wait), not mention the for loop which is useless since you just have ONE asset
yeah i have different assets in the table i just removed all em besides the dex asset
to send to this guy
also the anticheat he sent is just skidded openac
proof?
it was literally the same as this
^^ open ac
also uses the MakeDetection function
which is used in here
who gave u that
its literally open source my guy
@foggy fiber
local unfilter = { "rbxassetid://0", "rbxassetid://10066921516", "rbxassetid://13262267483", "rbxassetid://13253401424" }
local old;
old = hookfunction(getrenv().string.match, function(a, b)
if (b == "^rbxassetid://" or b == "^http://www%.roblox%.com/asset/%?id=") and table.find(unfilter, a) then return nil end
return old(a, b)
end)
bypassing anticheats is not hard
also openac was leaked, i don't recommend using it, plus its not THAT good https://github.com/penguin-cmyk/stuff/blob/main/openac-v1-src.luau
inf yield is useless for actual exploiters lmao
thats the worst bypass ive ever seen
i dont use it for anything except loading dex, in fact i don't even use it, i just load their dex
its the quickest lmao
also it does what's needed, its not made to bypass 100 generations of detections
yeah u cant use content provider on it anymore
they patched it
with getcustomasset
its funny because you can actually detect getcustomasset
shit ones yes
with preloadasync, if devs don't hide their file extensions
no, i mean getcustomasset('file.png'), .jpg, .jpeg, .webp
anything, you just need a file extension
its funny how nobody does it, but the bypass is just renaming the file to the file without an extension
oh aight didnt know about that
nw im not hating or anything
does the solara detection work
doubt it still works
yh prob
but any "executor" detection is stupid
90% of them are just error detections
and seeing if they have the executor's name
or a service using loadstring
unless u have a popular game making detections in the first place is a waste of time
having the basics is always needed
even on games with 3 players
for example, unanchored parts
either weld them or anchor them
thats a basic, no matter how big your game is
how can i bypass jumppower limits
there are no limits
game.Players.LocalPlayer.Character.Humanoid.JumpPower = 1000000
thats only local
then do it from the server
who tf doesnt anchor parts ๐ญ
they just gonna be falling over and shit
any new dev
no new dev is gonna have a popular game
took me 2 years to get a big game
grow a garden
it got sold in 3 days
plus how do u know the original devs were new
the game is basic
- their code
ive seen experienced scripters with terrible codebases
they just like to get things done over clean code
just started scripting and i have a question
iam following a tutorial
and i came to this part, which means that myVariable is = 100 why dont you just type 100 next to the print instead of myVariable?
You can
It's just showcasing variables and how to output them
oh ok
You don't need any variables but your code would be a mess
yeah true
ty
nws
i should use a 48 bits to store the userid?
i also just found it that the myVariable makes it so when u change the 100 it changes everywhere
instead of changing the number next to every print
which is wayyy easier
do u need 2^48 users
and takes way less time
idk, how many users roblox have? currently
wait i think this is the wrong logic
shoot i forgot my computer classes
ok so if i remember correctly
thats probably like 12 hexdecimal places
whats FFFF FFFF FFFF to decimal
i forgor
yoooooooo
oh ok, but how many user roblox currently have?
ngl no idea
same
well consdering some places have over 10b visits
probably 10 billion then lol
i have decided that i am not smart enough to speak out on this topic
what things can i place after the = like strings or numbers,...
wdym?
variables name
so strings cant be between the brackets?
Local name = "this a test"
Change name to anything you want
strings cant be a variable tho
What I didn't know that
anyone know how i can incorporate a sort of camera movement every time i left click in a combat system game?
But usually the most common and most used use must do local Test =
Like what
Nope
where every time you attack the camera shakes a little
Do you want to learn it? And understand how it works and how you can make it yourself
yes
roblox
robloxdev
gamedeveloper
gamedev
robloxstudio
robloxscripting
robloxlua
datasavingroblox
datastores
functions
ROBLOX,character,character shop,scripting,coding,programming,program,pc,comptuter program,lua,how to make,how,how to make a character shop,studio,roblox studio,roblox scripting,How to script,roblox,studio coding,SCRIPTING ROBLOX,st...
Recommend to learn it not getting random code and you don't know how shake even works
yeah, although im not trying to shake the camera, im just trying to move it in a way so that it feels like im attacking, its hard to explain but you can check out the game (jujutsu shenanigans) yourself and see what i am talking about because it isnt just a camera shake
Idk I haven't played that game
If you can get me a video I'll if I can help
That's a shake for sure
For each direction it moves to where you want if the attack is left the make shakeoffeset go to left
The Zoffeset
ok thanks
local mps = game:GetService("MarketplaceService")
local plrs = game:GetService("Players")
local dpi = 3306147300
mps.PromptPurchaseFinished:Connect(function(userId, productId, isPurchased)
if productId == dpi and isPurchased then
local player = plrs:GetPlayerByUserId(userId)
player.leaderstats.Stage.Value += 1
player:LoadCharacter()
end
end)
can anyone help me pls i dont know why this script is not working. its a skip stage script ๐
Ain't now bro making using string to make variables
how to get experience coding
Technologyia
what isPurchased returns
first day of scripting
whats a good tip for scripting?
atleast are u sure dpi is ur gamepass id
i copied like 3 codes from youtube
local MarketplaceService = game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if receiptInfo.ProductId == 3300138288 then
player.Leaderstats.HardStage.Value +=1
wait(1)
player:LoadCharacter()
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
another 1
.
the id is not even same lmao
its diff in 2 scripts
๐
i know how it works m just making it in other game for test so changed hardstage to stage
okay ๐
hey anyone with experience can help my friend he crashing out about his script
but still not working 
Yeah but since it was only one print statement typing 100 would be fine for that case
combat system
m1?
frl?
is it a m1 system
.
bro like
the punches or attacks u do with mousebutton1 is called an M1 in any game
that has nothing to do with being a scripter
well
its not that really
just when we equip the weapon they dissapear of the item bar
plus they like glitch out and we have to press right to be able to attack
he just means yes the m1 system is kinda broken because of my feint being in the sript so when we use the item, they disapear and when i feint, i can attack again so im in a loop where i have to press m1 and m2 at the same time so i can execute my next attack
how do i make a leaderboard from getting the top 5 of a certain leaderstats from everyone in the game and displaying
I am using an roproxy api to get game icons for different games, the images comes in a url format, but when I set ImageLabel.Image = url, the image just becomes white, even if I try to do it manually when the game is not running. Does someone know the problem?
you can't set an image to a url thats not roblox
^
check if roblox has an internal api for that
like what they do for profile images
they don't, but you can make your own api to draw images
its a roblox hosted website
gng
dont be so kevin rn
roproxy?
no, tr. something
well the url is like tr.rbxcdn.com... does that not work?
it doesn't unfortunately, but thats a roblox hosted website
what should I do then?
well what are you trying to do
I am trying to display different game icons
i mean i would honestly want to ask why
MarketplaceService:GetProductInfo(placeid).Icon iirc
its something to do with :GetProductInfo
ohh, lemme try it
game.Selection:Get()[1].Texture = "https://assetgame.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid=13772394625&fmt=png&wd=420&ht=420"
this works fine for me
yea @upper sleet
local result = game:GetService("MarketplaceService"):GetProductInfo(placeid)
local icon = result.IconImageAssetId
though, you can get ratelimited, so i'd consider adding a cooldown on how fast you use it @upper sleet
yeah that works
what easy OOP should i try to make ๐ญ
object placement system
manage them with virtual tables, so you can use datastore
dude whats up with images?
are yall able to post images
Do yall have any videos that would help learning a good vsCode + git workflow?
Im only now learnkng about github rn
Gg
.
got a game as an example? also what is a virtual table???
guys can you use tween service on the humanoid camera?
no need for virtual sorry, i just like to use that term when working on my game
but no, i don't have any games, but i think grow a garden does it
i am working on my own game and using it though, lmk if you need help
alr ill ping u when im done ;D
function Object.new(Properties)
assert(Properties.Name, "Object must have a Name.")
assert(Properties.Path, "Object must have a Path to the real item.")
assert(Properties.Data, "Object must have Data.")
assert(Properties.Owner, "Object must have an Owner!")
local Metatable = setmetatable({
Owner = Properties.Owner,
RealItem = Properties.Path or "",
Type = Properties.Type or "Object",
Name = Properties.Name,
Data = Properties.Data,
Hash = HttpService:GenerateGUID(false)
}, Object)
return Metatable
end
yeah u dont need virtual just convert cframes/vectors to tables
thats the base of it
not what i mean
cframes + vectors arent datastoreable
yeah ik
you need a serializer, which is something i use
one more thing, is the original position of the humanoid camera 0,0,0?
thats why u convert to a table
so you can store those values, it's pretty easy
nah
wont work on runtime
you'd need to convert back to cframe or vector while using the object which is pretty pmo
convert to table and convert back
no, it's the character's position
not hard
yea thats bad, use a serializer / deserializer
i was just gonna do a .new that has a part as a argument, and a :Place that needs the position and places the part๐
ok thanks
just create a function to convert ๐คทโโ๏ธ
thats what i do, but you also need an Object.fromExisting to work with datastores
thats called a serializer
im just making it cause im bored, i wont use datastores with it
@true fern ```lua
local PlacementSystem = {}
PlacementSystem.__index = PlacementSystem
function PlacementSystem.new(part)
local self = setmetatable({}, PlacementSystem)
self.Part = part
return self
end
function PlacementSystem:Place(Target)
local Clone = self.Part:Clone()
Clone.Position = Target
Clone.Parent = workspace
end
return PlacementSystem
not exactly the entire system but it works
good job
give me another OOP ;D
are u practicing oop or what
i dont have any, ask chatgpt
PascalCase ๐
๐
PascalCase my beloved โค๏ธ
I mean, I get using PascalCase on the table but for the Target variable??? Its a vector3!
what is PascalCase?
ThisIsPascalCase
way of naming variables
some people love using their shift key
camel case on top
how do i send a script in lua on discord?
oh ๐
code help aint helping
don't go in there it's full of AI lovers
i have about 30 minutes of coding experince and i want this gui to be invisible when i press play and i am just getting laughed at in there
all i need is the gui to be invisible
where do i start?
and i have 0 idea how
yeah just learn from youtube tutorials at first
then try building systems
start with easy ones
and go up from there
ok guys i just got to the 7th beginner brawldev video time to pray he tells me how
Start by making a reference to the screengui
this is going to be a syntax problem
its good you already are thinking about how it should be ordered but all you need to learn is syntax
yeah
no offense but if you're 7 tutorial vids in and don't know about variables/references you're not really taking in the info
try slowing down and really watching the videos
understanding them
ggs
fire gng
this is literally the worst line of code ive seen ๐ญ
guys i have 30 minutes of experince give me a break
bro the thing is
how did you even write that line
like what was your process
i used the 10 words of scripting i know and thought if transparency is default 0 then if it IS 0 it turns to 1
did someone help u yet?
chill dude he has the right idea
i got laughed at in code help and nothing really happened here so no
ok here we go
Letโs make it a learning quest
do you know what a variable is
drake500 2.0
ngl
im guessing not
a variable just declares something
like a number or whatever
im on that vid rn actually
local numberfive = 5
local texthello = "hello"
im trying to use it to refrence the ui to make it invisible
theres a bunmch of different datatypes like numbers, strings, etc
yes
so for that you need somrething called a reference
This only works for like games I own I think, bc it says "Http bad request" if I dont use it on my own game
hello - string
5 - integer
^ yes but dont worry about the number types for now
5.0 - float
actually right before u said that i did this, ik its probably terrible but im experimenting
๐ญ
String::new()
in lua and roblox lua, objects and instances are always passed by reference and not clones
values are passed by NON reference
String::from("Sygau")
this is something youve got to get down fast
&mut iq
if you are referencing an instance, you are NOT making a copy, you are getting a reference to it
sorry
@true fern
my bad
but if you are referencing a "primitive" (basically the basic non table non instance) you are getting a CLONE of the value
what to do
enable http service in those games
you dont have control over that youve got to have someone else do it
okay i dont know what you're going for with "UiUi"
if then
i made that the name for the screen gui
it is allowed
the screen gui is called 10?
then republish the game and try
its called UiUi
can you send a screenshot of your explorer
boy u needa learn syntax ngl
ur new to programming
how old r y
oh god
14
๐ญ ๐ญ ๐ญ ๐ญ
14
broo
what
okay you're going to need to watch yotuueb tutorials
im sacred
Oh my gosh
gui - client
thats also a finnicky topic because its not ultra intuitive, but its something you do have to do
ts is easy
use StarterPlayerScripts or StarterCharacterScripts
now the immidiate problem if you want to fix is that you're using a server script to control a local client UI
๐ญ
and im not going to get into the legacy versus new system because its going to overcomplicate it
wat
but watch a yotube tutorial on the basics of where scripts go
just finish the beginner series first
bro sygau u talkin too much
well actually it is scarry and annoying but you'll learn it
do uy guys think using parents and children would work
u makin it complicated ngl
enablle http requests and republish
pmo
so much info
IM SO GOOD
his brain is not braining
alt + p?
I can just make gui enabled = false
omg๐ฑ
Use children
enable http requests in security
i mean u started with integers so
and then publish the game again
yeah i already did
ima use local player so it refrences that
bro i was jk
publish + restart studio
okay
MU HA HA HA I DID IT
bro becomin evil
i despise rust
why tf
nah it saves my ass sometimes but
dude codes in rust
congrats, now make a cutscene OOP ;D
I FINALLY DID IT
its a pain to write
I still get this ๐ญ
ts is pretty new for me in programming
lord is this third party
save to roblox?
what are you doing
show me the line
whats gameData.id
are you passing the game id???
yeah thats probably just nil
uhhh
Isnโt Id capital
something...
print it
Oh
typeof(id)?
yea pcall it
bro what u tryna make
u might aswell just make a list of game ids instead at that rate thats alot of api calls
thats why we have lua
Code help has become unsafe ๐ญ
make the lua make it
especially with alot of players the server is gonna get rate limited
its full of jobs
AHHHH
and employed people
AHHHH
Donโt bring it here ๐ญ
wait why am i scared i shower
AHHH
๐๐๐๐
i use deodorant
Iโm going to dev discussion ts pmo
im owen
ahhh..?
wait how
time to use rust
you can only pass 1 id to GetProductinfo
if you are trying to get the game picture
i can give you a way i used in an old game
its so ass tho ๐
no like make a module with a list of pre fetched game ids
and then use getproduct info
to get the images
and store the images in the module
aswell
no need to call getproductinfo when you join
everytime
cause its unnecessary
just update the list every week or so
yess
hmmm
not hard
yeah
im making a main menu rn with scripti
thats smart
u know nothin bro
did u just start
like today
yeah im bored
cut him sum slack
but im using the videos to help
real
my only problem is the dumbah camera is stuck at 0, 10, 0
"so much easier"
Lua is the easiest along with python ๐ญ
luau planet
lie
yall can only lie bro
not actually helping
yeah theres nothing to help with
cuz luau is complicated
because no one asked for help
Everyone knows B is the best language
yes and brainfuck
im learning
is this java or c++
C
ngl it's hard to adapt to other programming languages when you use it for the first time
i know some lua python C# they are really similar to each other but C is just harder
but it's faster
So, I have this rig that's a lot bigger than a normal player and I made it so that it updates to my avatar every time I change my avatar, is there a way I can still do this while maintaining the size of the rig ?
guys i just stareted this all. I know basics on scipting like events, childs and parents, functions and stuff. my biggest opp is gui. HOW DO I GO ON FROM HERE PLEASE HELP
like designing the gui or
watch a yt tutorial
scripting it
both tbh gui is just different
the most things i learned i just went through and understood it but this is different
opposite for me gui is one of the easier parts imo
yeah i think so
gui is basically the same thing
a lot of people tell me "just practise" but what the actual fuck am i supposed to do fr fr
its just confusing because of how it gets thrown around in parents
like i wanna go from begginer to advanced
thats just called time unfortunately
aka coding something, failing, and then realizing you dont know something
honesltly id just say try to code a game you want to code, and when you inevitably fail, you learn what you fucked up and you'll fix it
thats the fastest way anyways
yep
i think the fastest way to improve yourself is create and finish a game
then chuck yourself at hard games
you don't need to be the greatest dev
you need to be a scripter good enough to code anythign YOU want to code
any advice what game is easy to do but also challenging?
try to copy a game you like or create a system you like in a game
is a tycoon hard? cuz i dont rll think so
i mean i never did 1 but it seems pretty easy rightร
its not difficult but you should do it if you want to
it gives you a very nice starting point because it introduces a lot of systems you need to think about
guys is this even possible I havent seen anyone offer a solution, should I ask in the dev forums ?
it is easy but if you code it by yourself you'll definitely learn things
alr so no tutorials?
yes
until you get stuck
then use tutorials
but only on what you need help with
dont follow a "how to make tycoon"
i see
like dont watch a tutorial on how to make a tycoon game but you can follow a tutorial of a specific system if you cant manage to make it by yourself
if you get an error:
1 ) try to debug
2 ) throw in devforum
3 ) throw it in chatgpt
4) throw it in this server
yes this
the whole idea is you need to think about the logic behind the system
anyone can set a proiperty to something with enough syntax
the coding comes in the strategy
thinking about how stuff lines up
like if i say
"code a tycoon"
the real learning comes from learning where to even begin
i see
as much as you can, try to figure it out for yourself before you ask
but if you need to, then you can ask ofc
heres another thing
your code is going to look like garbage when you code your first finished project
do not compare it to someone else's code
i remember my first project literally had 20 if statements and i would puke on it now, but let it be
ye my teacher told me that good managed scripts are 20% xD
if i was gonna do it again, yes
as long as the script does what you want it to do
you dont change it
W mindset
and please for the love of god please do not start using frameworks for a WHILE
ive seen way too many people become a framework and never do anythign with it
alr
good luck
you won't quickly
wym?
and if anyone tells you your code is garbage literally do not listen unless you have a reason to think they're right
all your code has to be is:
a ) needs to do its goddamn job
b ) needs to be performant
c ) needs to scale and be understandable
usually code isnt even all 3
in shitty projects its 1, most its 2, and then only a few do 3
but unless theres a problem with one part of it, literally DO not sweat it
if someone complains about the structure of your code, its usually about being able to scale or understand it
can i ask u a question?
but if you tick all 3 boxes, you dont need to listen to whatever you hear
sure
8 years
8 YEARS
but in reality it was more like 3
most of it was coasting because i was an idiot
thats why im telling you to throw yourself at challenging projects
did u make any games yet?
because instead of spending 8 like me, you could be in the same place with 3
why does my viewportframe not render shirts/pants
working on one right now, my magnum opus, but i have contributed to games that have peaked front page
i see so u are like professional
gang who knows about viewportframes
eh wouldnt say that
wdym
does it just not load the texture
good yes, professional is a very subjective term
i see
did u aslo started for fun?
yes
yeah it just doesnt
I can see it having the id, but the viewporframe doesnt show the shirt
the reason im telling you not to take shit from anyone unless it violates this is because i used to obsess over organization until i realized theres no point
your code does not need to be clean, it needs to hit those 3
now clean code usually always hits number 3
and sometimes you can skip 3 if you just want to code something
abt to make his my lock screen
bro u are my man frfr
best mindset ive seen in ages xD
didnt get it instantly
that conversation deadass motivated me LMAO thank you all
REAL OMG
I got like motiavtion for 3 rn
can i hit u up if i got serious questions? @wide sparrow
d) needs to use either snakeCase, PascalCase or ALL_CAPS, otherwise it is garbage
lmao
what do you use
Yo can i asw?
wth did u just tell me
snake imo but casing is different
sure
isn't it camelCase
pascal is always betterf
right
wth is all that guys
thats what i thought it was called but i dont memorize lmao
snake case is: a_B
ALL_CAPS is mainly for static
If u can make the code work with strict mode on
Then 99% of the time itโll be fine
what IS strict mode
โ!strict
yea whats it do
fr?
yeah but WHAT DOES IT DO
lmao
Yells at u if u mess up a type
thats not half bad
it actually is hardcore mode lol
no its just C
- knowing what you're coding
yea no noobs allowed
the other half is yelling at the typechecker
Nah
Just define properly and it work
If u canโt code with strict mode
U need more practice
OOP kinda irrelevant to it
OOP is the best way to code gng
Nobody said it wasnโt
Only cs rejects donโt like it
use whatever makes your life better
it is
System for my find the masks game
Would it follow me when i jimp also, i think i made attachment, and in script i welded it or somethong i sont remember, away from my pc rn
if you welded it then yea
the ui needs alot of improvement
Ye i no use photoshop or these things rn, kinda new to ui right now also
u dont need to use photoshop to make half decent ui
But ima improve it later, rn i wanna make base mechanics first then i detail more
are we talking inheritance or composition
inheritance, it's so much easier to code objects
oh god
what
alright i see why
but it just becomes hell for me
im not interested in writing metatable boilerplate on every new class
well
doing ```lua
local Object = {}
Object.__index = Object
function Object.new(a)
return setmetatable(a, Object)
end
--methods for an object
is much cleaner
i mean i cant reccomend my way of coding to anyone because of how weird it is but i will just say that oop just doesnt work for me, i cannot handle so many classes for no reason
easier to manage aswell
show me how you code
we ready for a deep dive?
perhaps..
i code in an OOP ECS MVC combo
its a frankenstein of the best parts of each
theres no inheritence but there is a form of OOP by composition
wtf
no metatables i use the helper way of doing with basic tables and then using Ships.update(shipTable)
get out
get OUT
all ships are added to local object registries
given unique ids that are also recycled
you realize namecalls aren't metatables tho right
that way nothing is being run on references
oh nvm i see what you're doing
๐๐๐
so happy i don't have to work w u
everything is looked up by ID
thats O(2n) iirc
and every object has standards that will have x properties
how
is the id the index or the value
if its the index its O(1)
if it's the value then its O(n) or O(2n)
a ship in the list looks like:
[id] = {
id = id,
rest of table
}
frankenstein is the worst of each ( a monster )
ah then its O(1)
you're again welcome to think that way
:D
and i agree nobody needs to or wants to use it
but its the greatest thing ive ever done
oh right and theres a transformer layer in the middle
that takes the OOP objects out of the ECS systems and services
and transforms them into a game "model"
which is auto replicated and then recieved on the client by the client MVC
just send us a snippet
of the explorer?
listen this is better than my pure tables before, before that pure ecs, before that pure oop
why two Camera shaker
yeah that was a mixup i just realized and deleted it
ig i accidentaly duplicated it
are you a solo dev
never apply to work for someone
yes thats why i dont need to worry about others
you're doing the world a favor
lmao
how often do yall use AI when you have struggling to code a certain something?
alot
cause i lowk feel shameful for usin it
24/7 but never on structural changes