Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Brick will not CFrame?

Asked by 8 years ago

I have a light beam I want over a part. Well the part will be teleporting around the map at times so I need it to always move with the part. Right now the beam wont move to the part at all with no output errors. Any help?

local beam= script.Parent
local map = game.Workspace:WaitForChild("Map")
local cube = map:WaitForChild("Cube")
local cpos = cube.Position
local bpos = beam.Position

bpos.CFrame = CFrame.new(cpos)

Very small code I just don't understand why this is not working from what I see it should be fine.

Answer this question