#I wanna make it so when you join the game it randomizes all of the body colors of a starter char.
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
Detect a join, and change the body colors?
yes
of the
person who joins
uhuh
It’s hard to explain to people who don’t even try
: (
Do you at least have a StarterCharacter?
And you did put that in StarterPlayer?
yes
Okay, does it have a BodyColor in it?
You can work that out with BodyColors
then chnage it to Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
Yes
what do u even mean
if i wasnt trying
i would have used the toolbox
but no
i am trying to learn
Tuff
Well
A game has players
So there is a players service
Create a server script under the StarterCharacter
When you add them they are just called „Script“
ok ok
** You are now Level 2! **
did so
local character = script.Parent
local humanoid = character.Humanoid
local description = humanoid:GetAppliedDescription()
local function randomColor()
return Color3.fromRGB(
math.random(0, 255),
math.random(0, 255),
math.random(0, 255)
)
end
description.HeadColor = randomColor()
description.TorsoColor = randomColor()
description.LeftArmColor = randomColor()
description.RightArmColor = randomColor()
description.LeftLegColor = randomColor()
description.RightLegColor = randomColor()
humanoid:ApplyDescription(description)
Paste this code and ask if you don’t understand anything, but I believe it works
Although you don’t know how to code
Luau is easy to understand
this code will only change the color when asked to
wont automatically do it whenever someone spawns
Oh yeah
you can probably detect a player spawning with workspace.ChildAdded
and if that part has, something only a player has, like the Animate script, THEN change the colors
Why not use Players.PlayerAdded
Isn’t it easier?
PlayerAdded checks when somone joins, not every time they spawn
i think
😀
Yeah but inside it you can connect it to a .CharacterAdded
** You are now Level 3! **
you could do PlayerAdded(CharacterAdded() but i think thats like chaining events and bad and stuff
Which gets called whenever that player basically spawns
Not with this
Chaining other events can cause that
But this should not run forever
If you mean that
specifically that combination?
I guess so yeah
It’s the easiest way to get the joined players character on the server
Maybe also the only
i usually prefer ChildAdded on the workspace only because it just feels cleaner with only one event
uh
But you gotta do secure checks to ensure it’s a player
Acrually smart
check if the Animate script is a child of the model
You can just check if the child that was added is also child of the Players
thats all you need
no, :FindFirstChild() will return nil if a child doesnt exist
I mean by the name
and then you can do like part:FindFirstChild(“Animate”) == nil
The player is stored in the Players simultaneously
player CHARACTER and player itself is different i think
Yes
its a different type of instance
But by getting the player in the PlayersService you get access to their character and a lot more
Just saying
Idk if you could call it instances
But I get what you mean
everything in the explorer is an instance except for the main things that are direct children of the game i think
those things are services instead
Yeah
PointLight is an instance, Attachment is an instance, Humanoid is an instance, nearly everything is an instance
The player in the workspace is usually a model
even things you’d think arent
I haven’t used it much
yes thats true
with a Humanoid which makes it a rig
Yeah but like those things in Players
Idk if that’s a instance
those things in the Players list i think is a Player instance
let me google it
Only if you set it up the right away
Could be
Would make sense too
Okay
Nice to learn that
I think of instances something we can also add you know
But no
players are special things
But Roblox doesn’t treat us like that
🙂
i dont know if you can simulate one being added even if one doesnt by creating a player instance
even then i dont see much use for that
But I‘d recommend you getting the player on the server by the inbuilt .Added and then player.CharacterAdded
On the client no need of course
i know Cameras are weird tho
what
ok to get whenever player joins lemme write the script
You can continue on mine
I‘m confident it will work with the right set-up
That I forgot
-# (unedited)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
—code to mess with character here
end)
end)
Yes
From then you can mess with that characters BodyColors
put his script in the thing that says code to mess with character here
should work no guarentees
--
But please define Players
dawg, its a comment
I dont know how to
do you know what that is???
I DONT KNOW ANYTHING
Just for optimization
learn before making a game broo
if you dont know smth this simple then learn for a bit longer before making a game
Could’ve read our messages to understand
its a mistake i made
We legit talked about how to get the player and then extended the code for you to use
i got straight to making a game and scrapped like five
released one, got 2k visits, made it horribly and never updated it again
You didn’t know
this is TOO simple bro
Not something you don’t know
its random number and recoloring something
So say thanks for our assistance
thats incredibly simple man
Math.random is easy
** You are now Level 4! **
omfg
it could not be more confusing
the best thing i can do

