ServerStorage Is not a valid memeber of DataModel?
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:
02 | local Player = game.Players.LocalPlayer |
03 | repeat wait() until Player.Character or Player.Character.Parent |
04 | Character = Player.Character |
06 | local Mouse = Player:GetMouse() |
10 | Mouse.Button 1 Down:connect( function () |
11 | if Combo = = 0 and Disabled = = false then |
13 | local Animation = Character.Humanoid:LoadAnimation(game.ServerStorage.Animations.Combat.RightPunch) |
14 | local current = Animation |
16 | Character.Animate.Disabled = true |
21 | Character.Animate.Disabled = false |
23 | elseif Combo = = 1 and Disabled = = false then |
25 | local Animation = Character.Humanoid:LoadAnimation(game.ServerStorage.Animations.Combat.LeftPunch) |
26 | local current = Animation |
28 | Character.Animate.Disabled = true |
33 | Character.Animate.Disabled = false |
35 | elseif Combo = = 2 and Disabled = = false then |
37 | local Animation = Character.Humanoid:LoadAnimation(game.ServerStorage.Animations.Combat.RightKick) |
38 | local current = Animation |
40 | Character.Animate.Disabled = true |
45 | Character.Animate.Disabled = false |
47 | elseif Combo = = 3 and Disabled = = false then |
49 | local Animation = Character.Humanoid:LoadAnimation(game.ServerStorage.Animations.Combat.LeftKick) |
50 | local current = Animation |
52 | Character.Animate.Disabled = true |
57 | Character.Animate.Disabled = false |