here is my code, it's in serverscriptservice. I have made this by myself. it works prefectly. You just need to tween the parts, that script is included
local player = game:GetService('Players').PlayerAdded:Connect(function(player)
local char = player.CharacterAdded:Connect(function(character)
local hum = character:WaitForChild("Humanoid")
end)
end)
local function DamageOverTime()
local GasPart = game.Workspace.GasPart
repeat wait() hum.Health = hum.Health - 0.05
until
GasPart.TouchEnded
end
for k,n in pairs(game.Workspace:GetChildren()) do
local player = game:GetService('Players').PlayerAdded:Connect(function(player)
local char = player.CharacterAdded:Connect(function(character)
hum = character:WaitForChild("Humanoid")
end)
end)
local GasPart = game.Workspace.GasPart
if n.Name == "GasPart" then
n.Touched:Connect(DamageOverTime)
end
end
another script in serverscriptservice.
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
-1,
true,
0
)
local Goals = {
Size = Vector3.new(11.56, 17.11, 27.11);
}
for k,n in pairs(game.Workspace:GetChildren()) do
if n.Name == "GasPart" then
local exampletween = TweenService:Create(n, Info, Goals)
exampletween:Play()
end
end

2 comments
that doesn't work.
oh rip sorry. im glad you figured it out tho.