plar = game.Players.LocalPlayer
Mouse = plar:GetMouse()
char = plar.Character
function press(key)
key = key:lower()
if key == "T" then
local I = Instance.new("Part")
I.Material = "Ice"
I.BrickColor = BrickColor.new("Medium blue")
I.BottomSurface = "Smooth"
I.TopSurface = "Smooth"
I.Shape = "Cylinder"
I.Size = Vector3.new(25, 1, 2)
I.CFrame = char.Torso.CFrame.lookVector
I.Parent = workspace
local BV = Instance.new("BodyVelocity")
BV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BV.Velocity = char.Torso.CFrame.lookVector * 40
BV.Parent = I
wait(10)
I:Remove()
end
end
Mouse.KeyDown:connect(press)
It's meant to spawn a block, but it isn't, why?

1 comment
Thanks.