local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
local enabled = true
mouse.KeyDown:connect(function(key)
key = key:lower()
if not enabled then return end
enabled = false
if key == "k" then
local x = Instance.new("Part", workspace)
x.Anchored = false
x.CanCollide = false
x.Material = "Neon"
x.Transparency = 0.5
x.Size = Vector3.new(39.71, 20.67, 40.45)
x.BrickColor = BrickColor.new("Cyan")
x.CFrame = Player.Character.UpperTorso.CFrame*CFrame.new(0,0,-20)
local y = Instance.new("BodyVelocity", x)
y.maxForce = Vector3.new(math.huge,math.huge,math.huge)
y.velocity = Player.Character.UpperTorso.CFrame.lookVector*80
local mes = script.Dragon:Clone()
mes.Parent = x
local wa = script.Wave:Clone()
wa.Parent = x
mouse.Move:connect(function()
y.velocity = CFrame.new(Player.Character.UpperTorso.Position,mouse.Hit.p).lookVector*100 -- Controlling with the Mouse
end)
game.Debris:AddItem(x,4)
end
wait(3.9)
enabled = true
end)
everything is fine and I can control the part but the thing is when I control it , it goes down I have no idea what to change in the CFrame to make it not go down only be above the baseplate..
