Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Module Script keeps crashing? Thanks for the help.

Asked by 10 years ago

Module Script (In workspace)

01local DataSave = {}
02--wait()
03--game:WaitForChild("ServerStorage")
04----game:WaitForChild("DataStoreService")
05game:GetService("DataStoreService")
06local SafeStore = game.ServerStorage:FindFirstChild("PlayersData")
07local mouse = game.Players.LocalPlayer:GetMouse()
08 
09DataSave.ItemTaken = function()
10    print(game.Players.LocalPlayer.Name)
11    --local mouse = game.Players.LocalPlayer:GetMouse()
12    local Player = game.Players.LocalPlayer
13    --local PlrData = SafeStore:findFirstChild(Player.userId)
14    if mouse.Target ~= nil then
15        if mouse.Target:findFirstChild("CanPickUp") then
View all 48 lines...

Error

1ServerStorage is not a caild member of DataModel
2Script 'Workspace.DataSaveModule', Line 6
0
Also for no reason my rep was trashed.. So please don't ignore just cause I don't have some insane Rep.. harvest109 0 — 10y
0
Also might I add, It works fine in Studio Play Solo/Studio "Server" harvest109 0 — 10y

Answer this question