10-17-2010, 02:14 PM
Put this script in a tool, then hold down the mouse button to fly.
Code:
tool = script.Parent
player = tool.Parent.Parent
if player:isA("Player") then
controller = player.Character.Body.Controller
link(script.Parent.MouseDown, function(button, point)
controller.Velocity = Vec2D(controller.Velocity.x, 5)
end)
link(script.Parent.MouseUp, function(button)
controller.Velocity = Vec2D(controller.Velocity.x, 0)
end)
end