script.Parent.OnServerEvent:Connect(function(plr)
wait(0.3)
local Slash = game.ReplicatedStorage.WeaponSkill.cutslash:Clone()
Slash.Parent = workspace
Slash.CanCollide = false
Slash.Anchored = true
Slash.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5) * CFrame.fromEulerAnglesXYZ(0,110,0)
Slash.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Enemy") and hit.Parent.Name ~= plr.Name then
local Ball = game.ReplicatedStorage.WeaponSkill.redball:Clone()
local Tool = script.Parent.Parent.Parent
local chr = Tool.Parent
local player = game.Players:GetPlayerFromCharacter(chr)
local tag = Instance.new('ObjectValue',hit.Parent.Enemy)
tag.Name = 'Player_Tag'
tag.Value = player
Ball.Parent = workspace
Ball.CFrame = Slash.CFrame
Ball.CanCollide = false
Ball.Anchored = true
Slash:Destroy()
hit.Parent.Enemy:TakeDamage(25)
for i = 1,18 do
wait(.05)
Ball.Size = Ball.Size + Vector3.new(0.3,0.3,0.3)
Ball.Transparency = Ball.Transparency + 0.05
end
Ball:Destroy()
end
end)
Slash.Anchored = false
local BV = Instance.new("BodyVelocity",Slash)
BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BV.Velocity = plr.Character.HumanoidRootPart.CFrame.lookVector * 150
wait(5)
Slash:Destroy()
wait(0.15)
end)
COMMUNITY QUESTION
im trying to make skill that can ger reward but the value not work, can someone help me?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Explain more, you haven't added enough context to this script.
it doesnt have value