I've been trying to make a gun in my game for a little bit, im having a little trouble with the sound though. I have put my gun in the starter pack and the sound in there too. Whenever I test the script, it says GS is not a valid member of Tool "Players.NovaGooBoom.Backpack.GUNFORGAME"
Script:
local tool = script.Parent
local sound = tool.GS
tool.Activated:Connect(function()
sound:Play()
end)
Thanks
Assuming that the script is in the tool, your sound is probably NOT in the tool, and assuming that it's in the starterpack/backpack you will just simply need to change from this:
local tool = script.Parent local sound = tool.GS tool.Activated:Connect(function() sound:Play() end)
To this:
local tool = script.Parent local sound = tool.Parent.GS tool.Activated:Connect(function() sound:Play() end)