#i need help

10 messages · Page 1 of 1 (latest)

signal garnet
dreamy pelican
#

local debris = game:GetService("Debris")

local module = {}

function module.hit(enemyHum,damage,StunDuration,knockback)
local enemy = enemyHum.Parent
local enemyHumRp = enemy:WaitForChild("HumanoidRootPart")

if damage then
    enemyHum:TakeDamage(damage)
end

if knockback then
     local by = Instance.new("BodyVelocity")
     bv.MaxForce = Vector3.new(100000,0,100000)
     bv.P = math.huge
     bv.Velocity = knockback
     bv.Parent = enemyHumRp
     
     debris:AddItem(bv,0.2)
end

end

return module

#

(this is for hitservice module script)

signal garnet
#

you put local by instead of local bv

#

when creating the velocity

dreamy pelican
#

check again, i put bv

#

also what am i supoosed to fix?

signal garnet
dreamy pelican
#

oh

signal garnet