#Trying to make me stand on a train while its moving
1 messages · Page 1 of 1 (latest)
So the player slide of even when on top of the train
How are you moving the train?
If your tweening I believe there is a dev forum post which covers how to fix it
ehh i tried with physics based moving but the train wouldnt even move then. i cant really script much so i used the assistant. i think it uses pivotto
Could you show the code
of how your moving the train
Your probably going to need to use linear velocity
its very long
i told the ai to use that but the train wouldnt budge
it needed to become a file cus the segment is long
Its cool
probably because the train has a really high mass
you should also make it that the train has a hitbox
and you move that hitbox
is this too big?
** You are now Level 4! **
no not really, you could make the part as big or as small as you want
your train moves in a straight line right?
yeah.
ye than linear velocity will work just fine
if you had turns however, it'd probably be a different story
since you'd need to move each cart alone you feel me
yeah
also make sure all the train's parts are massless
done
it shouldnt be anchored right?
linear velocities max force was too small
or?
no
alr
yk how to code using linear velocity right?
i cant but my buddy can:
yk you can't just depend on the roblox assistant right
Look imma give you the step
but I won't give you any code
im trash at scripting i can like only do this:
local part1 = instance.new("Part") or smh like that
thx!
and you pray that ai will do the job
** You are now Level 10! **
lol!
So basically:
Add a hitbox to the train, make sure all the parts of the train are massless including the hitbox
Make sure the front face of the part is facing the direction the train will be moving
Now you weld all of the train's part to the hitbox
In your script your gonna add linear velocity, and you change the vector relativeness to world
now you will add a vector velocity which will make the train move in the lookvector of the part, and you play around with the force till you feel its good
wouldnt it be super easy to push with that tho
you would just decrease the force
I'm pretty sure ai, won't code it accurately, but you can try
should i ask youtube or can i ask you? how do i make a hitbox...
bro its just a invisible part around the train
your soo cooked bro
it should cover the whole train
like a touch thingimigi
here
nice
cancollide off right?
no, it would go through the ground
just make sure that its touching the train track
or the wheel of the train
oh
and the highest point in the trai
this good?
but youre meant to stand on the train so how else am i supposed to do it. sorry if im making you go exponentially dumber
should the hitbox be in the train model?
I just realized the hitbox won't work
because the box needs to be collidable
alr so what now?
this hitbox can collide
true
ok good
now
weld all of the train parts to this part
in the settings of the weld constraint
how do i bulk weld cus there are 250 plus parts+models
use a script
oh fuck
bruuh
tbh, it ain't worth working on this train if you can't script mate
buddy... srry for being trash. the scary world of lua is a world i cant get through.
you could hire someone to fix it, and who are you calling buddy....
u bud
i aint even that young bruh. im 14 soon 15
I'm older than you lil bro
your yung af
no shit ur good at this bro
good at what?
roblix studio
BRO UR SAYING THAT IM YOUNG buddddddddddddddddddddddddddddddd
💀
gotta focus on my physics online session now
no
alr. go get your work done ill not help you fail college
Thanks mate, hope you enter the 7th level of hell (learning lua)
IGCSE is cooking me fr
oh ye mb
np go get to work now
ok kiddo
So its basically going to be the main part which actually moves the train
instead of complicating things
by taking into account the 250+ parts
instead
you just focus on one part
and how it is moving
You could get the train's velocity and whatever players are standing on it you'll add the trains velocity to the player
yup, thats what I'm planning to do, that is if the player doesn't move with the train when doing velocity, it should though
@junior pagoda
You shouldn't really think of it as a hitbox
but instead
oh srry
a part which simplifies things
alr
well i gtg sleepie now the clock is half twelve for me rn.
ok pooki gn
sweet dreams kiddo
gn! sweet college unc
** You are now Level 5! **
wtf
I think "pooki" might've been too much lmao
lol
Unrelated question but how long did it take you to get scripter 1 when you made the ticket?
Scripter 1 is misleading
Went for scripter 2 and scripter 3
didn't get enough vouches tho
Got 3 vouches
then the vouches stopped coming
anyways, I'll probably say I'm scripter 2 low scripter 3 now
scripter 1 has like the very basics
Like you could make some basic system, but theyre not effecient nor is the code clean
im back now. my script rank would prolly be like 0.5
it made a script here but it doesnt work. (your instructions ofc) do you dare to find it? @tepid geode
I shall escape
u dont really need to help me anymore. imma try to hire a pro scripter for my game. btw wheres the best place to hire?