The first part of the script is in a LocalScript called KiBlast:
Player = script.Parent.Parent
mouse = Player:GetMouse()
run = game:GetService("RunService")
function onKeyDown(key)
script.Disabled = true
Key = key:lower()
if key == "q" then
RightShoulder = Player.Character.Torso["Right Shoulder"]
LeftShoulder = Player.Character.Torso["Left Shoulder"]
Run = game:GetService("RunService")
for i = 1,10 do
LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,0.155)
RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.155)
Run.Stepped:wait(0.025)
end
x = Instance.new("Part")
x.BrickColor = BrickColor.new("Pastel light blue")
x.FormFactor = "Custom"
x.Size = Vector3.new(2.4,2.4,2.4)
x.TopSurface = "SmoothNoOutlines"
x.BottomSurface = "SmoothNoOutlines"
x.Shape = "Ball"
x.Name = "ki"
x.Transparency = 0.1
kd = script.KiDamage:clone()
kd.Parent = x
y = Instance.new("BodyVelocity")
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
y.velocity = Player.Character["Right Arm"].CFrame.lookVector * 60
x.Parent = workspace
y.Parent = x
light = Instance.new("PointLight")
light.Parent = x
light.Brightness = 100
light.Color = Color3.new(170/255, 255/255, 255/255)
light.Range = 8
billboard = Instance.new("BillboardGui")
billboard.Parent = x
pic = Instance.new("ImageLabel")
pic.Parent = billboard
pic.BackgroundTransparency = 1
pic.Image = "http://www.roblox.com/asset/?id=198656006"
pic.ImageTransparency = 0.4
pic.Size = UDim2.new(1, 0, 1, 0)
pic.Name = "Light"
pic.Visible = true
x.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(0, -3, 0)
kd.Disabled = false
game.Debris:AddItem(x, 6)
wait(0.25)
for i = 1,10 do
LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,-0.155)
RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.155)
Run.Stepped:wait(0.025)
end
end
script.Disabled = false
wait(0.1)
end
mouse.KeyDown:connect(onKeyDown)
Part 2 is a Script called KiDamage that's inside the LocalScript KiBlast:
function onDamage(Part)
if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= "script.Parent.Name"
then
script.Disabled = true
for i = 1, 25 do
Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health - 1
wait(0.05)
end
Part.Parent.Humanoid.PlatformStand = true
script.Parent:remove()
end
wait(0.025)
end
script.Parent.Touched:connect(onDamage)
Whenever you press q, instead of going forward it goes up. Can someone tell me what's wrong with the code?

1 comment
In your ki damage script you put quouts around script.Parent.Name in line 2. You don't have to do that, it will error.