is print
so i cant use this
How did you make a whole game
just cuz
yea thats what im wondering
its very intiutive
searched on how to do them
typed them manually
and just
Not learning
yea man you’ll never learn that way
It’s copy pasting
am i supposed to
And then bro spams comments when it actually comes to learning
just give up this thing im making
you’d be stuck like this forever if you keep doing it likes this
and scrapped four different games
We don’t tell you to do that
each time because i made it horribly
im not destroying 12 hours of building
IF you ever come to realise how to actually script
omfg.
you’re gonna want to turn back by then
I don’t
and how am i supposed to learn when all learning classes are like
** You are now Level 3! **
It just gets repetitive
60 dollars.
okay how about this: take a break from working on this, make a baseplate, and learn there
not copying scripts
YouTube is free
And is the best source for knowledge
You’re watching the wrong ones
Just google
and THEN go back
Stick to one video
ok crazy idea but could you ChatGPT to learn how to script?
but then.
When you have a question, read the comments or google
it might work
Go to DevForum
i dont know
you need to learn for like, two months until eventually you can teach yourself everything else
once you understand the core concepts and get the hang of it, all thats left to do is learn new things from the Documentation
game.Players.PlayerAdded:Connect(function(player))
player.CharacterAdded:Connect(function(character)
local humanoid = character.Humanoid
local description = humanoid:GetAppliedDescription()
local function randomColor()
return Color3.fromRGB(
math.random(0, 255),
math.random(0, 255),
math.random(0, 255)
)
end
description.HeadColor = randomColor()
description.TorsoColor = randomColor()
description.LeftArmColor = randomColor()
description.RightArmColor = randomColor()
description.LeftLegColor = randomColor()
description.RightLegColor = randomColor()
humanoid:ApplyDescription(description)
Paste this code and ask if you don’t understand anything, but I believe it works
end)
end)
which will be easy to read by then
Paste this code
Be optimistic
learn for 2 months to make a game with 1k visits, learn for another two months, work for five months, make a game with 1mil visits
easy
its a rough estimate man
if you dont feel like doing that then scriping might not be for you
Bro it took me 6 months to make a non-slop successful game
And you’re crying over 2 months
you dont learn in three days and then make a game in a week
thats literally impossible
unless you make “STEAL A GARDEN BRAINROT” riddled with bugs, scripts made by other people, and robux products
which you wouldnt do, right?
some people take classes or learn from a friend
This guy
to learn MORE after they understand studio
theres a LOT of things on studio to learn
: (
You got what you wanted btw
Tweens, metatables, this, that, animations, so on and so forth
did not work.
oh i know how to make animations work in game
Good
you left the text saying “try using this” which caused it to error
Oh
do i
Remove that from the code
delete every normal text
If you didn’t already
also the first line has an extra parentesis
you can open a dev’s studio but you cant make him open a script
i know i might sound
even dumber now but
is there a way to
turn roblox studio into
block coding
like
scratch and
stuff
like
no, but starting with scratch is a good way to learn
i have made games in scratch,
actually there MIGHT be a plugin, idk
but i doubt that by the standars they could be considered good
** You are now Level 4! **
oh
i think i fixed it
nice
is there
any like
playlists
i could
watch
that arent too long
Why not watch the long ones?
Are there playlists that arent long.
Go look
So there arent
Never said that
holy
** You are now Level 12! **
337 messages
should i delete this now that its done
mark as completed