You should use Region3 for this as this will check everything inside or :GetPartsInide()
BUT HOW TO damage the enemies if tool is activated?
enemyhumanoid:TakeDamage(10)
enemyhumanoid gotten from the magnitude
There is no debounce here.
i would strongly use magnitude or region3
omg you monitoring my posts??? niceee
however i would also consider using magnitude but idk how to make a ton of entities check if hit at once WITH ONLY USING MAGNITUDE
You could use the ZonePlus Module by ForeverHD
Devforum Post:
is that stuff free or paid? i hate modulescripts tho
It’s free + it’s also very easy to setup
i dont understand his setups also i think his stuff is really messy since he has every morph in every playermodel each in his hd admin
i’m not monitoring anything bro, your just everywhere
simply don’t use HD admin(personally I make my own admin commands)
can i buy it (get it for free?) i woulld give you full credit
ay really? well you seem to be that too.
yes i am and im also in your walls. im literally everywhere
Imma be honest I didn’t script them for public usage, so it’s not update to date both performance wise and with ROBLOX new functions and stuff.
yeah bro i’m actually a russian agent spy and ii am in your walls i am in your walls i am in your walls
So to check if a player is inside a Zone its pretty easy to do.
[This is for Reference, you can modify it like you wish]
To start first make a part like this in Workspace with CanCollide = False:
Then make a script and sound instance like this in Starterplayerscripts:
(You can use the sound id as a Template for now)
Then inside the Music Local script put this
local LocalPlayer = game:GetService("Players").LocalPlayer
while wait(0.1) do
-- Could use RunService.RenderStepped
local hit = workspace:GetPartsInPart(game.Workspace:WaitForChild("Zone"))
-- Get all the parts inside Zone
local PlayerDetected = false
for _, object in hit do
local Player = game:GetService("Players"):GetPlayerFromCharacter(object.Parent)
if Player and Player == LocalPlayer then
-- Checking if Player is Local Player
PlayerDetected = true
if not script.ZoneSound.Playing then
script.ZoneSound:Play()
end
end
end
if not PlayerDetected then
script.ZoneSound:Stop()
end
end
Mark me solution
A little extra cuz i saw u asking it
How to make a system which checks if a zombie is in a zone and if it is then it takes damage:-
First make a Sword Tool and 2 Rigs with each different names like this:
Then inside the Script in the tool type:
local HumanoidRigs --[[ Or Players --]] = {game.Workspace.Rig1, game.Workspace.Rig2}
script.Parent.Activated:Connect(function()
local OtherPart
for _, v in HumanoidRigs do
local MinimumDist = 5
local Dist = (v.HumanoidRootPart.Position - script.Parent.Blade.Position).Magnitude
if Dist <= MinimumDist then
MinimumDist = Dist
OtherPart = v.PrimaryPart
end
end
local HitParts = game.Workspace:GetPartsInPart(game.Workspace.Zone) -- Specify Zone Here
local InZone = false
for _, object in HitParts do
if object.Parent == script.Parent.Parent then
InZone = true
end
end
if not InZone then return end
if not OtherPart then return end
local Human: Humanoid = OtherPart.Parent:WaitForChild("Humanoid")
if Human then
Human:TakeDamage(10) -- Amount Of Damage
end
end)
I hope it helped you
thats totally fine for me… would you share? (i promise i wont reupload)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.