Nothing past the parts variable parses when running my ability script?
Im trying to make a simple ability (note i made it so the player is detected on purpose for debugging)
Script in ServerScriptService
01 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
02 | local SecularDirectory = ReplicatedStorage.Abilities.Secular |
04 | SecularDirectory [ "Soul Piercer" ] .Cast.OnServerEvent:Connect( function (player) |
05 | if player.stats.soul.Value > = 20 then |
06 | local char = player.Character |
07 | local hum = char:WaitForChild( "Humanoid" ) |
09 | local Anim = hum:LoadAnimation(SecularDirectory [ "Soul Piercer" ] .Animation) |
14 | local SoulPierce = SecularDirectory [ "Soul Piercer" ] .SoulPierce:Clone() |
15 | SoulPierce.Parent = char |
16 | SoulPierce.HandWeld.Part 1 = char [ "Left Arm" ] |
19 | local parts = game.Workspace:GetPartsInPart(SoulPierce.Hitbox) |
24 | if v.Parent:WaitForChild( "Humanoid" ) then |
25 | if v.Parent:FindFirstChildOfClass( "Tool" ) then |
26 | local enemy = game.Players:GetPlayerFromCharacter(v.Parent) |
28 | local statsFolder = enemy:WaitForChild( "stats" ) |
29 | local posture = statsFolder:WaitForChild( "posture" ) |
Also yes, the part spawns, gets welded, and the animation plays, my only issue is with everything BELOW the "local parts = game.Workspace:GetPartsInPart(SoulPierce.Hitbox)"
and yes there is 0 errors.