Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't the brick move up?

Asked by 4 years ago
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)

0
what exactly are you trying to do? Whats the issue? Benbebop 1049 — 4y
0
The brick is supposed to move back up to the ground after I press z but it just stays below ground FireCoolflame 21 — 4y

Answer this question