Also you said the player touches the gas. However in the script it says that anything can touch the gas, so I would script it so only the player can touch the gas then it prints out the print statement.
Please make sure that the object exists in the workspace by using FindFirstChild() and ensure that the name of the object is valid. I hope this would assist you resolve the problem.
Maybe try adding a warning to let you know if gas was found:
local gas = workspace.giole:FindFirstChild(“gas”)
if gas then
gas.Touched:Connect(function()
print("localscript hated you :DDDDDD”)
end)
else
warn(“Did not find gas.”)
end