Btw, sorry. The part where it cuts in the video, there is one more line on line 5 and 6, after "EndPosition" on line 5 Just put ".Position", same with "StartPosition" on line 6. Sorry for an confusion.
how do i make it so the character that stands on the moving platform can moves along with it without having to move your character as the platform moves?
Bro thank you SOO much dude, I was making an obby and I needed help making moving lasers and I struggled so much, but when I saw your simple tutorial you saved my life. Thank you so much!!!
Q: how do i make it so the character that stands on the moving platform can moves along with it without having to move your character as the platform moves?
This is my old account but I actually wasn't creating parts where I said TweenService:create(), I was creating a tween, which just smoothly moves the part. Also thanks!
@@lanquandude I think he's asking if you could make a script that could see if it has reached it's certain position it's supposed to go, and go back to it's original position. This means that if its at it's original spot, it'll move to that other position, and when it sees if it's at that certain position, it will go back to it's original position, repeating the same stuff over and over again.
can a similar method to this be used to extend / scale a part smoothly? trying to make a laser pointer and the laser part would need to extend depending on the distance its going.
this is very helpful but how do i make the part only move for specific player, because im trying to make a zombie obby where at the end a helicopter came and start moving toward the winning/safezone area so people that still playing didnt see the helicopter left and never coming back
Hey lenrain this is a good tutorial but Can you make another one? I am making a crossy road game in roblox and I need the cars to go to one side, teleport back to the beggining and repeat. Would this be possible?
@@lenrainnn im trying to do the same thing but with a train/metro, like in the background like 5 and 5 minutes, if u do i will put the credit in my map pls!
it didn't work because it keeps saying i have "tweenservice:create property named 'position' cannot be tweened due to type mismatch (property is a 'vector3', but given type is 'instance'", can you help me with the problem here?
In the model's properties go down to PrimaryPart, click it and select the main part of the model and then put the script into the model and then make the primary part go up, also weld all of the parts together.
yo that was really easy to follow :D :) but I got an error :C I don't think its your fault, because the error didn't say anything bad about the code, it just said this: "TweenService:Create property named 'Position' cannot be tweened due to type mismatch (property is a 'Vector3', but given type is 'Instance')" It kind of reminds me like downloading something on phone that can only be downloaded on PC. Do you know how to fi xthis?
Sorry, there is one more line on line 5 and 6, after "EndPosition" on line 5 Just put ".Position", same with "StartPosition" on line 6. There was a cut in the video that confused a lot of people. Which is why I created a new video. If it still doesn't work let me know.
local Tweenservice = game:GetService("TweenService") local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0) local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.End.Position }) local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.Start.Position }) TweenToEnd:Play() TweenToEnd.Completed:Wait() TweenBack:Play() TweenBack.Completed:Wait() removed while true do and end
Guys help. Can someone tell me how to make the part wait a certain amount of time and then move up. Only up!. I can't find any video that will help me with this. There are only those where the part moved back and forth continuously, but I need it after a while and in one direction! Please help me. Write a script or give a link to a video.
local Tweenservice = game:GetService("TweenService") local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0) local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.End.Position }) local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.Start.Position }) while true do TweenToEnd:Play() TweenToEnd.Completed:Wait() wait(2) -- change this number to control how long before it moves again TweenBack:Play() TweenBack.Completed:Wait() wait(2) -- change this number to control how long before it moves again end
@@lenrainnn Yes, the problem for me is that, it moves to the position of the points, but it doesn't rotate. I am trying to make a lootbox that opens when the proximity prompt is triggered. Is there any solution?
@@TechnoBloxYT Yep, on lines 5 and 6 change ".Position" to ".CFrame". Position is well, just the position, CFrame is position and rotation. If it still does not work lmk.
@@lenrainnn i did & for some reason it’s not working either. I’ve checked literally everything but either way your videos help out a lot. And yes please upload more because im still learning scripting 😅
It works for some people and for some people it doesn't, so I don't really know anymore, but I'm planning on making a new video with a moving part you can actually stick too and not just fall off.
at 5:53 he cut out the part where he changed lines 5-6, and since the lines were too long to fit the script screen, unfortunately we don't know what it is. :(
to be honest I have no idea, I noticed that and I'm really confused. Okay, now I just looked it up and it says "If your video contains content to which you don't own all necessary rights, the rights holder may have chosen to place ads on it." so that might be why.
Look at the pinned comment, thats still confusing to some people so if you still don't understand the pinned comment just watch my newest video where I fix that issue.
Line 3 is the same as yours, but its showing incorrect for me. TweenService:Create property named 'Position' cannot be tweened due to type mismatch (property is a 'Vector3', but given type is 'Instance') And heres the code I used: local tweenToEnd = tweenService:Create(script.Parent, tweenInfo, {Position = game.Workspace.EndPart})
I found out this can work with co-rods: local TweenService = game:GetService("TweenService") local TweenInfo1 = TweenInfo.new(400, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false,0) local TweenToEnd = TweenService:Create(script.Parent, TweenInfo1, {Position = Vector3.new(123,15,0)}) local TweenBack = TweenService:Create(script.Parent, TweenInfo1, {Position = Vector3.new(123,15,-66)}) while true do TweenToEnd:Play() TweenToEnd.Completed:Wait() TweenBack:Play() TweenBack.Completed:Wait() end
local Tweenservice = game:GetService("TweenService") local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.sine, Enum.EasingDirection.InOut, 0,false,0) -- set this to the number you want and the style you want local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.EndPosition.Position} ) local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.StartPosition.Position} ) while true do TweenToEnd:Play() TweenToEnd.Completed:Wait() TweenBack:Play() TweenBack.Completed:Wait() end hope this helps 🤗
mine does not work do you see a problem?______________________________________________________________________________________________________________________________________________________ local Tweenservice = game:GetService("TweenService") local Tweeninfo = TweenInfo.new(6, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0) local Tween = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.EndPosition.Position}) local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.StartPosition.Position}) while true do Tween:Play() Tween.Completed:Wait() TweenBack:Play() TweenBack.Completed:Wait() end
i hope this forking script work here is the type local tweenservice = game:getservice(''tweenservice'') local tweeninfo = tweeninfo.new(5, enum.eastingstyle.sine, enum.easingdirection.inout, 0,false,0) local tweentoend = tweenservice:create(script.parent, tweeninfo, {postiton =game.workspace.end position.po local tweenback = tweenservice:create(script.parent, tweeninfo, {postiton =game.workspace.end position.p while true do tweentoend:play( ) tweentoend.completed:wait( ) tweenback:play( ) tweenback.completed:waited( ) end FORK IT DIDN'T WORK I THINK
Btw, sorry. The part where it cuts in the video, there is one more line on line 5 and 6, after "EndPosition" on line 5 Just put ".Position", same with "StartPosition" on line 6. Sorry for an confusion.
Im still a bit confused could i just get the code?
@@glitchym751 every excuse to get the code, and this is one of them
When in the video did it cut?
nvm
how do i make it so the character that stands on the moving platform can moves along with it without having to move your character as the platform moves?
@@TechnoBloxYT bro just leave him alone hes confused and so am i, idek if i put ".Position" then "StartPosition" or just put "StartPosition" on Line 6
Bro this guy is so chill i am subscribing
Bro thank you SOO much dude, I was making an obby and I needed help making moving lasers and I struggled so much, but when I saw your simple tutorial you saved my life. Thank you so much!!!
Thanks mate, great demo! Fixed my jerky version!
Very good tutorial. Now that deserves a sub and a like. Keep it up!
Bro he is ACTUALLY hilarious and while teaching us how to do this :D :O
ty my dude good tut
holy shit dude this is so helpful, definently subbed 😭
Thanks!
Q: how do i make it so the character that stands on the moving platform can moves along with it without having to move your character as the platform moves?
Wow great video i really needed this in my obby.
good tutorial you explained the best
This works! Thanks!
This guy is so underated we all need to sub
Awsome work!
OMG TYSMMMMMMMMM
a tutorial on touching a certain part and then triggering the movement would be really nice, nice video.
200th sub!
Hey love the video! Gonna help out a lot. Just wondering, about the position. Instead of creating parts, could you say Position = x,y,z?
This is my old account but I actually wasn't creating parts where I said TweenService:create(), I was creating a tween, which just smoothly moves the part. Also thanks!
@@lanquandude I think he's asking if you could make a script that could see if it has reached it's certain position it's supposed to go, and go back to it's original position. This means that if its at it's original spot, it'll move to that other position, and when it sees if it's at that certain position, it will go back to it's original position, repeating the same stuff over and over again.
Nice tutorial and thanks for explaining so well, I have watched so many other ones but none explained it as well as you did. Keep up the great work 😁
thank you sir!
im your 40th subscriber
Thank you!
can a similar method to this be used to extend / scale a part smoothly? trying to make a laser pointer and the laser part would need to extend depending on the distance its going.
Thank you
dude, 2.5k views and 26 subs? I OUGHTA SUB FOR THIS, content quality
Thanks!
this is very helpful but how do i make the part only move for specific player, because im trying to make a zombie obby where at the end a helicopter came and start moving toward the winning/safezone area so people that still playing didnt see the helicopter left and never coming back
Can you put the script in the description or in the comments please it would help out a lot! And you earned a new subscriber! 👌👍
THATS MY KIND OF HUMOR
thx
Hey lenrain this is a good tutorial but Can you make another one?
I am making a crossy road game in roblox and I need the cars to go to one side, teleport back to the beggining and repeat.
Would this be possible?
Okay, I probably will for the next tutorial.
@@lenrainnn Wow thanks!
@@lenrainnn im trying to do the same thing but with a train/metro, like in the background like 5 and 5 minutes, if u do i will put the credit in my map pls!
ty
Please make a tutorial on how to do when you touch a part it moves to where you want it
i want to do this with a model, how can i do this?
Hii! Iam trying to do a game there, can you help me with scripts?
Iam really good at design
it didn't work because it keeps saying i have "tweenservice:create property named 'position' cannot be tweened due to type mismatch (property is a 'vector3', but given type is 'instance'", can you help me with the problem here?
What did you type for put the next script
How do i change the script so that it spawns at the start then goes to end and then respawns instead of going back and forth
do it when you touch a part!
how do i make it when touching the end End Position the part teleport to the start position
im trying to make a elevator with this and it doesnt work do you know how i could try to fix this?
I would really appreciate a tut on how to activate the part moving, Could you please do that?
With a button?
Sensor please.
@@InflatedBananaYeah I could do that.
can you send the full script?
video idea = camera locked on head
Hey there, im trying to make a grouped model go Up and down. Its a leaderboard. But it eont move. Ive tried using linear but to no avail.
In the model's properties go down to PrimaryPart, click it and select the main part of the model and then put the script into the model and then make the primary part go up, also weld all of the parts together.
does it work with models?
yo that was really easy to follow :D :) but I got an error :C I don't think its your fault, because the error didn't say anything bad about the code, it just said this: "TweenService:Create property named 'Position' cannot be tweened due to type mismatch (property is a 'Vector3', but given type is 'Instance')" It kind of reminds me like downloading something on phone that can only be downloaded on PC. Do you know how to fi xthis?
Sorry, there is one more line on line 5 and 6, after "EndPosition" on line 5 Just put ".Position", same with "StartPosition" on line 6. There was a cut in the video that confused a lot of people. Which is why I created a new video. If it still doesn't work let me know.
@@lenrainnn wow thanks :D :)
@@LensLuxify No problem.
Please someone give me the same script but it you need to touch a part in the workspace for the moving thing to move ONCE
what if the object is grouped?
how do I do no easing style I get an error if i dont write enum.easingstyle.The easting style
please make when you touch it makes two moving parts move
when i did that, my character started moving back and forth, not the platform :(
can u do smooth scaling
i am the 27th comment now :D
Thanks!
How do I make it teleport back?
When I run the game with this script it says on the script analysis that it was “unable to cast dictionary to tweeninfo” on the script:5
Make sure that on line 3, Enum.Easing Style is before Enum.Easing Direction
@@lenrainnn it is
what is music name?
Can you do a tutorial when you click a button, the part moves and when you click it again it goes back to the same position before?
How can i make it to where it moves but doesnt go back and fourth but it stops moving at the end position?
local Tweenservice = game:GetService("TweenService")
local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0)
local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.End.Position })
local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.Start.Position })
TweenToEnd:Play()
TweenToEnd.Completed:Wait()
TweenBack:Play()
TweenBack.Completed:Wait()
removed while true do and end
Mine won’t work
i watched yours because you have a mic and you dont put annoying music buddy. dont push it
can`t you just copy paste that code in description so we don`t need to write
Guys help. Can someone tell me how to make the part wait a certain amount of time and then move up. Only up!. I can't find any video that will help me with this. There are only those where the part moved back and forth continuously, but I need it after a while and in one direction! Please help me. Write a script or give a link to a video.
just put a wait(5) in between the end position and start position, then move the end position over the start position
local Tweenservice = game:GetService("TweenService")
local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0)
local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.End.Position })
local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.Start.Position })
while true do
TweenToEnd:Play()
TweenToEnd.Completed:Wait()
wait(2) -- change this number to control how long before it moves again
TweenBack:Play()
TweenBack.Completed:Wait()
wait(2) -- change this number to control how long before it moves again
end
Hi! I have a question, how d you fix the glitch where the part actually is in the same position as the end and start points?
Is the part anchored?
@@lenrainnn Yes, the problem for me is that, it moves to the position of the points, but it doesn't rotate. I am trying to make a lootbox that opens when the proximity prompt is triggered. Is there any solution?
@@TechnoBloxYT Yep, on lines 5 and 6 change ".Position" to ".CFrame". Position is well, just the position, CFrame is position and rotation. If it still does not work lmk.
@@lenrainnn alr lemme try it.
@@lenrainnn it works! thank you so much!
How do you make so once it gets to the end it stops instead
local Tweenservice = game:GetService("TweenService")
local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0)
local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.End.Position })
local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo, {Position = game.Workspace.Start.Position })
TweenToEnd:Play()
TweenToEnd.Completed:Wait()
TweenBack:Play()
TweenBack.Completed:Wait()
Can you paste the script in this comment pls reply today
doesnt work for me, i followed every step, copied exacly the script, and still it didnt work.
No longer works for those wondering. I even changed it to local script & no movement
Use the newer video I might even make a new one soon, I haven't really been uploading but I want to start uploading more videos soon.
@@lenrainnn i did & for some reason it’s not working either. I’ve checked literally everything but either way your videos help out a lot. And yes please upload more because im still learning scripting 😅
@@xJayPlayz Alright Ill just make a new video on it eventually.
when i moved the part it just yeeted
Make sure its anchored
@lenrainn does the script not work anymore?
It works for some people and for some people it doesn't, so I don't really know anymore, but I'm planning on making a new video with a moving part you can actually stick too and not just fall off.
at 5:53 he cut out the part where he changed lines 5-6, and since the lines were too long to fit the script screen, unfortunately we don't know what it is. :(
Check the pinned comment
Its Position
how to make it so it only moves when you are in a certain place?
Like when you hit an invisible wall to activate it?
@@lenrainnn for example
how can u have adds when u only have 58 subscribers?
to be honest I have no idea, I noticed that and I'm really confused. Okay, now I just looked it up and it says "If your video contains content to which you don't own all necessary rights, the rights holder may have chosen to place ads on it." so that might be why.
@@lenrainnn oooo ok then lol thanks for the info
Ik it dosent work for yall cuz at 5:53 He changed lines So Dont waste yall times
Look at the pinned comment.
3:43
Same!
it is not working for me
This is my other account, sorry it didn't work but make sure you didn't spell anything wrong, it is very sensitive.
either im really bad at coding or this aint working
Sorry, there is a little cut that didn't show two lines of code. Just take a look at the new video on my channel.
idk why but it doesent work for me
didn't work for me
Look at the pinned comment, thats still confusing to some people so if you still don't understand the pinned comment just watch my newest video where I fix that issue.
Doesn't work lol. everything is spelled correct.
To anyone who sees this: Don't waste your time, find a tutorial that works
Look at the pinned comment, also you didn't spell it correctly because it worked for me.
1:31
Line 3 is the same as yours, but its showing incorrect for me.
TweenService:Create property named 'Position' cannot be tweened due to type mismatch (property is a 'Vector3', but given type is 'Instance')
And heres the code I used:
local tweenToEnd = tweenService:Create(script.Parent, tweenInfo, {Position = game.Workspace.EndPart})
Try the newer tutorial, if that doesnt work either Im planning on making a new version soon, that players can actually stand on and not just fall off.
ew 😂 that was funny
btw here's a new sub for thiss
@@kikiogoher.5011 Thanks!
Lol
x=10 y=...any z=...any
why tf doesn't it work >:(
Read the pinned comment
bro is watching the tut for the tut imagine
What?
It did not work
Use the newest moving part tutorial. I made an updated version.
It doesn't work i checked everything it is all the same! 🥵🥵😡😡
dosent work
yes, it's very trash, it's the only one that worked
if its so trash then I'm not actually gonna watch it
0/10, copied everything, doesn't work
Works in the video and for a lot of people in the comments, so you made an error somewhere.
I found out this can work with co-rods: local TweenService = game:GetService("TweenService")
local TweenInfo1 = TweenInfo.new(400, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false,0)
local TweenToEnd = TweenService:Create(script.Parent, TweenInfo1, {Position = Vector3.new(123,15,0)})
local TweenBack = TweenService:Create(script.Parent, TweenInfo1, {Position = Vector3.new(123,15,-66)})
while true do
TweenToEnd:Play()
TweenToEnd.Completed:Wait()
TweenBack:Play()
TweenBack.Completed:Wait()
end
Workspace.MovePart.Script:1: Expected ')' (to close '(' at column 38), got 'TweenService' this fail messega coming at me what did i do wrong
i fixed it now but it doesnt work
Read the pinned comment or watch the updated video on a moving part.
local Tweenservice = game:GetService("TweenService")
local Tweeninfo = TweenInfo.new(5, Enum.EasingStyle.sine, Enum.EasingDirection.InOut, 0,false,0) -- set this to the number you want and the style you want
local TweenToEnd = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.EndPosition.Position} )
local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.StartPosition.Position} )
while true do
TweenToEnd:Play()
TweenToEnd.Completed:Wait()
TweenBack:Play()
TweenBack.Completed:Wait()
end
hope this helps 🤗
mine does not work do you see a problem?______________________________________________________________________________________________________________________________________________________ local Tweenservice = game:GetService("TweenService")
local Tweeninfo = TweenInfo.new(6, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0,false,0)
local Tween = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.EndPosition.Position})
local TweenBack = Tweenservice:Create(script.Parent, Tweeninfo {Position = game.Workspace.StartPosition.Position})
while true do
Tween:Play()
Tween.Completed:Wait()
TweenBack:Play()
TweenBack.Completed:Wait()
end
also thanks for the code i didnt have to type it all the way this way lol
line 3 you put a 6 but u need to put a 5
still at line 3 you put .since but it was .Bounce
i hope this forking script work here is the type
local tweenservice = game:getservice(''tweenservice'')
local tweeninfo = tweeninfo.new(5, enum.eastingstyle.sine, enum.easingdirection.inout, 0,false,0)
local tweentoend = tweenservice:create(script.parent, tweeninfo, {postiton =game.workspace.end position.po
local tweenback = tweenservice:create(script.parent, tweeninfo, {postiton =game.workspace.end position.p
while true do
tweentoend:play( )
tweentoend.completed:wait( )
tweenback:play( )
tweenback.completed:waited( )
end FORK IT DIDN'T WORK I THINK
FORK IT DIDN'T WORK
It did not work
Yeah look at the pinned comment and if you still don't understand that then watch the new video.