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

Swords not swinging after cloned?

Hi. In studio mode, when I clone a sword and give it to the player, the sword works normally, all of the animations, etc. but when I play the game through the ROBLOX launcher, the sword clones, but has none of its animations.

What is the problem? Here is the script I am using to clone them: (It's through a ScreenGui click)

local button = script.Parent

button.MouseButton1Click:connect(function() 
game.ReplicatedStorage.Illumina:Clone().Parent = game.Players.LocalPlayer.Backpack
end)

3 comments

0

Assuming this is from a localscript and all the animations are preloaded from the script in the tool then this should work perfectly.

0

It is in a local script, yeah. I'm very confused about why this doesn't work in-game..

0

Try making this a serverscript, putting the Sword in ServerStorage, and accessing the player through PlayerGui.. maybe you can't clone animations client-sided.

1 answer

Is the game FilteringEnabled? If yes, this won't work.

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