function startBelt ()
while true do
script.Parent.Velocity = script.Parent.CFrame.lookVector *50
wait (0.01)
end
end
startBrick = game.Workspace.woof
startBrick.Touched:Connect (startBelt)
function startBelt ()
while true do
script.Parent.Velocity = script.Parent.CFrame.lookVector *50
wait (0.01)
end
end
startBrick = game.Workspace.woof
startBrick.Touched:Connect (startBelt)
local belt = script.Parent
belt.Touched:connect(function(hit)
if hit then
if hit.Parent:FindFirstChild("Humanoid") then
script.Parent.Velocity = script.Parent.CFrame.lookVector *50
wait(0.01)
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Try that. It may work if line 6 is the way you want it to shoot.
Put it inside the part you want to touch too.
Leave an upvote if it works! :)