So this is the script:
local ev = script.Parent
local debounce = false
local Track = nil
ev.OnServerEvent:Connect(function(player)
local blade = player.Character:FindFirstChild("Blade")
player.PlayerStats.SwordExp.Value = player.PlayerStats.SwordExp.Value + 10
local scc = script.Script:Clone()
local Anim1 = script.anim1
local Anim2 = script.anim2
local char = player.Character or player.CharacterAdded:Wait()
if debounce == false then
debounce = true
Track = char.Humanoid:LoadAnimation(Anim1)
Track:Play()
scc.Parent = blade
game.Debris:AddItem(scc,.5)
else
debounce = false
Track = char.Humanoid:LoadAnimation(Anim2)
Track:Play()
scc.Parent = blade
end
if player.PlayerStats.SwordExp.Value / player.PlayerStats.MaxSwordExp.Value >= 1 then
player.PlayerStats.SwordLvl.Value = player.PlayerStats.SwordLvl.Value + 1
player.PlayerStats.MaxSwordExp.Value = player.PlayerStats.MaxSwordExp.Value + 10
player.PlayerStats.SwordExp.Value = 0
end
if player.PlayerStats.SwordLvl.Value <= 1 then
player.PlayerStats.MaxSwordExp.Value = 1000
end
end)
I need to put that scc script into the blade when needed which should work but doesn't cause i cannot manage to define the blade properly. Any ideas how to fix this?

2 comments
I forgot to mention that waitforchild also doesn't work
oh ok. rip