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

Nothing past the parts variable parses when running my ability script?

Asked by 2 years ago

Im trying to make a simple ability (note i made it so the player is detected on purpose for debugging)

Script in ServerScriptService

01local ReplicatedStorage = game:GetService("ReplicatedStorage")
02local SecularDirectory = ReplicatedStorage.Abilities.Secular
03 
04SecularDirectory["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")
08 
09        local Anim = hum:LoadAnimation(SecularDirectory["Soul Piercer"].Animation)
10        Anim.Looped = true
11 
12        Anim:Play()
13        --// Parenting \\--
14        local SoulPierce = SecularDirectory["Soul Piercer"].SoulPierce:Clone()
15        SoulPierce.Parent = char
View all 39 lines...

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.

Answer this question