#Why This Damage Script Isn't Working?
48 messages · Page 1 of 1 (latest)
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild("DivineDogCooldown") then
local cd = Instance.new("IntValue",hit.Parent)
cd.Name = "DivineDogCooldown"
local sound2 = game.ReplicatedStorage.Infinity.Red2:Clone()
sound2.Parent = hit.Parent.HumanoidRootPart
sound2:Play()
game.Debris:AddItem(sound2,1)
if player:FindFirstChild("UsingDomainExpansion") then
hit.Parent.Humanoid:TakeDamage((10 * (value.Value / 4)) * 2)
else
hit.Parent.Humanoid:TakeDamage(10 * (value.Value / 4))
print(2)
end
game.Debris:AddItem(cd,.75)
end
end
end
end)
thats more than just damage lol
what is value?
If its 0, then damage is 0, meaning it wont do anything
it's the stats, and when the player join it's 1 and the player can add to that value
could you show the full script
sure
sry, it's txt because it's more than 110 lines
the text1 to text4 i will not use rn
bruh
delete this and make your own post bro
yeah lol
you have to make the .Touched event outside the other event
wait one sec I'll do it for you
ok
umm can u help me with my problem?
i will see it
thx
i rly dont know, sry bro
ok thx then ima just wait for gray to finish yours XD
send it
to dm or here?
If you want to get warned for misuse of channels, you could do it in here
if not, dms
ok XD
i tested here and hitbox dont detect touch (i tested it with print)
workspace:getpartsinparts
to be honest
rewrite that whole thing, its very messy
k
i tried that but when print theres no part in there
ok
worked ig
aight
ok, i will try