local UIS = game:GetService(“UserInputService”)
local plr = game.Players.LocalPlayer
local Character = plr.Character or plr.CharacterAdded:Wait()
local hum = Character:WaitForChild(“Humanoid”)
local TornadoPart = game:GetService(“ReplicatedStorage”).Tornado
local debris = game:GetService(“Debris”)
local Anim = Instance.new(“Animation”)
Anim.AnimationId = “rbxassetid://12287682379”
local Animtrack = hum:LoadAnimation(Anim)
UIS.InputBegan:Connect(function(input,gpe)
if input.KeyCode == Enum.KeyCode.Q then
Animtrack:Play()
local TornadoPart = game:GetService(“ReplicatedStorage”).Tornado:Clone()
TornadoPart.Position = plr.Character:WaitForChild(“HumanoidRootPart”).Position
TornadoPart.Anchored = true
TornadoPart.CanCollide = false
TornadoPart.Velocity = Vector3.new(10,10,0)
TornadoPart.Parent = workspace
You are trying to move what to where? and the velocity property?
As @bluebxrrybot said, just use the CFrame, maybe like this?
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local Character = plr.Character or plr.CharacterAdded:Wait()
local hum = Character:WaitForChild("Humanoid")
local TornadoPart = game:GetService("ReplicatedStorage").Tornado
local debris = game:GetService("Debris")
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://12287682379"
local Animtrack = hum:LoadAnimation(Anim)
UIS.InputBegan:Connect(function(input,gpe)
if input.KeyCode == Enum.KeyCode.Q then
Animtrack:Play()
local TornadoPart = game:GetService("ReplicatedStorage").Tornado:Clone()
TornadoPart.CFrame = plr.Character:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0,0,-5)
TornadoPart.Anchored = true
TornadoPart.CanCollide = false
TornadoPart.Velocity = Vector3.new(10,10,0)
TornadoPart.Parent = workspace
debris:AddItem(TornadoPart,2)
end
end)