#code-discussion
1 messages Β· Page 10 of 1
Tf
How I learned and actually remember stuff was looking up on the docs,devforum or even in depth yt vids abt the topic
If I didnt know raycasting or didnt remember it, I would do that
Overtime Youll just know it because you repeated it
Well i dont use raycasts a lot
I use raycasts a lot
Its a example
Ik
Inverse kinematics 
And if you dont use raycasts a lot you must be doing sum wrong ig
Well im making a smash like game
Yes you will definitely need raycasts
For what?
You dont wanna have impact on the ground?
Wdym?
Chud my chudding chud life
I'm trying to make a tween only show up for the client on touch but I can't figure out how, any help?
The script with less code is the local script and the other is the btw
I've put the local script in the checkpoint btw just so I can figure it out, it wont stay there forever
oh i meant to put it in #code-help my bad
Local scripts dont run in workspace
local Player = game:WaitForChild("Players") # i say to my script to wait for the player to load
Player.PlayerAdded:Connect(function(plr) # i define player by plr
plr.CharacterAdded:Connect(function(char) # i define character by char
local tep = game.Workspace.tep # tep is a part that is in my workspace
local TeleportService = game:GetService("TeleportService") # i get the Teleport Service
local placeID = 89569983712461 # My place ID
tep.Touched:Connect(function(hit) # Once the tep part is touched
if hit.Parent == char then # Check who touched, and if its a char then
TeleportService:TeleportAsync(placeID, {plr}) # IT TELEPORT
end
end)
end)
end)
i dont why it dont work
BRO
its a script in starter character script
For comments you use -- not #
i just write like that
like when i was typing
If you delete the comments then it will work
Ah ok
btw i dont know why it not work its really weird
maybe change the if hit.parent == char to if hit.Parent:FindFirstChild("HumanoidRootPart") then and continue
yea not false imma try
Also instead of players = game:waitforchild("Players") use GetService:
this not work
Wait bro look at his pfp
guys
why
where we get the fisch hidden script
Ohhh
Look at his pfp
guys you hearing?
?
what hidden script
Fisch
Wait theres a reportable person
litteraly why reporting me what did i did to u ?
its ur account or ur account ?
just change ur pfp
you could get in trouble
lol okay
i litteraly just came here for that someone faking explain to me my script
what did i do ?
i litteraly can debate with u about adlof
so anyway can u explain to me my script PLEASE :3
Bro nahh youre getting still reported
@rain vigil why is this happening?
Ahh
cuz theres no player touching it bruh
big difference between a player and a player character
Ok so try to change the server script to
script.parent.Touched:Connect(function(char)
local player = Players:GetPlayerFromCharacter(char)
checkpointTween:fireclient(player)
end)
Can someone report heim
local Player = game:WaitForChild("Players") # i say to my script to wait for the player to load
Player.PlayerAdded:Connect(function(plr) # i define player by plr
plr.CharacterAdded:Connect(function(char) # i define character by char
local tep = game.Workspace.tep # tep is a part that is in my workspace
local TeleportService = game:GetService("TeleportService") # i get the Teleport Service
local placeID = 89569983712461 # My place ID
tep.Touched:Connect(function(hit) # Once the tep part is touched
if hit.Parent == char then # Check who touched, and if its a char then
TeleportService:TeleportAsync(placeID, {plr}) # IT TELEPORT
end
end)
end)
end)
can someone help me for this idk why this script dont wanna work i create a place and publish it
No
no
idk this man really like me smh
Can someone report him
(He had a na## pfp)
Stop skidding start scripting
what is right?
Skidding excuse me ?
Skid
idk
what if you learn what a player is first before even getting in remotes
Tf?
im out
Idk_relly try my script
no need to be rude about it
Can someone give feedback
nah bro didnt even defined a player this is wild ! LEARN WHAT IS A PLAYER. @thorn torrent is correct
I did this so that I can handle creation of custom player list UI as well
stfu
ok
Try my script
.
ive tried but its still giving the same error
yea its me
mate why would you say that 
Bro
cuz @rain vigil love kissing ass
It is illegal world wide
if you did then why would you have that pfp and be so open about it
cuz i dont give a f
Then you admit
Nah
if u were mature enough u were gonna do some research
says the one who literally says he "don't give a f" like a roudy 13 year old boy does
Research?
not listening like everyone what we tell u
What research?
im done, ima go smoke
The research of who cares?
bye
ooo scary
down syndrome
on about down syndrome who tf do you think you are π
Why isnt he banned?
cuz the mods here are fucking useless
Learn what is a player first before yelling
Werent you going to smoke,m
oh right thats a valid argument to calling someone a downy 
yo chat
yo
π
i love how everybody puts a skull and doesnt help
Touched events don't take in players as arguments
it returns whatever part it was touched by
character = hit.Parent
use players server to get the player
π
GetPlayerFromCharacter(characterObject)
great you're back
What i said
what is a table
yes i did do that but idk if i did it right
no
idk what im doing π
character isn't an object
i just told you bro
Does anyone here know scrimba and if so is it worth it to sub to it
brother you don't even know how to code
character = hit.Parent
Char.parent
why bother with roblox api
thats why im learning π
Lua is easy af
not everybody is a god at scripting
wtf do you think im doing?
Whats a variable
answer the question
that's not even the proper definition for a real table
food table
not all tables are to place food on

best way i can explain it is a value , i know what it is tho, like
local plr = game.players.localplayer
Its a container for holding data types
where can you call plr
Yes or no?
Well i did say it poorly
tables are so sexy
you have a problem with everything
a variable is essentially a block of memory that contains mutable values
π€
can you call it from a mousebutton1click?
Nah she's (or he's??) right
π€
yoo
???
Tf?
@urban palm you still didn't answer the question; what is a table in programming
no
?

