I'm trying to create a damage effect around a volcano in something I'm working on by having a sphere block and making the player take damage over time while they're inside of it. I've heard of the Region3(?) technique but that seems to only work on cube/rectangle shapes. Is there any way to make a player take damage within this sphere?
edit: the technique ive tried to use is using touched and touchended events, but it only takes damage when the character touches the sphere for the first time or moves while within, then stops. the damage is always all taken at once as well, like 20 per jump original code:
local part = script.Parent
part.Touched:Connect(function(hit)
local h = hit.Parent:FindFirstChildOfClass("Humanoid")
if h then
h:TakeDamage(5)
end
wait(1)
return
end)
part.TouchEnded:Connect(function()
return
end)

2 comments
this is not a request site
That isn't a "request". He provided code and he tried or considered options.