So I tried to do a tool, well, I've done it hundred of times, not like this, last time was with a Friaza Tutorial on YouTube. What I want it to do is spawn a part, and shoot it to where ever my Torso is facing. I thought it was lookVector, but I tried it, and it failed
function ClickityClick()
local Tool = script.Parent
local Handle = Tool.Handle
Backpack = Tool.Parent
Char = Backpack.Parent
Char:FindFirstChild(Char, "Torso")
if(Torso ~= nil) then
Handle.BrickColor = BrickColor.new("Really red")
print("The Handle Color has changed into"..Handle.BrickColor)
NP =Instance.new("Part")
NP.Shape = "Ball"
NP.BrickColor = BrickColor.new("Toothpaste")
NP.CFrame = Torso.CFrame
end
end
script.Parent.Activated:connect(ClickityClick)
