So what I would like is that when you Touch part an arrow will travel across towards a part called locator1 but it just doesn't work and there is no Output telling me what has happened, either, just nothing occurs. This is what I have so far: (This is in the part you touch)
function onTouched(hit) -- When you touch the part
if hit.Parent:findFirstChild("Humanoid") then -- Verify that a actual player hit it
local Shaft = game.Workspace.Arrow.Shaft -- Declare what Shaft is
Shaft.RocketPropulsion:fire()-- Fire Shaft
wait (20) -- Wait 20 seconds
Shaft.CFrame = CFrame.new(-8.5, 3.5, -0.5) --Put Shaft back to where it was
end
end
Then inside the Arrow there is a block called Shaft which has all the other parts welded to it. This script is inside the Shaft. (Shaft is a child of the arrow)
local RP = Instance.new('RocketPropulsion', game.Workspace.Arrow.Shaft) -- I think the parenting here might be off, script.parent was what I had before, and that didn't work.
RP.Target = game.Workspace.locator1 --This is the part the arrow travels towards
RP.MaxSpeed = 100 --Change the Shaft's speed Speed
RP.CartoonFactor = 0 -- This makes the shaft point towards a target

1 comment
oof my script didnt come out correctly :\