Well, if you see in this video the charger that the character throws does not disappear and causing it to go down. In blender it disappears with the option of visibility viewport but it is seen that the roblox does not detect it. Please help me.
is it a separate object in Roblox Studio?
You can’t exactly fix this issue inside of the animation preview.
But you can make the charger disappear in game, you’ll need to upload the animation to roblox, and then import it onto your rig.
Inside of the animation you need to find a moment to where the character starts to throw out the charger, and then a moment where you want the charger to appear again.
Then for both of those keyframes, rename the 1st one “Throw” and the 2nd one "Return"
Then export the animation as the same one.
Create an animation instance inside of the rig, and then set the animation ID,
then create a normal script inside of the rig, and then inside of that script paste and then edit the script so it’ll work
local tweenService = game:GetService("TweenService")
local charge = script.Parent:FindFirstChild("CHARGER NAME HERE")
local humanoid = script.Parent:FindFirstChildOfClass("Humanoid")
local animation = script.Parent:FindFirstChild("ANIMATION INSTANCE NAME HERE")
local animTrack = humanoid:LoadAnimation(animation)
local tweenLength = .05 --Change this if you think the tween is too slow/fast
animTrack:Play()
animTrack.KeyframeReached:connect(function(name)
if name == "Throw" then
tweenService:Create(charge,TweenInfo.new(tweenLength,Enum.EasingStyle.Linear),{Transparency = 1}):Play()
elseif name == "Return" then
charge.Transparency = 0
end
end)
and then hit “F8” on your keyboard to run the game, if something doesn’t work then please tell me.