I am experiencing a problem with a tool that is in ServerStorage not being registered by a script as being in ServerStorage. Below is the code as well as a couple of screenshots.
function onClick()
local player = script.Parent.Parent.Parent.Parent.Parent
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 8042584262) then
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Frame3.Visible = true
script.Parent.Parent.Parent.Type.Value = 5
local ttype = script.Parent.Parent.Parent.Type.Value
script.Parent.Parent.Parent.Sensor.Value.nf9w8gt:FireServer(ttype)
game.ServerStorage.Investor:Clone().Parent = player.Backpack
light2.BrickColor = BrickColor.new("Lime green")
wait(1.5)
light2.BrickColor = BrickColor.new("Bright blue")
end
end
script.Parent.MouseButton1Down:connect(onClick)
Local scripts can’t access server storage. Or anything that has server in its name. Move the tools into replicated storage. Since replicated storage can be accessed by the local script