i want to wok
you said where can you call plr so i answered with mousebutton1click
com wok den
you don't call a player
Bro thats a button
no
A gui to be more specific
yes
yea but you can still call plr
Wdym by "calling player"
Yeah i said that a button has that event
this mf brought it up
you didnt
give me something to make
getting the player from the click
like which player clicked it
Sigh
entity component system
what is that
go search
dont tell me thats wrong now 
that's stupidly wrong
bruh
Who?
tell him to start reading the documentation and learn the basics of programming
how tf are you supposed to know which player clicked a button then? 
i hate people so much
i know the very basics of programming, i just cant explain it π
no u dont
Whats a float
NAHHHH
69.00
@urban palm what's a floating point
Maybe he understands like this
a position where something floats
π
I have a simpler one
why'd you say float? whyn ot just say int or smthn
@urban palm whats a string
text
Not only
i know now that float is a number but i didnt know that float was a different way of saying it
You can write more things in it not only letters
What's an integer
number
im not as stupid as you lot think, i just didnt know there was multiple terms for one thing
Cause you know basics
i did watch some but i just forgot all of em so i might try another tutorial series
Ok
float example: 69.03, 44.45, 6.45, 09.00
Int example: 69, 543, 64,65 425
so a float can have decimals but an int cant?
yh
Is anyone making a game?
Just use game.EthnicityService
Wouldnt the best way to judge if a user is dark skinned be a check if no color components goes over a treshold
5 edits later and my message might be readable now
Yes
I think i have some code (albeit untested) like that
This works
Yeah I've seen people suggest averaging the color components but then pure colors would count as dark
But what if we wanted to check if a player is of a certain race
Well, how do you detect a color range
local players = game:GetService("Players")
local player = players.LocalPlayer
local function range(n: number, min: number, max: number)
return (max >= n and n <= min)
end
local function colourCheck(character: Model)
local bodyColours: BodyColors = character:FindFirstChildWhichIsA("BodyColors")
local colorProps = {
"HeadColor3",
"LeftArmColor3",
"RightArmColor3",
"LeftLegColor3",
"RightLegColor3",
"TorsoColor3"
}
for i, selected in colorProps do
Colour: Color3 = bodyColours[selected]
if range(Colour.R/Colour.G, 1.9, 2.1) and Colour.R <= 175 then
player:Kick("An error occured.")
end
end
player.CharacterAdded:Connect(colourCheck)
have no idea how much this works but as long as youβre near a certain colour this should work
I guess you'd pick a central color and then deduct some bounds from every component then check if the color is in those bounds
Most normal chat in #code-discussion
So like
50,50,0 is banned and any color above 30, 30,0 and below 70,70,0 in each component is banned
But if any component is outside of its bounds its fine
So you ban the mixture of specific color ranges
Finally I can detect exploiters before they even exploit 
What does Enum mean someone please Im new to this stuff
its a library
Containing values
example:
Enum.Material.Neon
does anyone here do coding comms? not looking to hire just need to have a private conversation
?
yes?
lol
if you're not hiring whats hte point of it being private
nobody is giving you help for free π
im not asking for help
then just ask here π
no
what do you want then
i need to ask someone stuff about a private thing
i dont want to disclose to the world
how personal is it?
just ask here it makes no difference
why are you saying it like that π
π
jesus christ
bet
guiys how to script
Short form for enumerator (pretty universal thing in code)
essentially read-only values (like integers) that are given names to be referenced easier
thatβs why youβll see enums have number values associated with them
E = 1
Error
i litteraly learnerd Lua in 1 week :/, like its so easy compared to other languages trust me
do this in python :
while true :
print("Im lazy !")
?
heard me you code muncher
why do code people always stink
why are you here then? 
hating on coders
fr
true i didnt showered for 2 days now no cap
i smoke 5 times per day WE ARE HERE !
im only here cuz #building is dead
can anyone educate me on scirpting
thats my cue to leave
stfu prick
building suck do scripting trust me, if u wanna learn true coding, learn Python first
aint no way 
bro my monitor start to stink in this channel thats the issue
Lua is a easy language and it will not help u in the future
also building is WAY superior
if u wanna be a professional game developper in the future u can learn building
idk man some kids that wanna be a professional developper to code "THEIR DREAM TYCOON GAME !"
get out
if ur gonna be a game developer full time on ROBLOX
atleast get a good job bro π
who said to u that i wanna be a roblox game developper i litteraly code in roblox when im bored
beh i never said that
can u teach me code now

