It's supposed to make random parts float into the air but when I use the script it's not working.
p = game.Players.LocalPlayer
Character = p.Character
Humanoid = Character.Humanoid
Torso = Character.Torso
Head = Character.Head
doing = false
LeftArm = Character["Left Arm"]
RightArm = Character["Right Arm"]
LeftLeg = Character["Left Leg"]
RightLeg = Character["Right Leg"]
Neck = Torso.Neck
RightShoulder = Torso["Right Shoulder"]
LeftShoulder = Torso["Left Shoulder"]
RightHip = Torso["Right Hip"]
LeftHip = Torso["Left Hip"]
NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
mouse = p:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "c" and doing == false then
doing = true
LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(-.5,0,0)
RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(-.5,0,0)
while key == "c" and doing == true do
wait(1)
part = Instance.new("Part", workspace)
part.Size = Vector3.new(math.random(1,20),1,8)
part.Anchored = false
bv = Instance.new("BodyVelocity", part)
bv.Velocity = Vector3.new(0,5,0)
bv.P = 1250
bv.MaxForce = Vector3.new(4000,4000,4000)
part.Position = Torso.Position + Vector3.new(math.random(1,50),.5,math.random(1,50))
RightLeg.Touched:connect(function(hit)
if not hit.Parent:findFirstChild(Head) and not hit.Parent.Parent:findFirstChild(Head) then
part.BrickColor = hit.Parent.BrickColor
part.Transparency = hit.Parent.Transparency
part.Material = hit.Parent.Material
end
end)
end
else
LeftShoulder.C0 = LeftShoulderC0
RightShoulder.C0 = RightShoulderC0
return
end
end)
mouse.KeyUp:connect(function(key)
if key == "c" and doing == true then
doing = false
LeftShoulder.C0 = LeftShoulderC0
RightShoulder.C0 = RightShoulderC0
end
end)

6 comments
What exactly isn't working? Are there any errors in output?
No, the part isn't floating into the air
try changing MaxForce to maxForce
Still nothing. If you insert a part into workspace, unanchor it, insert bodyvelocity; nothing will happen.
Yeah, I have been experiencing the same issues, also with Velocity. I parented both to the player, but they only slowed the fall speed.
Yea so idk why bodyvelocity isn't working