Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Server Side:local hitboxEvent = game.ReplicatedStorage.Remotes.Hitboxlocal hitboxDestroyTime = 0.2local Ifhit = falsehitboxEvent.OnServerEvent:Connect(function(player) local hitbox = Instance.new("Part") hitbox.Size = Vector3.new(8,8,8) hitbox.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-3) hitbox.Transparency = 1 hitbox.CanCollide = false hitbox.Anchored = true hitbox.Parent = workspace --Damaged touched hitbox.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid and humanoid.Health > 0 and hit.Parent.Name ~= player.Name and Ifhit == false then Ifhit = true humanoid:TakeDamage(10) wait(hitboxDestroyTime + 0.1) Ifhit = false end end) game.Debris:AddItem(hitbox, hitboxDestroyTime)end)Thanks for watching
In Sha Allah u will get famous
i love ur vids
samesame
thanks
Server Side:
local hitboxEvent = game.ReplicatedStorage.Remotes.Hitbox
local hitboxDestroyTime = 0.2
local Ifhit = false
hitboxEvent.OnServerEvent:Connect(function(player)
local hitbox = Instance.new("Part")
hitbox.Size = Vector3.new(8,8,8)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-3)
hitbox.Transparency = 1
hitbox.CanCollide = false
hitbox.Anchored = true
hitbox.Parent = workspace
--Damaged touched
hitbox.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid and humanoid.Health > 0 and hit.Parent.Name ~= player.Name and Ifhit == false then
Ifhit = true
humanoid:TakeDamage(10)
wait(hitboxDestroyTime + 0.1)
Ifhit = false
end
end)
game.Debris:AddItem(hitbox, hitboxDestroyTime)
end)
Thanks for watching
In Sha Allah u will get famous
i love ur vids
samesame
thanks