Get all of my project files on my patreon: bit.ly/3SOBP6J JOIN THE DISCORD! discord.gg/cztJHYSfVE Particle model: bit.ly/3STKxDt Camera shaker: bit.ly/3OCYO4U
@@PainImpaled it might be something in the script, if you double check there might be a lowercase letter that was supposed to be a capital or a missing line, other option is, you could press play click on view at the top, click output and it'll tell you what is incorrect
Ideas for next parts: Part 2: Combo strings, AKA doing right hand punches and then changing to left hand after one punch, also adding dashes and multiple jumps Part 3: Combat abilities Part 4: Fruits and abilities for them Part 5: Swords and enemy npcs Part 6: Storage system and combat fighting styles Part 7: Trading system Part 8: Bosses Part 9: Awakening and transformation ability (for zoan fruits) Part 10: Something to add of your own, ( something unique that isn’t similar to blox fruits and you want to add it yourself)
Some advice since a lot of people are coding this way now: type if character == nil then return end It makes your code so much cleaner and it is great practice. Also spaces between that it just helps read the code a lot easier for people new to scripting.
Guys when you make your punch hold animation make sure to only use the first keyframe(at 00:00) otherwise it will not stay at the animation you want and will reset back to the default animation
𝗦𝗲𝗿𝘃𝗲𝗿𝗦𝗰𝗿𝗶𝗽𝘁𝗦𝗲𝗿𝘃𝗶𝗰𝗲: game.ReplicatedStorage.Remotes.Punch.OnServerEvent:Connect(function(player, damage) local character = player.Character if character == nil then return end local humanoid = character:FindFirstChild("Humanoid") if humanoid == nil then return end if humanoid.Health == 0 then return end local boxCFrame = character.HumanoidRootPart.CFrame local boxSize = Vector3.new(5, 5, 5) local params = OverlapParams.new() params.CollisionGroup = "Default" params.FilterDescendantsInstances = {character} params.FilterType = Enum.RaycastFilterType.Exclude params.MaxParts = 50 local objectsInHitbox = workspace:GetPartBoundsInBox(boxCFrame, boxSize, params) task.wait(0.1) for _, v in objectsInHitbox do local otherhumanoid = v.Parent:FindFirstChild("Humanoid") if otherhumanoid == nil then continue end if otherhumanoid.Health == 0 then return end local hitParticle = script.HitParticle:Clone() hitParticle.Parent = v.Parent.HumanoidRootPart hitParticle:Emit(10) otherhumanoid.Health -= damage task.delay(3, function() if hitParticle == nil then return end if hitParticle.Parent == nil then return end hitParticle:Destroy() end) break end end) 𝗦𝘁𝗮𝗿𝘁𝗲𝗿𝗣𝗮𝗰𝗸: local replicatedStorage = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local player = players.LocalPlayer local tool = script.Parent local camera = workspace.CurrentCamera local remotes = replicatedStorage:WaitForChild("Remotes") local cameraShaker = require(replicatedStorage:WaitForChild("CameraShaker")) local punchHoldAnimation = nil local punchClickAnimation = nil local debounce = false local equipped = false local camShake = cameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCF) camera.CFrame = camera.CFrame * shakeCF end) tool.Equipped:Connect(function() local character = player.character if character == nil then return end equipped = true local humanoid = character:FindFirstChild("Humanoid") if humanoid == nil then return end local animator = humanoid:FindFirstChild("Animator") if animator == nil then return end punchHoldAnimation = animator:LoadAnimation(tool.Animations.PunchHold) punchHoldAnimation:Play() end) tool.Unequipped:Connect(function() equipped = false if punchHoldAnimation == nil then return end punchHoldAnimation:Stop() end) tool.Activated:Connect(function() if debounce then return end local character = player.Character if character == nil then return end if punchHoldAnimation ~= nil then punchHoldAnimation:Stop() end debounce = true local humanoid = character:FindFirstChild("Humanoid") if humanoid == nil then return end local animator = humanoid:FindFirstChild("Animator") if animator == nil then return end punchClickAnimation = animator:LoadAnimation(tool.Animations.PunchClick) punchClickAnimation:Play() camShake:Shake(cameraShaker.Presets.Bump) remotes.Punch:FireServer(25) punchClickAnimation.Stopped:Connect(function() if punchHoldAnimation ~= nil and equipped then punchHoldAnimation:Play() end debounce = false end) end)
don't understand why when I launch the game my character does the animation but not the damage and the particle. I wrote the two scripts and I checked if there were any problems but I didn't find any.
hey polar! the script is great, but blox fruits jas some sense-catching things that would enhance the script, like sound effects play only if the humanoid is touched, and like stat values, where the first values 1-40 could be low 40-100 semi low, and 100-300 is medium, and 1000+ is great?, maybe u could do these one day, also if this seems like too much, you can always just shorten the list or make a better idea, thanks!
Hey Polarisprog uh idk if u know but in blox fruits u can get different fighting styles and with them they are effects on ur fists so I was wondering next part u can try to make them
I'm as new as it comes to coding in lua but im assuming you could probably just find a flame effect for example in the toolbox and add it to the fists of the humanoid if the "combat" tool is equipped
I realised why the animation for punch hold didn't come up lol, it was because there was no animator controller and animator under humaniod. which meant that the whole code just didn't run. Hope i helped Xd
I have a question, in your scripts you put a symbol that looks like a point, example: replicatedstorage·=·game..... is the (·) a central point or another sign? because on my screen it looks like a point :V
Idk if I’m the only one but when I try the game and I equip the combat it doesn’t do ur type of animation can u pls explain how to fix the bug pls❤, btw cool vid
idk if im bad at coding but u have put a lot of symbols that sombody (like me) dont know how to put so pls make your videos-turtorials more understanting to help more
local replicatedStorage = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local player = players.LocalPlayers local tool = script.Parent local camera = workspace.CurrentCamera local remotes = replicatedStorage:WaitForChild("Remotes") local cameraShaker = require(replicatedStorge:WaitForChild("CameraShaker") local punchHoldAnimation = nil local punchAnimation = nil local debounce = false local equipped = false local camSHake = cameraShaker.new(Enum.RenderPriority.CameraValue, function(shakeCf) camera.Cframe = camera.CFrame * shakeCf end) tool.Equipped:Connect(function() local character = player.Character if character == nil then return end equipped = true local humanoid = character:FindFirstChild("Humanoid") if humanoid == nil then return end local animator = humanoid:FindFirstChild("Animator") if animator == nil then return end punchHoldAnimation = animator:LoadAnimation(tool.Animations.PunchHold) punchHoldAnimation:Play() end) tool.Unequipped:Connect(function() equipped = false if punchHoldAnimation == nil then return end punchHoldAnimation:Stop() end) tool.Activated:Connect(function() if debounce then return end local character = player.Character if character == nil then return end if punchHoldAnimation ~= nil then punchHoldAnimation:stop() end debounce = true local humanoid = character:FindFirstChild("Humanoid") if humanoid == nil then return end local animator = humanoid:FindFirstChild("Animator") if animator == nil then return end
@@T0P.T1ER but I thibk it might be the version or some settings idk cuz when he does "==" they turn into 1 big One but on my screen they don't. And some words don't get the same Color as his
hey guys i dont know why all animation dont work with me im make the animation and the scrpit but when i use compat it not animation please anyone tell me why
@@ChikmenComments local replicatedStorage = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local player = players.LocalPlayer local tool = script.Parent local camera = workspace.CurrentCamera local remotes = replicatedStorage:WaitForChild("Remotes") local punchHoldAnimation = nil local punchClickAnimation = nil local debounce = false local equipped = false tool.Equipped:Connect(function() local character = player.Character if character == nil then return end equipped = true local humanoid = character:FindFirstChild("Humanoid") if humanoid == nil then return end local animator = humanoid:FindFirstChild("Animator") if animator == nil then return end punchHoldAnimation = animator:LoadAnimation(tool.Animations.PunchHold) punchHoldAnimation:Play() end) tool.Unequipped:Connect(function() end) The problem is it won't equip
I need a clicker simulator that updates every month and another one wich is big update that updadates every 5month and another update wich is huge update that updates every year plsssssssssssssssssssssssssssssss can you do it?
Get all of my project files on my patreon:
bit.ly/3SOBP6J
JOIN THE DISCORD!
discord.gg/cztJHYSfVE
Particle model:
bit.ly/3STKxDt
Camera shaker:
bit.ly/3OCYO4U
yo, i made an edit of you: ruclips.net/user/shortsqPffxqDL_8c
I can't submit the 'test' animation, and i'm 18+ so whats the problem?
i have a problem where when i equip the combat the animation doesn't play:( does anyone know why?
@@PainImpaled it might be something in the script, if you double check there might be a lowercase letter that was supposed to be a capital or a missing line, other option is, you could press play click on view at the top, click output and it'll tell you what is incorrect
@@duckyyyblox oh thx it worked but does the texture have to be animated (HitParticle)*
Ideas for next parts:
Part 2: Combo strings, AKA doing right hand punches and then changing to left hand after one punch, also adding dashes and multiple jumps
Part 3: Combat abilities
Part 4: Fruits and abilities for them
Part 5: Swords and enemy npcs
Part 6: Storage system and combat fighting styles
Part 7: Trading system
Part 8: Bosses
Part 9: Awakening and transformation ability (for zoan fruits)
Part 10: Something to add of your own, ( something unique that isn’t similar to blox fruits and you want to add it yourself)
It wont be as easy as you think.
If there are non developers, it would take them hours to even understand the code and make modifications.😢
That is so hard, you forgot the health system
@@mr.bingus69 lol, even i didnt see it
no
The awakening and transformation for zoan fruits well thats COPYRIGHTED BY ONE PIECE AND THIS GAME WILL BE BANNED
Thats a W! I'm guessing the next part is going to be about adding player stat variables that increase the damage depending on stat value?
Prob
Some advice since a lot of people are coding this way now:
type if character == nil then return end
It makes your code so much cleaner and it is great practice. Also spaces between that it just helps read the code a lot easier for people new to scripting.
When I did that it disabled my punching damage:p
Guys when you make your punch hold animation make sure to only use the first keyframe(at 00:00) otherwise it will not stay at the animation you want and will reset back to the default animation
What is the dot after the first local?
Dunno
Ty pls you can continue series
Love the videos hope you keep posting. Never stop.
That's the plan!
K
"this series will be finished dont worry about not seeing part 2 ever again"
proceeds to stop at episode 5
It worked perfectly! Thanks so much!
LETS GOOOO!!!🔥🔥🔥
𝗦𝗲𝗿𝘃𝗲𝗿𝗦𝗰𝗿𝗶𝗽𝘁𝗦𝗲𝗿𝘃𝗶𝗰𝗲:
game.ReplicatedStorage.Remotes.Punch.OnServerEvent:Connect(function(player, damage)
local character = player.Character
if character == nil then
return
end
local humanoid = character:FindFirstChild("Humanoid")
if humanoid == nil then
return
end
if humanoid.Health == 0 then
return
end
local boxCFrame = character.HumanoidRootPart.CFrame
local boxSize = Vector3.new(5, 5, 5)
local params = OverlapParams.new()
params.CollisionGroup = "Default"
params.FilterDescendantsInstances = {character}
params.FilterType = Enum.RaycastFilterType.Exclude
params.MaxParts = 50
local objectsInHitbox = workspace:GetPartBoundsInBox(boxCFrame, boxSize, params)
task.wait(0.1)
for _, v in objectsInHitbox do
local otherhumanoid = v.Parent:FindFirstChild("Humanoid")
if otherhumanoid == nil then
continue
end
if otherhumanoid.Health == 0 then
return
end
local hitParticle = script.HitParticle:Clone()
hitParticle.Parent = v.Parent.HumanoidRootPart
hitParticle:Emit(10)
otherhumanoid.Health -= damage
task.delay(3, function()
if hitParticle == nil then
return
end
if hitParticle.Parent == nil then
return
end
hitParticle:Destroy()
end)
break
end
end)
𝗦𝘁𝗮𝗿𝘁𝗲𝗿𝗣𝗮𝗰𝗸:
local replicatedStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local player = players.LocalPlayer
local tool = script.Parent
local camera = workspace.CurrentCamera
local remotes = replicatedStorage:WaitForChild("Remotes")
local cameraShaker = require(replicatedStorage:WaitForChild("CameraShaker"))
local punchHoldAnimation = nil
local punchClickAnimation = nil
local debounce = false
local equipped = false
local camShake = cameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCF)
camera.CFrame = camera.CFrame * shakeCF
end)
tool.Equipped:Connect(function()
local character = player.character
if character == nil then
return
end
equipped = true
local humanoid = character:FindFirstChild("Humanoid")
if humanoid == nil then
return
end
local animator = humanoid:FindFirstChild("Animator")
if animator == nil then
return
end
punchHoldAnimation = animator:LoadAnimation(tool.Animations.PunchHold)
punchHoldAnimation:Play()
end)
tool.Unequipped:Connect(function()
equipped = false
if punchHoldAnimation == nil then
return
end
punchHoldAnimation:Stop()
end)
tool.Activated:Connect(function()
if debounce then
return
end
local character = player.Character
if character == nil then
return
end
if punchHoldAnimation ~= nil then
punchHoldAnimation:Stop()
end
debounce = true
local humanoid = character:FindFirstChild("Humanoid")
if humanoid == nil then
return
end
local animator = humanoid:FindFirstChild("Animator")
if animator == nil then
return
end
punchClickAnimation = animator:LoadAnimation(tool.Animations.PunchClick)
punchClickAnimation:Play()
camShake:Shake(cameraShaker.Presets.Bump)
remotes.Punch:FireServer(25)
punchClickAnimation.Stopped:Connect(function()
if punchHoldAnimation ~= nil and equipped then
punchHoldAnimation:Play()
end
debounce = false
end)
end)
W
Thanks a lot
you are the best I really didnt want to endlessly type down all of that!
Arigatô
Bro thanks so much!! I would of been inside a grave typing all of that
IT WORKS THANK YOU SOOOOOOOOOO MUCH 😁
How
@@EndyFloew-ky5lq yeah how
THANK YOU BRO 🙏
heyy
@@Ovalpetteryo
PLEASE I NEED THIS SO MUCH MAKE A NEW EPISODE THIS IS ABSOLUTELTY NEW SUB U THE BEST
Please finish this i love it
When I play it and go on my combat it doesn't work no animations when I click. no starter animation any suggestions????
At 4:10 what are the dot things between local and replicatedStorage
That guy's only way of seeing, if you don't have those spots, he edited it with normal settings(it doesn't change anything)
@@Arcanebs thanks
1:49 how do i get the menu in the bottom right corner?
Go to view at the top right and open propeties from there.
don't understand why when I launch the game my character does the animation but not the damage and the particle. I wrote the two scripts and I checked if there were any problems but I didn't find any.
same here
same
same
Hey Polar! Just a quick question, will you ever finish the FPS Series 2024?
Yes!
@@polarisprog Tysm! I really was hoping you'd finish it.
yooo thanks for the tut
Why can’t I swing or change animation when I press combat
What is that tiny circle part?
Mine sadly doesn't really work..
it's not a tiny circle part it's space
This is good for my other futurd games ngl
I have a question whenever I try doing scripts not just yours any ones they don't work!
When I first get into the game at 12:35, it lets me punch once then I can’t after that? What’s wrong
can you help make my game also i cant see sumbit button o asset configuration
What name game
Lol I got uncopylocked bloxfruit
hi can you copy and paste the script in the description so its easier?
The punch hold animation didn’t work even though I did exactly everything right
NOTE: Make sure you have the Output open [If you don't know how to open it, go to the View tab at top of your Roblox Studio and find Output]
hey polar! the script is great, but blox fruits jas some sense-catching things that would enhance the script, like sound effects play only if the humanoid is touched, and like stat values, where the first values 1-40 could be low 40-100 semi low, and 100-300 is medium, and 1000+ is great?, maybe u could do these one day, also if this seems like too much, you can always just shorten the list or make a better idea, thanks!
Whenever I finish the script at 7:00 and load into the game, when I equip “combat” nothing happens
me too
@@BluelimehuY2013iscool I just fixed it, for me it was that I missed a letter
@@HawaiianAEP Do you know what it was?
This is very good. Can you make the part two sson pls
When is part 2
Part two is out
ruclips.net/video/5Gf1XFrDE2M/видео.htmlsi=C1aDCOrPURDFUhqp
How do you get Punch and HoldPunch?
How do you switch the ids at 6:41 I don’t know
That doesn't matter, he was just setting up different animations that he made the day before. It does not apply to you.
how do you put the id from before?
Great work but i need help so can you like copy and paste the scripts because it wont work for me
I LOVE YOU!!!
Hey Polarisprog uh idk if u know but in blox fruits u can get different fighting styles and with them they are effects on ur fists so I was wondering next part u can try to make them
I'm as new as it comes to coding in lua but im assuming you could probably just find a flame effect for example in the toolbox and add it to the fists of the humanoid if the "combat" tool is equipped
Can you make a video on how to make a data store for multiple leader stats
Can you teach me how to make the blox fruits inventory system?
i cant figure out why but when i punch the dummy everything works fine except i take damage instead of the dummy, how do i fix that?
Mine was saying render debugging howm do i fix that
at 1:32 i dont see a submit button... its not on my screen
minimize the window
5:26 HOW DID YOU TYPE THE ARROW?!?!?!?
He didn't
why isnt it doing any damage when I hit the dummys(rigs) i need helppppp
bro when i equipped the combat it works but when i clicked nothing happend XD
In the output stands my animation isnt loading but only my punch animation my hold animation works idk what to do now
your animation is too long
I realised why the animation for punch hold didn't come up lol, it was because there was no animator controller and animator under humaniod. which meant that the whole code just didn't run. Hope i helped Xd
what is the code for animator controller and animator and where do I have to put it?
I don’t have the submit button 1:40
6:42 Can someone tell me what he means by that pls
I can't submit the 'test' animation, and i'm 18+ so whats the problem?
Mine is disabled? How do I undisable it?
Yo can u make a level up system
second omggggg so cool!111!
Bro can you tell we how to make the dummys to attack you?
can you make a skill wherein you can hold the skill and shoot it like kizaru light beam
the animations i made dont work after trying it
I have a question, in your scripts you put a symbol that looks like a point, example: replicatedstorage·=·game..... is the (·) a central point or another sign? because on my screen it looks like a point :V
space
can someone help me why is my legs not moving in the walking animation
Does it still work
what are the dot lookin things in between words?
SpaceBars
Idk if I’m the only one but when I try the game and I equip the combat it doesn’t do ur type of animation can u pls explain how to fix the bug pls❤, btw cool vid
put the following line of code before you play it: punchHoldAnimation.Priority = Enum.AnimationPriority.Action
im having problems switching modes in the roblox animator. any suggestions? it just exits the roblox animator whenever i switch.
Click R to switch
It didn’t work for me and I followed the steps
How to get on the arrow on the npc
You guys can do walk animations too :/ ig
I have an bug, when i equiped my tool it dont show up 7:02
make sure that your PunchClient script has Combat as its Parent in the properties
-know im a little late hopefully this might help others with this
idk if im bad at coding but u have put a lot of symbols that sombody (like me) dont know how to put so pls make your videos-turtorials more understanting to help more
Why all of its not working
Bruh why i am soo bad at writing scripts i always do something wrong and nothing works
😭😭il love if i get some more help with scripts
Yoo banker video!!!
hello!
If i deequip the combat, I can equip it, but it will not show the animation and if i click it will not do any damage
Exactly bro
local replicatedStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local player = players.LocalPlayers
local tool = script.Parent
local camera = workspace.CurrentCamera
local remotes = replicatedStorage:WaitForChild("Remotes")
local cameraShaker = require(replicatedStorge:WaitForChild("CameraShaker")
local punchHoldAnimation = nil
local punchAnimation = nil
local debounce = false
local equipped = false
local camSHake = cameraShaker.new(Enum.RenderPriority.CameraValue, function(shakeCf)
camera.Cframe = camera.CFrame * shakeCf
end)
tool.Equipped:Connect(function()
local character = player.Character
if character == nil then
return
end
equipped = true
local humanoid = character:FindFirstChild("Humanoid")
if humanoid == nil then
return
end
local animator = humanoid:FindFirstChild("Animator")
if animator == nil then
return
end
punchHoldAnimation = animator:LoadAnimation(tool.Animations.PunchHold)
punchHoldAnimation:Play()
end)
tool.Unequipped:Connect(function()
equipped = false
if punchHoldAnimation == nil then
return
end
punchHoldAnimation:Stop()
end)
tool.Activated:Connect(function()
if debounce then
return
end
local character = player.Character
if character == nil then
return
end
if punchHoldAnimation ~= nil then
punchHoldAnimation:stop()
end
debounce = true
local humanoid = character:FindFirstChild("Humanoid")
if humanoid == nil then
return
end
local animator = humanoid:FindFirstChild("Animator")
if animator == nil then
return
end
punchClickAnimation = animator:LoadAnimation(tool.Animations.PunchClick)
punchClickAnimation:Play()
camShake:Shake(cameraShaker.Presets.Bump)
remotes.Punch:FireServer()
punchClickAnimation.Stopped:Connect(function()
if punchHoldAnimation ~= nil and equipped then
punchHoldAnimation:Play()
end
debounce = false
end)
end)
thanks me later
tysm
@@doorsplayers412 yw bro
you are the best thank you so much
it doesnt work for me idk how :P
i have a problem where when i equip the combat the animation doesn't play:( does anyone know why?
👇
Same here
@@Pavo59 same here
@@T0P.T1ER but I thibk it might be the version or some settings idk cuz when he does "==" they turn into 1 big One but on my screen they don't. And some words don't get the same Color as his
What dose he mean the animation he made yesterday
bro my animation don´t make the movement
hey guys i dont know why all animation dont work with me
im make the animation and the scrpit but when i use compat it not animation please anyone tell me why
Same😂😂😂
polarisprog i won't work can you please help me
Send script and tell me the error
@@ChikmenComments local replicatedStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local player = players.LocalPlayer
local tool = script.Parent
local camera = workspace.CurrentCamera
local remotes = replicatedStorage:WaitForChild("Remotes")
local punchHoldAnimation = nil
local punchClickAnimation = nil
local debounce = false
local equipped = false
tool.Equipped:Connect(function()
local character = player.Character
if character == nil then
return
end
equipped = true
local humanoid = character:FindFirstChild("Humanoid")
if humanoid == nil then
return
end
local animator = humanoid:FindFirstChild("Animator")
if animator == nil then
return
end
punchHoldAnimation = animator:LoadAnimation(tool.Animations.PunchHold)
punchHoldAnimation:Play()
end)
tool.Unequipped:Connect(function()
end)
The problem is it won't equip
Nice! can u make a pls donate version of the series pls
why u don't explain the scripts ? people here wanna learn how to script not copy paste
howis he doing that 4:11
everything is working fine its just that when I play the punch animation my character is sent slightly backwards. can someone please help?
16:54 Seems like youre missing this step. ik this was a long time ago but that should fix the issue.
Como se hace el sistema aleatorio de razas?
why it doesnt work for me :(
doesn't work
why?
0:33 for first step 😊
the animations arent playing
wowww can u make an r6 version i tryna make one for my game but idk how to script :(
A tip for all my fellow scripters: do not animate the lower torso or upper!, this will make it so that when you walk it looks weird
im stuck on the script part? can someone send me the stuff so i can copy and paste it?
everything doesnt work pls help
pls modle animation ís error
when's part 2?
never finishes the series bud
@@SavStudios true
@@SavStudioshe said in the beginning of the video that this will be a completed series
I need a clicker simulator that updates every month and another one wich is big update that updadates every 5month and another update wich is huge update that updates every year plsssssssssssssssssssssssssssssss can you do it?
what is the code