I want a part(x) to appear in my hand when I play an animation.Here is my code, thanks. Player = game.Players.LocalPlayer Mouse = Player:GetMouse() animation = script:WaitForChild("Animation")
01 | Mouse.KeyDown:connect( function (key) |
02 | key = key:lower() |
03 | if key = = "q" then |
04 | local animationTack = Player.Character.Humanoid:LoadAnimation(animation) |
05 | animationTack:Play() |
06 | wait( 3.2 ) |
07 | animationTack:Stop() |
08 | wait(. 3 ) |
09 | local x = Instance.new( "Part" ) |
10 | x.Shape = "Ball" |
11 | x.Material = "Neon" |
12 | x.BrickColor = BrickColor.new( "Bright red" ) |
13 | x.TopSurface = "Smooth" |
14 | x.BottomSurface = "Smooth" |
15 | x.CanCollide = false |
Try creating a part called Handle and make you character equip it. You made a instance new right, but you should add a handle like x.Name = Handle local y = Instance.new("Tool") y.Name = AnimationTool y.Parent = game.Lighting and now the thing that will equip you the tool game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Lighting.AnimationTool) I dont know if this is right /\ I