I posted again cause most people were allergic to my last post.. This is a module Script

local DataSave = {}
--wait()
--game:WaitForChild("ServerStorage")
----game:WaitForChild("DataStoreService")
game:GetService("DataStoreService")
local SafeStore = game.ServerStorage:FindFirstChild("PlayersData")
local mouse = game.Players.LocalPlayer:GetMouse()

DataSave.ItemTaken = function()
    print(game.Players.LocalPlayer.Name)
    --local mouse = game.Players.LocalPlayer:GetMouse()
    local Player = game.Players.LocalPlayer
    --local PlrData = SafeStore:findFirstChild(Player.userId)
    if mouse.Target ~= nil then
        if mouse.Target:findFirstChild("CanPickUp") then
            if mouse.Target:findFirstChild("CanPickUp").Value == true then
                local Item = mouse.Target:findFirstChild("CanPickUp").Parent
                print(Item.Name .. " Is what your trying to pick up!")
                local found = nil
                local values = Player.Data.SlotHold:GetChildren()
                for i=1,#values do
                    if values[i].ClassName == "BoolValue" then
                        if values[i].Value == false then
                            found = values[i]
                            break
                        end
                    end
                end
                if found ~= nil then
                print(found)
                Player.Data.SlotHold:findFirstChild(found.Name).Value = true
                local CurrentSlot = Player.Data.SlotHold:findFirstChild(found.Slot.Value).Name
                print(Player.Data.SlotHold:findFirstChild(found.Slot.Value).Name .. " Is line 31")
                print(CurrentSlot.Name)
                local SlotTemp = Player.Data.SlotHold:findFirstChild(CurrentSlot)
                print(SlotTemp.Parent)
                SlotTemp.ItemName.Value = (mouse.Target:findFirstChild("CanPickUp").Parent.Name)
                ---CurrentSlot.ItemStock.Value = 
                end
                if found == nil then
                print("Invintory Full!")
                end
            end
        end
    end
end

return DataSave

Error Also might I add, It works fine in Studio Play Solo/Studio "Server" ERROR vvv

ServerStorage is not a vaild member of DataModel
Script 'Workspace.DataSaveModule', Line 6

3 comments

0

Do not re-post the same question over and over again, as I have checked, your original post was 16-17 hours ago, which takes a user of the Website a day or two before you get a response. Be Patient.

0

I'm sorry I just felt like nobody saw my post..

0

If you check your Question in the 'Questions' section, it will show how many users have reviewed your Question. Current, your older Question has 14-15 reviews, but it may have no response because: 1. They may not know how your code works. 2. May not know how to fix it. 3. May not have enough information on the problem; Error, specific error, what isn't working exactly, ect. 4. May be working on it