with my script i create a sphere with a body velocity, his X position and Z position works very well, but Y position doesn't work, i already created a script that move my torso to the direction that im clicking, but the body velocity still not working, somebody can help me?
local rs = game:GetService("ReplicatedStorage")
local event = Instance.new("RemoteEvent", rs)
event.Name = "GenkiDama"
local function FiredEvent(player)
local character = game.Workspace:WaitForChild(player.Name)
wait(.1)
local ki = Instance.new("Part")
ki.Size = Vector3.new(40,40,40)
ki.Size = ki.Size+Vector3.new(.42,.42,.42)
ki.Shape = "Ball"
ki.Name = "Energy"
ki.CanCollide = false
ki.BrickColor = BrickColor.new("Cyan")
ki.Material = "Neon"
ki.Parent = character
ki.CFrame = character.HumanoidRootPart.CFrame*CFrame.new(0,0,-45)
ki.CFrame = character.Torso.CFrame*CFrame.new(1, 1, -3)
local bv = Instance.new("BodyVelocity", ki)
bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
bv.velocity = character.HumanoidRootPart.CFrame.lookVector*120
game.Debris:AddItem(ki, 9)
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://586187912"
sound.Parent = ki
sound:Play()
wait(0.2)
local dmg = script.Damage:Clone()
dmg.Parent = ki
end
event.OnServerEvent:Connect(FiredEvent)

1 comment
it is a server script, i work with FE and the character is already defined at line 7