Тёмный

How To Make A NPC Follow You In Roblox Studio! [AI Scripting] 

AVR
Подписаться 268
Просмотров 6 тыс.
50% 1

Script In Comments!
#Roblox #robloxstudio #gamedevelopment #tutorial #trending

Игры

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

 

12 фев 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials 4 месяца назад
Script: local players = game:GetService("Players") local stopStudAmount = 4 local hrp = script.Parent.HumanoidRootPart local function Follow() local distance = 15 for _, player in ipairs(players:GetPlayers()) do local char = player.Character or player.CharacterAdded:Wait() local target = char:FindFirstChild("HumanoidRootPart") if target then if (target.Position - hrp.Position).Magnitude
@CaptainL3v1
@CaptainL3v1 4 месяца назад
thanks
@EnsarNas-
@EnsarNas- 4 месяца назад
Ok
@Donkanroblox
@Donkanroblox 3 месяца назад
I cant copy it
@CaptainL3v1
@CaptainL3v1 3 месяца назад
@@Donkanroblox how come
@Donkanroblox
@Donkanroblox 3 месяца назад
How do I copy the script
@astrorett
@astrorett Месяц назад
This was super helpful! Thank you
@novideoperson8930
@novideoperson8930 3 месяца назад
I love this! It's really helpful :D One problem I have though is that when I try it for R6, the walking animation doesn't play
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials Месяц назад
use an animationTrack if you havent
@trollslap1540
@trollslap1540 13 дней назад
OMG I BEEN LOOKING SO LONG FOR A SCRIPT THAT WORKED WITH A RESPAWN SCRIPT I CAN FINALLY MAKE NPCS LETS GOOO THANK YOU BRO
@spiltsoda
@spiltsoda Месяц назад
Thanks for the vid it really helped!! How would you make a script that made an npc follow another specific npc instead of a player??
@Creepystutorials
@Creepystutorials 26 дней назад
What Creative Exercise Remix is that? It sounds so good lol
@doomsdomain
@doomsdomain Месяц назад
It doesn't work with an R15 npc. How would I fix that?
@t3rraf0rm_
@t3rraf0rm_ 16 дней назад
hi dude how to make it stop following me because im using this for a quest
@JustWarriorKitty
@JustWarriorKitty 19 дней назад
i need help.i want it to jump,but how?
@mend9
@mend9 2 месяца назад
im using a custom rig, but anims dont appear, how would i fix?
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials 2 месяца назад
you may need to spawn a rig and take the animate script from there
@marvelman762
@marvelman762 Месяц назад
its not working for me
@foxgaming6259
@foxgaming6259 3 месяца назад
It doesn’t animate when moving. How do I fix this?
@Inagalaxyfarfaraway.-er7xk
@Inagalaxyfarfaraway.-er7xk 3 месяца назад
he just made this video and forgot about it. hes never gonna respond
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials 2 месяца назад
you may need to spawn a rig and take the animate script from there
@therealone19jshak
@therealone19jshak 2 месяца назад
​@@Inagalaxyfarfaraway.-er7xknice one
@RAS2525
@RAS2525 4 месяца назад
How do I make it so it follows only one user
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials Месяц назад
you can say: local user = "YourUserName" and then check if the user is in the game later on in the script.
@dingdong196
@dingdong196 4 месяца назад
tea
@Inagalaxyfarfaraway.-er7xk
@Inagalaxyfarfaraway.-er7xk 3 месяца назад
it doesn't animate whilst moving though. any fix?
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials 2 месяца назад
you may need to spawn a rig and take the animate script from there
@Riley716
@Riley716 2 месяца назад
@@AVRDevelopmentTutorials I'm using a default rig, and it's not animating.
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials Месяц назад
@@Riley716 make sure you are using your own animation, roblox doesnt let you use anybody else's
@tsakalos1917
@tsakalos1917 2 месяца назад
thats ez
@greatmandan141
@greatmandan141 4 месяца назад
stopstudamount is useless
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials 4 месяца назад
yeah, thought i was gonna use it in the code
@kobexfreakz
@kobexfreakz 4 месяца назад
Do you have discord?
@AVRDevelopmentTutorials
@AVRDevelopmentTutorials 4 месяца назад
yeah; beandrblx
Далее
Can 6 DEVS Make an ANIME Game Without Communicating?
10:52
How to make simple NPC dialogue in Roblox Studio
14:38
100❤️
00:19
Просмотров 1,5 млн
I Asked AI To Make Redstone For Me
11:16
Просмотров 6 млн
How to Make Pets That Follow You in Roblox Studio
9:08
Can I Make a VIRAL Roblox Game in 1 Hour?
15:16
Просмотров 4,4 млн
How I Ruined this Superpower Server
20:53
Просмотров 2,9 млн
Advanced Civilian AI | Roblox Showcase
2:13
Просмотров 305 тыс.
How to Make an Enemy NPC in Roblox Studio 2024!
6:57
How To Make A Car In Roblox
8:41
Просмотров 191 тыс.
Can 6 DEVS Make a STORY Game Without Communicating?
15:32
VALVE Починили Ранги в CS2! / PUBG
18:19