Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a click detector give a bundle?

Im trying to make a part with a click detector that will change your animation pack/bundle. But im a builder and have no clue on how to script, so it would mean a lot if you guys could teach me some steps on how to do it. Thank you!

2 answers

Create a part with a ClickDetector and a folder in ReplicatedStorage with the bundle meshes(the icon looks like a green strip), name the folder "PackageOne" and put a script with the following in the part with the ClickDetector.



local Package = game.ReplicatedStorage:WaitForChild("PackageOne")

script.Parent.ClickDetector.MouseClick:connect(function(Player)
local Character = Player.Character

for i,v in pairs(Package:GetChildren()) do
if not Character:FindFirstChild(v) then
local Mesh = v:Clone()
Mesh.Parent = Character

end
end

end)

it works but, it still plays my default animation for a second then goes to the animation i set it to

This discussion is preserved as it was. New answers, comments, and votes are closed.