Need help animating a sword

my friend is not online sadly which means idk what to do

wait i have an idea
i will transfer the code into my own game so i can enable team create

why did you unfriend me Awe
i tried to give you team create access

i figured out how

why man why

just why

I think you are too new to studio and don’t know how a lot of things work

Try this tutorial (sorry if anything looks weird I’m typing this on mobile)

tysm man ill be sure to check it out

i give up on this project bro im seriously done with it ill ask my friend but this is the 100th and final comment of this post i had a terrible time sitting here and failing to have my game work since im a stupid kid

@Pish85 Have you tried my tool code here? You can invite my main account to a team create session and i can walk you through the creation of a basic sword if you like.

Never give up! Fair enough if you just lose interest, but the answers are always out there somewhere. Just need to look hard enough. I haven’t read all the replies, but there’s so many that I’d say at least one of those solutions must work. It’s worth it to take the time to implement each one very carefully and find a working one. I’ve spent months trying to fix things, thinking it’s hopeless, only to get there in the end. Patience is key.

Anyways, hope this helps.

1 Like

thank you man i kept thinking about this project and i cant get it out of my head

1 Like

That’s a good sign so. If this video doesn’t help, try a different one. If I were you, I’d also try ask ChatGPT, unless you have already. I know it has a bad reputation, but honestly I just think those people don’t know how to use it properly or something. Just know that the help from others replies in this thread are most likely more reliable, but that’s not to say it won’t help. Good luck!

right now my idea is theres a sword and if you hit a guy you gain skill points i already coded the skill points system rn you just get +1 every second thats why i need the sword anyways ty for the video!!!

ill add multipliers and stuff too and a shop and whatever i wanna add (if i can make it) (prob gonna be rly simple)

i just realized i dont have a 30 dollar budget to get moon animator

Put in a local script with the tool being the parent. Then Make an AnimationController(I don’t think it’s needed but I have it there regardless) then an animation object with the controller being the parent.

local character = game:GetService(“Players”).LocalPlayer.Character
local tool = script.Parent
local animation = tool.AnimationController:WaitForChild(“HammerSwing”)
local animationtrack = character:WaitForChild(“Humanoid”):WaitForChild(“Animator”):LoadAnimation(animation)

tool.Activated:Connect(function()
animationtrack:Play()
end)

I bet there’s some unneccessary directories but it works for my tools.

I FINALLY MANAGED TO MAKE THE WORKING ANIMATION SCRIPT

IT TURNS OUT THAT ROBLOX DIDNT LIKE MY ANIMATION (MAYBE) SO IT WOULDNT PLAY IT BUT THEN I MADE A BETTER ANIMATION AND IT WORKS!!! CHECK IT OUT HERE:

1 Like

Glad you got it working bro! Happy Developing!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.