astraIboy
(The Batman)
June 16, 2020, 8:41pm
1
So I set a beams attachment in the script but when I check in workspace where the beam is located and look at the attachment0 and attachment1 it is blank for some reason here is the script where I make the beam and assign it’s attachments.
local Beam = Instance.new("Beam")
Beam.Name = "Web"
Beam.Parent = target
Beam.Color = BrickColor.new("Institutional white")
Beam.Attachment0 = buildingattachment
Beam.Attachment1 = LeftArmAttachment
cjjdawg
(cjjdawg)
June 16, 2020, 8:45pm
2
Did you parent the attachments to the beam as well? I think attachments cannot be directly parented to the workspace they must be children of instances.
astraIboy
(The Batman)
June 16, 2020, 8:46pm
3
No the attachments are not in workspace
cjjdawg
(cjjdawg)
June 16, 2020, 8:46pm
4
They must parented to part instances.
astraIboy
(The Batman)
June 16, 2020, 8:47pm
5
Thats exactly what I did…
xZylter
(xZylter)
June 16, 2020, 8:49pm
6
How are you creating these attachments? Are you using scripts or are they already in the workspace before you play test?
cjjdawg
(cjjdawg)
June 16, 2020, 8:49pm
7
Try setting the attachments before parenting the beam.
3 Likes
astraIboy
(The Batman)
June 16, 2020, 8:50pm
8
Oh It worked thanks for the help man!
1 Like
xZylter
(xZylter)
June 16, 2020, 8:50pm
9
When it comes to creating new instances the last thing you should do is assign the parent.
astraIboy
(The Batman)
June 16, 2020, 8:51pm
10
Alright Ill keep that in mind thanks!
cjjdawg
(cjjdawg)
June 16, 2020, 8:51pm
11
Glad to help also I think beam.color should be a Color sequence.
astraIboy
(The Batman)
June 16, 2020, 8:51pm
12
Oh it’s working just fine with brickcolor
1 Like