somehow when i made the tool it kept teleporting me to the position where the block was in the lobby and getting me stuck in the ground even though it wasnt anchored
Local tool = script.Parent Local plr = tool.Parent Local hum = plr.Humanoid Local Anim = script.Animation Local track = hum:LoadAnimation(Anim) Tool.Equiped:connect(function() click.Button1down:connect(function() Track:play() End) End) Thats how i did it
create a function using tool.Activated that plays an animation for the character the function will be called everytime the player clicks when the tool is equipped
I know it is late but i think you make a animation inside of the gun then make a variable in the script called Anim which is the animation. Make your animation. then in the tool.Activated code block write Anim:Play()
2:53 local DebounceTable = {} script.Parent:WaitForChild("Hitbox").Touched:Connect(function(objectThatTouchesTheHitbox) if objectThatTouchesTheHitbox.Parent then if objectThatTouchesTheHitbox.Parent:FindFirstChild("Humanoid") then if DebounceTable[objectThatTouchesTheHitbox.Parent] == true then return end DebounceTable[objectThatTouchesTheHitbox.Parent] = true objectThatTouchesTheHitbox.Parent.Humanoid:TakeDamage(30) wait(2) DebounceTable[objectThatTouchesTheHitbox.Parent] = nil end end end)
you should've put the code for the sword in the description so i dont have to copy it from a part of the video so here is the code for the sword: local DebounceTable = {} script.Parent:WaitForChild("Hitbox").Touched:Connect(function(objectThatTouchesTheHitbox) if objectThatTouchesTheHitbox.Parent then if objectThatTouchesTheHitbox.Parent:FindFirstChild("Humanoid") then if DebounceTable[objectThatTouchesTheHitbox.Parent] = true then objectThatTouchesTheHitbox.Parent.Humanoid.:TakeDamage(30) wait(2) DebounceTable[objectThatTouchesTheHitbox.Parent] = nil end end end end)
for some reason i end up teleporting to my sword and it ends up dissapearing, i checked all the things and it still doesent work, please help me fix this
Spend hours wasting my time. Made the script and after the katana was in the starter pack, unable to select the katana and it's part, unable to move from starter pack now i cant edit the katana in any way very disappointed pls help
My sword doesn't work I followed all the instructions but when you pick it up and use it it doesn't deal damage to enemies but when you try to pick it up it damages you. HELP
un anchor it or make a weldconstraint for each part ex theres 7 parts minus the handle, make 7 weldcontstraints and then put part two as handle or do both
whenever i try to equip the sword its like its anchored to the ground, and whenever i check its always unanchored. do you have any idea on how to fix this?
You may be checking the tool itself Instead, look at the individual parts itself, and see if any of the parts are anchored If some are, un-anchor them.
i have created my tool using this guide and it refuses to enter my hands, this greatly upsets me and i wish to be given proper guidance or instructions, please and THANK you!
some of the parts in your sword are anchored, make sure that the anchored check is off, also im very late so just ignore me if you've already solved your problem
bro it doesnt work, I did every single thing for the welding and the sword just gets stuck in the ground and I teleport into the sword. HOW DO I FIX THISSS
one part is probably anchored or you placed it in the ground, i recomennd placing it in the air so when the game starts its on the ground and u can pick it up
@@TheCardboardDinosaur there is, actually Some developer on RUclips I vaguely knew made a plugin known as "Constraint Creator". This lets you select 2 or more base parts and weld them all at once, this works with constraints, welds, motor6D's, etc. There might be some bugs, but I haven't found any issues with it!
Look at a different video for that because this one just says how to make it do damage, but you can make animations and add a script to it called animation Script or whatever then you add the script in but watch a diff vid for that.
To this day I hit my head on a wall trying to find out why did roblox made tool system like this.
😅yep same
tool system is fine
i was hitting my head before i watched this video
luau made the coding, roblox used the script service
somehow when i made the tool it kept teleporting me to the position where the block was in the lobby and getting me stuck in the ground even though it wasnt anchored
0:10 got us in the first half ngl
@Curious pay more attention at the shape when they start building it, you might be able to see it
it really didn't until I saw this comment
Can you show how to animate it swinging please?
I wish you the best to get noticed
animationnnnnnn!
Local tool = script.Parent
Local plr = tool.Parent
Local hum = plr.Humanoid
Local Anim = script.Animation
Local track = hum:LoadAnimation(Anim)
Tool.Equiped:connect(function()
click.Button1down:connect(function()
Track:play()
End)
End)
Thats how i did it
it still worked!
thanks man I really appreciate it
Great Tutorial, but how do you swing the sword?
Hey how did u make ur sword work when i try to do the thing hes doing in 1:29 it doesnt work
Animations
create a function using tool.Activated that plays an animation for the character
the function will be called everytime the player clicks when the tool is equipped
I know it is late but i think you make a animation inside of the gun then make a variable in the script called Anim which is the animation. Make your animation. then in the tool.Activated code block write Anim:Play()
@@4guide800Sorry to ask buy can you put that in code forum? i am really bad at understanding things like this..
thx man you are the best guy i have ever watched
2:53
local DebounceTable = {}
script.Parent:WaitForChild("Hitbox").Touched:Connect(function(objectThatTouchesTheHitbox)
if objectThatTouchesTheHitbox.Parent then
if objectThatTouchesTheHitbox.Parent:FindFirstChild("Humanoid") then
if DebounceTable[objectThatTouchesTheHitbox.Parent] == true then return end
DebounceTable[objectThatTouchesTheHitbox.Parent] = true
objectThatTouchesTheHitbox.Parent.Humanoid:TakeDamage(30)
wait(2)
DebounceTable[objectThatTouchesTheHitbox.Parent] = nil
end
end
end)
thanks 👍
you realize theres a link for that..
@@plurio1 save tim
ThatOneDreadHead
There a literal link for that in the description.. 😑
When I made my tool. I equipped the tool and it took me to the place I was making it. How do I fix that?
your tool anchored
@@alexkonkin3317 Nvm I managed to fix it last week but thanks for the help though
how? can you explain
Thanks for the tutorial, you saved me on the weld part
you should've put the code for the sword in the description so i dont have to copy it from a part of the video so here is the code for the sword:
local DebounceTable = {}
script.Parent:WaitForChild("Hitbox").Touched:Connect(function(objectThatTouchesTheHitbox)
if objectThatTouchesTheHitbox.Parent then
if objectThatTouchesTheHitbox.Parent:FindFirstChild("Humanoid") then
if DebounceTable[objectThatTouchesTheHitbox.Parent] = true then
objectThatTouchesTheHitbox.Parent.Humanoid.:TakeDamage(30)
wait(2)
DebounceTable[objectThatTouchesTheHitbox.Parent] = nil
end
end
end
end)
true legend
true
u r LEGEND
He already put a link to the pastebin in the description.
There's a q perfection weld u know..
thanks alvin! this was really useful!
totally alvin
@@bl0kh787 real
Ah, so you too realize the sudden appearance of the famed "AlvinBlox".
@@bl0kh787It is lol? look at the leaderboard on the top right. 2:27 boom.
hint: union all other parts except for handle and then add weldconstraint
OMG THX U SO MUCH IT FINNALY WORKS
good idea..LETS GO NOW İ CAN MAKE GİANT SWORDS
Heyyy thanks man never know how to script :D
TYSM!!! This really works with my idea
Calmly says "now lets script it to kill other players"
3:37 BALLER
yea
for some reason i end up teleporting to my sword and it ends up dissapearing, i checked all the things and it still doesent work, please help me fix this
is it un anchored and in the starterpack
thanks! quick question: dose this work for blender vfv swords because i made one
it will, just import it as an fbx and call it a handle, then code it
yes as long as u insert ur model to roblox studio
Spend hours wasting my time. Made the script and after the katana was in the starter pack, unable to select the katana and it's part, unable to move from starter pack now i cant edit the katana in any way very disappointed pls help
you need to take it out of starterpack
and back into workspace
it doesnt work for me :(
awesome video this actually worked to thank you alot!!!!
how do you add an animated sword attack?
how do i fix everytime i use it it teleports me to where i put the sword
unanchor it
Fun Fact: If you do this without putting it in starter Pack, its a pick up able item,
if anyone knows a little bit of blender, you can make something in it and spend less time adding weldconstraints to your tool
Ummm when I equip it it just teleports me to it and I can’t move
maybe cuz its anchored
@@lorincvass7400 it happens to me to and its unanchored
Thank you very much this really work!
Whenever I equips my sword, it just appears on the ground. I made sure I unanchored everything but it still doesn’t work. Pls help pls
(Edit) when it’s equipped and I go near it, I can’t pick it up. Pls help
Did you add the handle?
Whenever I try to do the step at 3:20 I can’t because my tool turns invisible and idk how to turn it back? Please help
BRO I LOVE YOU SO MUCH TY NOW I CAN FINALLY ADD PICKAXES TO MY GAME
wait but my sword dissapeared
same
I have a question can you make the parts a model and weld the model as a whole to the handle part?
okay this works but you know how is sword is like standing upwards well my sword is kinda facing the back of the plyer how do i fix that????
Why is Insider Tech stealing ppl vids and giving no credit
Does anyone know how I can add a swing Animations?
doesnt work for me
This doesnt work anymore
does you just did it wrong
My sword doesn't work I followed all the instructions but when you pick it up and use it it doesn't deal damage to enemies but when you try to pick it up it damages you. HELP
Lol the sword backfired
Its cuz anyone who touches the sword having a humanoid will take damage.
@@ZyanFernando l fixed it with a script that includes an animation
The store doesn’t work I did all of that I need the tool I put it in the starter pack but it just falls over
How come my character cant hold it, like it appears in my inventory just not in my hand
i do have one problem whenever i pull it out it either makes me fall over or teleport to a random position
un anchor it or make a weldconstraint for each part ex theres 7 parts minus the handle, make 7 weldcontstraints and then put part two as handle or do both
Ayyy it worked for my game! Thank you! Can you make a video on making animation's for your sword please?
i gotchu bro i can do that.
no your lying, i dont see the rig builder on my roblox studio, so it is...
FAKEEEE!
@@OfficialDarkZiper ... you might havent done it right?
@@OfficialDarkZiper rig builder is there you jut dont look.
@@OfficialDarkZiper you must go to avatar
i made the sword holdable but i cant make it do damage idk if its the script or something else
Why whenever I equip it I get stuck in the baseplate??
I unanchored it too
Move it above the ground
@@SkilleDDefender_alt I have learnt scripting 🗿But thanks bro
Yoo alvin there is a bug. If even if you stay away from the target. it still damanges them. Until they are dead
whenever i try to equip the sword its like its anchored to the ground, and whenever i check its always unanchored. do you have any idea on how to fix this?
You may be checking the tool itself
Instead, look at the individual parts itself, and see if any of the parts are anchored
If some are, un-anchor them.
tysm brooo really useful!
Bro thank you so much!
i have created my tool using this guide and it refuses to enter my hands, this greatly upsets me and i wish to be given proper guidance or instructions, please and THANK you!
i fixed it, the weld constraints were in the wrong part
Please help why I can't move witזh the sword when I use it I fly🙏
some of the parts in your sword are anchored, make sure that the anchored check is off, also im very late so just ignore me if you've already solved your problem
bro it doesnt work, I did every single thing for the welding and the sword just gets stuck in the ground and I teleport into the sword. HOW DO I FIX THISSS
Unanchor it but my problem is the scripting isn’t working
Im suprised that insider tech even made a video on roblox
bro its not doing damage what do i do?
thanks helped alot
Yay this will work perfectly for my game!!!
no your lying, i dont see the rig builder on my roblox studio, so it is...
FAKEEEE!
@@OfficialDarkZiper I did it 3 months ago and it worked fine. I don’t have rig builder anymore too or animation thingy.
They moved it somewhere else
they moved it to avatar
@@zorblin
When my weapon is equipped its still were i was making it at not in my hand
Many thanks to AlvinBlox who always makes my day (:
hey i added this and folowed step by step this tutorial
but it doesnt work u know why
@@entvolx its a fake script you just got bamboozled
@@orangedrip yeah i reallized it.
@@entvolx not fake tho worked for me
@@sapphichalovianrobin yeah it isnt faked you others didnt type it right lol
DebounceTable dosent work so I used DeboundTable
this is bullshit because as soon as i put the tool in starterpack the touch interest disappears
weird that the script menu names players as childs
Lol
fire script with a spread script
lots of random "childs" are under the actual code
That's because there is Parents. example
Local Tool = script.Parent
Local Script = Tool:FindFirstChild("Script")
how do i animate?
Make Animations for it
My sword is not taking damage, someone help.
I want to create a sword with abilities Q and E
How to make the character use 2 sword in same time like kirito
Finally, good comtemt!
so, when i equip the sword, it is being held horizontally, not vertically
its because of ur handle make a new Handle and rotate it until its perfectly
@@kabouterplop6158 yeah i know i fixed it, plus i got rid of that shit cause it didnt work
@@kabouterplop6158 actually its becuase of the grip.
@@muffinmaniacs193 no actually because his ip is on ohio
ç
@@Paquiu100.🤣🤣🤣 you’re so funny (😐)
thats cool and all but how do you make it so you can actually hit something. like when you press rmb it hits.
just use an animation
Thanks, but how do i animate it?
Ruins my custom jump animation, how do I fix?
NONE OF YOUR TOOL TUTORIALS EVER WORK! WHY!
because you did it wrong. I did it the first time and it didn't work. just keep re watching it trust me.
how do i make it so it knows who the player who owns the sword is
How do you make it so that it will swing
no animation?
how do you select all parts like that lol
go to the part on the top and select it and go to the bottom part and while holding shift select it
my sword doesnt go in my hand when i select it
why doesn't it get placed in my hand but the place were i put it in the workspace??
one part is probably anchored or you placed it in the ground, i recomennd placing it in the air so when the game starts its on the ground and u can pick it up
Can you animate the swinging animation
this is so tedious, if you have a weapon with a lot of parts its so difficult to give all of them a weld constraint, there has to be an easier way
As a long time game dev and animator, there is not.
@@TheCardboardDinosaur there is, actually
Some developer on RUclips I vaguely knew made a plugin known as "Constraint Creator". This lets you select 2 or more base parts and weld them all at once, this works with constraints, welds, motor6D's, etc.
There might be some bugs, but I haven't found any issues with it!
I may be wrong but I think you can use blender to make the tool then just have two halves a sword to constraint
i just used d-weld..
you can just union all the other parts together(except the handle) and weld constraint the union.
The unanchoring was a solution to a critical problem, but the creation of another. This kept happening to a point where I can't follow along.
Also, what the flip is 1:29 THIS?
what's the problem?
Ah, so you too realize the sudden appearance of the famed "AlvinBlox".
Thanks!
this didint work :/ and i guess im never gonna be a develeoper because the way u explained got me so confused
Theres a problem where when you equip the tool the player will be sent to that spot
how to fix it?
Did u forget to unachor it
@@aadvikreddy686 No
Cant make the best game without AlvinBlox
Nice this tutorial was really helpful i subbed to this channel and alvins channel Thanks!
are u being forced to comment this this doesnt work
@@orangedrip it does work lol ur doing it wrong
@@vx1p3r yes actually… 💀
Whenever i equip it i just get send to where i placed the sword, can you help me?
Maybe you forgot to unanchored it or maybe change r15 to r6 or vice versa
unanchored
i think the code doesn't work
you are correct this video wasted so much of my time
That welding thing is weird. can you not design the sword and merge it together somehow where it isn't 20 parts.
union each part to make one part besides handle then weld it :D
union the parts and name it handle
He sounds like alvinblox
Do you get video from AlvinBlox Chanell?
BRUUU IT WONT ROTATE AND I CANT SEE IT WHEN IM EDITING IT
And once im not stuck boom nothing works
Thx Alvin
the code isn't in description
Thanks
TYSM!
For some reason my sword don't do any damage.
But what about animations?
ok but now how do i add custom animations?
Look at a different video for that because this one just says how to make it do damage, but you can make animations and add a script to it called animation Script or whatever then you add the script in but watch a diff vid for that.
@@okascripts4513 i figured it out like 2 hours after i made this comment lmao