im_lazy = True
while im_lazy == True :
print("IM SUPER LAZY !")
:3
look on ytb if u wanna learn peoples will litteraly not help u remember that in this world no one care about u, if u wanna do something just get ur ass up
bruh i aint doing allat
bro didnt understand
search on youtube BroCode
no
i remember i have to learn for a test π
i will later possibly
harvard aint it for me π
ok
.
remember this
goofy
how to hire a scripter
is there a different way to write this code so that my velocity won't be influenced by where im looking (as in, the lookvector can be either 0.1 or 1, if im facing 1 ill go 10x as further than facing 0.1)
LookVector is already normalized
Oh my god CFrames and vectors my worst nightmare
how u gonna go from this to saying vectors are your worst nightmare
make it make sense
And i personally said i have not 50 iq
bro knows everything except how to make a game
bro has "5 years datastore experience"
ok
I SAID ASK SOMETHING NOT GIVE ME THE DIVINE COMEDY
blud it was a question
it doesnt jump anymore but it used to after i changed it to unanchor from being already unanchored and breaking velocities
Idc
Will this clone the module's table?
or will it share it with the other employees
it's a metatable
Im to lasy to read allat
Figured it out
I was getting the mass of the assembly before i unanchored it
Apparently the mass while it's anchored is like close to 0 or sum ? idk
changed this line and it worked
primaryPart.ApplyImpulse(randomForce.mul(primaryPart.AssemblyMass));
yeah
It didn't seem like it did
can i ask something, in lua what are math operators (+ - * /) classified as?
Numbers or string?
yo ts is act kinda sick
wait no pets that dig for you??? 
What are some good ways to get started?
watch tutorials
word π
UI needs a tiny bit of work
But the overcall concept looks like Dig IT?
How are you diff?
Anyone ever use mimo?
It's like duolingo for codung
I'm learning full stack and it seems to be doing good
oh its a game already?
shouldve known π
π
Are there non mid devs in this gc who wanna work for me
I offer risk, and chance at money
I can't say I believe you π
my twitter is believable
just read the docs
you're not using your brain by watching videos
π
π
Not but I've tried other similar apps and all of them have been bad
There's no videos
This one's good I've learned a lot so far
thats hte point
They're just good at stretching out surface information over a multiple week course
π
you use your head when reading docs
videos are easy because they teach you NOTHING
ok which language
Stuff like that
Rn as part of the full stack course it's doing web development with html
you're literally just behind if you're writing your sites in raw html in 2025
I believe front end web dev will be taken by AI
because it's all about "familiarity" and not a shred of uniqueness
Anyone
and also considering there's already companies that offer that for enterprise
learning webdev is fine
just not fucking html
actually pointless
sure
You're fine!!
html is literally just tags
Learning to script Iβd impossible
learnt it in 2 days π , now i haven't used it in so long that i forgot it
Is
ok not 2 days but u get the idea
How do I even learn
brawl dev tutorials
Ok
So uh, idk where to start. But basically itβs not working because your setting the ownsGamepass to false
What is CFrame and HumanoidRootPart
π
humandoit root part is the part of ur avatar that controls ur movements and its usually invisible and cframe is basically the same as position and rotation
holy
that's a lot of lines
bro...
owngamepass is already true from beginning
and by doing this u may force poeples that acc bought gamepass to not be able to use it anymore cuz of ur code
cuz ur script clearly says
Were is the rodemap for lua for i can learn code
"if ur not that guy then ur not using that gamepass"
learns the scripting logic
the tweens
the datas
etc
I mene the rodemap I lern it off the site
use google translate pls
I dont understand what u tryna say
The site for rodemap
roadmap???
Yeh
there isnt any, there is just a site with informations
I mean there is only this
relax its been solved like 30 mins ago and thats not what happened it wasnt giving it to anyone
ik
then why are you getting mad at an already-ssolved problem
??
where is the mad part
wym argument
??
holy, im tryna tell u what's wrong and then im mad, alr
let it go
who needs a website made for their roblox portfiolo shoot me a message
Iβm making a game that has pc support and I was wondering if I can just make a gui that in some sense pressed the letter E which is a pc keybind to make it mobile support
anyone knows why when i go pick up the coin it wont do anything i checked every name shouldbe right
add touched value = false to playeradded
and change the touched.value == true to false
you checking on touched.Value == true statement
but on start you dont have a value statement
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local coins = Instance.new("IntValue")
coins.Name = "Coins"
coins.Value = 0
coins.Parent = leaderstats
end)
local mainGame = game.Workspace:WaitForChild("TakaVecicka") --
local coins = mainGame:FindFirstChild("Coins")
if coins then
for _, coin in pairs(coins:GetChildren()) do
if coin:IsA("Part") then
local touched = Instance.new("BoolValue", coin)
touched.Name = "Touched"
touched.Value = false
coin.Touched:Connect(function(otherPart)
local humanoid = otherPart.Parent:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
if humanoid and player and not touched.Value then
touched.Value = true
player.leaderstats.Coins.Value += 1
coin.Transparency = 0.5
end
end)
end
end
end
if u want to be happy in 2 sec just remove the all touched.value
what does it do
still not gonna work
look
u checking touched.value on if statement but
u dont have a touched.value on start
where can i find a comabt scripter
Boolean value
i asked ai also for help and they did like the same with the bool values
true or false
ooh
i need help with finding a combat scripter
but i watched the tutorial to it to check and he doesnt have it set
trying to memorize the code will be the biggest mistake you will make
try to understand it
ye i tried i just watche the tutorial to check
Uh I can create you a normal Combat system
if i didi good
and i realized smt was wrong so i tried to watch the tutorial but it didnt do nun
send me the tut
lemme check
What's the difference in focusing on combat systems vs other?
player.CharacterAdded:Connect(function(character)
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
fuselage = aircraft:WaitForChild("Fuselage")
aircraft.PrimaryPart = fuselage
humanoidRootPart.CFrame = fuselage.CFrame + Vector3.new(0, 5, 0)
local weld = Instance.new("WeldConstraint")
weld.Part0 = fuselage
weld.Part1 = humanoidRootPart
weld.Parent = fuselage
humanoid.Sit = true
end)
this wont work
it wont tp the player into the primarypart
Guys does anyone here know how to make the squid games system?
Like i got the minigames but i just dont know how to make the system
Then learn the basics of coding, then use those fundamentals to create them.
As in
You know when a round is over
Ppl who dont conplete it are out
And the next ppl move on to a diff round
Hm
But i dont know how to move the players into a different round
With a completely new timer
Etc
Remove the existing players and move the players that are left to next round
@frozen echo do you mind helping out
How much can i pay for you to do that for me
i need the person to be teleported to the primarypart
Dms
bruh
so when u spawn u get teleported into the fuselage
like ur character is in the plane
Um sorry idk
vrooo
how do i get into scripting? should i js watch a yt guide and start making easy stuff or what
dont u have to specify what aircraft is
earlier in the script
no like
local aircraft = game.workspace.aircraft
try with CFrame instead of Vector3
CFrame.new(0, 5, 0)
im talking about tp'ing the character
then u need to set player humanoid to fuselage
There's some good guides out there, start with them and then when you get confused on something google it and try to learn how the code works, dont just paste it in
turk musun sen
of kafayi yicem bulamiyorum yapamadim
tmm
Where do you learn about how to incorporate roblox physics in your experience
ask chatgpt
i asked before but chat gpt dont know
thats
what im trying to do
but it wont work
like i said
define aircraft
also waitforchild in humanoidrootpart and fuellage
fuse*
local player = game.Players.LocalPlayer
local aircraft = game.Workspace:WaitForChild("Aircraft") -- Reference to the aircraft model
local fuselage = aircraft:WaitForChild("Fuselage") -- Reference to fuselage (PrimaryPart)
local linearVelocity = fuselage:WaitForChild("LinearVelocity") -- Reference to LinearVelocity
local maxThrottle = 100 -- Max throttle value for controlling speed
local currentThrottle = 0 -- Default throttle value
-- Function to teleport the player into the fuselage and weld them to it
player.CharacterAdded:Connect(function(character)
-- Wait for the necessary parts to be available in the character
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
-- Ensure the fuselage is available and set as PrimaryPart
fuselage = aircraft:WaitForChild("Fuselage")
aircraft.PrimaryPart = fuselage -- Make sure Fuselage is PrimaryPart
-- Position the player's character at the fuselage's PrimaryPart position
humanoidRootPart.CFrame = fuselage.CFrame + Vector3.new(0, 5, 0) -- Position slightly above to avoid clipping
-- Create a weld to attach the player to the fuselage
local weld = Instance.new("WeldConstraint")
weld.Part0 = fuselage -- Weld fuselage to the player
weld.Part1 = humanoidRootPart -- Weld the player's HumanoidRootPart to the fuselage
weld.Parent = fuselage -- Attach the weld to the fuselage
-- Set the player's humanoid to sit in place (not necessary for physics)
humanoid.Sit = true
end)
how is that
u just need to make sure the root part and the fuselage load
and to define aircraft
i enabled type checking so i gotta do this shit now π
didnt i define it
local aircraft = game.Workspace:WaitForChild("Aircraft")
Do often work for roblox-ts right now, or is it not a common practice?
humanoidRootPart.CFrame = fuselage.CFrame * CFrame.new(0, 5, 0) use this instead of humanoidRootPart.CFrame = fuselage.CFrame + Vector3.new(0, 5, 0)
do i just replace that line with this
humanoidRootPart.CFrame = fuselage.CFrame * CFrame.new(0, 5, 0)
yea this
U cant set position Vector and cframe at the same time
Hey everyone, I've been scripting on Roblox for over 3 years now, meaning I can script almost anything. If you need work done for your game, DM me. I have low prices.
what does cframe do
again
Does anyone need help scripting i've been scripting for a while and i can help you i dont charge alot. Im new to this server and im only seeking robux dm me.
its like vector3 but this include rotation too
vector3 = position
cframe = position + rotation
ok ok
is it worked?
but my issue was
that i need the player to be tpβed into the plane
so i can add stuff like a minimap
ok
@slate marsh
goals:
- get the player to be tp'ed into the plane
and if u want u can make the camera point to the cursor
@slate marsh ill js check back up soon
I'm still looking but
which is better in performance for a drops collecting system
1- Creating a hitbox in each drop and listening for .Touched
2- Runservice or smth and checking for the distance between the player and the drops existed
probably distance. You could even work out the square magnitude to get even more performance
what is square magnitude
so the magnitude is calculated using pythagorus and the last step of the equation is to square root the answer which takes time
oh
got it
you would have to square the pickup distance too then though
but tbh it probably won't make much of a difference
btw the drops will be less than 50 ofc at the same time its not that big
hello guys
wsp
Me too
50 .Touched events really shouldn't cause any issues with performance
what did u find
i tried to debug it
everything in character added is not working
i will look it tomorrow
k
@slate marsh highkey if ur interested enough to do the other optional thing i might give you the exclusive plane
lol
cuz this is literally the backbone for it
literally me
referencing the player will make my life 1000x easier
I think .Touched is fine but I am sure magnitude is best if you define a maximum distance, and then break after finding a close enough object
can anyone help me i have a game where pressing e will put you into flight and i want to make a gui do that for mobile by making the gui replciate the person pressing e on mobile since they dont have a keyboard so i can offer mobile support
dunno how these mobile support enhancements work but wouldn't it be as easy as making a GUI button that does same thing as pressing E when tpuched?
yeah im not sure how to do this
so like when they press the button on mobile whatever flight script u have just runs the same it would if they were pressing E on pc
think that more than replicating E it's a whole other button but not sure how it's done. theres gotta be something to check if they're mobile for the button to show on the screen im guessing?
well i can figure out showing it on their screen or not
ah nvm found something
Iβm trying to make a small button that presses the key E. (Iβm a super beginner scripter so the simplest option/a script to help would be AMAZING) It would also be nice if it only appeared for mobile players. I have no clue how to use enum or cas or whatever I looked all over the developer hub, but I couldnβt follow along with anything I ...
it has answer to your question
yea
I found it first try searching exactly what u needed tbf
it's just a matter of knowing what to search at times
did u search this straight onto devofrum
nop, google
but have used devforum before
didnt realise I was lvl15 lol. that explains why I can act send links then
this didnt sovle my problem for some reaon when i click the button nothing happens and now when i press E on my keboard nothing happens
it jsut prints hgello
ugh. Not sure on that honestly. see if #code-help is more active rn maybe you get some help
is scripting a TD game easy or hard?
you need to use remote event
show script
I can maybe help
Anyone here use vscode?
I'm having trouble with colour formatting (using Roblox LSP)
How do I get normal syntax highlighting π
whats that
π
ah
what should I make for my scripter application?
Players.PlayerAdded:Connect(function(plr)
local char = plr.Character or plr.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local HumanoidDescription = Humanoid:GetAppliedDescription()
HumanoidDescription.HeadScale = 1
HumanoidDescription.WidthScale = 1
HumanoidDescription.DepthScale = 1
HumanoidDescription.ProportionScale = 1
HumanoidDescription.BodyTypeScale = 1
HumanoidDescription.HeightScale = 1
task.wait(0.1)
Humanoid:ApplyDescription(HumanoidDescription)
end)
help
what's the issue?
It doesn't scale the body.
have you tested that it runs through every line?
it does
hm?
is it teh theme
works fine for me, use print('1') print('2') on different lines to see if its actually running
it could be where you're placing the script, what you're defining Players as, or something is interfering with the script
could it ever be something as stupid as needing to make the script wait even more with like a task.wait before the scaling?
nope I used it in studios it works fine
dunno why but sometimes I get issues w stuff not working and it just fixes itself like that...
ahh fair
@shy siren use this and tell me what numbers do not show, I changed HumanoidDescription.WidthScale to 4 to make sure you can see the change
print('0')
local Players = game:GetService('Players')
Players.PlayerAdded:Connect(function(plr)
print('1')
local char = plr.Character or plr.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local HumanoidDescription = Humanoid:GetAppliedDescription()
HumanoidDescription.HeadScale = 1
HumanoidDescription.WidthScale = 4
HumanoidDescription.DepthScale = 1
HumanoidDescription.ProportionScale = 1
HumanoidDescription.BodyTypeScale = 1
HumanoidDescription.HeightScale = 1
task.wait(0.1)
print('2')
Humanoid:ApplyDescription(HumanoidDescription)
print('3')
end)
I got it working.
Thanks for the help tho
what was the issue?
For Some Reasons the Particles Dont Emitt
I messed up the values.
can anyone help me?
I thought it wasn't working but it was
Use ```lua
hM?
local vari = 'Helloo'
OH
no space after lua btw
OPS
--Services--
local UIS = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer
local RS = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Debris = game:GetService("Debris")
--ReplicatedStorage Refrences--
local vfxFolder = RS.vfx
--VariablesForUIS--
KeyForSlash = Enum.KeyCode.E
local function emitParticle(yourvfx)
for _, Particles in pairs(yourvfx:GetDescendants()) do
if Particles:IsA("ParticleEmitter") then
Particles:Emit(Particles:GetAttribute("EmitCount"))
end
end
end
UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then
return
end
if input.KeyCode == KeyForSlash then
print("Slash Skill Activated")
local SlashFx = vfxFolder.SlashFX:Clone()
SlashFx.Parent = workspace.fx
emitParticle(SlashFx)
end
end)
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RS = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Debris = game:GetService("Debris")
local player = Players.LocalPlayer
local vfxFolder = RS:FindFirstChild("vfx")
local KeyForSlash = Enum.KeyCode.E
local function emitParticle(vfx)
if not vfx then return end
for _, particle in pairs(vfx:GetDescendants()) do
if particle:IsA("ParticleEmitter") then
local emitCount = particle:GetAttribute("EmitCount") or 10
particle:Emit(emitCount)
end
end
end
UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.KeyCode == KeyForSlash then
print("Slash Skill Activated")
if vfxFolder then
local SlashFx = vfxFolder:FindFirstChild("SlashFX")
if SlashFx then
local clonedFx = SlashFx:Clone()
local fxFolder = workspace:FindFirstChild("fx")
if not fxFolder then
fxFolder = Instance.new("Folder")
fxFolder.Name = "fx"
fxFolder.Parent = workspace
end
clonedFx.Parent = fxFolder
emitParticle(clonedFx)
else
warn("SlashFX not found in vfxFolder!")
end
else
warn("vfx folder not found in ReplicatedStorage!")
end
end
end)
you think its a problem with the vfx?
Its still not showing
hm weird your not getting any errors?
or any of the warns?
nope
thats why i dont nderstand why its not showing
server or local?
prob why ngl
it was why
math maths lol
thanks
one more thing
if i want to make multiple vfxs assigned to keys how do i make that in the same function
Yep
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RS = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local vfxFolder = RS:FindFirstChild("vfx")
local KeyForSlash = Enum.KeyCode.E
local vfxEffects = {
"SlashFX",
"VFX2",
-- on and on with whatever name then ,
}
local function emitParticle(vfx)
if not vfx then return end
for _, particle in pairs(vfx:GetDescendants()) do
if particle:IsA("ParticleEmitter") then
local emitCount = particle:GetAttribute("EmitCount") or 10
particle:Emit(emitCount)
end
end
end
UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.KeyCode == KeyForSlash then
print("Slash Skill Activated")
if vfxFolder then
for _, effectName in pairs(vfxEffects) do
local vfxTemplate = vfxFolder:FindFirstChild(effectName)
if vfxTemplate then
local clonedVFX = vfxTemplate:Clone()
local fxFolder = workspace:FindFirstChild("fx")
if not fxFolder then
fxFolder = Instance.new("Folder")
fxFolder.Name = "fx"
fxFolder.Parent = workspace
end
clonedVFX.Parent = fxFolder
emitParticle(clonedVFX)
else
warn("VFX Effect not found: " .. effectName)
end
end
else
warn("vfx folder not found in ReplicatedStorage!")
end
end
end)
@flat phoenix that work?
didnt even see this
imma test it rn
oh this is not what i meant but its okay
What did you mean?
does anyone know how to bypass roblox maxhealth limit bc i cant i been trying for a week, i make a numbervalue to change it, i made a crappy oop system and that didnt work either so im outta options (and yes i do need a maxhealth higher than 10 ud bc thats the cap)
could just make your own health system and kill the player when their health goes below 0
or equal to 0
how do u kill the player when health 0
do i just say
if player.Character.HealthValue == 0 then
player.Character.Humanoid.Health = 0
end
@spice cypress
might want to do <= 0 incase they take too much damage
could u join vc for a sec
shut up loser
Made this infrared as my first scripting project, only started learning a few days ago
simple yet so unique
thats a good project
i like it alot man proud of you @umbral briar
alright bro hes getting friction burn
Lol yeah I was thinking about adding a distance checker of sorts anyways
Hey does anyone know how to dev with the voice api, I have a question
Does anyone know how to make water infinite for my water system
math.huge
lmao
but when i turn on streaming enabled its gone
what
u need to be a lil specific mate
just making the water infi
maybe show me the script bruv
scale for mesh
repeat
wait(0.1)
for i=0, 100 do
script.Parent.Mesh.Scale=script.Parent.Mesh.Scale+Vector3.new(0, 0.036, 0)
wait()
end
wait()
for i=0, 100 do
script.Parent.Mesh.Scale=script.Parent.Mesh.Scale-Vector3.new(0, 0.036, 0)
wait()
end
until false
why is there nothing in serverscriptservice and replicatedstorage π
seperate place just for water rn
to make it infinite you'd need to do like a whole script and im just a skid so I cannot help you
but you'd need to check a tut
why do you need infinite water
β οΈ
thought he was talking bout a water collection system
well not infinite water just enough water to where you keep going and you cant go anymore
not water round an island
i want an ocean
js put invisible walls lil vro
use chunks or that will like be horrible performance wise if you make it infinite
just
make a chunk of water
and load chunks around player
when they move unload and load other chunks
^
the game wont even run
its not even possible to make it βinfiniteβ
mmh ok
how come my leaderstats are not saving?
local datastoreservice = game:GetService("DataStoreService")
local DataStore = datastoreservice:GetDataStore("v1.01")
game.Players.PlayerAdded:Connect(function(player)
local PlayerStats = Instance.new("Folder")
PlayerStats.Parent = player
PlayerStats.Name = "PlayerStats"
local Sticks = Instance.new("NumberValue")
Sticks.Parent = PlayerStats
Sticks.Value = 0
Sticks.Name = "Sticks"
local Stone = Instance.new("NumberValue")
Stone.Parent = PlayerStats
Stone.Value = 0
Stone.Name = "Stone"
local Granite = Instance.new("NumberValue")
Granite.Parent = PlayerStats
Granite.Value = 0
Granite.Name = "Granite"
local Talc = Instance.new("NumberValue")
Talc.Parent = PlayerStats
Talc.Value = 0
Talc.Name = "Talc"
local success, data = pcall(function()
return DataStore:GetAsync(player.UserId)
end)
if success and data then
Sticks.Value = data.Sticks or 0
Stone.Value = data.Stone or 0
Granite.Value = data.Granite or 0
Talc.Value = data.Talc or 0
end
end)
game.Players.PlayerRemoving:Connect(function(player)
local success, err = pcall(function()
DataStore:SetAsync(player.UserId, {
Sticks = player.PlayerStats.Sticks.Value;
Stone = player.PlayerStats.Stone.Value;
Granite = player.PlayerStats.Granite.Value;
Talc = player.PlayerStats.Talc.Value;
})
end)
if not success then
warn("Failed to save data for "..player.Name.." Error: "..err)
end
end)
use a datastore
yaeh.. I did
"Player_"..player.UserId
is it loading wrongly or saving wrongly, does the warn work?
print out both success and data
It doesnt save
I cant send the script now. idk why
you pcall your setasync
aaa
theres no reason to
I need more help. it doesnt work I am still new to scripting idk what to do.
try it without the pcall
game.Players.PlayerRemoving:Connect(function(player)
DataStore:SetAsync("Player_" ..player.UserId, {
Sticks = player.PlayerStats.Sticks.Value;
Stone = player.PlayerStats.Stone.Value;
Granite = player.PlayerStats.Granite.Value;
Talc = player.PlayerStats.Talc.Value;
})
print("saved data for ", player.Name)
end)
lmk if that prints
well it would if you leave, i meant to wrap the data
it printed. but it doesnt save.
hello i do want to help but idk if someone wants to get help
yeah its gonna print on leave regardless
ah
that is why Ihad pcall aha
updated key?
just copy and paste what i have above
oh
bro.. you wouldn't believe why it doesnt save π
? do you not have API on
I was adding the stats with a local script π
I do..
wow
AAAAAAAAAAA
yeah im not suprised then, the script looked fine imo
ty
besides still using values in 2025 its fine
game.Players.PlayerRemoving:Connect(function(player)
local playerStats = player:FindFirstChild("PlayerStats")
if playerStats then
DataStore:SetAsync("Player_" .. player.UserId, {
Sticks = playerStats:FindFirstChild("Sticks") and playerStats.Sticks.Value or 0;
Stone = playerStats:FindFirstChild("Stone") and playerStats.Stone.Value or 0;
Granite = playerStats:FindFirstChild("Granite") and playerStats.Granite.Value or 0;
Talc = playerStats:FindFirstChild("Talc") and playerStats.Talc.Value or 0;
})
print("Saved data for", player.Name)
else
print("PlayerStats not found for", player.Name)
end
end) here
I have no idea, I'll check when I get home
mantis claw ahh
Hello
Can someone point me to a good place to learn about OOP for free? I want to improve my code skills as I know they are trash (Or at least are probably very simple... I don't get to compare dev work much) but I am not sure where too look
YouTube
Dev forum
bro thinks hes the only hollow knight fan...
parrying system (i sent one a LONNNNG time ago but its diff now, u dont have to block anymore to trigger parrying since its a diff bind)
Is there any specific tutorial or youtuber you recommend?
guys any of u a really good coder in roblox dm me NOWW
is html or lua more profitable, cuz I've learned html for like over 3 years now
you won't get far with just html
html + flask
i mean i have learned like python but im gonna learn java now
I am using the blender importation and exportation plugin and ever time I copy and paste the animation it says: We have disabled some language features because this script is too long and it's affecting system performance. You can change this in settings. Does anyone know how to fix this?
increase the script limit
there are so many factors dawg
i don't know what you're asking
nvm then
how do you increase script limit
idk
then the frick would you suggest it
is there a better way to communicate from server to client because i use remote events for everything almost and i feel like exploiters can abuse it
if its a small thing you can use attribute and use attributechangedsignal
hey guys have any of you happened to work with buffers? there's a really strange thing with them
Use a single remote event
That has non human readable characters in the signals
how does it take you upto 3 years to learn html
its fucking tags
ok thats some masterpiece here
local players = game.Players
debounces = false
local debounce1 = debounces
players.PlayerAdded:Connect(function(player)
local booksfolder = Instance.new("Folder")
booksfolder.Name = "boooksfolder"
booksfolder.Parent = player
local books = Instance.new("IntValue")
books.Name = "Books"
books.Value = 0
books.Parent = booksfolder
end)
workspace.book1.Touched:Connect(function(hit)
local player = players:GetPlayerFromCharacter(hit.Parent)
if player and debounce1 ==false then
local booksfolder = hit:FindFirstChild(booksfolder)
local books = booksfolder:FindFirstChild(Books)
books = books + 1
workspace.book1:Destroy()
end
end)
where the prplm when i touch it its say in the output ( Argument 1 missing or nil)
I donβt think html is that useful anymore
if u wanna be a front end developper, u need to learn HTML, PYTHON, JAVASCRIPT, CSS, and some other library's of javascript like REACT or NODE. So if u dont know what is a front-developper so let me explain to u :
when u enter a website u have two parts the front-end and the back-end :
front-end is what u see when u enter the website like the buttons, the images, the texts ...etc
and back-end mean what u cant see on the website, in simple term mean the security of the website like the database
So now let me answer the question who is the most profitable HTML or Lua :
so HTML will be more profitable if u planning to be a front-end developper but if u wanna get some fast cash Lua will be more profitable cuz u gonna be able to do some comissions and get paid
I hope i answered ur question
brother dont give people advice when you dont know shit abt what you're yapping about
python doesnt run in the browser therefor it makes no sense that you included it there
node is a runtime not a library
explain to him then little shit
react is a framework
nobody competent does sites in raw html js and css
always use a framework
you're talking about a frontend and backend
to a frontend dev
"so to be a frontend dev you have to do backend"
When tf i said this ?
and your answer was incorrect
you're implying he has to be able to do backend as well as frontend
he'll make more with lua than with html
but if he learns a web framework then sure
theres plenty more potential
no, back end and front end are two things different
thats what i wanted to say maybe i said it wrong i dont remember the word cuz my brother was working in front-end for a company and he was using react and node when he waas developping
so when u do <pyscript></pyscript> what does that mean ? u gonna say that this dont exist in html ?
it literally doesnt what LOL
can someone speechbubble this π
DAMN PYTHON IS IN THE BACK END
this is a misconception
my bad
no it isnt
if you're using raw html in 2025 you're simply behind
Frameworks are just raw abstractions
If you ever intend on becoming a good web developer, don't use frameworks when you start off
alright so you're talking about beginners now?
i mean true if u wanna be a web dev u gotta start by learning basic HTML ( IM NOT ONE )
Frameworks only make you a good employee
what bro π
Not only beginners even veteran Devs can improve their skills
π
nobody competent is making their site/frontend using raw html
unless they just need one or 2 static pages
anyway im not even into web development im having more interests in penTesting ( Im still learning about it )
nono hold on you tell me why html is on par or better than frameworks
I have plenty of reasons
web development is boring
To clarify, I didn't say Frameworks are worse, they are easier but they don't contribute to your lesrning
You only end up memorizi g the little frameworks interfaces but have no idea how things work behind the scenes
what scenes brother
π
this isnt c to assembly where you actually should understand the compilation process
While you may not see them, there are benefits to gaining misunderstanding
Such as becoming a good developer
Understanding*
sure bro
you dont know what you're talking about
you're fixated on the point where html is this super fundemental language, where ig for web development it is
but at no point when using a framework
does your brain try to figure out how it transpiles into html