Hello reader! Basically I am making a hotel game, and I have made a keycard giver, and it gives me the keycard, and everything goes well, until I try to use the keycard on the door. It's like if the scripts were disabled, as it doesn't even print anything.
The keycard comes from the replicated storage folder, and is given through a Gui.
local tool = game.ReplicatedStorage["001"] local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function() tool:Clone() --clones tool tool:Clone().Parent = player.Backpack end)
I need it to some how clone the tool and put it into the backpack without the scripts breaking.
Any help is appreciated! If you have any questions, you may ask!
Thanks in Advance, Spxnkles

2 comments
Could you maybe post the script for the door instead? All this script does is give the keycard and as you said, it works fine.
Try putting the tool in StarterPack and test if it works. And let me know if the tool works fine or not.