What is the best hitbox for punch system?

Is region3 is a good idea for combat/punch system? If not what should i use. But if yes where do i need to put region3 and weld in? Local script or server script.

Thank for helping :laughing:

I tried do the punch system via Region which is works pretty good and of course it’s the server script.

1 Like

Click detect at local and fire it to server?

No, fully scripted by server 1 script. It’s mean everything in it.

You don’t need anything from local side, why would you use a RemoteEvent?

1 Like

Then how can i detect player click

Simple and easily lol, via Tool.Activated:Connect(function()

With a local script, but for the region, you don’t need to pass anything from there

But i didnt use tool i made it default ability that everyone have

For that just use Mouse like this:

local Players = game:GetService("Players")
local Client = Players.LocalPlayer
local Mouse = Client:GetMouse()

Mouse.Button1Down:Connect(function()
    -- Activate the punch system.
end)
1 Like

I think touch event with a debounce would be much more simpler and easier to use. Since touch event doesn’t work well with small object, you should weld a part hitbox in front of the character which would be transparent, non-cancollide, massless, and around the size of the character.

Also don’t run it via a local script (unless your using raycasting) since your going to have to fire an event to deal damage on the server, which can be exploited.

1 Like