#code-discussion
1 messages · Page 53 of 1
Oh it was a joke?
just store this as values and send via event, I dont think it bad way to do it, its not using a lot of memory so you will be fine
if i create a value will it eb replicated to the client automatically?
depends where you create thhe value
do you think a system where i create a folder with string values of all the players in lobby work?
like store every lobby in folder and stores eveyr values?
it wont work inside the gui right? cause its only client sided
attributes are faster
yes in rs or smth
is there an option to create just a blank object with attributes that will just replicate to the clients automatically?
You know rep storage its not a really safe place to store lobby
exploiter can acces to it
a folder ig
he can read but not write.
Imo better way store in server storage and send via event the values
you dont need to share a session/lobby password to any client
there arent really private lobbies its more like a tower defence lobby system that people can just walk in you can just kick them if you dont want them there
at this point just use a table
not neccessarily just something that will work
but the santhegt idea its good, have a script in serverscripts, with tables of lobbies, and just inserting, deleting new lobbies with player etc eveyrthing as tables
yeah i think ill look into this attributes thing it might be what im looking for
like if player create a lobby, inserting new lobby to lobby tables
and you dont need any folders
evyerthing will be stored in script not physical
in the table you can store lobby owner tho
Ye mb
and just pass it with events right?
Cuz of the egg system
but why you need client side have the values
hubert
sup
so the players can see whos the owner and what player is in the lobby and which map is selected
so for ui?
yes
so i got the code, how do i paste it with the ** thing
so it comes like a code
yes I think send thhem via remote
if you keep tables
ok thanks
what if you remove whole module 3d and create 2d module XD
but i got some other codes connecting to this script idk if it will work
I know cuz its modules script
shhow me main module
where the script are required
will be easier if you click ctrl + f and say Module3d and send me only this line
instead whole script
alright, i copy paste every line with module3D?
yes where the moudle3d are triggered
so the easier way its just create new module Module2D remove module3d and swap the module3d to module2d in these scripts, in module2d just make the same function Module2d.Attach3D(and send there pet name and pet module) in script do clone viewPort, for pet sended via the function, and change the camera view to the pet model, not adding the rotating script
yup
So clone imageLabels instead vewiport and send the roblox id image instead petModel
do i remove the whole 3Dmodule then?
if i make the Module3D into 2D do i need to change anything to the... hatch thign yeah
hatch script
you need change all the lines who triggers function in moudle3d cuz module3d not be exist anymore
btw, I dont understand why you doing the same function for every pet instead store the pet in folder and just use in pairs to trigger function for every pet instead manually writring them like module3d.Attach3d(single pet)
for _, pets in pairs (Folder:GetChildrens()) do module3d.attach3d(pets)
so why you need these lines
liek pet3 pet2 etc
uhm ask the guy who made this tbh
he is not smart then
like i dont see sense, manually send every pet in the game instead do it in loop
gl
Someone can explain me what is the error on my script. The error is argument 1 missing or nil
whcih line
22
try before using teleportSerivce print the choosenplaceid and give me results
Ok
wait I think I found problem
This DrDonut Clips channel is owned by DrDonut, but the clips are clipped, edited, and posted by others. Thank you for watching.
Main Channel: https://www.youtube.com/@DrDonutt
Server: donutsmp.net
https://www.youtube.com/watch?v=mPbVIS5wL6A
• Discord: https://discord.gg/donut
• Twitter/X https://twitter.com/DrDonut099
• Instagram https...
You doing something like that randomindex = placeid[randomNumber] and later you again try do local choosenRandomid = placeid[placeid[randomnumber]
the extra plceid its mistake
Ok
random index
should be
only math random(1, #placeIds)
cuz you want get number only, not the argument of tables
and later choosenplaceId = placeIds[randomindex]
its work?
I don't understand what I have to change
local randomNumber = math.random(1, #placeIds)
local choosenPlaceId = placeIds[randomNumber]```
@rocky atlas
It works
cool
you understand what you did?
you instead get randomNumber first you picked random children of folder , and later you tried again get random children of children folder
and its gave you nil
cuz its not exist
no problem
np
Hubertus
@karmic cobalt do most games uses images for their display pets or 2D module thing?
that depends on them , but viewport using more memory than normal images
and I dont think someone using viewport fdor 2d
viewport its using mostly for 3d
cuz as 2d its just wasting game memory
do it imagelabel
the best method its rendering image in blender
and do it as imagelabel
not veiwport
Soo what does game like pet simulator x use
Or 99
So you saying imageLvabel better for performance?
yes
Alright thank youuu
viewport need renders every part
So if I want that do I remove my module fully?
for otpimlization better is imagleabel
wdym
Like you know I got module3D thing instead of turning it 2D should I just remove it fully?
yes
Do I keep hatchclient thing?
i dont saw your client hatch
Lf someone to make death effects on my swords (ill show u reference to what i have) paying per task pref u do vfx
its code disccusion channel and you search vfxer lol
hey guys how can i move primaryparts through script when i have perfectionweld?
i mean i have like 3 models and in one of those models i have a primpart i wanna move but when i try to move it the entire thing gets moved
no tf
u can do it with code or vfx
i said pref u do vfx
dm me @gleaming wolf
is it really a problem though
afaik you're just talking about the instance data being present, + a rendered 2D textured
every veiwport need rednering the blocks if you want use camera
the imagelables its better for optimqlization
if you have like 50 viewportframes dynamics rendering the every pet in your game
better option its render the pet in blender
and upload it as imaglebael
' if you want use camera' is this a suggestion? you have to use a camera for viewports anyway
how significant is the difference in memory usage?
YOO I NEED QUICK HELP WITH MY CODE I WOULD PAY YOU IF YOU COULD HELP ME RN !!!
just voicechat api bugs please help me dm me
anyone selling any simulator maps (MUST BE CUSTOM MADE NOT SOME SHIT ONE) i got 350k robux+
I cant you tell exactly amount cuz its impossible and depends on model etc, but like image label 20 - 50 kb and viewport 250 - 750kb
thanks
and this is for 50 pets/viewportframes?
and this is when those imagelabels/viewports are actually visible?
Wdym?
viewportframes only render when visible
yeah but for example if you have 50 pets in game and you want 3d shop for them like rotating pets in gui
doing a loop for 50 pets
rendering 50 pets in one time
its like 50k kb
and also, probably you gonna destroy the frames everytime when he close gui
and upload them again
should be negligible
right? when he open
huh
I mean render them again* depends on your script for example if you have script with one background and you looping the pets, skins, trails etc always when player click other button
and destroy previously
I don't follow
you create the viewportframe when needed
and you can recycle it, choosing to only destroy its contents
even with 50 frames, the memory footprint should be negligible, and should be a lot easier to work with
for a game I worked on I used them for a dynamic hotbar icon system
saves a lot of hassle creating icons for fifty different items
on game load I'd create all of the necessary viewports
they won't render anyway until they're shown
and where you store them
in module?
and just require the module
when you need?
hotbar its not that bad, its only few frames
but shop with like 100 rotating pets
just nah
better do render in blender
and imagelabel
so you creating every viewportframe on player loading, and later just change the camera pos of frame to show in shop when they click it?
if they're actively rotating then the main issue would be the performance cost from rerendering
no I just immediatly correctly sest camera cframe
and then won't touch it
set and forget
store what
the viewport frames
i think you dont understand me
they need exist somewhere
so where they exist
like how you can later show them in store
on game load I set everything up, the viewportframes are parented under the hotbar, or in this context, under the shop grid frame
that's it
bur the viewport showing the renders instanlty when player loads?
practically instantly
it's no problem
are u experienced with viewport frames? i can't figure smth out
why is every scripter on this platform suddenly so bad... 💔
I'd say so
cant find any1 good
Im good
ye sure..
lol
my model has this white outline which i can't get rid of
im pretty sure it isn't a lighting issue since I've messed with the lighting a lot and it hasn't changed
I think you need to change background lighting
nvm
change BackgroundColor3 of viewportframe
wtf that worked tysm
for some reason roblox doesn't allow you to change the outline width
no problem
i made it black
any other things u recommend i do?
it's gonna be animated to bob up and down slightly and the propellers will spin
it's for a tutorial where the drone is guiding u telling u what to say
ignore the name i need to figure out smth better😭
alr i appreciate ur help
local player on a server script doesn't work
what should i replace it with?
indexing nil
trying to retrieve a value from nil
nil means nothing, air, nada, void, doesn't exist
i know
so LocalPlayer property of Players service must be nil
if you look at docs it tells you it's only set for client
1 + 1 = 2, you cannot use it on server
a
ClickDetector.MouseClick:Connect(function(plr)
local leaderstates = plr.leaderstats
nothing, in that scope there's no reason to get leaderstats
will that work? (i'm kinda rusty myself)
in terms of getting leaderstats
the player that should be affected is local to clickdetector's click event
how to find the money tho?
you must grab leaderstats from within clickdetector click event
yeah
so like a remote event?
side notes
- please include code number lines so that it's easy for us to call out specific lines
- you can shorten line 9 down to
Money.Value += 50
in the case of clickdetector you don't have to deal with remote events
@raw hollow he gave you help
Hey guys , how easy or difficult is it to create a script for a sphere to have real physics so that a player can push it uphill
basically when the function runs, player is retrieved, and you can pull it by adding it in the first parameter, note that you can call it anything. e.g.:
``Clickdetector.MouseClick:Connect(function(apple)` apple will be the player instance
define 'real physics'
you can do it with just part properties xd
How does that works
If we push something uphill it moves up
With time and resistence
in part you have something called customphysics
More than it is on flat land
AAAAA IT WORKSSSS, thanks to @stable urchin and @mental zinc for the help
and joey for the tip
good luck on ur developing buddy
thankss
the latter, yes, the former, I don't know what you're referring to - velocity?
nice
@raw hollow I suggest you also train yourself in using documentation
just curiously scouring through it
you'll pick up on some stuff, at least I did
roblox devforum also contains a wealth of information, if you use the right keywords you may find your answer without asking a single question
@raw hollow no hate but, if you tried localplayer in server script, I recommend pausing developing and learn at least basicis in programming first
this does read like hate lol
no its just like he cant script a whole game if he even dont know what works in local what on server
In roblox studio the part does not even goes an inch uphill
initially the various properties and names can be meaningless, it takes time to build understanding
and getting bad code as example to go off of doesn't help in this process
i have seen over 7 hours of youtube tutorials (from alvinblox i think) but he never metions it for the local and sever script
to be fair depending on what you're making making a whole game is a very high bar. But doing little experiments and at least trying, will teach you a lot.
having said that
@raw hollow you should learn about the client-server model that roblox uses
aight ill try looking into that before asking here.
it's very important to fight back against exploiters
yeah experimetning and creating own script helps a lot for learns, but you cant make something good without good scripting i dont talk about low effort obby
👍
@karmic cobalt when making a display system when getting near to the model to hatch it, should I put a billboardGUI in the model?
Like the display where pets show
And you can hatch
I agree, making good, complex things requires a deep understanding of various topics to effectively combine them together
Yeah and use magnitude to calculate the distance between them and define max distance to show display, the billboard gui its good if you want rotating ui, its for camera movement like the ui rotation gonna follow thhe player camera, if you want to be static use part and inside part surface gui
and always use scale size and scale position instead scale offset.
scale offset should be 0 always
in uis
^ offset doesn't account for screen size, which can vary wildly
Hmmm alright sounds good, so you recommend me that method?, the pets won’t rotate like last time right? 😭😭
roblox studio has a feature to display various screen sizes
yes
can you show me reference what you trying do
If I have many eggs how do I like make it so this eggs knows what pets it should have
I don’t really have a reference
how do you keep track of eggs
i got 150k i wanna make a cowboy simulator dm me if yall wanna help , give me ideas i got art work on how i want it etc.
what
i dont understand
Okay imagine you have 3 models each have 3 pets right
How do I manage what pet goes in what model
Folders?
what models
um i still dont understand
XD
Aaaaa
we need more info
what pets, what models, what are the pets for
why is the concept 'pet' seperate from its model
Okay so imagine you have An egg and you go there and you see a gui and it shows the pets you can get if you hatch, each egg has 3 different pets
tahts the question of the day
Okay I understand it
what egg
is it physical
is it a physical object in the workspace
so if you have one egg and player from that egg can get 3 diffrent pets
Yes
I recommend make table and modules for them
Modules so the scripts don’t repeat?
But like if I have like different eggs and I want specific pets in different eggs then how do I do that
does this imply that a given egg contains multiple pets
Yep
Hahaha what
What is the egg module supposed to do?
stores all your eggs
standard, premium, deluxe etc
forest, snow
idk whhat eggs you have
How will I make them arrange into the eggs?
its works liek folders
If you put the eggs in the world you can add them attribute calls "type" = "standardEgg" later in script require the module egg, and do loop inside whole module table to find if the attribute find a match in the table
and if found
you just dowloand the folders childrens from stnadradEgg
But I also want the images of the pets on the gui wouldn’t that make it complicated?
Also the pets do they need humanoid?
Or just a good following script?
Sorry bro but if you want take eveyrthing from toolbox you cant make good game
you can add images to tables too
under chance
image = id
@stable urchin i have question
I’m not
Alright thanks
And this?
pets dont need humanoid
no, image is just a string
you can stick that string anywhere
either in a config module or directly onto the pet in question
nice to know you have a question. 
paying someone 10k-20k to make me a custom simulator game fully scripted or i can bring a scripted but fully custom map dm me !
dm
Bro why u ghosting me
I know a guy who might take the offer
@dense bluff
a true salary
true
He said he would pay me on Thurday and now he said he gave up on game
can we close roblox Respawn manually from settings? so that players can't kill their character by their own (pressing R)
talking about this
you did something for him?
don't know why ur laughing
u asked for 10k-20k 😂
to make one script
ur a neek
Yeah tree model
like you said above XDD
good luck finding a scripter for 3k for full game XDD
oh, so i can't close it manually? sucks, waiting for your response then
maybe beginning junior
nobody said for a full game mate
like you want disable it totally?
yeah so players can't kill their self manually
i give you script give me sec
sure lemme see it
hey can i get help with something?
Disable resetbuttoncallback
Like how is this fair
from where
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
you can disable almost evberything created by roblox by setcore
like inventory, leaderboard etc
i thought manually 😂 thanks!
its need be localscript
thanks
yeah best to do
that a scam
we should report him adn he should get ban here
or you dont send him the model yet
I didn't send the model, but I did it for his map only so no else wants it
Like I thought he was gonna pay
@stable urchin are you friendly with raycasting?
I understand
He prepaid some else so I trusted like
hmm and ideas?
did you put it as localscript?
Try move to repstorage for a moment
and test it
or wait
im idiot
put the script in StarterPlayerScripts
not repstorage not repfirst
its because the script trigger intantly and CoreScript dont loaded resetbutton yet
you can also try add task.wait(1) and test it
i see, thanks!
just looked to forums, need a repeat so it doesn't fail looks like it can error sometimes, thanks tho
task.wait(1) shoudl works too
the resetbutton just need be loaded
in game
probably 1 seconds its enough
There's times where it just completely fails to load so ur better off waiting till it registered via a loop or smth
yeah you have right
yeah thats why i think repeat would help
it should
yeah
I personally just do this:
then after it sets to false I load everything then set the bind
never saw pcall for setcore but its a nice idea to do it
do you mean to ask if I'm familiar with it? yes
that... works....

I don't blame your code
setcore is just that nice to use
I've had core bogus not load at all so its the safest way I've had 2 do it
that includes the menu button
just not loading at all
it may of been fixed now but it was an issue when writing this
hey could i get some help?
with?
I have problem with beam on my raycasting, like if player moves and shoots beams spawn behind him cuz the server not register yet the beams, its remote lag I think, i need do replication for client if i want this smoothly?
okay so when i touch a part it teleports me to the place that i want to go to and makes the gui visible
local ServerScriptService = game:GetService("ServerScriptService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("ShootRemote")
local gunShooting = {}
local reloading = {}
local function createShotEffect(origin, hitPosition, tool)
local beam = Instance.new("Part")
beam.Anchored = true
beam.CanCollide = false
beam.Material = Enum.Material.Neon
beam.BrickColor = BrickColor.new("White")
local distance = (hitPosition - origin).Magnitude
beam.Size = Vector3.new(0.1, 0.1, distance)
beam.CFrame = CFrame.new(tool.BulletPos.Position, hitPosition) * CFrame.new(0, 0, -distance / 2)
beam.Parent = workspace
game:GetService("Debris"):AddItem(beam, 0.1)
end
remote.OnServerEvent:Connect(function(player, targetPosition)
if reloading[player] then return end
reloading[player] = true
task.delay(0.5, function() reloading[player] = false end)
local character = player.Character
if not character then return end
local tool = character:FindFirstChildOfClass("Tool")
if not tool or tool.Name ~= "Classic" then return end
local head = character:FindFirstChild("Head")
if not head then return end
local origin = head.Position
local direction = (targetPosition - origin).Unit * 500
local params = RaycastParams.new()
params.FilterDescendantsInstances = {character}
params.FilterType = Enum.RaycastFilterType.Exclude
local result = workspace:Raycast(origin, direction, params)
local hitPosition = result and result.Position or origin + direction
createShotEffect(origin, hitPosition, tool)
if result and result.Instance then
local model = result.Instance:FindFirstAncestorOfClass("Model")
local humanoid = model and model:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:TakeDamage(100)
end
end
end)
return gunShooting
@karmic cobalt if I put a stringvalue in the pet model can I make it display image from that? And the rarity multiplayer etc? Is that a good idea?
is it serverside hitreg
if so, welcome to the world of networking
Yeah :C
and when i get to that place i can press the gui to go back to where i came from and also the gui goes away
I keep thhem server to avoid exploits form client side
you're in for a fun time
but when i die and spawn back it doesnt work
wise
it gives me an error
god damn, i hate doing replication
@stable urchin 😞
Also is it better to use serverStorage than replicated storage?
what if I fireAllclients, and create the beams on client? for everyone
Even pet name? But then how will it know what model I’m attributing these stuff to in tables?
I don't want to write paragraphs so I'll keep it brief. It takes time for information to travel from server to client (victim position replication) and back (shooting at the victim). This time is called latency. The roundtrip (to + from) is called ping. You need to compensate for ping. You keep a record of past character locations, let's say every frame, up until 2 seconds in the past. When client tells server that it hit something, the server looks back in this record based on ping, and interpolates between the two frames that surround the given ping amount. Server then uses this past position to do hit verification.
This still isn't perfect though.
wouldn't solve the problem of hitreg
shit
also fun fact
that caused some players in my game
to think that there was an exploiter
because projectiles didnt visibly hit
because for the victim their murderer was aiming at their past location
for _, child in pairs(Building:GetDescendants()) do
if child:IsA("BasePart") and not string.match(string.lower(child.Name), "indestructible") and child.Name ~= "MainEngine" or child:IsA("Model") or child:IsA("MeshPart") and not string.match(string.lower(child.Name), "indestructible") and child.Name ~= "MainEngine"
then child:Destroy()
end
end
can someone PLEASE make the parts that are supposed to get destroyed go underground using cframe and turning off collision then getting deleted
i show you how it looks current
mb wrong channel
lf a scripter that does vfx dm me i pay per death effect dms ill discuss info
@stable urchin
don't use the old value instances. use attributes.
So you want me to use Tables?
the right one
íssue with left one is contrast
the red is very dark
with the right one I don't like the shimmer on the icon
Yo has anyone here have ever made a td game?
lf a scripter that does vfx dm me i pay per death effect dms ill discuss info
How do i add dynamic face to my dummy?
right with centerted text
the one with text is better imo
but the right one would indeed be better if th text werew centered and the heart were darker
But Hubertus recommended tables…
just use objevtvalues
if you're already using tables, then use them
my solution isn't optimal
Hey i need Quick a Dev for Hire dm me
Really fast work please
I'm just letting you know, as a developer, I'm not interrested if there is no info
Obby system
expected work, amount/type of payment, ...
and I'd head to #scripter-hirable
what y'all think abt attributes
They're nice. They're flexible. The get and set methods are verbose but autocomplete helps get around the extra typing work.
just replace the dummy's head for a dynamic one. or you could do the easy route and equip it on your character, play test your game, copy your character, and paste it in your game after you stop play testing. make sure to unlock it after you paste it
Anyone know how to fix ts
I can't drag select
I can't click anything unless I click ON select
Ts pmo
faster than creating/setting values
Dear GOD what the fuck did google AI just say
Affirmative, I Always wanted to be a bird
Watching a yt playlist or just reading from the documentation
lf someone to make kill effect + script it ill pay per task.
looking for a coder to help with me and my teams upcoming game. In development, we have general ideas but are offering to pay a % of our game. Please let me know if you are down to work with us, just send me a DM.
Why don't developer products work in Team Test?
@flint shell You suck!
how do i make a animation play when a player clicks the mouse button
🤑
test the game and then copy your Character's "Animate" LocalScript
inside the script it has a bunch of IDs for walking / running etc.. just replace that
Was working last year, but idk why isn't it workin this time
Replaced every walk and run id alrady
you even made sure to delete the old Animate?
Default keeps goin back for idk what reason
Just replaced it
Should i also customize the humanoiddescription?
ngl idk what HumanoidDescription is
Same
Just found out today
Idk why roblox makin it complicated to customize animation, weird
yo anyone wanna be a scripter for a game ill be a gui designer and builder/modeler
Cause the copy and pastinng of the Animate script to startercharacter works back then
No hiring outside of marketplace
who tf u
So, this is my spectating system for a game I'm working on. If a player dies during an active round, the script should wait for the player's character to respawn then send them to spectate mode. It was sending them to spectate immediately after they died and the camera would reset after the player's character respawns so I made it so that the script has to wait for the character to respawn then send them to spectate but now it's not even sending them to spectate. The respawntime in explorer is set to 0.5 seconds. Here's the script, any help is appreciated:
Please help
No one in #code-help is helping
ChatGPT could help fr, this is tool ngl aint readin allat.. but use Ai to its full potential im too lazy to read
.
Does anyone know how you would go about making a car system
I tried, it couldn’t get it to work either.
just debug it first every function if print etc etc else etc etc
also make sure thee character is completely added before proceeding to whatever function it is
did roblox deprecate renderstepped?
guys how would i go about making a shop and inventory system like forsaken
if i play an animation locally will other people be able to see it?
I can help u but it would cost u a little not much
Anyone know how to detect when a player sits on a seat
🙏
Stg if no one answers I'm js using a damn proximityprompt
Hey - I am curious if anyone has thoughts about this.
I have a few services that need to be in a certain order when the game is compiled, but I am running into race conditions. My initial idea what that I could use InIt on my service (from flamework) for those processess; but, I also have event calls that need to be in the service but i am unsure where I should assign those.
Any advice is welcome. I tried to make a custom boot strapper but it is tricky to get everything in the correct order, although I could try again with more planning.
uhh I'm gonna talk to the docs team about this
thank you
i heard bind to render stepped also has been limited to like 30-60 fps
no way, it's crucial for that to be linked to framerate. Even built in cam scripts use it
yeah
I may be doing a video with an engineer that can talk through all of those runservice things in the near future. Should hopefully clear up any of that stuff
i will subscribe thanks
I’m gonna try the dependency injection
if i remember correctly yeah
animations on the character
Use arrays or tables to make an inventory
humanoid:GetPropertyChangedSignal("SeatPart") maybe
^
if its nil they arent sitting on something and if it isnt then they are
why not use public booleans that yield the other scripts/ or use task.spawn if its all in script, until the boolean is true?
What if those systems have interdependencies to each other?
me when PascalVariable
from modules?
if they can be public just put them in replicatedstorage
Why do I feel like that has nothing to do with sitting detection
because it doesnt
It doesn't lol
I just was poking fun at Pascal for local variables
my friend uses snake case for literally everything
Can anyone here fix a UGC script for some $
Should I not be using local
i use camel case
Oh no its good, haha
Oh I js googled it
for local vairables i use camelCase
I get wym
ye its just a preference :)
full caps for constants
it seems i use pascal more actually
ye
What's this?
type assertion
Which is like
it asserts something as it
so that now has the functionality of a screengui in the script
no its just declared at the top
Which
Okay so is THAT type script
no
.
its apart of my signalNET
you dont need a script that is just types
and honestly its kinda bad for organization to have, unless its for a framework
What's that...
my framework
Like
it uses custom threads and custom remote events and functions
No wonder I'm so confused
you havent heard of those yet?
does anybody know how a Roblox Lua tool script for a "Hammer" tool it the Hammer is a tool, and I want to use raycasting. it can attach parts/models that have a "Placeable" Tag? because I have tried everything and nothing seems to work 😭
Of frameworks?
threads and remote events/functions
frameworks are usually just a ton of modules that can be used across games that complete like a broad task to make it easier
its purpose is to make a normal roblox thing easier really
i havent used react but yeah i think
Whats react?
JS react
Neither have I it's just something I know of
hello pls answer this qs why does a character act weird when hit and then reset it does not die but instead the health goes to 0 and again goes up
i dont really try to learn frameworks outside roblox, just languages
i need to learn more rust
What exactly do people use rust for? Seen and read all about on memes and such, but those are like the only places rust is ever mentioned
its memory safe which i believe is the big reason its good, has oop, enum, and some type of garbage collection
What industries make use of it?
tbh idrk
I hate float point approximation
had to write all this just to get past float point approximation making the numbers on the GUI look ugly
😮💨
Bruh please use dark mode
Error:
ServerStorage.Modules.Managers.VoteManager:134: attempt to index nil with 'Option' - Server - VoteManager:134
Code:
task.delay(self.VoteTime, function()
for i, v in pairs(self.ActiveVoters) do
if (v["Vote"] == self.Option1["Option"]) then
self.Option1["Votes"] += 1
elseif (v["Vote"] == self.Option2["Option"]) then
self.Option2["Votes"] += 1
elseif (v["Vote"] == self.Option3["Option"]) then
self.Option3['Votes'] += 1
end
end
if self.Interface then
self.Interface.LocalScript.Enabled = false
self.Interface.Enabled = false
task.defer(function()
self.Interface = nil
end)
end
if AssortedTable then
table.sort(AssortedTable, function(a, b)
return a.Votes > b.Votes
end)
local FinalizedString = AssortedTable[1]["Option"]
print(FinalizedString) -- THIS PRINTS
return FinalizedString
else
return "No Return Data"
end
end)
Im working on a voting script/system, why am I getting nothing in return when it is clearly there, and the script recognizes and prints the data. This makes no sense.
Assorted table and finalized string both print
slightly better at keeping me from falling asleep
Im having an issue with announcing in the chat when players buy a developer product with their user with emojis
i have the script but in the output it doesnt say anything
are you checking processreceipt
no.. where do i find that
MarketplaceService.ProcessReceipt
check if the ID matches the product id
The developer product works, its just the announcment of buying it in chat isnt working
like showing that the user bought it isnt working
Ex; 💥 EpicNoob42 unleashed Kill All!
lol my npcs keep climbing into each other
Could I have a tutor for scripting? I know the basics but I csn’t pay I am broke as anything but I have always wanted to learn to script
Please DM if you can
I am going to dinner
Light mode > dark mode
Building system with snapping is really difficult to write for some reason
I need help. I'm trying to write a building system with snapping. The snapping size is 4. I want it to work in a 4 by 4 grid. All parts' axes are multiples of the snap size (4, 8, 12, etc). I got it to work multiple times when the size is Vector3.new(4, 4, 4) but it was always offset in an odd way with different sizes, such as (4, 16, 4). I want it to work with normals as well.
I am a professional developer and have been for 6+ years, but I have been stuck on this for 2 weeks+ and AI is not helping either. Can you?
Atp give up
How do you have 6 years of experience and cant make a grid WITH AI that can mostly do it by itself already
u just made me look at what he was talking about and i got flash banged
Ai usually gives the general idea but from my experience the code usually doesn’t work and i have to make my own version
A grid system
Its so common 💔
Would still be difficult if hes never done one or something similar before
And common doesnt mean the ai will get it right

Man needs to switch career fields
Not really, just take the current mouse position and round it to the nearest multiple of 4
If you want a special grid you'll just need to use object space
How can I make an "NPC" car? I want to have a car that simply moves along a surface (if it can it would be awesome if it can turn around corners and go up and down) and then do damage if a player or an NPC collide with it?
I.e. not bound by the world Cartesian plane
You'll need to be more specific, where do you want to use this
on my map on roads
Hmmm, that's quite difficult 🤔
There's hundreds of ways to do this
if it just needs to be straight lines thats perfectly usable for me too
I want the stupidest dumbest most braindead ez way cus I dont know 98% of wtf im doing scripting
anything scripting Im doing is reverse engineering or brute forcing scripts lol
I have the car model I want
One subpar but easy option would be to just use tween service and tweening the model between points that you manually placed on the roads
any examples?
Just go to developer resources or ask AI, since it's quite elementary
im braindead as shit but just barley enough to recognize...AI isnt good at ts?
Ts?
Just ask it how to use tween service to tween a models cframe
Just note that this is the worst way to do this
i already am tryna have like 20-30 pathfinding NPCS, and like 15 cars, how bad for lag am I looking
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local car = workspace:WaitForChild("Car")
local carPart = car.PrimaryPart or car:FindFirstChild("Body")
local startPoint = workspace:WaitForChild("StartPoint")
local endPoint = workspace:WaitForChild("EndPoint")
-- Tween settings
local tweenInfo = TweenInfo.new(
5, -- Time (adjust speed here)
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local goal = {}
goal.CFrame = endPoint.CFrame
-- Create the tween
local moveTween = TweenService:Create(carPart, tweenInfo, goal)
-- Damage on touch
local damage = 30
local touchedConnections = {}
local function onTouched(otherPart)
local character = otherPart:FindFirstAncestorOfClass("Model")
local humanoid = character and character:FindFirstChildWhichIsA("Humanoid")
if humanoid and humanoid.Health > 0 then
humanoid:TakeDamage(damage)
end
end
-- Connect touch events for all parts of the car
for _, part in ipairs(car:GetDescendants()) do
if part:IsA("BasePart") then
local conn = part.Touched:Connect(onTouched)
table.insert(touchedConnections, conn)
end
end
-- Start the tween
car:SetPrimaryPartCFrame(startPoint.CFrame)
moveTween:Play()``` this is what ChatGPT gave me
If you use tween service for cars there'll be no performance impact 
alr
linear velocity or tweens
Utterly dogshit AI code😭
well you said to use ai
id prefer if there was some1 on yt that had a tutorial
but nah lol
i cant find one
Yeah, makes sense since what you want to do is quite difficult
sir did you just try to set the CFrame of a table
Difficult to do good
It's for the properties for tween service
AI generated code by chatgpt
didnt realize that lol i rarely use tweens cause whenever i use them my game crashes
Why does your game crash??
no idea
i tried to use tweens to move a character when the character uses an ability but the game crashes if i spam the ability
You shouldn't use tweens for that 
i didnt know align position or linear velocity existed

Custom physics engine
ive got like 300 bobux I can withdraw from my group tmr if anyone can help- (i know that shits pennies to ppl but ive been getting scripts for 100 each and a few systems for 500)
Will always be the best solution
dawg you can just learn how to tween or use linear velocity/align position in like 5 minutes
with 0 knowledge of scripting prior?
i would be interested lol
how are you ever gonna learn
Im not really trying to learn im just tryna make a game
if i pick up bits and bobs along the way then thats a great side effect
but i just want smth to work and dont always care how it happens
you cant make a game if you dont know how to implement the code you copy and paste
thats why Ive been loving youtuber tutorials cus they tell you
or paying a couple other scripters for one or two odd scripts

mate im just tryna make a game this week, I already have a guy who might agree to make me my lil dealership system where you buy a car and it spawns, and then if you already bought it once you own it so you dont gotta pay 60k every time to spawn it in
a money rob system
ACS has been...interesting to also implement
I just wanna get the game out, lowk the NPCs are just fancy atp, but it makes the game feel more "lived in" which is why if I can find a free way to do it, or something that works within my budget, I wanna do it
I think the last bits I need is the dealership car system, and to fix the gun store bug where if I have multiple gunstores it breaks LOL, but I can live with just 1 gun store
or I can brute force just making a new gun store, copying old scripts and pasting them in the same way they were there and changing the name/directory
ANYWAYS
@wet mauve even if theres documentation for this, or a written step by step, a link or sm would be nice, cus Idk where to look tbh
all ive tried looking at is https://create.roblox.com/docs/players but nothing screamed to me that thing u said
💔
youtuube, dev forum
Just learn scripting
I really just dont want to if I absolutley do not have to and rather pay some1 else for it if I can afford it
You cant afford to pay someone
I mean I have been
up to this point ive found a few ppl for the individual scripts so far, or at least a very small base to try my best to expand on
thats the equivalent of "i dont wanna learn how to use my car, i would rather pay someone else to drive me around in it"
yea that sounds about right
not really even being sarcastic
besides the point tho
b4 yall harass me I just dont like to drive
You cant hope to make a game with 500 robux and no special skill.
If youre so determined it shouldnt be much of an issue
you cant make a game if you dont wanna learn how to make one
unless you plan on throwing money at all your problems
i mean i have a deadline, not long enough to sit down and learn how to script rn, I am moving to a different country for 2 years w/o wifi
Too bad I'm afraid
ill be gone by mid may lol
https://www.youtube.com/watch?v=7iK25glVhUw found this I might be good
Hoping you all had a wonderful Christmas! But anyways,
Weld Script: https://pastebin.com/ABetjTN3
MoveModel Script: https://pastebin.com/extpCdRt
took only 3 days to find it lol
i went to the 4th page of google 💀
What the fuck 😭
what
FE!!
BEST WAY!!!
Ill be the judge of that
lmfao
Yeah thats the most booty way Ive seen
Im questioning if its ironic
It uses a value to replicate a cframe from server to client ruining the whole point of doing it on the client
https://www.youtube.com/watch?v=TgteWmiAweI found this other one that was shorter too and looking at it
📌 Links:
Download Roblox Studio: https://create.roblox.com
Discord Server: https://discord.gg/v9rsEjzwHU
Roblox Group: https://www.roblox.com/groups/14588047/EarlyDev
More Roblox Studio Tutorials: https://youtube.com/playlist?list=PLf8nztBmoaQN5Ms5uHMx423SK9wwnvLG0
Welcome to our latest tutorial on tweening models in Roblox Studio! In this v...
Well at least this one has no useless detour
what plugin
just do it manually
? I just used the default roblox quickmenu?
OH
okay now it works
idk wtf happened
wasnt this tho lol
yeah i thought u were using a plugin mb
alg
Does anyone take % if they like the game?
No, I'm not like that hopefuy
Hopefully
i am so good at coding i should get hired fr fr
is there any reason other than version control to use rojo?? is it just for looking cool or smthn
some people prefer vsc over the standard roblox code editor because it makes them more productive
can i ask for surface gui help here?
yeah or #interface
Kk
anyone have a ready skydiving script here
So when a player moves away from another player, you can see that their [ SURFACE GUIS ] move a bit away but when viewed directly from on top, they are in place
How do i make it so the surface guis don't move sideways like that
when you view it from far
what u tryna make exactly?
So this is a player pov, their camera views their object from exactly the top
that 71 and that colorful image on it is a surface gui
when another player looks at another player from far away, their surface gui appears like this
its doesnt look centered
No
it's centered when it's your pov
have you tried comparing the position
Scale them
between not in ur pov
yeah buts its centered
in his pov
but not others
its not scaling issue
If it isn’t then I am not sure
As in? Well if you're far away from another player you can see their surface gui gets a bit off
otherwise if you're close to them
it's fine
is the anchor point 0.5, 0.5
Seems to be a scaling issue to me idk
and have u checked if its in offset
not scale
It's in scale
I must be confusing it with billboard gui then. I’ll be honest and say I have no idea about this then
I’m sorry I couldn’t help more
That's fine 👍
yeah and is the image in scale
and the anchor point is 0.5, 0.5
bro might be the goat
local partIsTouched = false
local touchPart = game.Workspace.TouchPart
touchPart.Touched:Connect(function(otherPart)
if partIsTouched == false then
partIsTouched = true
print(otherPart)
end
end)
Whats wrong here
According to the doc an animator object in order to replicate must be instantiated on the server side. Which means you would have to play the tracks server side, right?
if i wanna send a webhook msg when my gamepass is bought this script would work right?
Discord blocks it
u'd need to use smth like cloudflare
also u might wanna delete that as it has ur webhook url
its still a big giveaway
actually i wanted to create an automated middleman bot
Too late
Sending all the requests!!
Up
how much yall think a horror game with 2-3 mechanics and a lobby coded should cost?
u never set partistouched back to false
no you just need to create(instantiate) it on the server.
Indeed
u need to set the partIsTouched variable to false again
after the print(otherPart.Name) put a task.wait(time before detecting the touch again) and then set the partIsTouched to false
also u did print(otherPart). print the otherPart.Name
thats ur choice tho
you can do```lua
touchPart.Touched:Once(function(otherPart)
...
end)
300k
so, i have come here once again to ask for help.
i want to make it stop there (so it dont disapears) when u have full inv, how to i make that happen, what i need to put in the "else" section???
Huh wdym
If it's collected you want it to disappear?
yeah uhhh nvm, its too difficult even for the ai
Nah I just don't understand what you want to do
its like when u touch a chocolate u get it as collected item
and u can sell it by touching some pad
and i just want to make so when u have full inv it doesn't disappear
(cuz it disappears and respawn after 1 second)
I'd make a new if statement
If collected.value is less than 5 then do the things it's supposed to do when collected
If collected.value == 5 then return end
Like that you mean?
Yeah sure
But place the transparency changing and all to the if collected statement
Where you add the +1
what type
like little kid horror or actual horror
i tried the return thing but i added onTouch instead of end
Did it work?
something like that?
Yeah
after the first sell it doesn't give me the chocolate
taht happen with the return onTouch
Reset the value
In the sell script
Cuz now I think the issue is when you sell, the value stays at 5
here the sell script
hmm
lemme check
a?
value inside the char
dont think it will work
so i think its trying to give me a 6th chocolate
so its stuck
cuz if i leave on time i can take again
another five
but if i sit there and try to take another one its just bugs
Check the output or something
And add a print to the else return end
Something like ("full inv")
I think the selling doesn't work
Neither the leaderstats
Idk if you sold it
But collected says 0
And add a print to the selling too
Record a vid of the whole process
can i show u on livestream, cuz it takes too much space and discord wont let me upload
my workl is the one i send and i am working on rn
Maybe try to remove the return
can someone rate this tutorial i made for the first time https://www.youtube.com/watch?v=PA7mhbDnQRk
today i will be teaching you how to code a roblox kill brick for obbys or whatever you are making
ignore:
roblox,roblox studio,roblox studio kill brick,how to make a kill brick in roblox,how to make a kill brick in roblox studio,make a kill brick in roblox studio,how to make a death brick in roblox,roblox studio how to make a kill brick,how to ...