Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't my animation working, and why isn't the part sticking to my hand?

Asked by 7 years ago
Edited by OldPalHappy 7 years ago

I'm trying to create a chidori script, but the part is just staying where it was spawned when I move, and the animation isn't playing. Here's my script so far:

01local player = game.Players.LocalPlayer
02local Mouse = player:GetMouse()
03 
04game:GetService("UserInputService").InputBegan:connect(function(input,proc)
05    if  input.KeyCode == Enum.KeyCode.C then
06local x = Instance.new("Part", workspace)
07    x.Anchored = true
08    x.CanCollide = false
09    x.Material = "Neon"
10    x.Transparency = 1
11    x.Size = Vector3.new(0,0,0)
12    x.BrickColor = BrickColor.new("Cyan")
13    x.CFrame = player.Character.RightHand.CFrame*CFrame.new(0,0,0)
14local y = Instance.new("BodyVelocity", x)
15y.maxForce = Vector3.new(math.huge,math.huge,math.huge)
View all 32 lines...
2
Format your code in Lua code block, please. Goulstem 8144 — 7y
0
i don't know how to do that ;-; izanagi456 4 — 7y

Answer this question