I’m trying to make parts send from a script to a different script by using bindable events but all I’m getting is the name of the part and not the actual part where I can change the position and stuff. So I’m wondering how I would do that and actually be able to change the properties of the part. (Can’t use bind functions either)
#How send Workplace Parts over to another script.
1 messages · Page 1 of 1 (latest)
show scripts
What I’m doing can’t work, so I’m asking if there is something else I can do that will work (so no need to show scripts)
What do you mean send from one script to another?
like by using bindevents and stuff idk what else to call it
like bindevent:Fire(part)
bindevent.Event:Connect(function(part)
what i mean
but that does not work
why not get the part from workspace normally
cuz then I would have to write literally 6000 lines of code to include each part
iterate through a table of parts
i dont use tables, wym?
tables are a data structure in roblox that store objects like instances strings numbers and even other tables
you should learn about them if you want to get better at scripting
it should be in the documentation
i know what they are but idk what u mean by iterate through them?
how would I do that?
game:GetService("RunService").Heartbeat:Wait()
local event=game:GetService("ReplicatedStorage"):WaitForChild("Event")
local Part=workspace:WaitForChild("Part")
local Pos=Vector3.new(10, 10, 10)event:Fire(Pos, Part)
ServerScript1
local event=game:GetService("ReplicatedStorage"):WaitForChild("Event")
event.Event:Connect(function(pos, part)
part.Position=pos
end)
ServerScript2
use a for loop
for i, v in tableName do
i will be either keys or the index
v will be the values
but you can use ipairs more specifically to get the index if its an array and pairs to get the key if its a dictionary
Do you know what is OOP?
no?
Object Oriented Programming
Looks like this
local Monster={}
Monster=__index=Monster
function Monster.new(model)
local self=setmetatable({}, Monster)
return self
If you will learn this you will be strong in scripting
position was just example. What I really need to do is move it to a different parts exact location and then tweenposition it and weld it
ill try
if you send your script it would be easier to understand what you're trying to do
like are you creating new parts or something or do they already exist
scrpt to script*
So what do you want exectly?
** You are now Level 2! **
so when I click a equip button, I want a remoteevent to fire and send the parts that are connected to that equip button over to the server and the server to do what the ss i sent it doing with the current parts (ill chnage like redcan1 and stuff to just can1 to give a more neutral identity)
From redcan1 to redcan1lid is the parts you want to send?
What exactly this script do?
yeah
W profile
it welds parts to different small invisible parts that our on the back of the player so it looks like you equiped those parts to your back
cancerous
ive never change whatever mode the application comes with
Can you send full code?
OMG
OMG
wtf
I thought i shit code
this is literally peak coding is it not?
Module scripts fears you
i dont know how to do that tbh
where do you want here to send the parts?
never heard of a function in his life
Because I can't understand a shit in here
thats after ive got the parts
Here?
this is where im sending the parts from
Where the green one or the yellow?
what r u asking?
Where do you want to send parts, I'm looking at the code and feel pain
I want send parts where it says "equipcan.OnServerEvent:Connect(function(player, redcan1clone, redcan1bottomclone, redcan1glassclone, redcan1lidclone)"
at the very top
and then the rest of the function deals with the parts
why is this bad btw?
whats a function
i hardcode everything i make
(joke)
everything there is hardcoded
you cant reuse any of that
local Event=game:GetService("ReplicatedStorage"):WaitForChild("YourEventName")
add da shit in top of the script
Event:Fire(redcan1, redcan1bottom, redcan1glass, redcan1lid)
and this here
and youre stacking things unnecessarily
ive only made this game im working on
and if i need to use it again cant I just copt paste and change names?
wym by reuse?
what do you do if you wanna make a new weld
now
what if you can compress ALL of that
into
makeWeld(parent, part0, part1)
or makeWelds({{ parent, part0, part1 }, { parentA, part0A, part1A }})
I don't think he's know what function is
thats insane
but then how would it know what parts id be talking about
holy
fr
alvin blox videos stat
This Roblox How To Code tutorial will teach you how to script on Roblox for beginners. Roblox Coding or Scripting in Lua is very easy to learn and I've got years of experience to share with you so you can learn how to code a game on Roblox. A lot of people want to know how to learn Roblox scripting and this is the best place to start. We go over...
start this
i dont think hes talking about me...
crazy
but then how would it know what parts id be talking about
we are talking about you
watch all these videos and dont come back until you did
wym
watch the videos
just watch them all
absorb them and do it with alvin
"out dated"
"out dated"
it still teaches the fundamentals
but i feel like ik the fundamentals
i thought functions was programming 101
we are telling you that you dont
how is that not fundimentals
this is part of "fundamentals"
it is messy and repetitive code
he said "wdym by reuse"
i dont think he's gonna understand that
if i use what ur saying then how would i incorperate dif parts
but it works?
BRO
just because it works doesnt mean its optimal...
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
MEMBERSHIPS 🎁
Get Access To My Scripts + More Perks By Becoming a Channel Member! 👇
https://www.youtube.com/@BrawlDevRBLX/join
BEGINNER ROBLOX SCRIPTING SERIES 🟢
https://youtube.com/playl...
thats like making a car work and saying "but it works," then it breaks down the next day
Today, I'm giving you three ground-breaking functions, and explaining how they work in Roblox studio, and how you can use functions in your next script.
Join Pondaroni's Pizzeria (my discord server):
https://discord.gg/C9yyuUsb53
Become a member to see videos up to 3 days before their initial release, and much more! For only $2.99 a month.
Us...
In this video, I'll show you how to write and use Roblox Functions within your scripts in just 8 MINUTES! If this video is helpful, please destroy the like button so YouTube knows to push it out to other people!
🎁FREE GIFTS: https://thedevhero.com/emaillist/
🤩Join our DISCORD Server: https://discord.gg/J9jd6HjG
🌟Website: https://thede...
but its never broke
it already has
its called performance
i dont think your code is a fan of that
if you mispell one thing in a weld your things are gonna break and you are gonna search for hours to find it
that too
everything doesnt give you an error
command F?
brother
watch the video
we know better
why arent you listening
"weldcartodoor1021021392139123012302_BA21219312"
cuz it seems like a waist of time to make something look pretty when it already works?
no
waist of time
whats your first language btw @south kestrel
ok, we have
so listen to us
and watch the videos
and use functions
why does he speak an extinct language
i feel like yall just saying do something like
he mispelt luau idiot
bro go watch the videos
your code is ass
@south kestrel
thats what im thinking
look at his profile
but maybe theres hope
yyeah im aware
i cant even say anything about his profile
because its entirely political
😭
yeah
should just let the man rest in peace
how is it political 😭
exactly
how is it not
do you know what political means timmy
how is saying a man is the best role model political thing?
role modal polital
look all im saying is his entire career was politics
🤷
thats just how it is
i digress from the main point
go watch those videos on scripting it'll help
thedevking is also pretty good
im pretty sure atleast
this what u mean or sum?
I wrote that script a couple weeks into making my game and only understood how to do functions like that when I needed to use remote events and data saves
yo chat
u may of just solved my problem of not wanting to write 6k lines of code
thx
all it took was you complaing like a little bitch about why you should do it
maybe listen to people next time
dont bite the hand that feeds you
mf think he socrates or som
ya thx ig
oh my can we just ban this guy
i've only seen you whine and argue
can you say something respectful or remotley helpful to this world
literally look at his code
he was saying he didnt want to use a function
and me and the other guy were telling him to
no code can justify such hostility
people arent going to be as good at studio as you
so dont just get mad when they dont instantly learn years of hard work
we all started somewhere, i was as stupid as him six months ago
we were trying to help and he kept going against it
ok i didnt actually read the messages so i might be judging without enough evidence
i should probably look up a bit
what a drone
** You are now Level 15! **
literally some people deserve it
he had that
and was questioning
why he should use a function
can i ask what this is supposed to do
idk
i dont really even understand what the title is saying
he wants to use bindables
ah well he'll probably learn more in the future
he will now that we told him to
i used to think like this
then my game was incredibly laggy and used up a ton of processing from the server
and good computers and wifis averaged 200-300 ping when they normally get 50ms in most games
i ended up discontinuing that game
- if you want to change anything good luck
then why did you even make this
its actually a good thing that you did mkae this
if you kept unironically coding like that
yeesh
No I wasn’t questioning why I should use a function I was questioning why make code look better. they are different
** You are now Level 11! **
can i ask what this SHOULD do
My amazing code?
yur
When a player loads in it welds 9 small invisible parts to their character in different locations
Ik how to make it shorter now
don’t spam at me pls 🙏
Cuz I wanted to know how to send a part from workspace over from a local script to a server script without having to write 6k lines of code but now I’ll just use functions which I didn’t know could work like that so u unintentionally solved my problem
so a remote event
your shitty code and this doesnt correlate
these are 2 seperatre issues
i hope yk that
remote events lets you make server communicate with client
infact i think they're the only way you can
cant send parts through a remote event
remote functions as well
also i made it like this
what am i looking at
peak
IS HE CHANGING THE CFRAME AND THEN THE POSITION???
you only have to change 1
oh nevermind hes doing +=
i thought that was =
Yeah man, lock in
you can not tell me this is not top tier coding
you're just ragebaiting
my goodness its beautiful
im not jokin thats my code
(idk how to make better 🤷♂️ )
my goodness ive done it
(friends idea tho)
i actually cant bro
I'm going to vomit
is this not peak efficiency?
i cant even look at this