Тёмный

How To MAKE a Moving Platform in Roblox! 

Rustysillyband
Подписаться 24 тыс.
Просмотров 3,4 тыс.
50% 1

Хобби

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@rustysillyband
@rustysillyband 3 месяца назад
Since this code is complicated, I will post it here incase you run into an error. However, this is not an excuse to just copy the code. Please follow the tutorial and learn from it. Thanks! Code: --{{ SERVICES }}-- local Players = game:GetService("Players") local RunService = game:GetService("RunService") --{{ VARIABLES }}-- local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local Function local lastPlatformCFrame --{{ FUNCTIONS }}-- local function onCharacterDied() Function:Disconnect() end local function onHeartbeat() local rootPart = character:WaitForChild("HumanoidRootPart") local raycastParams = RaycastParams.new() raycastParams.FilterDescendantsInstances = {character} raycastParams.FilterType = Enum.RaycastFilterType.Exclude local raycastResult = workspace:Raycast(rootPart.Position, Vector3.new(0, -50, 0), raycastParams) if raycastResult and raycastResult.Instance.Name == "Platform" then local platformCFrame = raycastResult.Instance.CFrame if lastPlatformCFrame then local rel = platformCFrame * lastPlatformCFrame:inverse() rootPart.CFrame = rel * rootPart.CFrame end lastPlatformCFrame = platformCFrame else lastPlatformCFrame = nil end end character:FindFirstChild("Humanoid").Died:Connect(onCharacterDied) Function = RunService.Heartbeat:Connect(onHeartbeat)
@FOXeliterblx
@FOXeliterblx Месяц назад
its not working for me
@ABCDtf2
@ABCDtf2 Месяц назад
@@FOXeliterblx try use same names of blocks
@naiistired
@naiistired Месяц назад
what if i wanted to make another platform move? like let's say Platform2? how would i modify this?
@SaucyImposter
@SaucyImposter 3 месяца назад
Tysm! I looked at a bunch of other tutorials on moving platforms but none of them worked. But this one worked!
@Lakshanth102
@Lakshanth102 3 месяца назад
Rusty, i wanna say thanks to you for the tycoon series, am so excited when will my tycoon game get completed. Everything worked, i added walls,more powerful dropper and many other things.idk why many people get unwanted errors but mine was perfect, animation worked, bugs got fixed.. the only mistake i made was, i forgot to update the tycoon in server storage, which made me confusing😅
@1friendlynoob
@1friendlynoob 3 месяца назад
I knew a plugin called something like “scene builder” it could make a lot of types of different effects on parts like levitating or kill part
@avyukth3727
@avyukth3727 2 месяца назад
Thanks so much man, the structure of your code helped me to resolve an error I was trying to fix for 2 months. Keep it up!
@lakentrkfudge
@lakentrkfudge 7 дней назад
I’m curious as to why you didn’t just use BodyVelocity or constraint movers like VectorForce or LinearVelocity. At that point, scripting wouldn’t be necessary since platforms that move using constraint movers already move the player along it (unless you wanted the platform to move forward and back like in the video)
@codernikkolas-sy5hm
@codernikkolas-sy5hm 3 месяца назад
Good Video rusty, I have a similar movement part local TweenService = game:GetService("TweenService") local part = script.Parent local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true) local newPosition = part.Position + Vector3.new(0, 10, 0) local tween = TweenService:Create(part, info, {Position = newPosition}) tween:Play()
@WesKingVideos
@WesKingVideos 27 дней назад
Thank you!! Great tutorial, very helpful
@DavidWinstead
@DavidWinstead 3 месяца назад
Great tutorial on moving platforms, thanks for sharing!
@MrChicken-db1ms
@MrChicken-db1ms Месяц назад
idk why but it dosent even move for me?
@kpeti1418
@kpeti1418 13 дней назад
is there a way to make the player move along with a part thats animated?
@Gojobacon69
@Gojobacon69 3 месяца назад
I love how you up so frequently
@morc_o
@morc_o 25 дней назад
Unfortunately, BodyVelocity was removed, meaning this is probably the only way to make moving platforms for obbies.
@LyricChimera684
@LyricChimera684 6 дней назад
I subbed
@DragonDeen253
@DragonDeen253 17 дней назад
this is an awesome video its really helpful but i see a few other people having the same issue as me of typing it perfectly and it still not working do you have any ideas to a common mistake we might be making I've tried several times and even copied your code comment but still nothing, thank you.
@ivanshalygin3693
@ivanshalygin3693 Месяц назад
I did everything step by step, and it doesn’t work, could something have changed and depend on the version of roblox
@Noobyplayzgames
@Noobyplayzgames 3 месяца назад
can you make a tutorial on how to animate swords?, like how you did with guns
@demonzvrms9303
@demonzvrms9303 3 месяца назад
can you make one showcasing it working for multiple people? or will it already work for multiple people
@Rexgamesofc
@Rexgamesofc Месяц назад
It didn't work with me
@-stars.and.raindrops-
@-stars.and.raindrops- 14 дней назад
1000 errors for me?!
@Donasaurio
@Donasaurio Месяц назад
BRO THANK YOUU I LOVE U!!!!!!! LIKE AND SUB FRL
@Ray_TheMerchant1342
@Ray_TheMerchant1342 3 месяца назад
How to moving platform 💀
@ShreyashShahi
@ShreyashShahi 3 месяца назад
can you test my games? user:Testingacc691 games:Slime attack!!! , Persent obby etc and also can you recreate the tycoon series because it didnt work.Can you just put the scripts in the description?
@eminent9356
@eminent9356 2 месяца назад
Hey great video the local script works but for some reason the tween script isn't working for me or i typed it wrong even tho reckecked it numerous times so i used this tween script then it works: local TweenService = game:GetService("TweenService") local Info = TweenInfo.new( 5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, math.huge, true, 0 ) local Goals = { CFrame = game.Workspace.Endpoint.CFrame } local Move = TweenService:Create(script.Parent, Info, Goals) wait(1) Move:Play()
@user-in2im1rw7l
@user-in2im1rw7l 3 месяца назад
Cool tutorial, but realy complicate code. Typed it by myself two times and it wasn`t worked . Then I cipied your code in comment and it start working
Далее
Can I Make a VIRAL Roblox Game in 1 Hour?
15:16
Просмотров 5 млн
Programming Rarity is Harder Than You Think
12:31
Просмотров 249 тыс.
I tried to make a Valorant AI using computer vision
19:23
The biggest lie in video games
15:18
Просмотров 1,8 млн
Stop Hackers / Exploiters - Roblox Scripting Tutorial
36:04
Essential UI Tips & Tricks | Roblox Studio
9:19
Просмотров 48 тыс.
Can I Make a Roblox Game With ZERO Code?
12:02
Просмотров 66 тыс.
I Asked AI To Make Redstone For Me
11:16
Просмотров 7 млн
I tried Discord Bot Makers...
14:19
Просмотров 120 тыс.
I Spent 24 HOURS Building my Roblox Game!
13:30
Просмотров 471 тыс.
Why Roblox Studio is Confusing For Beginners
15:22
Просмотров 111 тыс.
Ламборгини Vs Рэндж Ровер
0:32
Просмотров 1,2 млн
мы в телеграмм - hahalivars
0:17
Просмотров 1,5 млн
Never laugh at beginners !! 🙏
0:15
Просмотров 6 млн