Positioning a glow band

Hi! I want to make glow bands that can be placed on the arms and legs. I want to know, how would I position the glow band so it covers around the arm or leg like a normal glow band. Would I have to use CFrame? If so, I am a beginner at it, so is it possible to just get an example of a CFrame that positions a band on the wrist and the leg? Thank you!

There is an example for shades on the Humanoid | Roblox Creator Documentation which should be similar to the glow bands scenario, just change the attachment name to the same attachment name located in the R15 rig inside the arms parts you want according to the documentation so I suggest checking that out.

2 Likes

You can use WeldConstraints if you would like for it to stick to the player’s character. Would you like for me to give an example?

1 Like

Yes, that would be great. Thank you!

1 Like

I will try using this solution, thank you!

Just wondering, is it some sort of button that has the player gain them? Or do they automatically get this when joined?

1 Like

I want them to click a button, one for the right arm, one for the left, one for the right leg, one for the left.

Alright. I’m hoping that you have a RemoteEvent, because you want to make these changes on the Server, not the Client.

To keep this basic, you can set the glow band CFrame to the player’s Character, and weld them together. This will be different depending if you’re using R15 or R6. Also, I cannot test this code currently, so please let me know your issues. Also, my code will be on the server, where it’s recieving the RemoteEvent, just make sure to fire it from the client whenever they click the correct button.

R15:

--There's a better way of doing this, but for the sake of you understanding, I'll just use one RemoteEvent for each individual one.
--Be sure to place your RemoteEvent in ReplicatedStorage.

local LGlowBand = game.ServerStorage.LGlowBand

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player) 
     local Character = player.Character
     local LeftArm = Character.LeftUpperArm
     
     local newLGlowBand = LGlowBand:Clone()
     newLGlowBand.Parent = workspace
     newLGlowBand.CFrame = LeftArm -- I have no idea how yours is oriented so you'll have to work around with this.

     local BandWeld = Instance.new("WeldConstraint")
     BandWeld.Part0 = LeftArm
     BandWeld.Part1 = newLGlowBand
     BandWeld.Parent = LeftArm
  
end)

R6 is the same thing, but LeftUpperArm will change to just Character[“Left Arm”] Instead of Character.LeftArm.

4 Likes

Thank you! This works perfect!

1 Like