This post is in regards to something I’m creating. I was creating a Key (Tool) to open up a door.
I made it normally and it worked perfectly fine. However, every time I’d like to clone it into the LocalPlayer’s Backpack it goes there but the script or the sound doesn’t work.
I get no Error from the Output. When I put it in Workspace/StarterPack it works just fine!
-- Clone code. (I cut out a section of the whole code since it's messy) local tool = game.ReplicatedStorage.Key:Clone() tool.Parent = game.Players.LocalPlayer.Backpack
-- This is the Script located inside the Tool. local tool = script.Parent local sound = script.Sound local Proxy = game.Workspace.ProximityPrompt tool.Equipped:Connect(function(equipped) Proxy.HoldDuration = "1.5" Proxy.ActionText = "Unlock" Proxy.Script1.Disabled = false Proxy.Script.Disabled = true sound:Play() end) tool.Unequipped:Connect(function(unequipped) Proxy.HoldDuration = "0" Proxy.ActionText = "Locked" Proxy.Script1.Disabled = true Proxy.Script.Disabled = false end)
Does anyone know why it just doesn’t work?
I tried to clone the Script and the Sound separately and it still doesn’t work.