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

ServerStorage Is not a valid memeber of DataModel?

Asked by
Jirozu 71
8 years ago

I made a combat script that works fine in studio but when i play it in the actual roblox player, it pops up with this error:

"21:47:56 -- ServerStorage Is not a valid memeber of DataModel 21:47:56 -- Stack Begin 21:47:56 -- Script 'Player.iEchoFalcon.BackPack.PlayerStuffs.Combat', Line 13 21:47:56 -- Stack End"

Also, here is the combat script:

01--\\Player Variables
02local Player = game.Players.LocalPlayer
03repeat wait() until Player.Character or Player.Character.Parent
04Character = Player.Character
05--\\Variables
06local Mouse = Player:GetMouse()
07local Combo = 0
08local Disabled = false
09 
10Mouse.Button1Down:connect(function()
11    if Combo == 0 and Disabled == false then --Right Punch
12        Disabled = true
13        local Animation = Character.Humanoid:LoadAnimation(game.ServerStorage.Animations.Combat.RightPunch)
14        local current = Animation
15        current:Play()
View all 59 lines...
0
What type of script was this in (LocalScript, Script, Or ModuleScript)? LevelHeadedLogic 13 — 8y
0
LocalScript Jirozu 71 — 8y

1 answer

Log in to vote
7
Answered by
cabbler 1942 Moderation Voter
8 years ago

LocalScripts can't access ServerStorage, that's the point! You will have to place your animations in ReplicatedFirst, or ReplicatedStorage if the server also needs them.

Ad

Answer this question