part = Instance.new("Part")
part.Size = Vector3.new(1,1,1)
part.Anchored = true
part.CanCollide = false
part.Locked = true
light = Instance.new("PointLight")
light.Parent = part
light.Range = 20
light.Brightness = 10
part.Parent = game.Workspace
while true do
part.CFrame = game.Workspace.CurrentCamera.CoordinateFrame
wait()
end
i have that but it has nothing in the output and nothing happens... Is this how i would do this?
EDIT its in a LocalScript

4 comments
This script works (Although slightly buggy...). Is it located in StarterGui? localscripts will only run as a descendant of player or character. Also why would you want the light to follow the camera? Why not put it in the character?
Oh thanks... how do i mark a question as answed?
Somebody has to make an answer, which you can mark as the answer
Might I suggest Parenting the part to CurrentCamera under workspace, that way the brick is only seen by the player?