#code-discussion
1 messages · Page 120 of 1
for some reason it wants it to be commented
Can u send me the invite links in dms
for application
he has tasks for you to do at the end of the video and i do notes using notepad++
its in the server discovery browser
I'm on mobile
you guys think coding will be overtaken by ai
yea but it wont be as optimized
Not for a long time
alright give me a sec
so ppl will still hire real people
ty
Could you send me them too as well please
yea if your scared of not learning to code dont be its not getting taken over anytime soon
alr
would any of you be willing to accept grow a garden stuff as payment for simple scripts? 😭
just ask chat gpt at this point bro
local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")
local BADGE_ID = 100000000
local MESSAGE = "SomeMessage"
local function PlayerAdded(player)
player.Chatted:Connect(function(message)
if message == MESSAGE then
BadgeService:AwardBadge(player.UserId, BADGE_ID)
end
end)
end
for _, player in Players:GetPlayers() do PlayerAdded(player) end
Players.PlayerAdded:Connect(PlayerAdded)
should work havnt tested
also put ur badge id
nice
didnt they add a new chat system tho?
im gonna steal this for later if you dont mind
check dms
player.Chatted still works
oh ok, ty, ill try it in abut
this doesnt really work for me
yeah go ahead
also, is there a difference between getservice for players and player.playeradded
did it myself btw
the waiting part doesnt work
Wot
local clickDetector = script.Parent
local myVar = 100
local door = script.Parent.Parent
local function onClicked(player)
door.Color = Color3.fromRGB(255, 0, 0)
door.Transparency = 1
door.CanCollide = false
end
task.wait(3)
door.Color = Color3.fromRGB(31, 255, 19)
door.Transparency = 0
door.CanCollide = true
clickDetector.MouseClick:Connect(onClicked)
well i think get service only runs it one time
for detecting when a player joins
very nice
?????
what
u can do game.Players or game:GetService("Players") i prefer GetService cause its cleaner and i can define services at the top of my code
thanks
also vro dont use "wait" use "task.wait" for adding a wait cause "wait" is basically deprecated its also inaccurate at times
ok thanks
so it works but im just trying to revert it to default
place the connection before the wait
so like when i click it it goes invisible and red and then after 3 seconds it comes back
ok i will try it
you mean this part? clickDetector.MouseClick:Connect(onClicked)
yes
alr
Or u can use task.delay
hes a beginner vro
hmmm
idk what that is
he probably hasnt learnt running code asynchronously
i dont play gag but my friend does
hi
yo
i would like to flex on him
.
hmmmm
i dont even know what the word means muchless what it does
add the wait inside of the click function
I think I should learn raycast
usually code runs in sync with a clock
Not even thatvhard
that is your computers clock
local clickDetector = script.Parent
local myVar = 100
local door = script.Parent.Parent
local function onClicked(player)
door.Color = Color3.fromRGB(255, 0, 0)
door.Transparency = 1
door.CanCollide = false
task.wait(3)
door.Color = Color3.fromRGB(31, 255, 19)
door.Transparency = 0
door.CanCollide = true
end
clickDetector.MouseClick:Connect(onClicked)
that will work
i just started actually coding like 2 hours ago
Not u
this means that sometimes, your computer will be waiting around for the next clock cycle
I meant to reply to this
because it has already finished calculations
yea but hes talking abt me
so basically like 10 seconds?
uh no
your computer clock runs billions of cycles per second
task.wait(1) mean delay for 1 second
basically task.wait(x) mean delay for x second
no lol
asynchronous code tells the cpu that different sections dont have to wait around for each other
this has the benefit that nobody is sitting around
so like instead of running it from top to bottom it runs it all at the same time
the code gets spawned into a seperate thread to the main thread
yea i have no clue what that means
ill research it later
im currently working on a pacman game
i have coded the ai that chases you and the door to go out
now i just need to make pellets
task.delay(3, function()
print("1")
end)
task.delay(3, function()
print("2")
end)
``` for example this will print 1 and 2 at the same time after 3 seconds
it doesnt yield
task.delay
ok
is crazy
theres also task.spawn which works the same but just takes in a function theres no delay param
this has the benefit that nobody is sitting around
what
task.delay(3, print, "1")
yeah u could also do that
other way is easier to understand
yeah task.spawn(module.func, module, "arg1")
or use self if the method is in the module itself
@native mountain i can do the squid game jump rope check dms
guys i don't understand what function used for can someone explain to me please?
yea its easy
so think of function like a book
mhm
when you want to read it you need to find the name of the book which is the name of the function
and the pages of the book is the code inside the function
for instance
lets say that you wanted to print a math equation
but didnt want to type it over and over again
you can just do print(varible) instead of printing it over and over again
also
wait
ohhh
basically
functions are books that you can read whenever instead of making the book again
ty [:
so in scripts you call functions instead of writing the code again when you want to use it
np
: D
🙂
hey how to make the part 0.5 transparent with a function?
i gotchu
did you already make the part a varible
hum no
where is the part
he is in a folder called Stroke, in Workspace
ok you need to do
[partname].Transparent = 0.5
okay but in the local Grass2 there is already a .Transparency should i remove it?
yea
oh okay
ooh it work
What's the best way to handle inventories? Just have a script and there will be a table that has a key playerName and as a value his inventory as a table?
thanks
nah just handle everything on the client and trust it with everything
thanks man
bro's mischevious
local Val = {}
Val.__index = Val
export type Val<T> = typeof(setmetatable({} :: {
_value: T,
...
}, Val))
...
function Val.on<T>(self: Val<T>, callback: (T, T, boolean) -> (), callImmediately: boolean?): (() -> ())
...
how do i get the luau typechecker to recognize that <T> in Val:on is referring to the type in self
im not using the new solver btw (which it also doesnt fix the issue)
he means no good, don't listento him
what has roblox type annotations become💔
i am joking
fair enough
what are you talking about
RAAAH 
bro, it's my first time seeing triple dots 😭
ignore the ...
...
triple dots are a lifer saver
its just to indicate theres more code that im not showing
no it's just varag
yes im making this class the metatable way
you want to refer to the meta table inside of a metatable?
thats why you can do print("hi", "hello", "hey")
thanks lad
are there any good videos on ui scalling, cause the one's i've seen use the auto lite plugin to scale. 
kind of yes
so when you call an object method it refers to the class method and since you use : instead of . it will put the object as the paramter self automatically
that way each object doesnt contain the methods but rather the class itself so its the best thing to do for memory when making classes with objects
Guys can anyone explain to me what returns are
hmm, quite the conundrum...
idk maybe.. define the table outside the table?
it basically returns any parameters after (ex. return paramater1 end)
mhm
how does it return them
i feel dumb rn 😭
it returns it to the script that required it
so basically if i ask you, hey can you do that and tell me what happened
you won't go out tellign everyone(aka the server) but only to me
oh
Can someone help me in egg system it been so long trying to figure it out
i dont think this will fix it
the problem is it knows that there is a generic type <T> but it doesnt know what the actually type of <T> is because it doesnt know which object is the source of <T> (though it should be self ideally)
alr
did you understand it or do you need furter clarifications?
yea
my apologies for the lack of applicative knowledge for this ordeal is way above my realm of understanding, sorry homeboy 😿
whats a good module for storing data?
is anyone else having issues with the "GrantEggToPlayerAsync" function in the hatch module
on god it does not work
make sure ur passing the correct parameters
(im not in the hatch im just presuming thats the issue)
this is the entire code and it does not work man I have no idea why cause it works in studio + I have HTTPS enabled
is it printing?
yea but the egg is not being given and the ui is not being shown and there is no errors in the console 😭
but in roblox studio it works
what are the params for the GrantEggToPlayerAsync function?
can u not view the actual HatchDevModule?
if u can then just add debug prints to the GrantEggToPlayerAsync function
i have a question, if i have no robux or money to hire a scripter do u think it would be an idea to ask someone to script on my game for a percentage of revenue?
let me try that
yes but its very hard to find someone whos willing to do that unless u have a good marketer
ahh right okay
what did i do wrong
bro do u have paypal I will give u $1000 cause I found a bug in roblox's code and managed to fix it
either map.start doesn't exist or humanoid root part doesn't
does anyone have an idea how could i make a player propulsed with a rocket effect behind it in a direction ?
/
I spent 5 hours trying to fix this man finally I can rest
lol
what was the problem
hiddendevs mr beast
there was this error in the module it was a check that always returned false
even though the player joined from the hub it still returned false
i have humanoidrootpart how do i check if i have map
if map
at the top you should do if not map then return end
im so cooked, i thought discord would have autocomplete 💀
damn
roblox made a error 🤯
Is it better to use ProfileService or DataStores?
like this?
in the function
this technically wont fix the issue, it'll just get rid of the error
you're gonna need to make sure map exists
like this?
wait you haven't defined it
what do you mean
wait you have my bad
but idk how this helps
it gets rid of the error in the console
i can't tell you why map doesn't exist tho that you have to find out yourself
check where the function spawn is ran
map dest exist
you're a lil late to the party bud
nah i think he should just follow the tutorial more attentively
Should I use TeleportAsync to teleport players to a reserved server on a different place?
hi chat
did u find a fix?
yeah
;D
why do you need to hire a scripter if you fixed a bug in roblox's code lol
https://hackerone.com/roblox/hacktivity
whats the name you used
every bug bounty from roblox is logged on this site
Anyone know a really good scripter available taking USD?
Anybody know how to animate the players camera? As in i animate it in blender, import it to roblox, then use a camera rig. how would i make the players camera animate at the camera rig?
Yo guys how should i make like a 3d helmet that stays on your head? But has more colors? Like i tried accessory + weldconsttaint but does not work
?
How do I teleport Players to a different place with a reserved server?
wth
I've tried TeleportAsync and TeleportToPrivateServer
what are you doing
oh man im so late to respond lol but the proplem is that you wrote :findfirstchild(name) but you should type :FindFirstChild(Name.Name) might look weird but its the key
i hope it is :/
already fixed it btw that wasn't the issue
yo does anyone have a simple game idea
?
hello i wanted to see if anyone here had experience with mesh terrain, and if anyone knew the affect of LoD and chunking systems on performance, and possibly discussing issuing how it holds up when compared to roblox’s voxel terrain, which is arguably unoptimized at large scale
camera type to scriptable, have the camera part in rig just be an invisible part, update the cameras position to be at the part every pre-render
tbh idk just delete
ok
profile service uses data stores
guys
what was it?
how to play an animation on a character like the animation make the character change position
wdym?
when i do it the character go back to the original place
like the anim play and than the character go back to the place where he started the anim
run an animation and when it finished the character goes back to og place?
yessir
lemme write the code real quick
alr bet
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local originalCFrame = character:GetPrimaryPartCFrame()
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://YOUR_ANIMATION" -- Put The Id in the area i wrote YOUR_ANIMATION
local track = humanoid:LoadAnimation(animation)
track:Play()
track.Stopped:Connect(function()
character.HumanoidRootPart(originalCFrame)
end)
or just gimme the id and i write it :/
so u have to play the animation on the humanoid root part right?
BTW put the script in a local script
and the the dude go back to his og place like u said
yes i did this
wait lemme delete all
okay
cant really explain it so i had to record this instead
ok
?
mahmoudtalaatking
okay 1s
wait u have to be my friend?
yea
done
guys i need help with something, im new and im trying to make a particle emitter show the particles, i put it under a part with an attachment too and a particle id on the emitter why doesnt it show particles?
alr join rq
dm me
here is one
a game where you input a number in a text label and it summons parts depending on that number
yo is anyone interesting in rating my game and giving me advice what to improve on?
can somebody help me turn of mob collisions
local function fireLine()
local chosenPost = tryAndFireAtPost() :: BasePart
if not chosenPost then
return
end
local newPart = Instance.new("Part")
newPart.CFrame = toolHandle.Dispenser.CFrame
print(chosenPost:GetFullName(), toolHandle:GetFullName())
local dist = (chosenPost:GetPivot().Position - toolHandle.Dispenser.Position).Magnitude
newPart.CFrame = CFrame.new(toolHandle.Dispenser.Position, chosenPost:GetPivot().Position)
newPart.Size = Vector3.new(1, 1, dist / 2)
newPart.Transparency = 0.3
newPart.Anchored = true
newPart.CanCollide = false
newPart.Material = Enum.Material.Neon
newPart.Color = Color3.new(1, 0.639216, 0.054902)
newPart.Parent = workspace
task.delay(.1, function()
newPart:Destroy()
end)
end
this works
its just / 2 off
from the target
o wait
think i figured it out
well thatwas simple
i don't know how to make a single accessory with multiple separate parts
@burnt pulsar bro why
why u blocked me what did i do
just use the uv map and give it different textures
@plush scarab i want you to work for my game
I know but how I know I can use raw data stores or I can use profile service that is using data stores
just use profile service
making your own data wrapper requires a lot of research and testing
since there are dozens of edge cases you need to cover
that can unexpectedly happen at runtime
you mean like retrying and all of this stuff?
yeah
okey, thanks
Bro where do these devs find expert scripters at 😭
I been looking here for ages cant find one
why are you looking for a scripter
your game doesnt have one?
New game, more complex systems
There's groups for it dm me imma set you up
Sup
Sounds good
why is there not coming a effect when im hiting a rig???
Sorry bro, a game studio already hired me
print at line 23
-- LocalScript for first half of the animation frames
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ContentProvider = game:GetService("ContentProvider")
local Players = game:GetService("Players")
-- Require the animation module
local SlowAnimage = require(ReplicatedStorage:WaitForChild("Animage"))
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Change the path below to your actual ImageLabel location
local imageLabel = playerGui:WaitForChild("MainMenu"):WaitForChild("Contents"):WaitForChild("Bg")
-- Create animation instance targeting the ImageLabel
local animation = SlowAnimage.new(imageLabel)
-- Define the first half of the animation frames (replace with your actual asset IDs)
animation.FramesData = {
{AssetId = "rbxassetid://127005721628620"},
{AssetId = "rbxassetid://120291854915913"},
{AssetId = "rbxassetid://109865645084919"},
{AssetId = "rbxassetid://78128980990416"},
{AssetId = "rbxassetid://89113742077769"},
{AssetId = "rbxassetid://117474755418010"},
{AssetId = "rbxassetid://89292623274216"},
{AssetId = "rbxassetid://105361327035380"},
{AssetId = "rbxassetid://86308627970444"},
{AssetId = "rbxassetid://129436695083050"},
{AssetId = "rbxassetid://89982955965932"},
{AssetId = "rbxassetid://110964064034308"},
{AssetId = "rbxassetid://73613885346758"},
{AssetId = "rbxassetid://140427745020295"},
{AssetId = "rbxassetid://124897263008637"},
{AssetId = "rbxassetid://123335950548808"},
{AssetId = "rbxassetid://125897407809963"},
{AssetId = "rbxassetid://130087418164288"},
-- WHEN I REMOVE EVERYTHING UNDER HERE IT STOPS STUTTERING
{AssetId = "rbxassetid://76563595649806"},
{AssetId = "rbxassetid://82352148765801"},
{AssetId = "rbxassetid://88246665853571"},
{AssetId = "rbxassetid://76793866750844"},
{AssetId = "rbxassetid://71367638198686"},
{AssetId = "rbxassetid://83865616490250"},
}
-- Preload assets to avoid flicker
local assetsToPreload = {}
for _, frame in ipairs(animation.FramesData) do
table.insert(assetsToPreload, frame.AssetId)
end
ContentProvider:PreloadAsync(assetsToPreload)
animation:Play(24, true, false)
$20 for anyone who can fix
I dont think they finna accept my application 😭
i need a tip making a naruto game what other system do i need to script, done with combat, movement, and power. what other system is their my brain hurting cant think
This isn't chat gpt?
yo can u help with my question rq
it is? ur point
Nah I don't think it is that's what I'm asking
oh nah it is chatgpt well i tried to debug it
hello im new to roblox studio i was wondering how i would make a animated loading screen (not the loading bars ones) im talking about those where it has background effects such as glitching, snowing, raining, etc. this seems more of a gui question but im kind of lost on where i can post my question :p
what task function gets used the most overall in scripts? (except task.wait)
and what gets used the least?
is task.defer useful?
task.delay? i use a decent amount
yeah
Im trying to make a trading system for my game but have no clue where to start. Anyone have any tips
Can someone give me a script that will make a giant fight Players on join?
i need a tip making a naruto game what other system do i need to script, done with combat, movement, and power. what other system is their my brain hurting cant think
Maybe a pet system of sorts
like mounting
Whatever you think would fit your game. I was thinking more like the generic pets that give you buffs but that'd also be sick
i seee
ts ur game. I've seen it on rec. Is it good? I might play it
what's the stats tho? Kinda interested on what makes an obby go on algo
do you have an inventory system?
Nope. It's kind of like a pet system without an inventory. Should I start with that?
well you need some way to store your pets before you can trade them
Alright. Thanks
Can someone help me with this script it’s not working dm me
If anyone can point the way to a cracked scripter for stuff like ai, vehicles, guns, been looking forever but been a lot of failures. Pay is well
hey i made a cutscene but whenever a player dies their camera gets bugged, know how to fix that?
Let me know what you think
Have a look at the badges and you can probably tell
Had any investors? Kinda curious bc I wanna sponsor an obby too
I do yeah
Dang, got any tips on finding any?
They will find you if your game is popping
They contacted me
But if your referring to an investor to invest in your game idk about any
Investors I know typically invest in completed games
Did u script and build ur game by urself?
Nope
Oh ic
Wait did u have an investor to begin with or when the game already was sponsored?
When it was sponsored
Well
When it got into algo
Dang how’d u get the funds
I had money already 😭
Dang lucky
I’m broke, I just need to find one to sponsor, but it’s hard
Same
Well ofc, but your game got into algo
Still working on game though
How muchd u spend
Thats not luck either 😭
Why does everyone think its about luck
Not much
I’ve had one out of 3 reach algo
More or less then 25K
More
No offense but that just means your game wasnt good enough, or you didnt take action to improve your stats
Roblox only puts games players like into the algo
Its nothing about luck
More
My bad this used to be a lot to me as well
More or less then 110K
the one that got into an algo was made within a week, but the ones I actually put effort didn’t
SAME
Thats how it be nowadays, but its not about luck, its just what roblox players like
Yeah
@daring echo
dang well so true, just gonna find an investor hoping to invest in my tower obby. But fire game, been contacted by Misfits too, but stuff happened that were out of my control.
Allat complaining when you make obbies💔
Don't matter if he making bread
Except he isn’t based on the conversation above
ChatGPT
Yea nobody's investing in that 💔
Does anyone know why the command bar doesn't appear even though I have it selected in Vista?
If I have a folder with all my game assets IE buildings, models, unions, regular parts and i use waitforchild() on that folder, will it wait for every asset to exist in that folder or just for the folder itself to exist
and would I just loop the folder to check for all the assets to exist
Does anyone know why the command bar doesn't appear even though I have it selected in view?
actually u guys ArEnt FroNT PaGe DevEloperS 🤓
It would only wait for the folder, yes
ah well
And yeah you could loop through it all to wait for it
I found getdecendents which hopefully will do what I need it to
Descendents will go through those assets too, so it would get each part in for example a building model. If you wait just for the building model, that also waits for everything inside it still
I would use GetChildren() if you want just the models inside the folder
can you create an error if it wasn't able to find everything?
Like if has infinite yield it will just error and move on
yeah
im lookin into making a loading screen that works hence why im asking
Oh, then you want to use ContentProvider service for that
do you need an example that you could use?
why would front page developers waste their time here
dm me if you wanna make a roblox game with me i can build and kinda script
make what tho
idk what do u do
when a player dies, they can no longer play a cutscene when a remoteevent is triggered. Anyone know why?
Not saying I want to make a game with you yet, but I script
there is a front page creator in one of the calls right now
lol
but is that typical
beyonce
Name 5 that have talked in the last week
Go learn task library
wats that
?
If I have 20 Ad cred (which means I can only do daily budget) then how many days should I do?
who are you 💔
You're silver 3 I feel like no one's gonna know you unless you chat
lol I do know people in this server
do you even know who made grow a garden no, cause all you do is chat in this server
jandel
now its time to touch the grass
what is gag
at least one person
true
no idea bud
yo mama takes a wild guess
grow a garden🤯
Any pro scriptor here i need help regarding a vehicle code
whats the issue?
@remote bear u still online?
?
I want to extend my hands while driving yamaha bike ij roblox studio how do I do that?
just adjust the cframe vro
how to make an accessory work witgh 2 separated parts
wat is knit used for and is it worth learning
for making games
what does it even do
It's a game framework
😭 so it holds all the modules together?
alr bruddah
Guys, when I have some really big classes like Car, House and other, should I consider putting them into ReplicatedStorage because they are likely to be required both on Client and Server?
yah
thanks
modules arent replicated tho
maybe i said it wrong i meant that i have to be able to require them both on client and server and because of that i need to use repl storage
Why is drag offset
that naruto copy is tuff boi
its being offset from the mouse blud

thanks
local bestCFrame = nil
local bestDistance = math.huge
for i = 0, 1, 1/10 do
local cf = lerp(startcf, endcf, i)
local dist = (Position - cf.Position).Magnitude
if dist < bestDistance then
bestDistance = dist
bestCFrame = cf
end
end
local fineStep = 1 / 200
for i = -3, 3 do
local t = math.clamp(bestT + i * fineStep, 0, 1)
local cf = lerp(startcf, endcf, t)
local dist = (Position - cf.Position).Magnitude
if dist < bestDistance then
bestDistance = dist
bestCFrame = cf
end
end
return bestCFrame
Can someone explain this to me?
Why is it using 2 loops? Why not just use one loop that goes from 0 to 1 with a 0.01 step
What is a "fineStep"?
start using ai to explain stuff to u bro
I'm not interested in using AI
y
Sometimes it would use outdated methods, or just wrong because of lack of context
i mean if don't want to even try it's ur choice
ai research the web and explain this to me
ai helps a lot
I always use it before coming here
use cursor its free for 2 weeks and is really advanced, use it to research the web u can even feed it youtube videos to go off of
For 2 weeks? Seriously
you have to use very specific promts and it usually will do well. Any ai will fault with complex or long scripts
Do I have to sign up
why cant i see that when i press play en then test server?
Guys how use archandles
see what?
my body model or what its called
do u mean that it's in explorer but u can't see it physically?
how do i apply for scripter role here
go to hidden devs site
and there will be applications
where is the site
just google it
the picture i sent is from a youtube video but when i click play and then server client i dont see
i guess to prove that it's really working
what if its not in a game
dude if im making a network handler idk what you want me to put in a game
there would be no visual differences 😭
why is this wrong?
type TilesGeometryMap = { [string]: { Front: {Vector2, {Vector2, Vector2}}, Back: {}, Top: {}, Bottom: {}, Left: {}, Right: {} } }
Any1 knows how to make game Icons? I need sm1 rnn
iv learned all this stuff but have no idea on what to make
Hey guys, I'm having trouble thinking of the best way to create several swords that give XP when clicked and that deal damage. Does anyone with experience have any tips?
guys sorry for the yap but question. Im making a skills suite. And i thought about this structure, explanation: Inside RS: VFXModules(blue): all modules that contains the VFX Scripting, per skill. VFX(Pink): contain the assets for the VFX Scripting (i have doubt here cause idk if is better to have an assets folder or put the assets i need per skill as a child of the skill module script.). VFXSuiteController(orange): just receive the input key and is like a switch, choosing which sklill have been choosing. And it will contain the cooldown management. And then in the StarterPlayerScripts: LocalInputManager(yellow): it will contains just the event listening an inputbegan and connecting the VFXSuiteController. [im not working w the server atm]
You can create a class called sword and do all of that I guess?
if u know oop it sounds relatively easy
ok thanks i haven't studied oop yet but i'll look now
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder", plr)
leaderstats.Name = "leaderstats"
local ore = Instance.new("IntValue", leaderstats)
ore.Name = "Ore"
ore.Value = 0
local minebucks = Instance.new("IntValue", leaderstats)
minebucks.Name = "MineBucks"
minebucks.Value = 0
end) -- ← this closes the function!
whats wrong with it iv did it like 1000000 times but this just dosent work?
I dont see anything wront with it it should create those instances
Maybe just do minebucks.Parent = leaderstats
Sometimes that way of doing it can be unreliable
Try that and see if it fixes it
it also might be because of studio lol try restarting if necessary
Try to set the parent for those instances manually, rather than as the second argument of Instance.new(). I can't see other reasons why this code could not work
okay
even chat gbt said it was right💀
nope
fixed it ngl forgot to put it in servicescriptservice
anyone know how to make a script where it auto gives you a plot tho
like this:
if game.Players.PlayerAdded then
game.Players.LocalPlayer:GivePlot()
end
Should I code my own projectiles or use a module?
guys how much shld i pay a solo dev for a troll tower game? in robux.
do someone can script? i need a scripter that can help me create a horror psychological game like let him go, my budget is about 1k robux
trap the dev in your basement then make them do the game at the price of u letting them out
cocomelon script
th is a cocomelon script ?? 😭
like a very beginner script or easy to understand one?
3 lines
dont you need to use connect ?
vibe coded slop is better than this
btw how to type like this ?
anyone can help
?
if you mean markdown just surround the stuff in triple backticks
like this
I completed basic level of scripting 8 months ago but i didnt practice so i forgot all of these
so i completed the whole thing again today
so the problem is how should i practice ?
so that i dont forget everything again
Make real stuff
Actually write it
what can i build with that little knowledge ?
Don't just read it or learn it you will never truly learn it unless you write it
your not supposed to build something crazy just try using what you learned
with the codes
can you suggest me what i can make under my capabilities so that i can practice
also you should probably code atleast every 3 days
Think of a project or ask ai that can be done with what you know
ai is trash 🙏
yeah then just think of it yourself
you trynna make battleground games ?
no
im thinking to build a first person parkour game with wall climbing camera shakes and some other stuffs too
parkour reborn
so can i make it with that knowledge ? @small palm
does a game like that already exist ?
oh i never played though
first run after reaching lvl 150
Workspace.Elevator.Script:7: attempt to call a RBXScriptSignal value```
Im confused this is a simple code
```lua
local upbutton = script.Parent.UPButton
local downbutton = script.Parent.DownButton
local upbutton2 = script.Parent.UPButton2
local downbutton2 = script.Parent.DownButton2
upbutton.ClickDetectorU.MouseClick(function(hit)
hit:FindFirstChildOfClass("Humanoid")
end)```
clickdetectoru?
had to rename them because its a lot of buttons
which type of game are you building then ?
rogue lineage, tales from the valley mixed
permadeath game
should there be a "U" after click detector ?
yes
i just asked it
i didnt see mb
you renamed the click detector too ?
Theres been a lot of changes
oh lol shit
do u think you can?
what are you trying to accomplish with that code ?
MouseClick:Connect(function()
nah nvm i just thought i cant
bruh im dumb thanjs
before you start writing code think of how your gonna implement it
happens lol
i just changed value of my animationevent instead of name and couldnt find why the script was buggy
:GetMarkerReachedSignal wasnt working lmao
do i need to learn Cframe to make a part rotate infinitely ?
tween or bodyangularvelocit
what does those two mean
i dont know much cuz im kinda new
not necessary but it is a pretty good way to do it
two methods
u can either tween the part to rotate or
add a bodyangularvelocity inside the part
ik but whats the difference ?
should learn about cframes regardless
bodygyro is depending on pyhsics i think
tween is just something in x adjusting itself to y
ok
does anyone know a good hitbox module
Hello
hi
I may know how to make it
Ok let me set everything up
you likely gotta ask this in #scripter-hiring
local upbutton = script.Parent.UPButton
local downbutton = script.Parent.DownButton
local upbutton2 = script.Parent.UPButton2
local downbutton2 = script.Parent.DownButton2
local floor = 1
upbutton.ClickDetector.MouseClick:Connect(function(hit)
if floor == 2 then return end
local root = hit.Character.HumanoidRootPart
if root ~= root then return end
root.CFrame += Vector3.new(0,20,0)
floor = 2
end)
downbutton.ClickDetector.MouseClick:Connect(function(hit)
if floor == 1 then return end
local root = hit.Character.HumanoidRootPart
if root ~= root then return end
root.CFrame -= Vector3.new(0,20,0)
floor = 1
end)
downbutton2.ClickDetector.MouseClick:Connect(function(hit)
if floor == 1 then return end
local root = hit.Character.HumanoidRootPart
if root ~= root then return end
root.CFrame -= Vector3.new(0,20,0)
floor = 1
end)
upbutton2.ClickDetector.MouseClick:Connect(function(hit)
if floor == 2 then return end
local root = hit.Character.HumanoidRootPart
if root ~= root then return end
root.CFrame += Vector3.new(0,20,0)
floor = 2
end)
``` Finally done
what is this for ?
elevator
ok
I had one for tween service but it go so complicated having a click detector was just easier
fuck
can i do some commisons if i manage to learn everything from advance series of devking ?
ok
isnt there auto saving ?
apply for the programmer role and see if you pass that
ok
There is if you enable team create
but my issue is how frequent it is
Freezing and crashing
where to apply that ?
hi
hi
Guys thoughts on oop for roblox? Should i use it
I been trynna
its really weird on lua
local player = {}
--Set up inheritance
player.__index = player
--Constructor
function player.new(health, money, size, speed)
return setmetatable({
--Instance variables
_health = health,
_money = money,
_size = size,
_speed = speed
}, player)
end
--Methods
function player:setMoney(x)
self._money = x
end
function player:earnMoney(x)
self._money += x
end
function player:loseMoney(x)
self._money -= x
end
function player:setSpeed(x)
self._speed = x
end
function player:setSize(x)
self._size = x
end
return player
this is what ive got so far for a player class concept
trying to figure out subclasses
you should try learning it
how the fuck this is a class
how can i send my script like that ?
```lua
-- code
```
im so dumb bro, I set it so 1st elevator has down buttons but they're never gonna work since its the first elevator and its always gonna be floor 1
in the function player.new, the table thats being returned is a metatable of player in which the index of player is set to itself hence when you call a function on the newly created table, it also cheks the player table. it esssentially inherits the function of player
if that makes sense
Hello everyone, I want to learn to code but I don't have any basic knowledge. Do you have any tutorials to recommend? (I speak French and English)
if script.Parent.Handle.SpotLight.Enabled == true then
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.Sound:Play()
else
script.Parent.Handle.SpotLight.Enabled = true
script.Parent.Handle.Sound:Play()
end
end)
script.Parent.Equipped:Connect(function()
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.equip:Play()
end)
script.Parent.Unequipped:Connect(function()
script.Parent.Handle.equip:Play()
end)```
gusy can someone explain me this code
i got this code for torch light
learn from devking
is he a youtuber ?
ye all learn from him for basics
how long did it take you to learn the basics
2 days
yes
didn't understand 😭
can you help me explain this code ?
i cant understand why this need to ebe so long @hollow folio
i guess i have to watch this playlist
i leanred bro
i just started learning scripting 😭 , u probably better than me
.
its just
why is it so long ?
i dont know why it needs to be so long ?
are repeating the same thing
make it shorter then
it can be made smaller
everyone codes differently
ok i was jsut askigng if i need to make it that long
no no
he coxuld use variables yes
yes
yep that would make it less complicated to see
just name it like name = .... the thing,
and keep using "name"
atleast i dont
btw can u help me find the place in devforum where i can see other doubts and queries so that i can learn myself too
ah i got the code
what
I guess you like to make it complicated
how can i send it like u did ?
ill send u the short code
if u use a thing 2 times in a whole script theres no need to make it
a variable
i can maek it myself no need for it though
can u just show me how u sent the code ?
like this
can you reply this too ?? @merry shoal
i didnt get what u meant
tbh
ok
at first put ~~~
and at the end put ~~~ again
if u get a problem just ask or search it
bruh it got other style
i mean where i can find other persons questions or doubts
bruh
my bad
'''lua
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local light = handle:WaitForChild("SpotLight")
local toggleSound = handle:WaitForChild("Sound")
local equipSound = handle:WaitForChild("equip")
tool.Activated:Connect(function()
light.Enabled = not light.Enabled
toggleSound:Play()
end)
tool.Equipped:Connect(function()
light.Enabled = false
equipSound:Play()
end)
tool.Unequipped:Connect(function()
equipSound:Play()
end)
lua'''
if script.Parent.Handle.SpotLight.Enabled == true then
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.Sound:Play()
else
script.Parent.Handle.SpotLight.Enabled = true
script.Parent.Handle.Sound:Play()
end
end)
script.Parent.Equipped:Connect(function()
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.equip:Play()
end)
script.Parent.Unequipped:Connect(function()
script.Parent.Handle.equip:Play()
end)```
can u read please
😭
probably 😭
bro putting lua at start aint doing anything
let me ask in the net quickly
then dont put it
ok
why are you so aggressive all the time ?
its just common sense
i was just asking where can i find other's doubts in dev forum ???
and how can i post my doubt !!!!!1
where can i find this thing at the keyboard ?
beside 1
🥀
ok ok finally
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local light = handle:WaitForChild("SpotLight")
local toggleSound = handle:WaitForChild("Sound")
local equipSound = handle:WaitForChild("equip")
tool.Activated:Connect(function()
light.Enabled = not light.Enabled
toggleSound:Play()
end)
tool.Equipped:Connect(function()
light.Enabled = false
equipSound:Play()
end)
tool.Unequipped:Connect(function()
equipSound:Play()
end)```
yup
well, check this script i just made
if crit == true then
return power * 2
else return power
end
end
local function calculatedefense(armor)
return armor * 0.1
end
local function finalhit(damage, defense)
finalhit = damage - defense
return finalhit
end
local dmg = calculatedmg(10, true)
local def = calculatedefense(8)
local final = finalhit(dmg, def)
print("the final damage is:" ..final) ```
I am SO fucking pissed right now
My code just doesn't work for NO REASON
I am firing all clients with a remote event
And it isn't working
Add debug
I already did all kinds of debugging
It just doesn't work
I made the thing I want to do the other way
guys what do yall think i should add?
WHY THE FUCK IS IT STILL NOT WORKING
I DONT SWEAR OFTEN, BUT THIS PISSES ME OFF VERY VERY MICH
much
whats not working?
if i have a custom rig, with a humanoid(an animal, doesnt have same body parts as regular character), would humanoid:MoveTo() function properly?
yes, if you get the hipheight right
ywa
Yes, Humanoid:MoveTo(position) can work with a custom rig, even if it’s an animal and doesn’t have standard body parts — as long as the following conditions are met:
was that written by ai
yes
what are the conditions
im to lazy to write that
✅ Requirements for Humanoid:MoveTo() to work properly:
The model must have a Humanoid object inside it.
The model must be rigged correctly with motor joints connecting parts, so it moves as one.
The model must be grouped as a Model, and it must have a primary part set using Model.PrimaryPart.
The model should be on the ground or able to reach the destination (no major collisions blocking it).
The HumanoidRootPart (or equivalent root part) must be centered properly to avoid movement bugs.
⚠️ Important Notes for Custom Rigs:
The movement animation (like walking) won’t automatically play unless you’ve set up an animation controller and custom animations.
If the animal doesn’t have legs (like a snake), it won’t animate correctly by default, but it will still glide to the position using MoveTo().
The Humanoid object still expects a HumanoidRootPart or a central part for moving the rig.
do i just set it to like, the distance of the humanoidrootpart from the ground
I guess
The Local Script isn't catching the BoolValue's value changing event
should all parts of the rig be unanchored for the moveto() to work
The Changed event doesn’t always work on the client if the BoolValue (like IsGameInProcess) is only being changed on the server. Sometimes the client doesn’t get the update in time, or doesn’t get it at all, so your local script has no idea the value even changed.
that's not true
it is changing
hmm ima search it up rlly quick
local function damagecalculate(power, crit)
if crit == true then
return power * 2
else return power
end
end
local function defensecalculate(armor)
return armor * 0.1
end
local function finalhit(damage, defense)
return damage - defense
end
local function getremaininghp(currenthp, finalhit)
return currenthp - finalhit
end
io.write("enter power: ")
local Power = tonumber(io.read())
io.write("enter crit: ")
local Crit = io.read() == "true"
io.write("enter armor: ")
local armor = tonumber(io.read())
io.write("enter current hp: ")
local currenthp = tonumber(io.read())
local damage = damagecalculate(Power, Crit)
local defense = defensecalculate(armor)
local final = finalhit(damage, defense)
local remaininghp = getremaininghp(currenthp, final)
print("final hit is : " ..final )
print("The Hp remaining is : " ..remaininghp)
is that good or should i change anything ?
Have the server fire a RemoteEvent when the game starts or stops
still doesnt move, just slides around
tho the WalkTo value is set correctly in the humanoid
a
wooOoPSIEs, i forgot about the hip height thigny
MONKEYS, what should i add
Is there any way to remove ragdoll? When players get knocked back into walls and surfaces in my game they’ll often ragdoll which I don’t want to happen
@dark sky @tame compass preciate it 🙏
👍
just one more problem c:
?
when its movin to the position, the backside of the model faces where its going
huh, that's strange. this script is located in StarterGui but it's not even starting
can you send a vid
Like, not starting ever
im gonna be afk
Do y’all disable characterautoloads for spawn menu gui? Or just enable the gui and change camera view?
Is it hard to make an admin system
ok
Okay, I’m just rlly new and it’s gonna be my first project
Admins systems are easy depending on what commands you got
I’m doing kick, ban, kill, tp, message, alert, and other fun things like morph
Make sure you learn all the basics first
If you haven’t already
I know them
Just putting them together is hard
Nice should be a fun project then
Yeah I have the addons handler made
I got good with for loops making data stores and admin commands
guys my alpha RNG game i think is ready
OOH
Animations to the inventory
I’m gonna use datastore bans not Roblox API
Finally, I found why wasn't it working
Message me if you need any help, I’m working on one rn so my memory is fresh on all of it
It's just this little thingy
Although I’m at work for another 2 hours so I’ll prob be slow to respond
Nice
i think i will fix the gun because its not working
Yeah
@tame compass@dark sky
Make everything expect the HumanoidRootPart CanCollide false
makes everything cleaner, ngl, even when i change the size which is a issue i had before
it still moves backwards tho :c
should i be using vector over Vector3 or is there a benefit to sticking with Vector3
try rotating the humanoid root part 180 degrees on like
idk what axis
y
just so it would look backwards than it was
it works before i hit play, when i hit play and it hatches it just goes back to how it was before
i'll rotate the parts other than the humanoidrootpart and see
cuz the humanoidrootpart is facing the wrong direction OR the body parts are facing the wrong direction
Maybe you didn't change the Model you are cloning?
only the one that's in the workspace
yh this worked
hurray, now i dont have to try and make a custom movement system module
@tame compass ty ty
@dark sky , its fixed, ty ty
No problem
ok yall im back
so i want to make a level bar
what do yall think?
grow a garden ahh interaction
what's the differend btw lua and luau like ?
yeah ik about that
but what's the actual different ?
like are we going to use other things or what
wdym
in roblox? a lot of things are different
instances, parts, and all the roblox modules dont exist in regular lua
ok
anyone know how to make those jump rope squid game thing if so mind helping me 🙏
cant seem to find a tutorial
😬
lua for U
what does python mean
it was invented in brazil
we know
wdym
just script a rotating part and weld other parts to it
if u need help lmk im bored
👍
What's the best way to learn python?
games
For example?
download pygame and watch a video on yt
how do I make a gui have a fixed position on the screen because I want it to be mobile accesible?
put anchor point 0.5 0.5
also scale it to size
and position 0.5 whatever you want 0.5
Alright
Like in the properties?
yeah
ok thanks
is it possible to also change the size
wht did i do wrong?
there's a P
cant do that
still shows the error
so it's just massive no matter the size of the screen
what are you trying to do? also space between () and do
data handler
anyways
