--[[script.Parent.OnServerEvent:Connect(function(plr)
	local char = plr.Character
	local Effect = game.ReplicatedStorage.FlameSkill.SkillV
	local Weld = Instance.new("Weld")
    Weld.Parent = char.Head
	Weld.Part0 = char.HumanoidRootPart
    local FX = Effect:Clone()
    FX.Parent = char.Head
	Weld.Part1 = char.Head.SkillV
	Weld.C1 = CFrame.new (0, -30, 0)
end)]]

script.Parent.OnServerEvent:Connect(function(plr)
	local char = plr.Character
	local Effect = game.ReplicatedStorage.FlameSkill.SkillV
	local FX = Effect:Clone()
	local energy = plr.Hamon
	--local FX = game.ReplicatedStorage.FlameSkill.SkillV:Clone()
	FX.Parent = char.Head
	FX.CFrame = char.HumanoidRootPart.CFrame + Vector3.new(0, 60, 0)
	FX.Anchored = true
	local Effect2 = game.ReplicatedStorage.FlameSkill.FlameV
	local FX2 = Effect2:Clone()
	if char.Humanoid.FloorMaterial == "Plastic" then
		FX2.Transparency = 0
	end
	FX2.Parent = char.Head
	FX2.CFrame = char.HumanoidRootPart.CFrame + Vector3.new(0, -10, 0)
	FX2.Anchored = true
	--FX2.Script.Disabled = false
	
	energy.Value = energy.Value + 100
	--FX.Script.Disabled = false
end)
