Also for anybody that wants a WORKING safe zone like in nicos nextbot. The script will be in the replys, also its labelled for anyone that is clueless with scripting.
-- Roblox services local PhysicsService = game:GetService("PhysicsService") local Players = game:GetService("Players") local npcModel = script.Parent -- Setting up names for the collision groups. PhysicsService handles everything with -- the name of the group rather than referencing the group itself, so saving these -- in strings helps keep things consistant local playerGroup = "Players" local npcGroup = "NPCs" -- Create the collision groups and set them to not collide with each other local function collisionGroupExists(groupName) local groups = PhysicsService:GetCollisionGroups() for _, group in ipairs(groups) do if group.name == groupName then return true end end return false end if not collisionGroupExists(npcGroup) then PhysicsService:CreateCollisionGroup(npcGroup) end if not collisionGroupExists(playerGroup) then PhysicsService:CreateCollisionGroup(playerGroup) end PhysicsService:CollisionGroupSetCollidable(npcGroup, playerGroup, false) -- Helper function to recursively set the collision group on an object and all of -- its children local function setCollisionGroupRecursive(object, group) if object:IsA("BasePart") then PhysicsService:SetPartCollisionGroup(object, group) end for _, child in ipairs(object:GetChildren()) do setCollisionGroupRecursive(child, group) end end -- Function called when a player character joins the game local function onCharacterAdded(character) -- Put all of the current parts of the model into the player collision group setCollisionGroupRecursive(character, playerGroup)
-- Put any part that gets added to the character later into the collision group character.DescendantAdded:Connect(function(descendant) if descendant:IsA("BasePart") then PhysicsService:SetPartCollisionGroup(descendant, playerGroup) end end) end -- Function called when a player joins the game local function onPlayerAdded(player) player.CharacterAdded:Connect(onCharacterAdded) end -- Sets the collision group of Blue to the npc group setCollisionGroupRecursive(npcModel, npcGroup) -- Bind PlayerAdded event to onPlayerAdded Players.PlayerAdded:Connect(onPlayerAdded) -- Make sure to add any characters that are currently in the game -- to the collision group (otherwise the above event wouldn't catch -- them for _, player in ipairs(Players:GetPlayers()) do onPlayerAdded(player) end
@@liminality9223 thank you so much for this script it was so hard finding a good script for safe zones and you helped me out so much, works perfectly!!
Can you make the mall map from nicos nextbots all of the models I find are half of the map and not all of it and some of the areas on the map don’t yet you go in them
Use Archimedes2 it's a good plugin You should also have a texture pack (Can't give one right now) For assets you can use free models(Completely fine if you tune it properly)
When I get killed by the bots they stay in the spot where they killed me. I dont know if they are stuck or they are "attacking my dead body" Is there a fix to this?
hey sqzuid instead of using stair fix part u added to ur updated version of nextbot module why dont u just add wedge on stairs and make it invisible the bot climbs up smoothly and fast.
@@itsyoungie this is old comment but dont use scale u just select the attachments and move them it will make the image big or small or wide ez it also has image tilting when u do that thats cool
@Schematization (sqzuid) Hey if you want to give the nextbots the ability to look at you from any directions try using BillboardGui and then add an ImageLabel inside of BillboardGui then set the ExtentsOffset to (0,4.3,0 or anything you like) All of this has to go in HumanoidRootPart.
sometimes the collision groups script doesn't work. does not fire. collision groups not created (ill probably solve it soon so idk) solved it - plr already a group
Bro pls make part 1.3 and explain how to add more bots and make them not stay still until they see the target, cuz i tried all methods and nothing, i used another script for now, but ill be glad to see how to add more bots and make them move on pathfinding
For people who want to make a safe zone, here is an easier version of it. Basically, have a part and thats the AREA for the safe zone, so make it big. Make it can collide false. Add the part a script: script.Parent.Touched:Connect(function(hit) local character = hit.parent local humanoid = character:FindFirstChild("Humanoid")
if humanoid ~= nil and game.Players:GetPlayerFromCharacter(character)then humanoid.MaxHealth = math.huge humanoid.Health = math.huge end end) script.Parent.TouchEnded:Connect(function(left) local character = left.Parent local humanoid = character:FindFirstChild("Humanoid")
if humanoid ~= nil and game.Players:GetPlayerFromCharacter(character)then humanoid.MaxHealth = 100 humanoid.Health = 100 end end) Once you done this and play it, the nextbot will go to you, but your health is inf and cant kill you unless you go outside of it. Thank me :)
Can you make it so that when you enter the Safe zone that bot is unable to detect your location and either just goes for a different player outside of the Safe zone or just goes to random locations outside the Safe zone? Basically when you enter the Safe zone the bot thinks you don't exist and changes its pathfinding, unless you leave the Safe zone obviously.
@@AghastFilms hmm very tricky to script that cause idk about the pathfinding about roblox. However, if you dont want him to literally go to you, make the nextbot’s hitbox bigger and create a roof wall to stop him
You can use magnitude to base the transparency of the chase static But to animate it Idk Dont really recommend since the people are going to call your game an nico nextbot clone
I think i may have the Solution you're looking for go to the nextbot then go to both of the (Ai Chase scripts) And put zombie damage to 0 in both scripts dont remove the torsos the bot will get buggy and be in the ground.
ehh... the nextbots are a little bit too fast, and its still like v1 but worse so, i might keep the v1.1 instead, keep making tutorial videos! (why i didnt change walkspeed? im too lazy lol)
Hello, I have a problem and it is that the bot behaves more strangely in version 1.2 than in 1.1, it gets stuck easier and sometimes it goes after the player by the longest route, I feel that the artificial intelligence of version 1.1 was better. Or is there any solution?
@@Graphik ah thanks btw finally found the original gmod map but still thanks for the great tutorials😉 ps: at the gmod physics video you should update it so i can finally finish my nextbots map
@@Graphik maybe there is a way where you can make the bot try to detect the player, instead of going some other way instead of going thru the door. at least make comment with instructions i know you where tellling me lot of things how to do it . i don't want to be rude,just pls or else my game can not be complete
add a killbrick above the player on the safezone so nextbot dies and not the player, and change all of the parts to cancollide false if it doesnt work.
hii made my nextbot game but there is just 1 problem the nextbots are going faster than light edit : nvm i fixed it i just made the nextbot walkspeed down to 400 instead of 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
Also for anybody that wants a WORKING safe zone like in nicos nextbot.
The script will be in the replys, also its labelled for anyone that is clueless with scripting.
-- Roblox services
local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService("Players")
local npcModel = script.Parent
-- Setting up names for the collision groups. PhysicsService handles everything with
-- the name of the group rather than referencing the group itself, so saving these
-- in strings helps keep things consistant
local playerGroup = "Players"
local npcGroup = "NPCs"
-- Create the collision groups and set them to not collide with each other
local function collisionGroupExists(groupName)
local groups = PhysicsService:GetCollisionGroups()
for _, group in ipairs(groups) do
if group.name == groupName then
return true
end
end
return false
end
if not collisionGroupExists(npcGroup) then
PhysicsService:CreateCollisionGroup(npcGroup)
end
if not collisionGroupExists(playerGroup) then
PhysicsService:CreateCollisionGroup(playerGroup)
end
PhysicsService:CollisionGroupSetCollidable(npcGroup, playerGroup, false)
-- Helper function to recursively set the collision group on an object and all of
-- its children
local function setCollisionGroupRecursive(object, group)
if object:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(object, group)
end
for _, child in ipairs(object:GetChildren()) do
setCollisionGroupRecursive(child, group)
end
end
-- Function called when a player character joins the game
local function onCharacterAdded(character)
-- Put all of the current parts of the model into the player collision group
setCollisionGroupRecursive(character, playerGroup)
-- Put any part that gets added to the character later into the collision group
character.DescendantAdded:Connect(function(descendant)
if descendant:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(descendant, playerGroup)
end
end)
end
-- Function called when a player joins the game
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterAdded)
end
-- Sets the collision group of Blue to the npc group
setCollisionGroupRecursive(npcModel, npcGroup)
-- Bind PlayerAdded event to onPlayerAdded
Players.PlayerAdded:Connect(onPlayerAdded)
-- Make sure to add any characters that are currently in the game
-- to the collision group (otherwise the above event wouldn't catch
-- them
for _, player in ipairs(Players:GetPlayers()) do
onPlayerAdded(player)
end
Any problems with this ask me.
@@liminality9223 thank you so much for this script it was so hard finding a good script for safe zones and you helped me out so much, works perfectly!!
ey ima give u a shotout
@@Graphik but how do u make a save zone its just a code :/
Can you make a tutorial on how to make a death bear show the nextbots can’t pass it/they will die if they touch it
Thanks For Making Me Laugh Again!
Also This Part Tho- 💀 3:00
In 0:18 i was confused, he was either talking bout this recording or the roblox ones bc i can see those red lines appear randomly
I wanted know if animated nextbots are possible with the template?
i think so, ill try make a tutor
When u were singing saul at the end of the videi and u git a voice crack u made me lwugh hard 😂
When is v1.3 coming out
not sure
Also will be cool if the bots fling you across the map like in nico's nextbots.
im trying to make that
Can you make a tutorial on making a simple map for the the nextbots
Ayo man, what editing software you use? Its epoc.
davinci resolve 18
Am not into that lol, can you help me with development? Also can you give me any ways to contact you in person?
@@Graphik Please respond lol i am on phone rn.
make a "chase static" so you will know the bot is besides you
please
Can we just put a sound
@@RandomguySNNS he means a static screen when its near us
@@saintswore What if someone joined then he might call our game a Nico's nextbots ripoff
theres like literal 100+ copies of that game.
There is also a bhop script on the roblox devforum by SnarlyZoo called (Bunny Hoppy Movement).
Really Recommend it.
Works with r6 and r15.
@@Unchained15 well how do i make it work
@@scout_gaming132 Add it to StarterPlayerScripts.
@@Unchained15 k
Can you make a video on how to make the glitch when you get close to a next bot
k
Do u have any way to make Nextbots change randomly, like in Nicos Nextbots?
like its image?
@@Graphik yeah, what I mean by "like Nicos Nextbots" is how obunga may randomly be switched out for Quandale
2:36 its making me laugh very hardly😂
Can you make the mall map from nicos nextbots all of the models I find are half of the map and not all of it and some of the areas on the map don’t yet you go in them
Can you make a tutorial on how to make a map with easy steps
Use Archimedes2 it's a good plugin
You should also have a texture pack (Can't give one right now)
For assets you can use free models(Completely fine if you tune it properly)
Yo if you continue making tutorial that other people cant you might get pupular good luck and thanks for this video
When I get killed by the bots they stay in the spot where they killed me. I dont know if they are stuck or they are "attacking my dead body" Is there a fix to this?
delete body parts when dead in serverscriptservice is a fix
hey sqzuid instead of using stair fix part u added to ur updated version of nextbot module why dont u just add wedge on stairs and make it invisible the bot climbs up smoothly and fast.
yea srry
@@Graphik BRO I JUST FOUND A AY HOW TO MAKE A SMARTEST NEXTBOT but not telling here
btw can u make nextbots smarter like in nico's nextbots? btw used ur proximity doors AND ITS REALLY GOOD.
u can use the scale option
@@itsyoungie this is old comment but dont use scale u just select the attachments and move them it will make the image big or small or wide ez it also has image tilting when u do that thats cool
You should make it so the bots can reset if they get stuck on stuff. It can also solve the issue with the bots slowing down.
i domt know how atm, dp you?
@@Graphik Use path.blocked in pathfinding
If not reliable use repeat wait until instead
for some reason my script im testing rn doesnt work with that idk why.
@Schematization (sqzuid) Hey if you want to give the nextbots the ability to look at you from any directions try using BillboardGui and then add an ImageLabel inside of BillboardGui then set the ExtentsOffset to (0,4.3,0 or anything you like) All of this has to go in HumanoidRootPart.
@berserker_hvizo Alright I'll let you know when I find away to make it go from being small to being a normal sized nextbot.
@berserker_hvizo Nice game btw.
best mouth music ever
Can you make a video on how to tap to respawn
for yourself, or the nextbot
@@Graphik hes talking about the player, not the nextbot. thats weird anyway
@@Graphik for when you die you have to tap the screen to respawn
sometimes the collision groups script doesn't work. does not fire.
collision groups not created (ill probably solve it soon so idk)
solved it - plr already a group
Suggestion:
Make a working FAST hinge door AND make it so the nextbots can open it as well PLEASE
YES HES BACK
Bro pls make part 1.3 and explain how to add more bots and make them not stay still until they see the target, cuz i tried all methods and nothing, i used another script for now, but ill be glad to see how to add more bots and make them move on pathfinding
like um, i made maze map and they moving some time on pathfinding and then they're staying still, idk why it happens actually
Does it have a good path finding mechanism?
use v1.3 or this but in my opinion thhe latest update is better.
once i used someones nextbot kit and set the speed to 1500 ps : its not your nextbot kit but someone elses nextbot kit
could you do an update to the sprint bar so it can do the crouch and crouch slide?
sure
@@Graphik YES PLEASE
how do you do the effects when it comes closer just like in nico's game?
um can i put multiple nextbots? in because i need a lot
yea broski
hey man could you make a video on how to jumpscare the nextbot?
Could you add in the next one if the player dies all nextbots respawn
there are like 5 nextbots when i only want 1
uh what
Can u add jumpscares too them please :)
YUH
can you make the nextbots wander on v1.2 ?
For people who want to make a safe zone, here is an easier version of it.
Basically, have a part and thats the AREA for the safe zone, so make it big. Make it can collide false. Add the part a script:
script.Parent.Touched:Connect(function(hit)
local character = hit.parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid ~= nil and game.Players:GetPlayerFromCharacter(character)then
humanoid.MaxHealth = math.huge
humanoid.Health = math.huge
end
end)
script.Parent.TouchEnded:Connect(function(left)
local character = left.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid ~= nil and game.Players:GetPlayerFromCharacter(character)then
humanoid.MaxHealth = 100
humanoid.Health = 100
end
end)
Once you done this and play it, the nextbot will go to you, but your health is inf and cant kill you unless you go outside of it. Thank me :)
yes
Can you make it so that when you enter the Safe zone that bot is unable to detect your location and either just goes for a different player outside of the Safe zone or just goes to random locations outside the Safe zone? Basically when you enter the Safe zone the bot thinks you don't exist and changes its pathfinding, unless you leave the Safe zone obviously.
@@AghastFilms hmm very tricky to script that cause idk about the pathfinding about roblox. However, if you dont want him to literally go to you, make the nextbot’s hitbox bigger and create a roof wall to stop him
is this better now? does it now chase u when its kills u ?
YEA
IT WORKS
next should be the bunnyhopping and sliding and anims
bruv you predicted the next vid noce job
@@Graphik sheesh
make chase static/shake
aight
You can use magnitude to base the transparency of the chase static
But to animate it Idk
Dont really recommend since the people are going to call your game an nico nextbot clone
@@basicallyjusttan7727 yeah
I have one problem when they kill me they stand there can u fix it?
yes same
bro gravity I put 50 and jump 3 and I'm jumping very high
How come the bot won’t detect through walls
use my v1.3
can you make a tutorial on a pushable doors including sound and animation when i push the door please
YUH
@@Graphik YUH
Like Nico's nextbots doors that you have to body slam for easier opening?
YES
"Literally does nothing"
460 lines of script:
Are you sure this is the new one? the monster script is Identical to the V1
i said, this is the same as the V1, with minor changes
why does the nextbot not move??? all it says is that the pathfinding script is too long. Someone please help!
yea it means your too far away, either go closer or, change the serach distance
Hello man. can you teach us how to port Garry's Mod maps to ROBLOX Studio?
question:the safe room works?
it does
why don't you already have 900 subs?
is there a way to make the nextbot deal no damage at all because i wand to make my own hitbox for it
I think i may have the Solution you're looking for go to the nextbot then go to both of the (Ai Chase scripts) And put zombie damage to 0 in both scripts dont remove the torsos the bot will get buggy and be in the ground.
4:46 beatbox
I made one game with this
can you fix the momentum script? you cant move on mobile
its for pc
Can u make the tutorial a movement system like nico’s nextbots
i will im actually working on it
ehh... the nextbots are a little bit too fast, and its still like v1 but worse so, i might keep the v1.1 instead, keep making tutorial videos! (why i didnt change walkspeed? im too lazy lol)
if its to fast change the walkspeed to 100
@@MangoeyYT nvm about that, its pretty fun actually
@@Windstair actually yeah
how can u make ur next bot bigger
go to image and scroll down, change the width 1 & 0 and curvesizss
Hello, I have a problem and it is that the bot behaves more strangely in version 1.2 than in 1.1, it gets stuck easier and sometimes it goes after the player by the longest route, I feel that the artificial intelligence of version 1.1 was better. Or is there any solution?
And send me your discord pls.
there isnt a solution because roblox pathfinding is terrible to work with
The bots all jumble up into the spot where they killed me
@@WisdomShrimp1 yeah, in order to fix that, use my “delete body parts when dead” script
@@Graphik for some reason it doesn't work for me, does the script not work for r15?
hos did you place the map????
just search ikea map
@@Graphik ah thanks btw finally found the original gmod map but still thanks for the great tutorials😉 ps: at the gmod physics video you should update it so i can finally finish my nextbots map
how to get map with the storage place
search in toolbox nicos nextbots map
@@Graphik and the full map? like the garage
How to make your screen in first person?
right now go into the player instance and change the camera to firstpersononly
How to make the bot knock out doors?
workin
on it
jumpscare pls
And how to make doblue doors?
go to my v1.1 vid, at the end
@@Graphik what timeing?
Version 1.2 out in 3 days???
it was the most buggy thing ever
the 1.1
@@Graphik fr, also can u help me with my game?
i tried to make it go tru the doors and it didn't work
collision group 3, works for me
@@Graphik maybe there is a way where you can make the bot try to detect the player, instead of going some other way instead of going thru the door. at least make comment with instructions i know you where tellling me lot of things how to do it . i don't want to be rude,just pls or else my game can not be complete
the sprint script with momentum doesnt work can u help
Did ya put it in startercharacter?
@@liminality9223 i forgot about that thanks lol
The Problem His How Can I Make The Nextbot Bigger???
Edit: Pls Answer
curvesize 1&0 and width 1&0, more info in my v1.1 video
how do you change speed
nvm
maps ?
How u import the map??
sorry for late response, ppl post it in the toolbox
Pls gmod health
how to add audio to nextbot?
check torso
ayo? new nextbot? im testing this, if its perfect, i will give another cool comment
sorry for so many updates, its so buggy
@@Graphik its ok sqzuid, u tried ur best
please teach menu :(
I hope my comment helps you improve this.
How do you make it killable
change maxhealth and health in humanoid (same number)
@@Graphik so both have to be the same number?
how do i add sound to it?
copy the sound id (only the number) and paste it in the sound id area in torso
for some reason the safe zone dont seem to work
add a killbrick above the player on the safezone so nextbot dies and not the player, and change all of the parts to cancollide false if it doesnt work.
@@Graphik OR you can use region3 and not kill the nextbot
Actually Just use Collision groups that would help
how do you change speed?
i mentioned it in the video, scroll down under humanoid
how to sound
copy sound id from a sound by right clicking on the sound in toolbox and pasting only the number in the sound id textbox
map how?
nicos nextbot search in toolbox under models
How to make it slow
humanoid walkspeed
@@Graphik ok
@@Graphik How to make it bigger? i tried changing the curvesize and width it just become a mess
@@Graphik Also i turned it on so they can jump but they can't
@@Graphik also where do i put the momentum script
And another one🤣 3:02
hii made my nextbot game but there is just 1 problem
the nextbots are going faster than light
edit : nvm i fixed it i just made the nextbot walkspeed down to 400 instead of 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999