local Tool = script.Parent
local Player = game.Players.LocalPlayer
local Char = game.Workspace:WaitForChild(Player.Name)
local Humanoid = Char:WaitForChild("Humanoid")
local Check = 0
local Enable = true
rs = game:GetService("ReplicatedStorage")
Tool.Activated:Connect(function()
local humanoid = script.Parent.Parent:WaitForChild("Humanoid")
if Enable == true then
Enable = false
if Check == 0 then
humanoid:LoadAnimation(script.Anim01):Play()
script.Parent.Combo.C0:FireServer(script.Parent.Handle.HitPart)
script.Swing:Play()
local power = game.StarterPlayer.StarterCharacterScripts:WaitForChild("RogueSkill")
power.Disabled = false
wait(.1)
Check = 1
Enable = true
else if Check == 1 then
humanoid:LoadAnimation(script.Anim02):Play()
script.Parent.Combo.C1:FireServer(script.Parent.Handle.HitPart)
script.Swing:Play()
local power = game.StarterPlayer.StarterCharacterScripts:WaitForChild("RogueSkill")
power.Disabled = false
wait(.1)
Check = 0
Enable = true
end
end
end
end)
while wait(.1) do
if Check == 1 then
Check = 0
wait(1)
Tool:Destroy()
wait(.2)
rs.Power:FireServer()
end
end
ok so basically i want it so when i use the tool it enables a script in my characterscripts but although it does enable the script , the script wont run, i have tried using the loadcharacter event thingy at the end using a remote event but that failed too soo im outta options could any1 help me?
