wait(.2)
	local player = game.Players.LocalPlayer
local character = player.Character
	local humanoid = character.Humanoid
	local mouse = player:GetMouse()
	 local UIS = game:GetService("UserInputService")
	UIS.InputBegan:Connect(function(key)
	    if key.KeyCode == Enum.KeyCode.Z then
	        local Part = Instance.new("Part")
	        Part.Size = Vector3.new(9, 11, 1)
        Part.BrickColor = BrickColor.new("Brown")
	        Part.Anchored = true
	        Part.CFrame = character.Head.CFrame * CFrame.new(0, -12, -5)
	        Part.Parent = game.Workspace
	        local bv = Instance.new("BodyVelocity")
        bv.Parent = Part
	        bv.MaxForce = Vector3.new(1e8, 1e8, 1e8)
	        bv.Velocity = Vector3.new(0, 50, -5) * 100
	 
	 
	 
	    end	end)

2 comments

0

what exactly are you trying to do? Whats the issue?

0

The brick is supposed to move back up to the ground after I press z but it just stays below ground