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

My gamepass Item functions no longer work, why Is that?

So there was a problem with the scripting I did, So I decided to script a gamepass button on a YT video (This one: https://www.youtube.com/watch?v=d3Ke3VRaSCk)

It works however the problem Is that once the gamepass tool Is given to the player the functions no longer work, my tool Is a melee weapon that has pathetic mediocre range but does 50 to 100 damage, It also has a custom slash animation

1 answer

You need to put your tool in ReplicatedStorage, and you have to clone the tool from ReplicatedStorage. You should only give players the cloned object.

2 comments

0

The two scripts are local scripts btw. And I actually founded out the reason, Its due to the client side. (Also It will not show other players) Also what do u mean by "You should only give players the cloned object"?

0

What I mean by giving the cloned object, is that you need to clone the original tool from ReplicatedStorage. For example like this: "local clonedTool = tool:Clone()". And then you would give the players only the clonedTool variable so that the tool can be used for the gamepass for unlimited times.

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