Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Swords not swinging after cloned?

Asked by 9 years ago

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)
0
Assuming this is from a localscript and all the animations are preloaded from the script in the tool then this should work perfectly. Goulstem 8144 — 9y
0
It is in a local script, yeah. I'm very confused about why this doesn't work in-game.. DrCylonide 158 — 9y
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. Goulstem 8144 — 9y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question