-
What do you want to achieve? A simple helicopter
-
What is the issue? I tried to use bodyvelocity and linearvelocity but when I play the game It doesn’t work
-
What solutions have you tried so far? I have search in the devforum but nothing seems to help
--
local InputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local Humanoid = character:WaitForChild("Humanoid")
local PrimaryPart = script.Parent
if script.Parent.Parent.Seat.Seat.Occupant == Humanoid then
InputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.W then
local BodyVelocity = Instance.new("BodyVelocity", PrimaryPart)
BodyVelocity.Velocity = Vector3.new(0,10,0)
BodyVelocity.P = 1000
end
end)
end