whenever I do script.Parent.Position = Vector3.new(y)-1 or anything like that it errors out saying Y cannot be assigned what am I doing wrong here because when I do script.Parent.Position. I get the ability to pick X, Y, Z but I want to pick y then subtract .5 from it so when it touches the ground the y Value is -.5 of where it would be
heres my script so far
script.Parent.Touched:connect(function(hit)
local p = Instance.new("Part", workspace)
p.Anchored = true
p.Position = script.Parent.Position
p.Size = Vector3.new(0.3, 0.3, 0.3)
p.Color = Color3.new(0, 0, 0)
p.Position.y = Vector3.new(p.Position.y -1)
script.Parent:Destroy()
end)

3 comments
sadly this doesn't work
Are you getting any error? If the box is colliding with a brick you want it to phase through, you'll have to use CFrame. (Replace .Position in the second method with .CFrame on both bits.)
oh okay thank you