not sure whats going on here wached a video, and did everything he did but seems, to not work I had it working, the first time but when I went to save studio crashed and didn't save,
local ray = Ray.new(script.Parent.Position,Vector3.new(0,100,0))
while wait(1) do
local hit,position = workspace:FindPartOnRayWithIgnoreList(ray,(script.Parent))
if hit then
print(hit.Name)
local p = Instance.new("Part",workspace)
p.Anchored = true
p.CFrame = CFrame.new(position)
p.Size = Vector3.new(1,1,1)
game:GetService("Debris"):AddItem(p,1)
end
end

2 comments
thank you! i see what i did there, a simple error. that can cause everything to fail. thats alot waterisice!
Thank you! I didn't realize all I had to do was provide a table.