How to make something stay on your body part and move with it?
I am making a script which charges a red orb on the end of your outstretched arm, how would i make it stay with the arms movements?
01 | game.ReplicatedStorage.Custom.OnServerEvent:Connect( function (plr,mousehit,key) |
02 | if key = = "Blast" then |
03 | local char = game.Players [ plr.Name ] .Character |
04 | local hum = char.Humanoid |
05 | local root = char.HumanoidRootPart |
06 | local charging = Instance.new( "Part" ,workspace) |
07 | charging.Shape = Enum.PartType.Ball |
08 | charging.Material = Enum.Material.Neon |
09 | charging.Size = Vector 3. new( 0.1 , 0.1 , 0.1 ) |
10 | charging.BrickColor = BrickColor.new( "Really red" ) |
11 | charging.CanCollide = false |
12 | charging.Anchored = true |
13 | charging.CFrame = char [ "Right Arm" ] .CFrame ( |
Also, when the animation plays, it will go back to a regular position after a few seconds, which shouldn't happen.