I’m having a problem, where when the tool I clone from replicated storage (using a local script in starterPlayerScripts), it simply won’t activate. However, if I place the tool in starterPack instead of cloning it from replicated storage, the tool works just fine.
link to video since “new users cannot upload attachments”:catbox.moe
Here’s the local script placed in startPlayerScripts:
local dialog = game.Workspace:WaitForChild("SketchyGuy"):WaitForChild("Head2"):WaitForChild("Dialog") --wait for dialog to exist
player = game.Players.LocalPlayer
firework = game.ReplicatedStorage.Firework2010
dialog.DialogChoiceSelected:Connect(function(player, choice) --function for when a dialogue choice is picked
if choice.Name == "trigger1" or "trigger2" then --check to see if the choice selected is the confirm option for the bandit quest
firework:Clone().Parent = player.Backpack --clone the instance to workspace, this is so that it can be used more than once (not cloning it will make it be parented in its entirety, leaving nothing behind)
end
end)
Note: The children and scripts of the tool inside ReplicatedStorage are the same as the one inside of the StarterPack. The tool is unanchored. They are identical.