![]() ![]() In Studio, open the Toolbox ( View Toolbox ). On the weapons item page, click the green Get button and confirm the transaction. Select a weapon from below, navigating to the asset library link. Local animationSw = tool:WaitForChild("Swing") - Checks for the animation. The content of this project and documentation can be used under Robloxs Limited Use License. ![]() Local animationTrackSwing = character:WaitForChild("Humanoid"):LoadAnimation(animation) - Loads the animation for it to be ready to use!ĪnimationTrackSwing:Play() - Make sure this isn't a looped animation!įull Script: local tool = script.Parent - Gets the tool Sword Swing (In the same script as above): local animationSw = tool:WaitForChild("Swing") - Checks for the animation. Cursed Roblox Decals: ID Code: Outrageous Sword: 73737627: Military. If you want the animation to be a loop, make sure to click the loop icon when creating the animation! You can create any object you want or leave the default baseplate in place. Local animationTrack = character:WaitForChild("Humanoid"):LoadAnimation(animation) - Loads the animation for it to be ready to use!ĪnimTrack:Play() - Play animation when equipped. Local animation = tool:WaitForChild("Equip") - Checks for the animation ![]() Local character = player.Character - Gets the player's character model Local player = game:GetService("Players").LocalPlayer -Gets the player that is holding the tool This is quite easy to do! I am going to assume that you know how to make animations! After making these animations, store it into an Animation object and rename it to ‘Swing’ (that’s a demo name )Įquip Script (local script in tool): local tool = script.Parent - Gets the tool ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |