How to make a SIMPLE SWORD BARRAGE in ROBLOX STUDIO!
ฝัง
- เผยแพร่เมื่อ 5 ก.ค. 2024
- How to make a Sword Skill in Roblox Studio
This is a tutorial about making a sword skill in Roblox Studio. Make sure to subscribe and leave a like!
Thanks so much for watching!
Chapters:
0:00 Intro
0:30 Animating
1:53 Scripting
4:20 VFX
5:02 Scripting again
14:05 Last minute changes
15:20 Outro
Music used:
SMRPG - Forest Maze: • Super Mario RPG - Fore...
SM:W - Overworld: • Overworld Theme - Supe...
MK:DD - Circuit Theme: • Circuit Theme Mario ...
MK:W - Maple Treeway: • Maple Treeway - Mario ...
SMB2 - Overworld: • Super Mario Bros. 2 Ov...
roblox particle,roblox tutorials,lighting tutorials,roblox studio,roblox plugin,roblox anime vfx,modeling tutorials,building tutorials,lighting,particles,particle tutorials,particle emitter,lights,modeling,building,roblox vfx,vfx tutorials,light,roblox,studio,tutorials,gaming,builds,models,blender,tutorial,build,games,model,plugins,help,game - เกม
I love watching you script, I try to read and under stand on whats going on so I could script better in the future.
(This is me being very knit-picky, overall good script for beginners!)
Careful with using the Touched event, if you were to move back and forth, making the damage part hit them several times in one usage, that character you use it is as good as dead! since it will enact the function several times which could also be exploited :P
Also intrigued on why you used a coroutine instead of just putting the function at the end - works nonetheless though!
Great work
i just gave the dummy a tag, and if the dummy has the hittag it cant be hit several times, so that fixes that problem.
tysm bro, i got a lot of Knowledge from this video.
Good video!
great tuto , thanks bro
1st script:
local db = false
local dbtime = 1
script.Parent.Activated:Connect(function()
if db == false then
db = true
local char = script.Parent.Parent
local humanoid = char:WaitForChild("Humanoid")
local anim = humanoid:LoadAnimation(script.Animation)
anim:Play()
anim:GetMarkerReachedSignal("Barrage"):Connect(function(parameter)
print(parameter)
script.Parent.Barrage:FireServer(char)
end)
anim:GetMarkerReachedSignal("BarrageEnd"):Connect(function(parameter)
print(parameter)
script.Parent.BarrageEnd:FireServer()
end)
wait(dbtime)
db = false
end
end)
2nd script
script.Parent.Barrage.OnServerEvent:Connect(function(player, char)
local humrp = char:FindFirstChild("HumanoidRootPart")
local barrage = script.BarrageEffect:Clone()
barrage.Anchored = false
barrage.Parent = humrp
barrage.CFrame = humrp.CFrame + (humrp.CFrame.lookVector * 6)
local weld = Instance.new("WeldConstraint", barrage)
weld.Part0 = barrage
weld.Part1 = barrage.Parent
barrage.Attachment.ParticleEmitter.Enabled = true
local damage = Instance.new("Part", barrage)
damage.CFrame = barrage.CFrame
damage.Size = Vector3.new(7,7,7)
damage.Shape = "Ball"
damage.Transparency = 1
damage.CanCollide = false
damage.BrickColor = BrickColor.new("Really red")
local weld2 = Instance.new("WeldConstraint", damage)
weld2.Part0 = damage
weld2.Part1 = damage.Parent
damage.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Name == "HumanoidRootPart" and hit.Parent.Name ~= char.Name then
local counter = 0
coroutine.wrap(function()
while wait(0.1) do
counter += 1
if counter < 10 then
local ehumanoid = hit.Parent:FindFirstChild("Humanoid")
ehumanoid:TakeDamage(1)
elseif counter == 10 then
break
end
end
end)()
end
end)
script.Parent.BarrageEnd.OnServerEvent:Connect(function()
barrage.Attachment.ParticleEmitter.Enabled = false
wait(barrage.Attachment.ParticleEmitter.Lifetime.Max)
barrage:Destroy()
end)
end)
Thanks
great now i can finish it in time thanks alot
Thank you bro
bro acc thanks i aint gonna spend loads of time now lol
Thank you so much!
thank you so much man
Works tysm (:
man says basic i think he is doing complex math (jokes) you vides are the best man
Thx u so much brotha
thx for teach something ^^
Mate is flexing with the "just a short animation"
nice
Hey! Love your videos. Can you recommend anything to can watch or share some tips on how to start scripting on Roblox Studio? I wanna start scripting myself but I've got no idea on how or where to start.
alvinblox tutorials!
I love your vids
I love you
now make a tutorial on how to make a teleporting/dashing sword skill please
Thx broooo
please make a skill tree to upgrade damage or decrease cooldowns or to unlock these skills thx so much if u do
with what button do you activate the ability 7:40 and when i do it like you do (trying out the game in 7:40) the particle thingy just stays were i put it
In the next video, please make a monster that uses sword skills.
An attack animation will be displayed, but no damage and no effects
Yes the same thing happened to me
@@Tagser Also
Oi bro i dont know why but my VFX doesnot come in front of my character and the animation also does nt work/start what should i do
can you show how to design a boss fight
Make a magic staff that shoots a projectile.
You are saving tools on "starter pack" that is only client side? or not? i want some animation only for local and some for the server
For the DB, how do you make it sou can see the timer in the corner of ur screen?
your guides is very good
Glad you think so!
please make a tutorial on how to make a sword dashing skill!!
hey, just a tip, instead of having a "counter" variable and a while loop, you can just use a for loop to have the same result
for i = 1, 10 do
(put the damage stuff here)
wait(0.1)
end
i forgot for loops exist, i was kinda braindead making this video lol
@@SnakesRobbs lmao
I thought loops was
While true do
End
@@slordhd5912 but like... there are... multiple types of loops crazy i know
@@arenjan i just started learning scripting 1 month ago 💀
make sure to check out my friend's game's discord!
discord.gg/eBpKC764cs
also message me on discord if you have any problems!
snakesrobbs#1509
the only problem with this video is the only thing people need are the scripts youve made but you havent pasted them into the comments or description the second script is incredibly long and quite literally impossible to copy without it pasted into the comments
hi robb i was wondering instead of click/holding to activate the ability can u do a sword skill when pressing e to activate it?
8 months late but first make a variable for the user input service (local uis = game:GetService("UserInputService")
then replace script.parent.activated:Connect(funtion()) with uis.InputBegan:Connect(function(key))
the first time i do it works but the second or third time the particles dont show up, please help me
LOVE U AND UR GIRL BRO
How can I create code for unlock door, or lock door, that just I can do this? (I want to open this with a code, for example, "!unlockdoor" Or "lockdoor") Because in my game I want to do a place of competition that Im the only one who can open it for everyone when the competition will be.
Me: who has been trying hard everyday on creating the animation with the input E does not work...
Pros: God Being's with Great Knowledge
how to adjust the attack like make the your character in the middle of the particle
Can you make this with a gui on the side like in blox fruits?
this video is very yes
very yes
yes
yes
Very very yes yes
yes indeed
thank you! could you make a file for this? i had some issues when i was making it so i was wondering if you could just give me a download of yours.
How do I get that effect pallet u had at the start
Wouldn't this make it so that you only have to hit the barrage for one second and your enemy takes the 10 ticks of dmg?
yea, theres only one part for it to run off of, with a touched event so even if you touch it at the last second it will continue to deal damage for1 second even though the animation's long gone. Im pretty sure you can fix this by making the script spawn 10 parts instead of 1 part, this will also allow for rotation while its happening
I did everything correctly but nothing is happening and in the output "unable to cast value" is displayed
Uhh I need help so I did everything and when I did i do t have a keyring so I can't test it or anything
In future video's can you put the scripts in the comments and add comments where we have to change our animation's thanks
Wow this motivated me to start animating on Roblox studios
Glad to hear it!
how do i find the vfx bourd
Output Said BarrageEffect Its not a valid member of script
how to fix that
Bro pls can you when we press "a" thé combo sstart and not m1
Can you help me make a grab attack? since all of the grab moves that are actually in youtube and google are all free models ;-;
how do i set a keycode like Enum.KeyCode.R
Enum.KeyPress:R or is it different?
humm i didn't see the keybind for start the attack if you read the message
heres the script for anybody who needs it
local db = false
local dbtime = 1
script.parent.activated:connect.(function()
if db == false then
db = true
local char = script.parent.parent
local humanoid = char:waitforchild("humanoid")
Local Anim = Humanoid:LoadAnimation(script.animation)
Anim:play()
anim:GetMarkerReachedSignal("barrage") :connect (function(paremeter)
print (paremeter)
script.parent.barrage:FireServer()
end)
wait(dbtime)
db = false
end
end)
How do you get the effect kit?
How to make block sword, plss
Everything works for me but there only one thing that i have a problem with. I cannot do any dmg on the npc, can you help me ?
Can you send your script?
it did not work
i tried redoing it 5 times aint working let me try again
reminds me of blox fruits kinda
How to change the keybinds?
please can you make a lightning spell ability
Question how do we Connect it with FlipAnimation
and whats the other remote event
7:21 For me, there's an error saying, "Spin(/Barrage for you) is not a valid member of Tool "Players.(Username).Backpack.(item name)" - Server - Server:1"
is the spin in the tool?
@@SnakesRobbs i got the same error i figured out it deleted the spin effect in his/her's case after clicking once i kidna need help getting that fixed
how to start the animation ?, i can't start the animation
I need help with the katana model
1st script
local db = false
local dbtime = 1
script.Parent.Activated:Connect(function()
if db = false than
db = true
local char = script.Parent.Parent
local humaoid = char:WaitForChild("Humanoid")
local anim = humanoid:LoadAnimation(script.Animation)
anim:GetMarkerReachedSigna1("Barrage") :Connect(funtion (parameter)
print(parameter)
script.Parent.Barrage:FireServer ()
end)
wait(dbtime)
db = false
end
end)
Thank you bro
hi bro, I need help how to make you click on the screen and the animation of a sword strike appears and he also inflicted damage, I looked all over TH-cam how to do it. can you help me?
I need mobile control
thank you if you say it, i need it!
Is this only working on R6 characters? Because i'm using R15 and at the part where the part should appear infront of the chracter it doesn't appear (7:30).
i think if you have a r15 animation it works, but the part error idk, i have the same problem
same the part doesnt appear
how do iadd the firing?
mine won't weld it keeps staying i the same spot and doesnt turn with my character
I think your weld failed to create, can you send your script?
Can you make a baller ability
i cant place the katana on the dummys hand why?
mine appears in someones body and it didnt show up in my body+
Stop-spot: 8:00
blud taught more than alvinblox in 2 videos.....
Can I have the palette of images?
can i make a gun skill with this
can you use a mesh for the VFX?
yee
how to make a move that moves
how do you have all those box vfx on the floor? is it like from toolbox? i cant seem to find it
it's called bingus particle pack
@@kana1z0 thank you
np
can you make it where it activates by pressing Z?????????????????????????????????????????????? Otherwise it is useless for my case
The particle didn't show up
BRO I CANT PUT THE SOWRD IN HIS HAND
how to add sword to hand im dumb
What particle asset do you use?
bingus
@@justdddd thanks
its cool and all but you forgot to put the link to your friend's game
Its in the pinned comment!
cant find the comment@@SnakesRobbs
r15 can use?
i cant see what your pressing
( 7:30 ) the part appears, but not in front of the character, i made exactly the same thing. What its happening?
+ the particles does not appear to
same for me
bro i want this but no work because i put script then click then it wont spawn a block :/
nvm
Can you explain how to add a cool down please thanks
4:20 can I have the link of the like table of vfx
You just search it in the tool box and is one of the first ones
15:40
:D
for some reason the part wont appear infront of my character, neither will the particle enable, is there anyway to fix this issue?
same to me
me too
@@user-qs6yo4dp6o attachment does not get cloned, therefore particles dont appear
@@mistermister8354
@@mistermister8354 how to do ?
pls bro answer me
and help me
hey can u send the model
it spawns infront of me but sings to the bottom of the map
you have to weld it
@@SnakesRobbs it's not appearing infront of me whats going on?
@@randommemes9462 are you using r6?
help!!,why my animation dont stop its loop.
try re-exporting it without looping it
:( mine wont work
Next time please explain what you are doing instead of just saying write the code
local db = false
local dbtime = 1
script.Parent.Activated:Connect(function()
if db == false then
db = true
local char = script.Parent.Parent
local humanoid = char:WaitForChild("Humanoid")
anim:Play()
anim:GetMarkerReachedSignal("Barrage"):Connect(function(parameter)
print(parameter)
script.Paremt.Barrage:FireServer()
end)
wait(dbtime)
db = false
end
end)