Beam Movement not Working

Hi! I’m trying to make rush with a beam so the texture can face the player’s cam.
But it’s acting a little weird…


Here’s the script:

local rush = script.Parent.Part
local rushnew = script.Parent.Part2

local property = {
	["Position"] = Vector3.new(41.3, 4.55, 10)
}
local TweenServ = game:GetService("TweenService")

local tweeninfo = TweenInfo.new(
	5,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.InOut,
	-1,
	true,
	0
)

local tween = TweenServ:Create(
	rush, tweeninfo, property)

local tween = TweenServ:Create(
	rushnew, tweeninfo, property)

task.wait(5)

tween:Play()

Tell me if there is anything wrong with the code!!

1 Like

Hi there. Would using a billboard gui for this be better suited?

1 Like

The picture doesn’t tell us much since we don’t know what we’re supposed to be looking at.
Is the black and red image the Beam?
What do you want the Beam to look like compared to what the image shows?

Beams run from 1 Attachment to a 2nd Attachment so if you want it to align from the player to the Position it’d have to have Attachments at both ends.

If you want the Beam to look like the black and red image is moving away or to the player then a Beam probably isn’t what you need and @MykoNil’s suggestion might work better.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.